From dd5fdfbb9f01e883fab065779a4cca039de13d80 Mon Sep 17 00:00:00 2001 From: Kevin Cristiano <kcristiano@kcristiano.com> Date: Thu, 2 Nov 2023 05:51:27 -0700 Subject: [PATCH] civicrm release-5.67.0 --- civicrm.php | 4 +- civicrm/CRM/ACL/BAO/ACL.php | 11 +- civicrm/CRM/Activity/BAO/Activity.php | 22 +- .../CRM/Admin/Form/Setting/Miscellaneous.php | 1 - civicrm/CRM/Api4/Page/AJAX.php | 2 +- civicrm/CRM/Campaign/BAO/Campaign.php | 154 - civicrm/CRM/Campaign/BAO/Petition.php | 130 - civicrm/CRM/Campaign/BAO/Survey.php | 135 - civicrm/CRM/Campaign/DAO/Survey.php | 13 +- civicrm/CRM/Campaign/Form/Campaign.php | 8 - civicrm/CRM/Campaign/Form/Search/Campaign.php | 119 - civicrm/CRM/Campaign/Form/Search/Petition.php | 81 - civicrm/CRM/Campaign/Form/Search/Survey.php | 92 - civicrm/CRM/Campaign/Form/Survey.php | 26 +- civicrm/CRM/Campaign/Page/AJAX.php | 308 - civicrm/CRM/Campaign/Page/DashBoard.php | 499 - civicrm/CRM/Campaign/xml/Menu/Campaign.xml | 7 - civicrm/CRM/Case/BAO/Case.php | 55 +- civicrm/CRM/Case/BAO/CaseContact.php | 5 +- civicrm/CRM/Case/BAO/CaseType.php | 6 +- civicrm/CRM/Case/DAO/Case.php | 11 +- civicrm/CRM/Case/Form/CaseView.php | 20 +- civicrm/CRM/Case/ManagedEntities.php | 6 +- civicrm/CRM/Case/Page/Tab.php | 5 - civicrm/CRM/Case/XMLRepository.php | 20 +- civicrm/CRM/Contact/BAO/Contact.php | 14 +- civicrm/CRM/Contact/BAO/ContactType.php | 15 +- civicrm/CRM/Contact/BAO/Group.php | 7 +- civicrm/CRM/Contact/BAO/GroupContact.php | 7 +- civicrm/CRM/Contact/BAO/GroupContactCache.php | 34 +- civicrm/CRM/Contact/BAO/Individual.php | 31 +- civicrm/CRM/Contact/BAO/Query.php | 27 +- civicrm/CRM/Contact/BAO/Relationship.php | 11 +- civicrm/CRM/Contact/BAO/RelationshipCache.php | 7 +- civicrm/CRM/Contact/DAO/Contact.php | 3 +- civicrm/CRM/Contact/DAO/Group.php | 31 +- civicrm/CRM/Contact/DAO/Relationship.php | 12 +- civicrm/CRM/Contact/DAO/RelationshipCache.php | 3 +- civicrm/CRM/Contact/Form/Contact.php | 2 +- civicrm/CRM/Contact/Form/ContactFormTrait.php | 52 + civicrm/CRM/Contact/Form/CustomData.php | 4 +- civicrm/CRM/Contact/Form/Relationship.php | 4 - civicrm/CRM/Contact/Form/Search.php | 29 +- civicrm/CRM/Contact/Form/Search/Advanced.php | 12 +- civicrm/CRM/Contact/Form/Search/Builder.php | 9 +- civicrm/CRM/Contact/Form/Search/Criteria.php | 4 +- civicrm/CRM/Contact/Form/Task/PDFTrait.php | 1 - civicrm/CRM/Contact/Page/AJAX.php | 2 +- civicrm/CRM/Contact/Page/DedupeMerge.php | 2 +- civicrm/CRM/Contact/Page/View/Note.php | 311 - .../CRM/Contact/Page/View/Relationship.php | 20 +- civicrm/CRM/Contact/Page/View/Summary.php | 14 - .../CRM/Contact/Page/View/UserDashBoard.php | 11 +- civicrm/CRM/Contribute/BAO/Contribution.php | 29 +- .../CRM/Contribute/BAO/ContributionRecur.php | 19 +- .../CRM/Contribute/BAO/ContributionSoft.php | 7 +- .../Contribute/Form/AbstractEditPayment.php | 43 +- .../CRM/Contribute/Form/AdditionalPayment.php | 8 +- civicrm/CRM/Contribute/Form/Contribution.php | 116 +- .../Contribute/Form/Contribution/Confirm.php | 22 - .../CRM/Contribute/Form/Contribution/Main.php | 9 +- .../CRM/Contribute/Form/ContributionBase.php | 9 +- .../CRM/Contribute/Form/ContributionPage.php | 73 +- .../Form/ContributionPage/Settings.php | 9 - civicrm/CRM/Contribute/Page/Tab.php | 4 +- .../WorkflowMessage/ContributionTrait.php | 31 + civicrm/CRM/Core/Action.php | 5 +- civicrm/CRM/Core/BAO/CMSUser.php | 9 +- civicrm/CRM/Core/BAO/CustomField.php | 201 +- civicrm/CRM/Core/BAO/CustomGroup.php | 77 +- civicrm/CRM/Core/BAO/CustomValue.php | 35 +- civicrm/CRM/Core/BAO/File.php | 47 + civicrm/CRM/Core/BAO/Managed.php | 39 + civicrm/CRM/Core/BAO/Note.php | 41 +- civicrm/CRM/Core/BAO/UFJoin.php | 7 +- civicrm/CRM/Core/BAO/UFMatch.php | 10 +- civicrm/CRM/Core/BAO/UserJob.php | 7 +- civicrm/CRM/Core/Config.php | 5 +- civicrm/CRM/Core/DAO.php | 156 +- civicrm/CRM/Core/DAO/AllCoreTables.php | 2 +- civicrm/CRM/Core/DAO/CustomGroup.php | 7 +- civicrm/CRM/Core/DAO/EntityFile.php | 8 +- civicrm/CRM/Core/DAO/MessageTemplate.php | 9 +- civicrm/CRM/Core/DAO/Note.php | 39 +- civicrm/CRM/Core/DAO/UFGroup.php | 3 +- civicrm/CRM/Core/DAO/UFMatch.php | 4 +- civicrm/CRM/Core/EntityTokens.php | 3 +- civicrm/CRM/Core/Error.php | 8 +- civicrm/CRM/Core/Form.php | 107 +- civicrm/CRM/Core/Form/EntityFormTrait.php | 2 - civicrm/CRM/Core/Form/Renderer.php | 28 + civicrm/CRM/Core/JobManager.php | 22 +- civicrm/CRM/Core/ManagedEntities.php | 51 +- civicrm/CRM/Core/Module.php | 15 +- civicrm/CRM/Core/Payment/Form.php | 5 +- civicrm/CRM/Core/Payment/PayPalProIPN.php | 125 +- civicrm/CRM/Core/Payment/ProcessorForm.php | 10 +- civicrm/CRM/Core/Permission.php | 7 + civicrm/CRM/Core/Reference/Dynamic.php | 2 +- civicrm/CRM/Core/Resources.php | 2 +- civicrm/CRM/Core/ScheduledJob.php | 103 +- civicrm/CRM/Core/SelectValues.php | 3 + civicrm/CRM/Core/Smarty.php | 50 +- .../Core/Smarty/plugins/block.crmButton.php | 52 +- .../plugins/block.crmUpgradeSnapshot.php | 6 +- .../CRM/Core/Smarty/plugins/block.edit.php | 12 +- .../CRM/Core/Smarty/plugins/block.htxt.php | 12 +- .../CRM/Core/Smarty/plugins/block.icon.php | 23 +- .../Core/Smarty/plugins/block.localize.php | 10 +- .../Core/Smarty/plugins/block.serialize.php | 37 - civicrm/CRM/Core/Smarty/plugins/block.ts.php | 14 +- civicrm/CRM/Core/Smarty/plugins/block.url.php | 7 +- .../CRM/Core/Smarty/plugins/function.help.php | 13 +- .../Core/Smarty/plugins/modifier.smarty.php | 45 + .../Smarty/plugins/prefilter.htxtFilter.php | 3 +- .../plugins/prefilter.resetExtScope.php | 6 +- civicrm/CRM/Core/Smarty/resources/String.php | 15 +- civicrm/CRM/Core/SmartyCompatibility.php | 237 + civicrm/CRM/Core/xml/Menu/Admin.xml | 6 + civicrm/CRM/Core/xml/Menu/Contact.xml | 7 +- civicrm/CRM/Core/xml/Menu/Misc.xml | 5 + civicrm/CRM/Custom/Form/CustomData.php | 10 +- civicrm/CRM/Custom/Form/Field.php | 11 +- civicrm/CRM/Custom/Form/Group.php | 264 +- civicrm/CRM/Custom/Page/Field.php | 7 + civicrm/CRM/Dashlet/Page/GettingStarted.php | 1 + civicrm/CRM/Event/BAO/Event.php | 16 +- civicrm/CRM/Event/BAO/Participant.php | 4 +- civicrm/CRM/Event/DAO/Event.php | 8 +- civicrm/CRM/Event/DAO/Participant.php | 4 +- civicrm/CRM/Event/Form/EventFees.php | 65 +- civicrm/CRM/Event/Form/EventFormTrait.php | 95 + civicrm/CRM/Event/Form/ManageEvent.php | 6 - .../CRM/Event/Form/ManageEvent/EventInfo.php | 15 +- .../CRM/Event/Form/ManageEvent/TabHeader.php | 8 +- civicrm/CRM/Event/Form/Participant.php | 386 +- civicrm/CRM/Event/Form/Participant/Delete.php | 158 + .../Event/Form/ParticipantFeeSelection.php | 88 +- civicrm/CRM/Event/Form/ParticipantView.php | 4 +- civicrm/CRM/Event/Form/Registration.php | 147 +- .../CRM/Event/Form/Registration/Confirm.php | 38 +- .../CRM/Event/Form/Registration/Register.php | 23 +- civicrm/CRM/Event/Form/SelfSvcTransfer.php | 128 +- civicrm/CRM/Event/Form/Task/Delete.php | 33 +- civicrm/CRM/Event/Page/EventInfo.php | 39 +- civicrm/CRM/Event/Page/ManageEvent.php | 16 +- civicrm/CRM/Event/Page/Tab.php | 12 +- civicrm/CRM/Event/Selector/Search.php | 16 +- civicrm/CRM/Event/Tokens.php | 29 +- .../Event/WorkflowMessage/EventExamples.php | 24 +- .../WorkflowMessage/ParticipantTrait.php | 34 +- civicrm/CRM/Event/xml/Menu/Event.xml | 23 +- civicrm/CRM/Extension/Info.php | 9 +- civicrm/CRM/Extension/Mapper.php | 4 +- .../Financial/BAO/EntityFinancialAccount.php | 2 +- civicrm/CRM/Financial/BAO/FinancialItem.php | 1 + civicrm/CRM/Financial/BAO/Order.php | 2 + civicrm/CRM/Financial/BAO/Payment.php | 1 - .../Financial/DAO/EntityFinancialAccount.php | 13 +- civicrm/CRM/Financial/Form/FinancialBatch.php | 5 - civicrm/CRM/Import/ImportProcessor.php | 5 - civicrm/CRM/Mailing/BAO/Mailing.php | 12 +- civicrm/CRM/Mailing/BAO/MailingJob.php | 77 +- civicrm/CRM/Mailing/DAO/Mailing.php | 6 +- .../Mailing/Event/BAO/MailingEventBounce.php | 2 +- .../Event/BAO/MailingEventDelivered.php | 2 +- .../Mailing/Event/BAO/MailingEventForward.php | 2 +- .../Mailing/Event/BAO/MailingEventQueue.php | 79 +- .../Mailing/Event/BAO/MailingEventReply.php | 2 +- .../Event/BAO/MailingEventResubscribe.php | 2 +- .../Event/BAO/MailingEventUnsubscribe.php | 4 +- .../Mailing/Event/DAO/MailingEventQueue.php | 67 +- civicrm/CRM/Mailing/Form/ForwardMailing.php | 2 +- civicrm/CRM/Mailing/Form/Optout.php | 2 +- civicrm/CRM/Mailing/Form/Unsubscribe.php | 8 +- civicrm/CRM/Mailing/Page/Common.php | 16 +- civicrm/CRM/Member/Form.php | 34 +- civicrm/CRM/Member/Form/Membership.php | 14 +- civicrm/CRM/Member/Form/MembershipRenewal.php | 11 +- civicrm/CRM/Member/Form/MembershipType.php | 5 +- civicrm/CRM/Member/Page/Tab.php | 1 - civicrm/CRM/Note/Form/Note.php | 43 +- civicrm/CRM/PCP/BAO/PCP.php | 28 +- civicrm/CRM/PCP/Form/Contribute.php | 3 - civicrm/CRM/Pledge/BAO/PledgeBlock.php | 8 +- civicrm/CRM/Pledge/Form/Pledge.php | 86 +- civicrm/CRM/Price/BAO/LineItem.php | 7 +- civicrm/CRM/Price/BAO/PriceSet.php | 8 +- civicrm/CRM/Price/Page/Field.php | 5 + civicrm/CRM/Price/Page/Option.php | 5 + civicrm/CRM/Profile/Form.php | 1 + civicrm/CRM/Profile/Form/Edit.php | 1 + civicrm/CRM/Queue/BAO/Queue.php | 4 +- civicrm/CRM/Queue/ErrorPolicy.php | 26 +- civicrm/CRM/Queue/Queue.php | 24 +- civicrm/CRM/Report/Form/Activity.php | 40 +- civicrm/CRM/UF/Form/AbstractPreview.php | 17 +- civicrm/CRM/UF/Form/Preview.php | 4 +- civicrm/CRM/Upgrade/Form.php | 28 - .../Incremental/php/FiveSixtySeven.php | 176 + .../Upgrade/Incremental/php/FiveSixtySix.php | 11 - .../Incremental/sql/5.67.alpha1.mysql.tpl | 13 + civicrm/CRM/Utils/Address.php | 38 +- civicrm/CRM/Utils/Array.php | 24 + civicrm/CRM/Utils/EnglishNumber.php | 4 +- civicrm/CRM/Utils/File.php | 12 +- civicrm/CRM/Utils/Geocode/Google.php | 6 +- civicrm/CRM/Utils/Hook.php | 115 +- civicrm/CRM/Utils/Mail/IncomingMail.php | 2 +- civicrm/CRM/Utils/Mail/Logger.php | 2 +- civicrm/CRM/Utils/SQL.php | 61 +- civicrm/CRM/Utils/SQL/Insert.php | 22 +- civicrm/CRM/Utils/SQL/Select.php | 4 +- civicrm/CRM/Utils/String.php | 22 +- civicrm/CRM/Utils/System.php | 2 +- civicrm/CRM/Utils/System/Backdrop.php | 3 +- civicrm/CRM/Utils/System/Base.php | 10 + civicrm/CRM/Utils/System/Drupal.php | 3 +- civicrm/CRM/Utils/System/Drupal8.php | 6 +- civicrm/CRM/Utils/System/DrupalBase.php | 14 +- civicrm/CRM/Utils/System/Joomla.php | 10 +- civicrm/CRM/Utils/System/Standalone.php | 8 + civicrm/CRM/Utils/System/UnitTests.php | 8 + civicrm/CRM/Utils/System/WordPress.php | 8 + civicrm/CRM/Utils/Token.php | 4 +- civicrm/CRM/Utils/Type.php | 4 +- civicrm/CRM/Utils/VersionCheck.php | 3 + civicrm/Civi/Angular/Manager.php | 3 + .../Api4/Action/Contact/GetDuplicates.php | 7 +- civicrm/Civi/Api4/Action/Note/Get.php | 47 + civicrm/Civi/Api4/Action/Queue/Run.php | 136 + civicrm/Civi/Api4/Action/Queue/RunItems.php | 4 +- civicrm/Civi/Api4/Contact.php | 47 +- civicrm/Civi/Api4/CustomValue.php | 9 +- civicrm/Civi/Api4/Entity.php | 5 + civicrm/Civi/Api4/EntityBatch.php | 2 +- .../Api4/EntityFile.php} | 28 +- civicrm/Civi/Api4/EntitySet.php | 2 +- .../Civi/Api4/Event/AuthorizeRecordEvent.php | 3 +- civicrm/Civi/Api4/File.php | 2 +- civicrm/Civi/Api4/Generic/AbstractAction.php | 19 +- civicrm/Civi/Api4/Generic/AbstractEntity.php | 41 +- .../Civi/Api4/Generic/AutocompleteAction.php | 2 +- .../Civi/Api4/Generic/DAOGetFieldsAction.php | 13 + civicrm/Civi/Api4/Generic/ExportAction.php | 6 + .../Generic/Traits/ArrayQueryActionTrait.php | 12 +- .../Api4/Generic/Traits/DAOActionTrait.php | 10 +- .../Api4/Generic/Traits/ManagedEntity.php | 3 +- .../Traits/SavedSearchInspectorTrait.php | 22 +- civicrm/Civi/Api4/Household.php | 33 + civicrm/Civi/Api4/Individual.php | 32 + civicrm/Civi/Api4/Note.php | 9 + civicrm/Civi/Api4/Organization.php | 32 + .../Api4/Provider/CustomEntityProvider.php | 4 +- civicrm/Civi/Api4/Query/Api4Query.php | 1 + civicrm/Civi/Api4/Query/Api4SelectQuery.php | 115 +- civicrm/Civi/Api4/Query/SqlExpression.php | 5 +- .../Api4/Query/SqlFunctionGROUP_CONCAT.php | 3 +- civicrm/Civi/Api4/Queue.php | 28 +- .../ActivityAutocompleteProvider.php | 3 +- .../Autocomplete/CaseAutocompleteProvider.php | 3 +- .../ContactAutocompleteProvider.php | 3 +- .../Schema/Joinable/CustomGroupJoinable.php | 21 - civicrm/Civi/Api4/Service/Schema/Joiner.php | 3 +- .../Api4/Service/Schema/SchemaMapBuilder.php | 14 +- .../Spec/Provider/ContactGetSpecProvider.php | 35 +- .../Spec/Provider/CustomValueSpecProvider.php | 16 +- .../Spec/Provider/FileGetSpecProvider.php | 139 + .../Provider/ManagedEntitySpecProvider.php | 2 +- ...hp => OptionGroupCreationSpecProvider.php} | 15 +- .../RelationshipCacheSpecProvider.php | 1 + .../Civi/Api4/Service/Spec/SpecFormatter.php | 24 +- .../Civi/Api4/Service/Spec/SpecGatherer.php | 72 +- civicrm/Civi/Api4/Utils/CoreUtil.php | 51 +- civicrm/Civi/Api4/Utils/FormattingUtil.php | 58 +- civicrm/Civi/Api4/Utils/ReflectionUtils.php | 6 +- .../Civi/Schema/Traits/DataTypeSpecTrait.php | 22 + civicrm/Civi/Test/Api4TestTrait.php | 35 +- civicrm/Civi/Test/HttpTestTrait.php | 4 +- civicrm/Civi/Token/TokenRow.php | 2 +- .../ang/afform/afsearchNoteComments.aff.html | 3 + .../ang/afform/afsearchNoteComments.aff.php | 13 + civicrm/ang/afform/afsearchTabNote.aff.html | 3 + civicrm/ang/afform/afsearchTabNote.aff.php | 16 + civicrm/ang/afform/afsearchTabRel.aff.html | 9 + civicrm/ang/afform/afsearchTabRel.aff.php | 13 + civicrm/ang/api4Explorer/Explorer.js | 8 +- civicrm/api/v3/Attachment.php | 4 + civicrm/api/v3/CustomGroup.php | 8 +- civicrm/api/v3/CustomValue.php | 2 +- civicrm/api/v3/Mailing.php | 2 + civicrm/api/v3/MailingEventResubscribe.php | 2 +- civicrm/api/v3/MailingEventUnsubscribe.php | 2 +- civicrm/api/v3/Note.php | 11 +- civicrm/bin/regen.sh | 2 +- civicrm/civicrm-version.php | 2 +- civicrm/composer.json | 2 +- civicrm/composer.lock | 2 +- .../Civi/AfformAdmin/AfformAdminInjector.php | 55 + .../afform/admin/afformEntities/Household.php | 1 - .../admin/afformEntities/Individual.php | 1 - .../admin/afformEntities/Organization.php | 1 - .../ext/afform/admin/afform_admin.civix.php | 4 +- .../ang/afAdminFormSubmissionList.aff.json | 7 - .../ang/afAdminFormSubmissionList.aff.php | 10 + civicrm/ext/afform/admin/ang/afGuiEditor.css | 4 + .../afGuiEditor/afGuiFieldValue.directive.js | 28 +- .../admin/ang/afGuiEditor/config-form.html | 6 +- .../elements/afGuiField.component.js | 9 +- .../ang/afGuiEditor/entityConfig/Options.html | 16 +- .../ang/afGuiEditor/inputType/CheckBox.html | 4 +- civicrm/ext/afform/admin/info.xml | 9 +- .../afform/core/CRM/Afform/AfformScanner.php | 53 +- .../ext/afform/core/CRM/Afform/ArrayHtml.php | 2 +- .../core/CRM/Afform/Page/AfformBase.php | 33 +- .../ext/afform/core/CRM/Afform/Upgrader.php | 2 +- .../Civi/Afform/AfformMetadataInjector.php | 10 +- .../core/Civi/Api4/Action/Afform/Revert.php | 2 +- civicrm/ext/afform/core/Civi/Api4/Afform.php | 8 +- .../afform/core/Civi/Api4/AfformBehavior.php | 1 + .../core/Civi/Api4/AfformSubmission.php | 1 + .../core/Civi/Api4/Utils/AfformSaveTrait.php | 6 +- civicrm/ext/afform/core/afform.php | 8 +- .../afform/core/ang/af/afField.component.js | 48 +- .../afform/core/ang/af/fields/CheckBox.html | 4 +- .../afform/core/ang/af/fields/Location.html | 8 + .../ext/afform/core/ang/af/fields/Select.html | 4 +- civicrm/ext/afform/core/ang/afCore.css | 12 + civicrm/ext/afform/core/info.xml | 9 +- .../Civi/Afform/AfformContactSummaryTest.php | 50 +- .../afform/core/tests/phpunit/bootstrap.php | 2 +- civicrm/ext/afform/html/afform_html.civix.php | 110 +- civicrm/ext/afform/html/afform_html.php | 47 - civicrm/ext/afform/html/info.xml | 9 +- civicrm/ext/afform/mock/afform_mock.civix.php | 110 +- civicrm/ext/afform/mock/afform_mock.php | 47 - .../testDisplaysSharingSameFieldset.aff.html | 7 + civicrm/ext/afform/mock/info.xml | 9 +- .../afform/mock/tests/phpunit/bootstrap.php | 2 +- civicrm/ext/authx/authx.civix.php | 4 +- civicrm/ext/authx/authx.php | 2 +- civicrm/ext/authx/info.xml | 9 +- civicrm/ext/authx/tests/phpunit/bootstrap.php | 2 +- .../ang/afsearchCampaignDashboard.aff.html | 25 + .../ang/afsearchCampaignDashboard.aff.php | 16 + .../ang/afsearchSurveyOptionGroup.aff.html | 3 + .../ang/afsearchSurveyOptionGroup.aff.php | 10 + civicrm/ext/civi_campaign/info.xml | 5 +- .../SavedSearch_Administer_Campaigns.mgd.php | 205 + .../SavedSearch_Administer_Petitions.mgd.php | 218 + ...edSearch_Administer_Survey_Options.mgd.php | 101 + .../SavedSearch_Administer_Surveys.mgd.php | 303 + .../ext/civi_case/Civi/Api4/CaseContact.php | 2 +- civicrm/ext/civi_case/civi_case.php | 34 +- civicrm/ext/civi_case/info.xml | 4 +- .../FinancialItemCreationSpecProvider.php | 9 +- civicrm/ext/civi_contribute/info.xml | 4 +- civicrm/ext/civi_event/info.xml | 4 +- civicrm/ext/civi_mail/info.xml | 4 +- civicrm/ext/civi_member/info.xml | 4 +- civicrm/ext/civi_pledge/info.xml | 4 +- civicrm/ext/civi_report/info.xml | 4 +- .../ang/afsearchAdminContactTypes.aff.json | 8 - .../ang/afsearchAdminContactTypes.aff.php | 11 + .../ang/afsearchAdminCustomFields.aff.json | 19 - .../ang/afsearchAdminCustomFields.aff.php | 22 + .../ang/afsearchAdminCustomGroups.aff.json | 19 - .../ang/afsearchAdminCustomGroups.aff.php | 22 + .../ang/afsearchAdminFinancialTypes.aff.json | 18 - .../ang/afsearchAdminFinancialTypes.aff.php | 21 + .../afsearchAdminScheduledReminders.aff.json | 8 - .../afsearchAdminScheduledReminders.aff.php | 11 + .../afsearchAdministerLocationTypes.aff.json | 7 - .../afsearchAdministerLocationTypes.aff.php | 10 + ...searchAdministerPaymentProcessors.aff.json | 7 - ...fsearchAdministerPaymentProcessors.aff.php | 10 + .../ang/afsearchAssignUsersToRoles.aff.json | 19 - .../ang/afsearchAssignUsersToRoles.aff.php | 22 + ...afsearchAssignedFinancialAccounts.aff.json | 18 - .../afsearchAssignedFinancialAccounts.aff.php | 21 + .../ang/afsearchFinancialAccounts.aff.json | 9 - .../ang/afsearchFinancialAccounts.aff.php | 12 + .../ang/afsearchMailAccounts.aff.json | 19 - .../ang/afsearchMailAccounts.aff.php | 22 + .../ang/afsearchManageACLs.aff.json | 8 - .../ang/afsearchManageACLs.aff.php | 11 + .../afsearchManageContributionPages.aff.json | 19 - .../afsearchManageContributionPages.aff.php | 22 + .../ang/afsearchManageGroups.aff.json | 19 - .../ang/afsearchManageGroups.aff.php | 22 + .../ang/afsearchManageScheduledJobs.aff.json | 7 - .../ang/afsearchManageScheduledJobs.aff.php | 10 + .../ang/afsearchProfileFields.aff.json | 18 - .../ang/afsearchProfileFields.aff.php | 21 + .../ang/afsearchProfiles.aff.json | 18 - .../ang/afsearchProfiles.aff.php | 21 + .../ang/afsearchRelationshipTypes.aff.json | 18 - .../ang/afsearchRelationshipTypes.aff.php | 21 + .../ang/afsearchScheduledJobsLog.aff.html | 4 +- .../ang/afsearchScheduledJobsLog.aff.json | 19 - .../ang/afsearchScheduledJobsLog.aff.php | 22 + civicrm/ext/civicrm_admin_ui/info.xml | 4 +- .../managed/SavedSearch_ACL_Roles.mgd.php | 13 +- ...nister_Assigned_Financial_Accounts.mgd.php | 13 +- ...vedSearch_Administer_Contact_Types.mgd.php | 13 +- ...vedSearch_Administer_Custom_Fields.mgd.php | 15 +- ...vedSearch_Administer_Custom_Groups.mgd.php | 17 +- ...arch_Administer_Financial_Accounts.mgd.php | 13 +- ...dSearch_Administer_Financial_Types.mgd.php | 13 +- ...edSearch_Administer_Location_Types.mgd.php | 13 +- ...avedSearch_Administer_Manage_Group.mgd.php | 13 +- ...arch_Administer_Payment_Processors.mgd.php | 13 +- ...vedSearch_Administer_ProfileFields.mgd.php | 15 +- .../SavedSearch_Administer_Profiles.mgd.php | 23 +- ...arch_Administer_Relationship_Types.mgd.php | 13 +- ...rch_Administer_Scheduled_Reminders.mgd.php | 13 +- .../managed/SavedSearch_Manage_ACLs.mgd.php | 13 +- .../SavedSearch_Manage_Mail_Accounts.mgd.php | 13 +- .../SavedSearch_Manage_Scheduled_Jobs.mgd.php | 2 +- .../ang/afsearchContactSearch.aff.json | 19 - .../ang/afsearchContactSearch.aff.php | 22 + .../ang/afsearchFindContributions.aff.json | 23 - .../ang/afsearchFindContributions.aff.php | 26 + civicrm/ext/civicrm_search_ui/info.xml | 4 +- civicrm/ext/civigrant/CRM/Grant/DAO/Grant.php | 10 +- .../ext/civigrant/CRM/Grant/Form/Grant.php | 51 +- .../civigrant/CRM/Grant/Form/GrantView.php | 12 +- civicrm/ext/civigrant/CRM/Grant/Page/Tab.php | 189 - .../civigrant/CRM/Grant/Selector/Search.php | 12 +- .../civigrant/ang/afsearchTabGrant.aff.html | 6 - .../civigrant/ang/afsearchTabGrant.aff.json | 8 - .../civigrant/ang/afsearchTabGrant.aff.php | 12 + civicrm/ext/civigrant/civigrant.php | 6 +- civicrm/ext/civigrant/info.xml | 4 +- .../managed/Navigation_Grants.mgd.php | 2 +- .../OptionValue_note_used_for_grant.mgd.php | 27 + .../SavedSearch_CiviGrant_Summary.mgd.php | 10 + .../templates/CRM/Grant/Form/Grant.tpl | 2 + .../templates/CRM/Grant/Form/GrantView.tpl | 32 +- .../templates/CRM/Grant/Form/Selector.tpl | 6 +- .../templates/CRM/Grant/Form/Task.tpl | 2 +- .../templates/CRM/Grant/Form/Task/Print.tpl | 2 +- .../templates/CRM/Grant/Page/DashBoard.tpl | 2 +- .../templates/CRM/Grant/Page/Tab.tpl | 43 - civicrm/ext/civigrant/xml/Menu/Grant.xml | 8 +- .../civigrant/xml/schema/CRM/Grant/Grant.xml | 8 +- .../ang/afsearchAllImports.aff.json | 23 - .../civiimport/ang/afsearchAllImports.aff.php | 26 + .../civiimport/ang/afsearchMyImports.aff.json | 23 - .../civiimport/ang/afsearchMyImports.aff.php | 26 + .../civiimport/ang/afsearchTemplates.aff.json | 23 - .../civiimport/ang/afsearchTemplates.aff.php | 26 + civicrm/ext/civiimport/civiimport.civix.php | 4 +- civicrm/ext/civiimport/info.xml | 8 +- civicrm/ext/ckeditor4/ckeditor4.civix.php | 4 +- civicrm/ext/ckeditor4/info.xml | 8 +- .../CRM/Ckeditor4/Form/CKEditorConfig.tpl | 2 +- .../contributioncancelactions.civix.php | 110 +- .../ext/contributioncancelactions/info.xml | 6 +- .../tests/phpunit/bootstrap.php | 2 +- civicrm/ext/elavon/elavon.civix.php | 110 +- civicrm/ext/elavon/elavon.php | 47 - civicrm/ext/elavon/info.xml | 6 +- .../CRM/Event/Cart/Form/Checkout/Payment.php | 18 +- .../CRM/Event/Form/ManageEvent/Conference.php | 0 civicrm/ext/eventcart/eventcart.civix.php | 20 +- civicrm/ext/eventcart/eventcart.php | 39 +- civicrm/ext/eventcart/info.xml | 7 +- .../Event/Cart/Form/Checkout/Participant.tpl | 4 +- .../CRM/Event/Form/ManageEvent/Conference.tpl | 0 civicrm/ext/eventcart/xml/Menu/Eventcart.xml | 17 + civicrm/ext/ewaysingle/ewaysingle.civix.php | 110 +- civicrm/ext/ewaysingle/ewaysingle.php | 47 - civicrm/ext/ewaysingle/info.xml | 14 +- .../ewaysingle/tests/phpunit/bootstrap.php | 2 +- .../ext/financialacls/financialacls.civix.php | 4 +- civicrm/ext/financialacls/financialacls.php | 8 +- civicrm/ext/financialacls/info.xml | 6 +- .../financialacls/tests/phpunit/bootstrap.php | 2 +- civicrm/ext/flexmailer/flexmailer.civix.php | 4 +- civicrm/ext/flexmailer/info.xml | 7 +- .../ext/flexmailer/src/API/MailingPreview.php | 10 +- .../src/Event/CheckSendableEvent.php | 2 +- civicrm/ext/flexmailer/src/FlexMailer.php | 12 +- civicrm/ext/flexmailer/src/FlexMailerTask.php | 2 +- .../flexmailer/src/Listener/BasicHeaders.php | 4 +- .../src/Listener/DefaultBatcher.php | 4 +- .../src/Listener/DefaultComposer.php | 16 +- .../flexmailer/src/Listener/DefaultSender.php | 6 +- .../src/Listener/RequiredFields.php | 4 +- .../src/Listener/RequiredTokens.php | 6 +- .../flexmailer/src/Listener/SimpleFilter.php | 4 +- .../ext/flexmailer/src/Listener/ToHeader.php | 6 +- civicrm/ext/flexmailer/src/MailParams.php | 2 +- civicrm/ext/flexmailer/src/Services.php | 58 +- civicrm/ext/flexmailer/src/Validator.php | 4 +- .../ClickTracker/HtmlClickTrackerTest.php | 2 +- .../ClickTracker/TextClickTrackerTest.php | 2 +- .../FlexMailer/ConcurrentDeliveryTest.php | 2 +- .../Civi/FlexMailer/FlexMailerSystemTest.php | 8 +- .../FlexMailer/Listener/SimpleFilterTest.php | 12 +- .../Civi/FlexMailer/MailingPreviewTest.php | 20 +- .../phpunit/Civi/FlexMailer/ValidatorTest.php | 70 +- .../flexmailer/tests/phpunit/bootstrap.php | 2 +- civicrm/ext/greenwich/greenwich.civix.php | 4 +- civicrm/ext/greenwich/info.xml | 6 +- .../CRM/Contact/Form/Search/Custom.php | 29 +- .../CRM/Contact/Form/Search/Custom/Base.php | 1 + .../CRM/Utils/QueryFormatter.php | 2 +- civicrm/ext/legacycustomsearches/info.xml | 8 +- .../legacycustomsearches.civix.php | 4 +- .../Form/Search/Custom/ActivitySearch.tpl | 8 +- .../Contact/Form/Search/Custom/FullText.tpl | 16 +- .../CRM/MessageAdmin/Page/MsgtplBasePage.php | 4 +- civicrm/ext/message_admin/info.xml | 8 +- .../ext/message_admin/message_admin.civix.php | 4 +- .../CRM/OAuth/BAO/OAuthContactToken.php | 11 +- .../OAuthClient/AbstractGrantAction.php | 4 - .../Api4/Action/OAuthSessionToken/Delete.php | 33 + .../Api4/Action/OAuthSysToken/Refresh.php | 4 - .../Civi/Api4/OAuthSessionToken.php | 108 + .../Civi/OAuth/CiviGenericProvider.php | 5 +- .../Civi/OAuth/OAuthTokenFacade.php | 2 +- .../Civi/OAuth/TestOAuthDotComProvider.php | 14 + .../ang/oauthClientAdmin.aff.json | 5 - .../oauth-client/ang/oauthClientAdmin.aff.php | 8 + .../oauth-client/ang/oauthJwtDebug.aff.json | 6 - .../oauth-client/ang/oauthJwtDebug.aff.php | 9 + civicrm/ext/oauth-client/info.xml | 8 +- .../ext/oauth-client/oauth_client.civix.php | 4 +- .../oauth-client/providers/testoauth.com.json | 10 + .../phpunit/api/v4/OAuthSessionTokenTest.php | 140 + .../oauth-client/tests/phpunit/bootstrap.php | 2 +- civicrm/ext/payflowpro/info.xml | 6 +- civicrm/ext/payflowpro/payflowpro.civix.php | 110 +- civicrm/ext/payflowpro/payflowpro.php | 47 - .../payflowpro/tests/phpunit/bootstrap.php | 2 +- civicrm/ext/recaptcha/info.xml | 8 +- civicrm/ext/recaptcha/recaptcha.civix.php | 4 +- civicrm/ext/scheduled_communications/info.xml | 4 +- .../SearchDisplay/AbstractRunAction.php | 197 +- .../Api4/Action/SearchDisplay/Download.php | 13 +- .../Api4/Action/SearchDisplay/GetDefault.php | 5 +- .../Civi/Api4/Action/SearchDisplay/Run.php | 44 + .../Api4/Result/SearchDisplayRunResult.php | 9 +- civicrm/ext/search_kit/Civi/Search/Admin.php | 39 +- .../ext/search_kit/Civi/Search/Display.php | 11 +- .../crmSearchAdmin.component.js | 5 +- .../crmSearchAdminDisplay.component.js | 24 +- .../crmSearchAdminLinkGroup.component.js | 5 +- .../crmSearchAdminLinkGroup.html | 2 +- .../searchAdminToolbarConfig.component.js | 43 + .../common/searchAdminToolbarConfig.html | 11 + .../displays/common/searchButtonConfig.html | 9 - .../displays/searchAdminDisplayGrid.html | 1 + .../displays/searchAdminDisplayList.html | 1 + .../displays/searchAdminDisplayTable.html | 1 + .../ang/crmSearchDisplay/AddButton.html | 4 - .../ang/crmSearchDisplay/Pager.html | 2 +- .../ang/crmSearchDisplay/colType/field.html | 21 +- .../crmSearchDisplayEditable.component.js | 9 +- .../ang/crmSearchDisplay/toolbar.html | 4 + .../traits/searchDisplayBaseTrait.service.js | 36 +- .../crmSearchDisplayGrid.html | 2 +- .../crmSearchDisplayGridItems.html | 2 +- .../crmSearchDisplayList.html | 2 +- .../crmSearchDisplayListItems.html | 2 +- .../crmSearchDisplayTable.html | 4 +- .../crmSearchDisplayTableBody.html | 2 +- .../traits/searchDisplayTasksTrait.service.js | 13 +- civicrm/ext/search_kit/info.xml | 8 +- civicrm/ext/search_kit/search_kit.civix.php | 4 +- .../api/v4/SearchDisplay/SearchAfformTest.php | 126 +- .../api/v4/SearchDisplay/SearchRunTest.php | 379 +- .../search_kit/tests/phpunit/bootstrap.php | 2 +- civicrm/ext/sequentialcreditnotes/info.xml | 9 +- .../sequentialcreditnotes.civix.php | 4 +- .../CRM/Standaloneusers/DAO/User.php | 290 +- .../Standaloneusers/Page/ChangePassword.php | 14 + .../Standaloneusers/Page/ResetPassword.php | 32 + .../CRM/Standaloneusers/Upgrader.php | 40 +- .../WorkflowMessage/PasswordReset.php | 82 + .../Civi/Api4/Action/User/Create.php | 12 + .../Civi/Api4/Action/User/PasswordReset.php | 57 + .../Civi/Api4/Action/User/Save.php | 9 + .../Api4/Action/User/SendPasswordReset.php | 121 + .../Civi/Api4/Action/User/Update.php | 9 + .../Civi/Api4/Action/User/WriteTrait.php | 149 + .../Spec/Provider/UserSpecProvider.php | 42 + .../ext/standaloneusers/Civi/Api4/User.php | 52 + .../standaloneusers/Civi/Authx/Standalone.php | 2 +- .../PasswordAlgorithms/AlgorithmInterface.php | 21 + .../Standalone/PasswordAlgorithms/Drupal7.php | 184 + .../Civi/Standalone/Security.php | 294 +- ...formX.aff.html => afformEditRole.aff.html} | 0 .../ang/afformEditRole.aff.php | 22 + .../ang/afformEditUserAccount.aff.html | 2 +- .../ang/afformEditUserAccount.aff.json | 19 - .../ang/afformEditUserAccount.aff.php | 22 + .../ext/standaloneusers/ang/afformX.aff.json | 19 - .../afsearchAdministerUserAccounts.aff.html | 10 +- .../afsearchAdministerUserAccounts.aff.json | 23 - .../afsearchAdministerUserAccounts.aff.php | 26 + .../ang/afsearchUserRoles.aff.json | 23 - .../ang/afsearchUserRoles.aff.php | 26 + .../ang/crmChangePassword.ang.php | 17 + .../standaloneusers/ang/crmChangePassword.js | 112 + .../crmChangePassword/crmChangePassword.html | 49 + .../ang/crmResetPassword.ang.php | 17 + .../standaloneusers/ang/crmResetPassword.js | 136 + .../crmResetPassword/crmResetPassword.html | 61 + civicrm/ext/standaloneusers/info.xml | 6 +- .../SavedSearch_Administer_Users.mgd.php | 4 +- .../ext/standaloneusers/sql/auto_install.sql | 25 +- .../standaloneusers/sql/auto_uninstall.sql | 2 +- .../ext/standaloneusers/standaloneusers.php | 12 + .../Standaloneusers/Page/ChangePassword.tpl | 3 + .../CRM/Standaloneusers/Page/Login.tpl | 6 +- .../Standaloneusers/Page/ResetPassword.tpl | 5 + .../phpunit/Civi/Standalone/SecurityTest.php | 349 +- .../xml/Menu/standaloneusers.xml | 12 + .../CRM/Standaloneusers/User.entityType.php | 2 +- .../xml/schema/CRM/Standaloneusers/User.xml | 117 +- .../SavedSearch_Contact_Summary_Notes.mgd.php | 424 + ...arch_Contact_Summary_Relationships.mgd.php | 480 + civicrm/mixin/mgd-php@1/mixin.php | 2 +- civicrm/packages/Smarty/Smarty.class.php | 345 +- civicrm/packages/smarty3/composer.json | 5 + civicrm/packages/smarty3/composer.lock | 82 + civicrm/packages/smarty3/vendor/autoload.php | 12 + .../smarty3/vendor/composer/ClassLoader.php | 572 + .../vendor/composer/InstalledVersions.php | 352 + .../packages/smarty3/vendor/composer/LICENSE | 21 + .../vendor/composer/autoload_classmap.php | 183 + .../vendor/composer/autoload_namespaces.php | 9 + .../smarty3/vendor/composer/autoload_psr4.php | 9 + .../smarty3/vendor/composer/autoload_real.php | 38 + .../vendor/composer/autoload_static.php | 193 + .../smarty3/vendor/composer/installed.json | 72 + .../smarty3/vendor/composer/installed.php | 32 + .../vendor/composer/platform_check.php | 26 + .../smarty3/vendor/smarty/smarty/CHANGELOG.md | 3526 ++++++ .../smarty/smarty/COMPOSER_RELEASE_NOTES.txt | 31 + .../smarty/INHERITANCE_RELEASE_NOTES.txt | 91 + .../smarty3/vendor/smarty/smarty/LICENSE | 179 + .../vendor/smarty/smarty/NEW_FEATURES.txt | 291 + .../smarty3/vendor/smarty/smarty/README | 575 + .../smarty3/vendor/smarty/smarty/README.md | 78 + .../smarty3/vendor/smarty/smarty/SECURITY.md | 19 + .../smarty/smarty/SMARTY_2_BC_NOTES.txt | 109 + .../smarty/smarty/SMARTY_3.0_BC_NOTES.txt | 24 + .../vendor/smarty/smarty/SMARTY_3.1_NOTES.txt | 306 + .../vendor/smarty/smarty/composer.json | 46 + .../smarty/smarty/demo/configs/test.conf | 5 + .../vendor/smarty/smarty/demo/index.php | 35 + .../smarty/demo/plugins/cacheresource.apc.php | 85 + .../demo/plugins/cacheresource.memcache.php | 99 + .../demo/plugins/cacheresource.mysql.php | 183 + .../smarty/demo/plugins/cacheresource.pdo.php | 346 + .../demo/plugins/cacheresource.pdo_gzip.php | 42 + .../demo/plugins/resource.extendsall.php | 62 + .../smarty/demo/plugins/resource.mysql.php | 101 + .../smarty/demo/plugins/resource.mysqls.php | 77 + .../smarty/smarty/demo/templates/footer.tpl | 2 + .../smarty/smarty/demo/templates/header.tpl | 5 + .../smarty/smarty/demo/templates/index.tpl | 87 + .../smarty_internal_configfilelexer.plex | 318 + .../lexer/smarty_internal_configfileparser.y | 346 + .../lexer/smarty_internal_templatelexer.plex | 696 ++ .../lexer/smarty_internal_templateparser.y | 1280 ++ .../vendor/smarty/smarty/libs/Autoloader.php | 110 + .../smarty/smarty/libs/Smarty.class.php | 1424 +++ .../smarty/smarty/libs/SmartyBC.class.php | 477 + .../vendor/smarty/smarty/libs/bootstrap.php | 16 + .../vendor/smarty/smarty/libs/debug.tpl | 160 + .../smarty/libs/plugins/block.textformat.php | 121 + .../smarty/libs/plugins/function.counter.php | 62 + .../smarty/libs/plugins/function.cycle.php | 92 + .../smarty/libs/plugins/function.fetch.php | 204 + .../libs/plugins/function.html_checkboxes.php | 286 + .../libs/plugins/function.html_image.php | 158 + .../libs/plugins/function.html_options.php | 230 + .../libs/plugins/function.html_radios.php | 266 + .../plugins/function.html_select_date.php | 395 + .../plugins/function.html_select_time.php | 354 + .../libs/plugins/function.html_table.php | 164 + .../smarty/libs/plugins/function.mailto.php | 147 + .../smarty/libs/plugins/function.math.php | 142 + .../libs/plugins/modifier.capitalize.php | 145 + .../libs/plugins/modifier.date_format.php | 85 + .../libs/plugins/modifier.debug_print_var.php | 103 + .../smarty/libs/plugins/modifier.escape.php | 262 + .../libs/plugins/modifier.mb_wordwrap.php | 71 + .../libs/plugins/modifier.regex_replace.php | 55 + .../smarty/libs/plugins/modifier.replace.php | 37 + .../smarty/libs/plugins/modifier.spacify.php | 26 + .../smarty/libs/plugins/modifier.truncate.php | 62 + .../libs/plugins/modifiercompiler.cat.php | 28 + .../modifiercompiler.count_characters.php | 32 + .../modifiercompiler.count_paragraphs.php | 26 + .../modifiercompiler.count_sentences.php | 26 + .../plugins/modifiercompiler.count_words.php | 31 + .../libs/plugins/modifiercompiler.default.php | 32 + .../libs/plugins/modifiercompiler.escape.php | 115 + .../plugins/modifiercompiler.from_charset.php | 30 + .../libs/plugins/modifiercompiler.indent.php | 30 + .../libs/plugins/modifiercompiler.lower.php | 29 + .../libs/plugins/modifiercompiler.noprint.php | 20 + .../modifiercompiler.string_format.php | 24 + .../libs/plugins/modifiercompiler.strip.php | 30 + .../plugins/modifiercompiler.strip_tags.php | 28 + .../plugins/modifiercompiler.to_charset.php | 30 + .../plugins/modifiercompiler.unescape.php | 52 + .../libs/plugins/modifiercompiler.upper.php | 28 + .../plugins/modifiercompiler.wordwrap.php | 39 + .../plugins/outputfilter.trimwhitespace.php | 89 + .../plugins/shared.escape_special_chars.php | 32 + .../plugins/shared.literal_compiler_param.php | 35 + .../libs/plugins/shared.make_timestamp.php | 49 + .../libs/plugins/shared.mb_str_replace.php | 87 + .../smarty/libs/plugins/shared.mb_unicode.php | 51 + .../variablefilter.htmlspecialchars.php | 19 + .../libs/sysplugins/smarty_cacheresource.php | 219 + .../smarty_cacheresource_custom.php | 297 + .../smarty_cacheresource_keyvaluestore.php | 538 + .../smarty/libs/sysplugins/smarty_data.php | 68 + .../libs/sysplugins/smarty_internal_block.php | 90 + .../smarty_internal_cacheresource_file.php | 239 + .../smarty_internal_compile_append.php | 52 + .../smarty_internal_compile_assign.php | 96 + .../smarty_internal_compile_block.php | 189 + .../smarty_internal_compile_block_child.php | 24 + .../smarty_internal_compile_block_parent.php | 31 + .../smarty_internal_compile_break.php | 117 + .../smarty_internal_compile_call.php | 89 + .../smarty_internal_compile_capture.php | 105 + .../smarty_internal_compile_child.php | 79 + .../smarty_internal_compile_config_load.php | 96 + .../smarty_internal_compile_continue.php | 25 + .../smarty_internal_compile_debug.php | 40 + .../smarty_internal_compile_eval.php | 70 + .../smarty_internal_compile_extends.php | 158 + .../smarty_internal_compile_for.php | 164 + .../smarty_internal_compile_foreach.php | 343 + .../smarty_internal_compile_function.php | 236 + .../sysplugins/smarty_internal_compile_if.php | 207 + .../smarty_internal_compile_include.php | 347 + .../smarty_internal_compile_include_php.php | 110 + .../smarty_internal_compile_insert.php | 157 + .../smarty_internal_compile_ldelim.php | 37 + .../smarty_internal_compile_make_nocache.php | 62 + .../smarty_internal_compile_nocache.php | 73 + .../smarty_internal_compile_parent.php | 31 + ..._internal_compile_private_block_plugin.php | 124 + ...nternal_compile_private_foreachsection.php | 228 + ...ternal_compile_private_function_plugin.php | 78 + ...arty_internal_compile_private_modifier.php | 158 + ..._compile_private_object_block_function.php | 42 + ...ternal_compile_private_object_function.php | 85 + .../smarty_internal_compile_private_php.php | 253 + ...ernal_compile_private_print_expression.php | 161 + ...ernal_compile_private_registered_block.php | 72 + ...al_compile_private_registered_function.php | 91 + ...ernal_compile_private_special_variable.php | 130 + .../smarty_internal_compile_rdelim.php | 34 + .../smarty_internal_compile_section.php | 462 + .../smarty_internal_compile_setfilter.php | 68 + ...ty_internal_compile_shared_inheritance.php | 49 + .../smarty_internal_compile_while.php | 100 + .../smarty_internal_compilebase.php | 203 + .../smarty_internal_config_file_compiler.php | 211 + .../smarty_internal_configfilelexer.php | 739 ++ .../smarty_internal_configfileparser.php | 1046 ++ .../libs/sysplugins/smarty_internal_data.php | 292 + .../libs/sysplugins/smarty_internal_debug.php | 425 + .../smarty_internal_errorhandler.php | 113 + .../smarty_internal_extension_handler.php | 197 + ...rty_internal_method_addautoloadfilters.php | 53 + ...ty_internal_method_adddefaultmodifiers.php | 42 + .../smarty_internal_method_append.php | 74 + .../smarty_internal_method_appendbyref.php | 49 + .../smarty_internal_method_assignbyref.php | 36 + .../smarty_internal_method_assignglobal.php | 44 + .../smarty_internal_method_clearallassign.php | 36 + .../smarty_internal_method_clearallcache.php | 41 + .../smarty_internal_method_clearassign.php | 43 + .../smarty_internal_method_clearcache.php | 50 + ..._internal_method_clearcompiledtemplate.php | 131 + .../smarty_internal_method_clearconfig.php | 41 + ...marty_internal_method_compileallconfig.php | 36 + ...ty_internal_method_compilealltemplates.php | 130 + .../smarty_internal_method_configload.php | 182 + .../smarty_internal_method_createdata.php | 44 + ...rty_internal_method_getautoloadfilters.php | 37 + ...arty_internal_method_getconfigvariable.php | 34 + .../smarty_internal_method_getconfigvars.php | 58 + ...marty_internal_method_getdebugtemplate.php | 35 + ...ty_internal_method_getdefaultmodifiers.php | 35 + .../smarty_internal_method_getglobal.php | 47 + ...ty_internal_method_getregisteredobject.php | 44 + ...arty_internal_method_getstreamvariable.php | 50 + .../smarty_internal_method_gettags.php | 63 + ...smarty_internal_method_gettemplatevars.php | 119 + .../smarty_internal_method_literals.php | 100 + .../smarty_internal_method_loadfilter.php | 77 + .../smarty_internal_method_loadplugin.php | 111 + .../smarty_internal_method_mustcompile.php | 50 + ..._internal_method_registercacheresource.php | 42 + .../smarty_internal_method_registerclass.php | 46 + ...al_method_registerdefaultconfighandler.php | 42 + ...al_method_registerdefaultpluginhandler.php | 43 + ..._method_registerdefaulttemplatehandler.php | 88 + .../smarty_internal_method_registerfilter.php | 87 + .../smarty_internal_method_registerobject.php | 84 + .../smarty_internal_method_registerplugin.php | 58 + ...marty_internal_method_registerresource.php | 46 + ...rty_internal_method_setautoloadfilters.php | 72 + ...marty_internal_method_setdebugtemplate.php | 41 + ...ty_internal_method_setdefaultmodifiers.php | 38 + .../smarty_internal_method_unloadfilter.php | 43 + ...nternal_method_unregistercacheresource.php | 40 + ...marty_internal_method_unregisterfilter.php | 43 + ...marty_internal_method_unregisterobject.php | 40 + ...marty_internal_method_unregisterplugin.php | 41 + ...rty_internal_method_unregisterresource.php | 40 + .../smarty_internal_nocache_insert.php | 51 + .../sysplugins/smarty_internal_parsetree.php | 50 + .../smarty_internal_parsetree_code.php | 42 + .../smarty_internal_parsetree_dq.php | 95 + .../smarty_internal_parsetree_dqcontent.php | 42 + .../smarty_internal_parsetree_tag.php | 67 + .../smarty_internal_parsetree_template.php | 169 + .../smarty_internal_parsetree_text.php | 57 + .../smarty_internal_resource_eval.php | 94 + .../smarty_internal_resource_extends.php | 126 + .../smarty_internal_resource_file.php | 180 + .../smarty_internal_resource_php.php | 116 + .../smarty_internal_resource_registered.php | 101 + .../smarty_internal_resource_stream.php | 78 + .../smarty_internal_resource_string.php | 108 + .../smarty_internal_runtime_cachemodify.php | 68 + ...rty_internal_runtime_cacheresourcefile.php | 139 + .../smarty_internal_runtime_capture.php | 174 + .../smarty_internal_runtime_codeframe.php | 103 + .../smarty_internal_runtime_filterhandler.php | 69 + .../smarty_internal_runtime_foreach.php | 162 + ...smarty_internal_runtime_getincludepath.php | 181 + .../smarty_internal_runtime_inheritance.php | 251 + .../smarty_internal_runtime_make_nocache.php | 54 + .../smarty_internal_runtime_tplfunction.php | 177 + .../smarty_internal_runtime_updatecache.php | 183 + .../smarty_internal_runtime_updatescope.php | 115 + .../smarty_internal_runtime_writefile.php | 100 + ...smarty_internal_smartytemplatecompiler.php | 184 + .../sysplugins/smarty_internal_template.php | 740 ++ .../smarty_internal_templatebase.php | 394 + .../smarty_internal_templatecompilerbase.php | 1764 +++ .../smarty_internal_templatelexer.php | 1095 ++ .../smarty_internal_templateparser.php | 3627 ++++++ .../smarty_internal_testinstall.php | 609 + .../sysplugins/smarty_internal_undefined.php | 67 + .../libs/sysplugins/smarty_resource.php | 262 + .../sysplugins/smarty_resource_custom.php | 93 + .../sysplugins/smarty_resource_recompiled.php | 94 + .../sysplugins/smarty_resource_uncompiled.php | 49 + .../libs/sysplugins/smarty_security.php | 721 ++ .../sysplugins/smarty_template_cached.php | 257 + .../sysplugins/smarty_template_compiled.php | 257 + .../sysplugins/smarty_template_config.php | 100 + .../smarty_template_resource_base.php | 152 + .../sysplugins/smarty_template_source.php | 213 + .../sysplugins/smarty_undefined_variable.php | 33 + .../libs/sysplugins/smarty_variable.php | 47 + .../sysplugins/smartycompilerexception.php | 45 + .../libs/sysplugins/smartyexception.php | 19 + .../smarty/run-tests-for-all-php-versions.sh | 46 + .../smarty3/vendor/smarty/smarty/run-tests.sh | 13 + civicrm/release-notes.md | 75 + civicrm/release-notes/5.63.3.md | 41 + civicrm/release-notes/5.64.1.md | 44 + civicrm/release-notes/5.64.2.md | 43 + civicrm/release-notes/5.64.3.md | 40 + civicrm/release-notes/5.64.4.md | 53 + civicrm/release-notes/5.65.1.md | 42 + civicrm/release-notes/5.65.2.md | 42 + civicrm/release-notes/5.67.0.md | 1013 ++ civicrm/settings/Core.setting.php | 14 +- .../init/DefaultExtensions.civi-setup.php | 2 + .../init/StandaloneUsers.civi-setup.php | 13 +- civicrm/sql/civicrm.mysql | 16 +- civicrm/sql/civicrm_data.mysql | 3733 +++--- .../civicrm_extension.sqldata.php | 8 - .../custom_data_type.sqldata.php | 10 +- .../note_used_for.sqldata.php | 2 + civicrm/sql/civicrm_generated.mysql | 10242 ++++++++-------- civicrm/sql/civicrm_navigation.mysql | 8 - .../templates/CRM/Activity/Form/Activity.tpl | 8 +- .../CRM/Activity/Form/ActivityView.tpl | 2 +- .../templates/CRM/Activity/Form/Search.tpl | 2 +- .../templates/CRM/Activity/Form/Selector.tpl | 6 +- civicrm/templates/CRM/Activity/Form/Task.tpl | 2 +- .../CRM/Activity/Form/Task/Print.tpl | 2 +- .../templates/CRM/Admin/Form/ContactType.tpl | 4 +- .../templates/CRM/Admin/Form/LabelFormats.tpl | 2 +- civicrm/templates/CRM/Admin/Form/Mapping.tpl | 2 +- .../CRM/Admin/Form/MessageTemplates.tpl | 4 +- .../CRM/Admin/Form/PaymentProcessor.tpl | 32 +- .../templates/CRM/Admin/Form/PdfFormats.tpl | 2 +- .../CRM/Admin/Form/Preferences/Address.tpl | 2 +- .../templates/CRM/Admin/Page/APIExplorer.js | 21 +- .../CRM/Admin/Page/MessageTemplates.tpl | 8 +- civicrm/templates/CRM/Batch/Form/Entry.tpl | 4 +- .../templates/CRM/Campaign/Form/Campaign.tpl | 2 +- civicrm/templates/CRM/Campaign/Form/Gotv.tpl | 2 +- .../templates/CRM/Campaign/Form/Petition.tpl | 2 + .../CRM/Campaign/Form/Petition/Signature.tpl | 6 +- .../CRM/Campaign/Form/ResultOptions.tpl | 2 +- .../CRM/Campaign/Form/Search/Campaign.tpl | 271 - .../CRM/Campaign/Form/Search/Petition.tpl | 241 - .../CRM/Campaign/Form/Search/Survey.tpl | 290 - .../templates/CRM/Campaign/Form/Selector.tpl | 6 +- .../CRM/Campaign/Form/SurveyType.tpl | 2 +- .../CRM/Campaign/Form/Task/Print.tpl | 2 +- .../CRM/Campaign/Page/SurveyType.tpl | 4 +- civicrm/templates/CRM/Case/Form/Activity.tpl | 4 +- .../templates/CRM/Case/Form/ActivityTab.tpl | 4 +- .../CRM/Case/Form/ActivityToCase.tpl | 4 +- civicrm/templates/CRM/Case/Form/Case.tpl | 4 +- civicrm/templates/CRM/Case/Form/CaseView.tpl | 2 +- .../templates/CRM/Case/Form/Search/Common.tpl | 2 +- civicrm/templates/CRM/Case/Form/Selector.tpl | 4 +- civicrm/templates/CRM/Case/Form/Task.tpl | 2 +- .../templates/CRM/Case/Form/Task/Print.tpl | 2 +- civicrm/templates/CRM/Case/Page/Tab.tpl | 2 +- .../templates/CRM/Contact/Form/Contact.tpl | 4 +- civicrm/templates/CRM/Contact/Form/Domain.tpl | 2 +- .../CRM/Contact/Form/Edit/Address.tpl | 6 +- .../CRM/Contact/Form/Inline/Address.tpl | 4 +- .../CRM/Contact/Form/Inline/Email.tpl | 2 +- .../templates/CRM/Contact/Form/Inline/IM.tpl | 2 +- .../CRM/Contact/Form/Inline/OpenID.tpl | 2 +- .../CRM/Contact/Form/Inline/Phone.tpl | 2 +- .../CRM/Contact/Form/Inline/Website.tpl | 2 +- civicrm/templates/CRM/Contact/Form/Merge.tpl | 4 +- .../CRM/Contact/Form/RelatedContact.tpl | 2 +- .../CRM/Contact/Form/Relationship.tpl | 2 +- .../Form/Search/Criteria/Relationship.tpl | 2 +- .../CRM/Contact/Form/Search/ResultTasks.tpl | 4 +- .../templates/CRM/Contact/Form/Selector.tpl | 6 +- .../Contact/Form/Task/AddToParentClass.tpl | 2 +- .../templates/CRM/Contact/Form/Task/Batch.tpl | 6 +- .../templates/CRM/Contact/Form/Task/Email.tpl | 2 +- .../CRM/Contact/Form/Task/EmailCommon.tpl | 2 +- .../CRM/Contact/Form/Task/Map/Google.tpl | 4 +- .../Contact/Form/Task/Map/OpenStreetMaps.tpl | 4 +- .../CRM/Contact/Form/Task/PDFLetterCommon.hlp | 3 +- .../CRM/Contact/Form/Task/PDFLetterCommon.tpl | 4 +- .../templates/CRM/Contact/Form/Task/SMS.tpl | 2 +- .../CRM/Contact/Page/DedupeException.tpl | 4 +- .../CRM/Contact/Page/View/CustomData.tpl | 2 +- .../templates/CRM/Contact/Page/View/Group.tpl | 2 +- .../CRM/Contact/Page/View/GroupContact.tpl | 2 +- .../templates/CRM/Contact/Page/View/Log.tpl | 2 +- .../templates/CRM/Contact/Page/View/Note.tpl | 256 - .../CRM/Contact/Page/View/Relationship.tpl | 43 +- .../Contact/Page/View/RelationshipPerm.tpl | 9 - .../CRM/Contact/Page/View/Summary.js | 6 + .../Page/View/UserDashBoard/GroupContact.tpl | 8 +- .../Contact/Page/View/ViewRelationship.tpl | 2 +- .../Form/AdditionalInfo/Premium.tpl | 4 +- .../CRM/Contribute/Form/Contribution.tpl | 12 +- .../Contribute/Form/Contribution/Confirm.tpl | 26 +- .../CRM/Contribute/Form/Contribution/Main.tpl | 18 +- .../Form/Contribution/MainMembershipBlock.tpl | 8 +- .../Form/Contribution/MembershipBlock.tpl | 2 +- .../Form/Contribution/OnBehalfOf.tpl | 2 +- .../Form/Contribution/PremiumBlock.tpl | 4 +- .../Contribute/Form/Contribution/ThankYou.tpl | 56 +- .../Form/ContributionPage/AddProduct.tpl | 4 +- .../Form/ContributionPage/Amount.tpl | 2 +- .../Contribute/Form/ContributionPage/Tab.hlp | 22 +- .../CRM/Contribute/Form/ContributionView.tpl | 4 +- .../CRM/Contribute/Form/ManagePremiums.tpl | 2 +- .../CRM/Contribute/Form/PCP/PCPAccount.tpl | 2 +- .../CRM/Contribute/Form/Selector.tpl | 6 +- .../templates/CRM/Contribute/Form/Task.tpl | 2 +- .../CRM/Contribute/Form/Task/Print.tpl | 2 +- .../CRM/Contribute/Page/ContributionPage.hlp | 2 +- .../CRM/Contribute/Page/ContributionPage.tpl | 2 +- .../Contribute/Page/ContributionTotals.tpl | 2 +- .../templates/CRM/Contribute/Page/Premium.tpl | 2 +- .../CRM/Contribute/Page/UserDashboard.tpl | 2 +- civicrm/templates/CRM/Core/Form/Field.tpl | 10 +- .../CRM/Core/Form/RecurringEntity.tpl | 5 - civicrm/templates/CRM/Core/I18n/Dialog.tpl | 2 +- .../CRM/Custom/Form/Edit/CustomData.tpl | 2 +- .../CRM/Custom/Form/Edit/CustomField.tpl | 8 +- civicrm/templates/CRM/Custom/Form/Field.tpl | 6 +- civicrm/templates/CRM/Custom/Form/Group.tpl | 230 +- .../templates/CRM/Custom/Form/MoveField.tpl | 1 - civicrm/templates/CRM/Custom/Form/Option.tpl | 2 +- civicrm/templates/CRM/Custom/Form/Preview.tpl | 7 +- civicrm/templates/CRM/Custom/Form/Search.tpl | 2 +- .../templates/CRM/Event/Form/EventFees.tpl | 16 +- .../CRM/Event/Form/ManageEvent/EventInfo.tpl | 5 +- .../CRM/Event/Form/ManageEvent/Fee.tpl | 10 +- .../CRM/Event/Form/ManageEvent/Location.tpl | 8 +- .../Event/Form/ManageEvent/Registration.tpl | 5 +- .../templates/CRM/Event/Form/Participant.tpl | 19 +- .../CRM/Event/Form/Participant/Delete.tpl | 26 + .../Event/Form/ParticipantFeeSelection.tpl | 4 +- .../CRM/Event/Form/ParticipantView.tpl | 18 +- .../Registration/AdditionalParticipant.tpl | 6 +- .../CRM/Event/Form/Registration/Confirm.tpl | 2 +- .../Form/Registration/EventInfoBlock.tpl | 6 +- .../CRM/Event/Form/Registration/Register.tpl | 14 +- .../CRM/Event/Form/Registration/ThankYou.tpl | 6 +- .../CRM/Event/Form/Search/Common.tpl | 2 +- civicrm/templates/CRM/Event/Form/Selector.tpl | 12 +- civicrm/templates/CRM/Event/Form/Task.tpl | 2 +- .../templates/CRM/Event/Form/Task/Batch.tpl | 6 +- .../templates/CRM/Event/Form/Task/Delete.tpl | 4 +- .../templates/CRM/Event/Form/Task/Print.tpl | 2 +- .../templates/CRM/Event/Page/EventInfo.tpl | 18 +- .../CRM/Event/Page/UserDashboard.tpl | 5 - .../CRM/Financial/Form/BatchTransaction.tpl | 2 +- .../CRM/Financial/Form/FinancialType.tpl | 2 +- civicrm/templates/CRM/Form/attachmentjs.tpl | 2 +- civicrm/templates/CRM/Friend/Form.tpl | 2 +- .../templates/CRM/Import/Form/DataSource.tpl | 6 +- .../CRM/Mailing/Form/InsertTokens.tpl | 4 +- civicrm/templates/CRM/Mailing/Form/Task.tpl | 2 +- civicrm/templates/CRM/Mailing/Page/Event.tpl | 8 +- .../templates/CRM/Member/Form/Membership.tpl | 8 +- .../CRM/Member/Form/MembershipBlock.tpl | 2 +- .../CRM/Member/Form/MembershipCommon.tpl | 2 +- .../CRM/Member/Form/MembershipRenewal.tpl | 2 +- .../CRM/Member/Form/MembershipType.tpl | 24 +- .../templates/CRM/Member/Form/Selector.tpl | 6 +- civicrm/templates/CRM/Member/Form/Task.tpl | 2 +- .../templates/CRM/Member/Form/Task/Print.tpl | 2 +- .../templates/CRM/Member/Page/DashBoard.tpl | 2 +- .../CRM/Member/Page/MembershipType.tpl | 2 +- civicrm/templates/CRM/Note/Form/Note.tpl | 46 +- civicrm/templates/CRM/PCP/Form/PCPAccount.tpl | 2 +- civicrm/templates/CRM/Pledge/Form/Pledge.tpl | 14 +- .../templates/CRM/Pledge/Form/PledgeView.tpl | 2 +- civicrm/templates/CRM/Pledge/Form/Search.tpl | 2 +- .../templates/CRM/Pledge/Form/Selector.tpl | 12 +- civicrm/templates/CRM/Pledge/Form/Task.tpl | 2 +- .../templates/CRM/Pledge/Form/Task/Print.tpl | 2 +- .../templates/CRM/Pledge/Page/DashBoard.tpl | 30 +- civicrm/templates/CRM/Pledge/Page/Payment.tpl | 8 +- .../CRM/Pledge/Page/UserDashboard.tpl | 4 +- .../templates/CRM/Price/Form/Calculate.tpl | 2 - civicrm/templates/CRM/Price/Form/Field.tpl | 2 +- civicrm/templates/CRM/Price/Form/LineItem.tpl | 145 - civicrm/templates/CRM/Price/Form/Option.tpl | 2 +- civicrm/templates/CRM/Price/Form/Preview.tpl | 2 +- civicrm/templates/CRM/Price/Form/PriceSet.tpl | 16 +- civicrm/templates/CRM/Price/Page/Field.tpl | 4 +- civicrm/templates/CRM/Price/Page/LineItem.tpl | 2 +- civicrm/templates/CRM/Price/Page/Option.tpl | 2 +- civicrm/templates/CRM/Price/Page/Set.tpl | 2 +- .../templates/CRM/Profile/Form/Dynamic.tpl | 13 +- civicrm/templates/CRM/Profile/Form/Search.tpl | 4 +- .../templates/CRM/Profile/Page/Dynamic.tpl | 4 +- .../templates/CRM/Profile/Page/Listings.tpl | 4 +- .../templates/CRM/Profile/Page/Overlay.tpl | 8 +- civicrm/templates/CRM/Profile/Page/View.tpl | 2 +- .../Report/Form/Campaign/SurveyCoverSheet.tpl | 4 +- .../CRM/Report/Form/Contact/Detail.tpl | 10 +- .../CRM/Report/Form/Event/Income.tpl | 6 +- .../CRM/Report/Form/Layout/Overlay.tpl | 6 +- .../CRM/Report/Form/Layout/Table.tpl | 4 +- .../CRM/Report/Form/Tabs/FieldSelection.tpl | 4 +- .../CRM/Report/Form/Tabs/GroupBy.tpl | 4 +- .../CRM/Report/Form/Tabs/ReportOptions.tpl | 2 +- civicrm/templates/CRM/Tag/Form/Edit.tpl | 2 +- civicrm/templates/CRM/UF/Form/Block.tpl | 36 +- civicrm/templates/CRM/UF/Form/Field.tpl | 4 +- civicrm/templates/CRM/UF/Form/Fields.tpl | 44 +- civicrm/templates/CRM/UF/Form/Group.tpl | 2 +- civicrm/templates/CRM/UF/Form/Preview.tpl | 12 +- civicrm/templates/CRM/UF/Page/Field.tpl | 10 +- civicrm/templates/CRM/UF/Page/Group.tpl | 2 +- civicrm/templates/CRM/common/CMSUser.tpl | 2 +- civicrm/templates/CRM/common/WizardHeader.tpl | 2 +- .../CRM/common/checkUsernameAvailable.tpl | 4 +- civicrm/templates/CRM/common/cidzero.tpl | 2 +- .../CRM/common/civicrm.settings.php.template | 15 + civicrm/templates/CRM/common/debug.tpl | 18 +- civicrm/templates/CRM/common/dedupe.tpl | 2 +- civicrm/templates/CRM/common/jcalendar.tpl | 13 +- civicrm/templates/CRM/common/paymentBlock.tpl | 16 +- .../CRM/common/searchResultTasks.tpl | 6 +- civicrm/templates/CRM/common/standalone.tpl | 6 +- civicrm/vendor/autoload.php | 2 +- civicrm/vendor/composer/autoload_real.php | 14 +- civicrm/vendor/composer/autoload_static.php | 12 +- civicrm/vendor/composer/installed.json | 2 +- civicrm/vendor/composer/installed.php | 12 +- civicrm/vendor/pear/log/Log.php | 34 +- civicrm/vendor/pear/log/PATCHES.txt | 2 +- civicrm/vendor/pear/log/php-8.1-strftime.php | 7 +- civicrm/xml/schema/Campaign/Survey.xml | 5 + civicrm/xml/schema/Case/Case.xml | 3 + civicrm/xml/schema/Contact/Contact.xml | 1 - civicrm/xml/schema/Contact/Group.xml | 9 + civicrm/xml/schema/Contact/Relationship.xml | 2 + .../xml/schema/Contact/RelationshipCache.xml | 1 + civicrm/xml/schema/Core/CustomGroup.xml | 4 +- civicrm/xml/schema/Core/EntityFile.xml | 4 + civicrm/xml/schema/Core/MessageTemplate.xml | 1 + civicrm/xml/schema/Core/Note.xml | 29 +- civicrm/xml/schema/Core/UFGroup.xml | 1 + civicrm/xml/schema/Core/UFMatch.xml | 2 +- civicrm/xml/schema/Event/Event.xml | 7 +- civicrm/xml/schema/Event/Participant.xml | 2 +- .../Financial/EntityFinancialAccount.xml | 5 + .../Mailing/Event/MailingEventQueue.xml | 33 +- civicrm/xml/schema/Mailing/Mailing.xml | 4 +- civicrm/xml/templates/civicrm_navigation.tpl | 8 - .../xml/templates/civicrm_state_province.tpl | 4 +- .../message_templates/case_activity_html.tpl | 4 +- .../contribution_dupalert_html.tpl | 4 +- .../contribution_offline_receipt_html.tpl | 10 +- .../contribution_offline_receipt_text.tpl | 6 +- .../contribution_online_receipt_html.tpl | 10 +- .../contribution_online_receipt_text.tpl | 2 +- .../contribution_recurring_billing_html.tpl | 4 +- .../contribution_recurring_cancelled_html.tpl | 4 +- .../contribution_recurring_edit_html.tpl | 4 +- .../contribution_recurring_notify_html.tpl | 6 +- .../contribution_recurring_notify_text.tpl | 2 +- .../event_offline_receipt_html.tpl | 565 +- .../event_offline_receipt_text.tpl | 98 +- .../event_online_receipt_html.tpl | 846 +- .../event_online_receipt_text.tpl | 125 +- .../event_registration_receipt_html.tpl | 4 +- .../message_templates/friend_html.tpl | 4 +- .../membership_autorenew_billing_html.tpl | 4 +- .../membership_autorenew_cancelled_html.tpl | 4 +- .../membership_offline_receipt_html.tpl | 8 +- .../membership_offline_receipt_text.tpl | 4 +- .../membership_online_receipt_html.tpl | 6 +- .../membership_online_receipt_text.tpl | 6 +- .../participant_cancelled_html.tpl | 4 +- .../participant_confirm_html.tpl | 28 +- .../participant_confirm_text.tpl | 20 +- .../participant_expired_html.tpl | 4 +- .../participant_transferred_html.tpl | 4 +- .../payment_or_refund_notification_html.tpl | 8 +- .../message_templates/pcp_notify_html.tpl | 6 +- .../pcp_owner_notify_html.tpl | 4 +- .../pcp_supporter_notify_html.tpl | 4 +- .../pledge_acknowledge_html.tpl | 8 +- .../pledge_acknowledge_text.tpl | 4 +- .../pledge_reminder_html.tpl | 4 +- .../message_templates/uf_notify_html.tpl | 4 +- civicrm/xml/templates/schema.tpl | 2 +- civicrm/xml/version.xml | 2 +- 1162 files changed, 65440 insertions(+), 17198 deletions(-) delete mode 100644 civicrm/CRM/Campaign/Form/Search/Campaign.php delete mode 100644 civicrm/CRM/Campaign/Form/Search/Petition.php delete mode 100644 civicrm/CRM/Campaign/Form/Search/Survey.php delete mode 100644 civicrm/CRM/Campaign/Page/DashBoard.php create mode 100644 civicrm/CRM/Contact/Form/ContactFormTrait.php delete mode 100644 civicrm/CRM/Contact/Page/View/Note.php delete mode 100644 civicrm/CRM/Core/Smarty/plugins/block.serialize.php create mode 100644 civicrm/CRM/Core/Smarty/plugins/modifier.smarty.php create mode 100644 civicrm/CRM/Core/SmartyCompatibility.php create mode 100644 civicrm/CRM/Event/Form/EventFormTrait.php create mode 100644 civicrm/CRM/Event/Form/Participant/Delete.php create mode 100644 civicrm/CRM/Upgrade/Incremental/php/FiveSixtySeven.php create mode 100644 civicrm/CRM/Upgrade/Incremental/sql/5.67.alpha1.mysql.tpl create mode 100644 civicrm/Civi/Api4/Action/Note/Get.php create mode 100644 civicrm/Civi/Api4/Action/Queue/Run.php rename civicrm/{templates/CRM/Campaign/Page/DashBoard.tpl => Civi/Api4/EntityFile.php} (66%) create mode 100644 civicrm/Civi/Api4/Household.php create mode 100644 civicrm/Civi/Api4/Individual.php create mode 100644 civicrm/Civi/Api4/Organization.php create mode 100644 civicrm/Civi/Api4/Service/Spec/Provider/FileGetSpecProvider.php rename civicrm/Civi/Api4/Service/Spec/Provider/{ContactCreationSpecProvider.php => OptionGroupCreationSpecProvider.php} (64%) create mode 100644 civicrm/ang/afform/afsearchNoteComments.aff.html create mode 100644 civicrm/ang/afform/afsearchNoteComments.aff.php create mode 100644 civicrm/ang/afform/afsearchTabNote.aff.html create mode 100644 civicrm/ang/afform/afsearchTabNote.aff.php create mode 100644 civicrm/ang/afform/afsearchTabRel.aff.html create mode 100644 civicrm/ang/afform/afsearchTabRel.aff.php create mode 100644 civicrm/ext/afform/admin/Civi/AfformAdmin/AfformAdminInjector.php delete mode 100644 civicrm/ext/afform/admin/ang/afAdminFormSubmissionList.aff.json create mode 100644 civicrm/ext/afform/admin/ang/afAdminFormSubmissionList.aff.php create mode 100644 civicrm/ext/afform/core/ang/af/fields/Location.html create mode 100644 civicrm/ext/afform/mock/ang/testDisplaysSharingSameFieldset.aff.html create mode 100644 civicrm/ext/civi_campaign/ang/afsearchCampaignDashboard.aff.html create mode 100644 civicrm/ext/civi_campaign/ang/afsearchCampaignDashboard.aff.php create mode 100644 civicrm/ext/civi_campaign/ang/afsearchSurveyOptionGroup.aff.html create mode 100644 civicrm/ext/civi_campaign/ang/afsearchSurveyOptionGroup.aff.php create mode 100644 civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Campaigns.mgd.php create mode 100644 civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Petitions.mgd.php create mode 100644 civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Survey_Options.mgd.php create mode 100644 civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Surveys.mgd.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdminContactTypes.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdminContactTypes.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomFields.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomFields.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomGroups.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomGroups.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdminFinancialTypes.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdminFinancialTypes.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdminScheduledReminders.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdminScheduledReminders.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerLocationTypes.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerLocationTypes.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerPaymentProcessors.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerPaymentProcessors.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAssignUsersToRoles.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAssignUsersToRoles.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAssignedFinancialAccounts.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchAssignedFinancialAccounts.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchFinancialAccounts.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchFinancialAccounts.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchMailAccounts.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchMailAccounts.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchManageACLs.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchManageACLs.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchManageContributionPages.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchManageContributionPages.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchManageGroups.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchManageGroups.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchManageScheduledJobs.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchManageScheduledJobs.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchProfileFields.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchProfileFields.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchProfiles.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchProfiles.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchRelationshipTypes.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchRelationshipTypes.aff.php delete mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.json create mode 100644 civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.php delete mode 100644 civicrm/ext/civicrm_search_ui/ang/afsearchContactSearch.aff.json create mode 100644 civicrm/ext/civicrm_search_ui/ang/afsearchContactSearch.aff.php delete mode 100644 civicrm/ext/civicrm_search_ui/ang/afsearchFindContributions.aff.json create mode 100644 civicrm/ext/civicrm_search_ui/ang/afsearchFindContributions.aff.php delete mode 100644 civicrm/ext/civigrant/CRM/Grant/Page/Tab.php delete mode 100644 civicrm/ext/civigrant/ang/afsearchTabGrant.aff.json create mode 100644 civicrm/ext/civigrant/ang/afsearchTabGrant.aff.php create mode 100644 civicrm/ext/civigrant/managed/OptionValue_note_used_for_grant.mgd.php delete mode 100644 civicrm/ext/civigrant/templates/CRM/Grant/Page/Tab.tpl delete mode 100644 civicrm/ext/civiimport/ang/afsearchAllImports.aff.json create mode 100644 civicrm/ext/civiimport/ang/afsearchAllImports.aff.php delete mode 100644 civicrm/ext/civiimport/ang/afsearchMyImports.aff.json create mode 100644 civicrm/ext/civiimport/ang/afsearchMyImports.aff.php delete mode 100644 civicrm/ext/civiimport/ang/afsearchTemplates.aff.json create mode 100644 civicrm/ext/civiimport/ang/afsearchTemplates.aff.php rename civicrm/{ => ext/eventcart}/CRM/Event/Form/ManageEvent/Conference.php (100%) rename civicrm/{ => ext/eventcart}/templates/CRM/Event/Form/ManageEvent/Conference.tpl (100%) create mode 100644 civicrm/ext/oauth-client/Civi/Api4/Action/OAuthSessionToken/Delete.php create mode 100644 civicrm/ext/oauth-client/Civi/Api4/OAuthSessionToken.php create mode 100644 civicrm/ext/oauth-client/Civi/OAuth/TestOAuthDotComProvider.php delete mode 100644 civicrm/ext/oauth-client/ang/oauthClientAdmin.aff.json create mode 100644 civicrm/ext/oauth-client/ang/oauthClientAdmin.aff.php delete mode 100644 civicrm/ext/oauth-client/ang/oauthJwtDebug.aff.json create mode 100644 civicrm/ext/oauth-client/ang/oauthJwtDebug.aff.php create mode 100644 civicrm/ext/oauth-client/providers/testoauth.com.json create mode 100644 civicrm/ext/oauth-client/tests/phpunit/api/v4/OAuthSessionTokenTest.php create mode 100644 civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchAdminToolbarConfig.component.js create mode 100644 civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchAdminToolbarConfig.html delete mode 100644 civicrm/ext/search_kit/ang/crmSearchDisplay/AddButton.html create mode 100644 civicrm/ext/search_kit/ang/crmSearchDisplay/toolbar.html create mode 100644 civicrm/ext/standaloneusers/CRM/Standaloneusers/Page/ChangePassword.php create mode 100644 civicrm/ext/standaloneusers/CRM/Standaloneusers/Page/ResetPassword.php create mode 100644 civicrm/ext/standaloneusers/CRM/Standaloneusers/WorkflowMessage/PasswordReset.php create mode 100644 civicrm/ext/standaloneusers/Civi/Api4/Action/User/Create.php create mode 100644 civicrm/ext/standaloneusers/Civi/Api4/Action/User/PasswordReset.php create mode 100644 civicrm/ext/standaloneusers/Civi/Api4/Action/User/Save.php create mode 100644 civicrm/ext/standaloneusers/Civi/Api4/Action/User/SendPasswordReset.php create mode 100644 civicrm/ext/standaloneusers/Civi/Api4/Action/User/Update.php create mode 100644 civicrm/ext/standaloneusers/Civi/Api4/Action/User/WriteTrait.php create mode 100644 civicrm/ext/standaloneusers/Civi/Api4/Service/Spec/Provider/UserSpecProvider.php create mode 100644 civicrm/ext/standaloneusers/Civi/Standalone/PasswordAlgorithms/AlgorithmInterface.php create mode 100644 civicrm/ext/standaloneusers/Civi/Standalone/PasswordAlgorithms/Drupal7.php rename civicrm/ext/standaloneusers/ang/{afformX.aff.html => afformEditRole.aff.html} (100%) create mode 100644 civicrm/ext/standaloneusers/ang/afformEditRole.aff.php delete mode 100644 civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.json create mode 100644 civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.php delete mode 100644 civicrm/ext/standaloneusers/ang/afformX.aff.json delete mode 100644 civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.json create mode 100644 civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.php delete mode 100644 civicrm/ext/standaloneusers/ang/afsearchUserRoles.aff.json create mode 100644 civicrm/ext/standaloneusers/ang/afsearchUserRoles.aff.php create mode 100644 civicrm/ext/standaloneusers/ang/crmChangePassword.ang.php create mode 100644 civicrm/ext/standaloneusers/ang/crmChangePassword.js create mode 100644 civicrm/ext/standaloneusers/ang/crmChangePassword/crmChangePassword.html create mode 100644 civicrm/ext/standaloneusers/ang/crmResetPassword.ang.php create mode 100644 civicrm/ext/standaloneusers/ang/crmResetPassword.js create mode 100644 civicrm/ext/standaloneusers/ang/crmResetPassword/crmResetPassword.html create mode 100644 civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/ChangePassword.tpl create mode 100644 civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/ResetPassword.tpl create mode 100644 civicrm/managed/contactSummary/SavedSearch_Contact_Summary_Notes.mgd.php create mode 100644 civicrm/managed/contactSummary/SavedSearch_Contact_Summary_Relationships.mgd.php create mode 100644 civicrm/packages/smarty3/composer.json create mode 100644 civicrm/packages/smarty3/composer.lock create mode 100644 civicrm/packages/smarty3/vendor/autoload.php create mode 100644 civicrm/packages/smarty3/vendor/composer/ClassLoader.php create mode 100644 civicrm/packages/smarty3/vendor/composer/InstalledVersions.php create mode 100644 civicrm/packages/smarty3/vendor/composer/LICENSE create mode 100644 civicrm/packages/smarty3/vendor/composer/autoload_classmap.php create mode 100644 civicrm/packages/smarty3/vendor/composer/autoload_namespaces.php create mode 100644 civicrm/packages/smarty3/vendor/composer/autoload_psr4.php create mode 100644 civicrm/packages/smarty3/vendor/composer/autoload_real.php create mode 100644 civicrm/packages/smarty3/vendor/composer/autoload_static.php create mode 100644 civicrm/packages/smarty3/vendor/composer/installed.json create mode 100644 civicrm/packages/smarty3/vendor/composer/installed.php create mode 100644 civicrm/packages/smarty3/vendor/composer/platform_check.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/CHANGELOG.md create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/COMPOSER_RELEASE_NOTES.txt create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/INHERITANCE_RELEASE_NOTES.txt create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/LICENSE create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/NEW_FEATURES.txt create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/README create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/README.md create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/SECURITY.md create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_2_BC_NOTES.txt create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_3.0_BC_NOTES.txt create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_3.1_NOTES.txt create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/composer.json create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/configs/test.conf create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/index.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.apc.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.memcache.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.mysql.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.pdo.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.pdo_gzip.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.extendsall.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.mysql.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.mysqls.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/footer.tpl create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/header.tpl create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/index.tpl create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_configfilelexer.plex create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_configfileparser.y create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_templatelexer.plex create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_templateparser.y create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/Autoloader.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/Smarty.class.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/SmartyBC.class.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/bootstrap.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/debug.tpl create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/block.textformat.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.counter.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.cycle.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.fetch.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_checkboxes.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_image.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_options.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_radios.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_select_date.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_select_time.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_table.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.mailto.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.math.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.capitalize.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.date_format.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.debug_print_var.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.escape.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.mb_wordwrap.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.regex_replace.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.replace.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.spacify.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.truncate.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.cat.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_characters.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_paragraphs.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_sentences.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_words.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.default.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.escape.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.from_charset.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.indent.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.lower.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.noprint.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.string_format.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.strip.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.strip_tags.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.to_charset.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.unescape.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.upper.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.wordwrap.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/outputfilter.trimwhitespace.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.escape_special_chars.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.literal_compiler_param.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.make_timestamp.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/variablefilter.htmlspecialchars.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_custom.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_data.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_block.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_append.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_assign.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_child.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_parent.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_break.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_call.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_child.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_config_load.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_debug.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_eval.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_extends.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_function.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include_php.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_insert.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_make_nocache.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_parent.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_block_plugin.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_foreachsection.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_function_plugin.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_php.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_print_expression.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_block.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_function.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_special_variable.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_rdelim.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_section.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_setfilter.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_shared_inheritance.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_while.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compilebase.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_config_file_compiler.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_configfilelexer.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_configfileparser.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_data.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_debug.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_errorhandler.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_addautoloadfilters.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_adddefaultmodifiers.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_append.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_appendbyref.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_assignbyref.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_assignglobal.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallassign.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallcache.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearassign.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcache.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcompiledtemplate.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearconfig.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_compileallconfig.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_compilealltemplates.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_configload.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_createdata.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getautoloadfilters.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvariable.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvars.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getdebugtemplate.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getdefaultmodifiers.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getglobal.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getregisteredobject.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getstreamvariable.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettemplatevars.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadfilter.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadplugin.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_mustcompile.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registercacheresource.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerclass.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultconfighandler.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerfilter.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerobject.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerplugin.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerresource.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setautoloadfilters.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setdebugtemplate.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setdefaultmodifiers.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unloadfilter.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregistercacheresource.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterfilter.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterobject.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterplugin.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterresource.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_nocache_insert.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_code.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dq.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dqcontent.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_tag.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_template.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_text.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_eval.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_extends.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_file.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_php.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_registered.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_stream.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_string.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cachemodify.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_foreach.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_getincludepath.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_make_nocache.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_tplfunction.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatescope.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatelexer.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_testinstall.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_uncompiled.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_security.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_cached.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_config.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_undefined_variable.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smartycompilerexception.php create mode 100644 civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smartyexception.php create mode 100755 civicrm/packages/smarty3/vendor/smarty/smarty/run-tests-for-all-php-versions.sh create mode 100755 civicrm/packages/smarty3/vendor/smarty/smarty/run-tests.sh create mode 100644 civicrm/release-notes/5.63.3.md create mode 100644 civicrm/release-notes/5.64.1.md create mode 100644 civicrm/release-notes/5.64.2.md create mode 100644 civicrm/release-notes/5.64.3.md create mode 100644 civicrm/release-notes/5.64.4.md create mode 100644 civicrm/release-notes/5.65.1.md create mode 100644 civicrm/release-notes/5.65.2.md create mode 100644 civicrm/release-notes/5.67.0.md delete mode 100644 civicrm/templates/CRM/Campaign/Form/Search/Campaign.tpl delete mode 100644 civicrm/templates/CRM/Campaign/Form/Search/Petition.tpl delete mode 100644 civicrm/templates/CRM/Campaign/Form/Search/Survey.tpl delete mode 100644 civicrm/templates/CRM/Contact/Page/View/Note.tpl create mode 100644 civicrm/templates/CRM/Event/Form/Participant/Delete.tpl delete mode 100644 civicrm/templates/CRM/Price/Form/LineItem.tpl diff --git a/civicrm.php b/civicrm.php index ef31d3db63..0e3382743c 100644 --- a/civicrm.php +++ b/civicrm.php @@ -2,7 +2,7 @@ /** * Plugin Name: CiviCRM * Description: CiviCRM - Growing and Sustaining Relationships - * Version: 5.66.2 + * Version: 5.67.0 * Requires at least: 4.9 * Requires PHP: 7.3 * Author: CiviCRM LLC @@ -36,7 +36,7 @@ if (!defined('ABSPATH')) { } // Set version here: changing it forces Javascript and CSS to reload. -define('CIVICRM_PLUGIN_VERSION', '5.66.2'); +define('CIVICRM_PLUGIN_VERSION', '5.67.0'); // Store reference to this file. if (!defined('CIVICRM_PLUGIN_FILE')) { diff --git a/civicrm/CRM/ACL/BAO/ACL.php b/civicrm/CRM/ACL/BAO/ACL.php index dd39cce679..944faaf3de 100644 --- a/civicrm/CRM/ACL/BAO/ACL.php +++ b/civicrm/CRM/ACL/BAO/ACL.php @@ -513,7 +513,7 @@ SELECT g.* "; $dao = CRM_Core_DAO::executeQuery($query); $foundGroupIDs = []; - $groupContactCacheClause = FALSE; + $groupContactCacheClause = ''; while ($dao->fetch()) { $foundGroupIDs[] = $dao->id; if (($dao->saved_search_id || $dao->children || $dao->parents)) { @@ -524,7 +524,7 @@ SELECT g.* } } - if ($groupIDs) { + if ($foundGroupIDs) { return "( `contact_a`.id $operation ( SELECT contact_id FROM civicrm_group_contact WHERE group_id IN (" . implode(', ', $foundGroupIDs) . ") AND status = 'Added' @@ -532,7 +532,12 @@ SELECT g.* ) )"; } - return ''; + else { + // Edge case avoiding SQL syntax error if no $foundGroupIDs + return "( + `contact_a`.id $operation (0) + )"; + } } public static function getObjectTableOptions(): array { diff --git a/civicrm/CRM/Activity/BAO/Activity.php b/civicrm/CRM/Activity/BAO/Activity.php index 37ece7b6fd..8405e21c4b 100644 --- a/civicrm/CRM/Activity/BAO/Activity.php +++ b/civicrm/CRM/Activity/BAO/Activity.php @@ -801,18 +801,26 @@ class CRM_Activity_BAO_Activity extends CRM_Activity_DAO_Activity { } /** + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @inheritDoc */ - public function addSelectWhereClause() { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { $clauses = []; $permittedActivityTypeIDs = self::getPermittedActivityTypes(); - $allActivityTypes = self::buildOptions('activity_type_id'); + if (!empty($conditions['activity_type_id'])) { + $allActivityTypes = (array) $conditions['activity_type_id']; + } + else { + $allActivityTypes = self::buildOptions('activity_type_id', 'validate'); + } if (empty($permittedActivityTypeIDs)) { // This just prevents a mysql fail if they have no access - should be extremely edge case. $permittedActivityTypeIDs = [0]; } - if (array_keys($allActivityTypes) !== array_keys($permittedActivityTypeIDs)) { - $clauses['activity_type_id'] = ('IN (' . implode(', ', $permittedActivityTypeIDs) . ')'); + if (array_diff($allActivityTypes, $permittedActivityTypeIDs)) { + $clauses['activity_type_id'] = ['IN (' . implode(', ', $permittedActivityTypeIDs) . ')']; } $contactClause = CRM_Utils_SQL::mergeSubquery('Contact'); @@ -820,7 +828,7 @@ class CRM_Activity_BAO_Activity extends CRM_Activity_DAO_Activity { $contactClause = implode(' AND contact_id ', $contactClause); $clauses['id'][] = "IN (SELECT activity_id FROM civicrm_activity_contact WHERE contact_id $contactClause)"; } - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } @@ -2327,8 +2335,8 @@ INNER JOIN civicrm_option_group grp ON (grp.id = option_group_id AND grp.name = $params['rowCount'] = $params['rp']; $params['sort'] = $params['sortBy'] ?? NULL; $params['caseId'] = NULL; - $context = $params['context'] ?? NULL; - $showContactOverlay = !CRM_Utils_String::startsWith($context, "dashlet"); + $context = $params['context'] ?? ''; + $showContactOverlay = !str_starts_with($context, "dashlet"); $activityTypeInfo = civicrm_api3('OptionValue', 'get', [ 'option_group_id' => "activity_type", 'options' => ['limit' => 0], diff --git a/civicrm/CRM/Admin/Form/Setting/Miscellaneous.php b/civicrm/CRM/Admin/Form/Setting/Miscellaneous.php index 6a5a443dfe..cf07535068 100644 --- a/civicrm/CRM/Admin/Form/Setting/Miscellaneous.php +++ b/civicrm/CRM/Admin/Form/Setting/Miscellaneous.php @@ -62,7 +62,6 @@ class CRM_Admin_Form_Setting_Miscellaneous extends CRM_Admin_Form_Setting { 'recentItemsMaxCount', 'recentItemsProviders', 'dedupe_default_limit', - 'esm_loader', 'prevNextBackend', 'import_batch_size', ]); diff --git a/civicrm/CRM/Api4/Page/AJAX.php b/civicrm/CRM/Api4/Page/AJAX.php index dee72c6f70..bea9ec4822 100644 --- a/civicrm/CRM/Api4/Page/AJAX.php +++ b/civicrm/CRM/Api4/Page/AJAX.php @@ -137,7 +137,7 @@ class CRM_Api4_Page_AJAX extends CRM_Core_Page { $status = $statusMap[get_class($e)] ?? 500; // Send error code (but don't overwrite success code if there are multiple calls and one was successful) $this->httpResponseCode = $this->httpResponseCode ?: $status; - if (CRM_Core_Permission::check('view debug output')) { + if (CRM_Core_Permission::check('view debug output') || ($e->getErrorData()['show_detailed_error'] ?? FALSE)) { $response['error_code'] = $e->getCode(); $response['error_message'] = $e->getMessage(); if (!empty($params['debug'])) { diff --git a/civicrm/CRM/Campaign/BAO/Campaign.php b/civicrm/CRM/Campaign/BAO/Campaign.php index b8d6b1c4c6..b613455438 100644 --- a/civicrm/CRM/Campaign/BAO/Campaign.php +++ b/civicrm/CRM/Campaign/BAO/Campaign.php @@ -278,160 +278,6 @@ Order By camp.title"; return self::isComponentEnabled(); } - /** - * Retrieve campaigns for dashboard. - * - * @param array $params - * @param bool $onlyCount - * - * @return array|int - */ - public static function getCampaignSummary($params = [], $onlyCount = FALSE) { - $campaigns = []; - - //build the limit and order clause. - $limitClause = $orderByClause = $lookupTableJoins = NULL; - if (!$onlyCount) { - $sortParams = [ - 'sort' => 'start_date', - 'offset' => 0, - 'rowCount' => 10, - 'sortOrder' => 'desc', - ]; - foreach ($sortParams as $name => $default) { - if (!empty($params[$name])) { - $sortParams[$name] = $params[$name]; - } - } - - //need to lookup tables. - $orderOnCampaignTable = TRUE; - if ($sortParams['sort'] === 'status') { - $orderOnCampaignTable = FALSE; - $lookupTableJoins = " - LEFT JOIN civicrm_option_value status ON ( status.value = campaign.status_id OR campaign.status_id IS NULL ) -INNER JOIN civicrm_option_group grp ON ( status.option_group_id = grp.id AND grp.name = 'campaign_status' )"; - $orderByClause = "ORDER BY status.label {$sortParams['sortOrder']}"; - } - elseif ($sortParams['sort'] === 'campaign_type') { - $orderOnCampaignTable = FALSE; - $lookupTableJoins = " - LEFT JOIN civicrm_option_value campaign_type ON ( campaign_type.value = campaign.campaign_type_id - OR campaign.campaign_type_id IS NULL ) -INNER JOIN civicrm_option_group grp ON ( campaign_type.option_group_id = grp.id AND grp.name = 'campaign_type' )"; - $orderByClause = "ORDER BY campaign_type.label {$sortParams['sortOrder']}"; - } - elseif ($sortParams['sort'] === 'isActive') { - $sortParams['sort'] = 'is_active'; - } - if ($orderOnCampaignTable) { - $orderByClause = "ORDER BY campaign.{$sortParams['sort']} {$sortParams['sortOrder']}"; - } - $orderByClause = ($orderByClause) ? $orderByClause . ", campaign.id {$sortParams['sortOrder']}" : $orderByClause; - $limitClause = "LIMIT {$sortParams['offset']}, {$sortParams['rowCount']}"; - } - - //build the where clause. - $queryParams = $where = []; - if (!empty($params['id'])) { - $where[] = "( campaign.id = %1 )"; - $queryParams[1] = [$params['id'], 'Positive']; - } - if (!empty($params['name'])) { - $where[] = "( campaign.name LIKE %2 )"; - $queryParams[2] = ['%' . trim($params['name']) . '%', 'String']; - } - if (!empty($params['title'])) { - $where[] = "( campaign.title LIKE %3 )"; - $queryParams[3] = ['%' . trim($params['title']) . '%', 'String']; - } - if (!empty($params['start_date'])) { - $startDate = CRM_Utils_Date::processDate($params['start_date']); - $where[] = "( campaign.start_date >= %4 OR campaign.start_date IS NULL )"; - $queryParams[4] = [$startDate, 'String']; - } - if (!empty($params['end_date'])) { - $endDate = CRM_Utils_Date::processDate($params['end_date'], '235959'); - $where[] = "( campaign.end_date <= %5 OR campaign.end_date IS NULL )"; - $queryParams[5] = [$endDate, 'String']; - } - if (!empty($params['description'])) { - $where[] = "( campaign.description LIKE %6 )"; - $queryParams[6] = ['%' . trim($params['description']) . '%', 'String']; - } - if (!empty($params['campaign_type_id'])) { - $where[] = "( campaign.campaign_type_id IN ( %7 ) )"; - $queryParams[7] = [implode(',', (array) $params['campaign_type_id']), 'CommaSeparatedIntegers']; - } - if (!empty($params['status_id'])) { - $where[] = "( campaign.status_id IN ( %8 ) )"; - $queryParams[8] = [implode(',', (array) $params['status_id']), 'CommaSeparatedIntegers']; - } - if (array_key_exists('is_active', $params)) { - $active = "( campaign.is_active = 1 )"; - if (!empty($params['is_active'])) { - $active = "campaign.is_active = 0"; - } - $where[] = $active; - } - $whereClause = NULL; - if (!empty($where)) { - $whereClause = ' WHERE ' . implode(" \nAND ", $where); - } - - $properties = [ - 'id', - 'name', - 'title', - 'start_date', - 'end_date', - 'status_id', - 'is_active', - 'description', - 'campaign_type_id', - ]; - - $selectClause = ' -SELECT campaign.id as id, - campaign.name as name, - campaign.title as title, - campaign.is_active as is_active, - campaign.status_id as status_id, - campaign.end_date as end_date, - campaign.start_date as start_date, - campaign.description as description, - campaign.campaign_type_id as campaign_type_id'; - if ($onlyCount) { - $selectClause = 'SELECT COUNT(*)'; - } - $fromClause = 'FROM civicrm_campaign campaign'; - - $query = "{$selectClause} {$fromClause} {$lookupTableJoins} {$whereClause} {$orderByClause} {$limitClause}"; - - //in case of only count. - if ($onlyCount) { - return (int) CRM_Core_DAO::singleValueQuery($query, $queryParams); - } - - $campaign = CRM_Core_DAO::executeQuery($query, $queryParams); - while ($campaign->fetch()) { - foreach ($properties as $property) { - $campaigns[$campaign->id][$property] = $campaign->$property; - } - } - - return $campaigns; - } - - /** - * Get the campaign count. - * - * @return int - */ - public static function getCampaignCount(): int { - return (int) CRM_Core_DAO::singleValueQuery('SELECT COUNT(*) FROM civicrm_campaign'); - } - /** * Get Campaigns groups. * diff --git a/civicrm/CRM/Campaign/BAO/Petition.php b/civicrm/CRM/Campaign/BAO/Petition.php index d75e2b612f..887370953f 100644 --- a/civicrm/CRM/Campaign/BAO/Petition.php +++ b/civicrm/CRM/Campaign/BAO/Petition.php @@ -34,136 +34,6 @@ class CRM_Campaign_BAO_Petition extends CRM_Campaign_BAO_Survey { $this->cookieExpire = (1 * 60 * 60 * 24); } - /** - * Get Petition Details for dashboard. - * - * @param array $params - * @param bool $onlyCount - * - * @return array|int - */ - public static function getPetitionSummary($params = [], $onlyCount = FALSE) { - //build the limit and order clause. - $limitClause = $orderByClause = $lookupTableJoins = NULL; - if (!$onlyCount) { - $sortParams = [ - 'sort' => 'created_date', - 'offset' => 0, - 'rowCount' => 10, - 'sortOrder' => 'desc', - ]; - foreach ($sortParams as $name => $default) { - if (!empty($params[$name])) { - $sortParams[$name] = $params[$name]; - } - } - - //need to lookup tables. - $orderOnPetitionTable = TRUE; - if ($sortParams['sort'] == 'campaign') { - $orderOnPetitionTable = FALSE; - $lookupTableJoins = ' - LEFT JOIN civicrm_campaign campaign ON ( campaign.id = petition.campaign_id )'; - $orderByClause = "ORDER BY campaign.title {$sortParams['sortOrder']}"; - } - elseif ($sortParams['sort'] == 'activity_type') { - $orderOnPetitionTable = FALSE; - $lookupTableJoins = " - LEFT JOIN civicrm_option_value activity_type ON ( activity_type.value = petition.activity_type_id - OR petition.activity_type_id IS NULL ) -INNER JOIN civicrm_option_group grp ON ( activity_type.option_group_id = grp.id AND grp.name = 'activity_type' )"; - $orderByClause = "ORDER BY activity_type.label {$sortParams['sortOrder']}"; - } - elseif ($sortParams['sort'] == 'isActive') { - $sortParams['sort'] = 'is_active'; - } - if ($orderOnPetitionTable) { - $orderByClause = "ORDER BY petition.{$sortParams['sort']} {$sortParams['sortOrder']}"; - } - $limitClause = "LIMIT {$sortParams['offset']}, {$sortParams['rowCount']}"; - } - - //build the where clause. - $queryParams = $where = []; - - //we only have activity type as a - //difference between survey and petition. - $petitionTypeID = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', 'activity_type_id', 'Petition'); - if ($petitionTypeID) { - $where[] = "( petition.activity_type_id = %1 )"; - $queryParams[1] = [$petitionTypeID, 'Positive']; - } - if (!empty($params['title'])) { - $where[] = "( petition.title LIKE %2 )"; - $queryParams[2] = ['%' . trim($params['title']) . '%', 'String']; - } - if (!empty($params['campaign_id'])) { - $where[] = '( petition.campaign_id = %3 )'; - $queryParams[3] = [$params['campaign_id'], 'Positive']; - } - $whereClause = NULL; - if (!empty($where)) { - $whereClause = ' WHERE ' . implode(" \nAND ", $where); - } - - $selectClause = ' -SELECT petition.id as id, - petition.title as title, - petition.is_active as is_active, - petition.result_id as result_id, - petition.is_default as is_default, - petition.campaign_id as campaign_id, - petition.activity_type_id as activity_type_id'; - - if ($onlyCount) { - $selectClause = 'SELECT COUNT(*)'; - } - $fromClause = 'FROM civicrm_survey petition'; - - $query = "{$selectClause} {$fromClause} {$whereClause} {$orderByClause} {$limitClause}"; - - if ($onlyCount) { - return (int) CRM_Core_DAO::singleValueQuery($query, $queryParams); - } - - $petitions = []; - $properties = [ - 'id', - 'title', - 'campaign_id', - 'is_active', - 'is_default', - 'result_id', - 'activity_type_id', - ]; - - $petition = CRM_Core_DAO::executeQuery($query, $queryParams); - while ($petition->fetch()) { - foreach ($properties as $property) { - $petitions[$petition->id][$property] = $petition->$property; - } - } - - return $petitions; - } - - /** - * Get the petition count. - * - */ - public static function getPetitionCount() { - $whereClause = 'WHERE ( 1 )'; - $queryParams = []; - $petitionTypeID = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', 'activity_type_id', 'Petition'); - if ($petitionTypeID) { - $whereClause = "WHERE ( petition.activity_type_id = %1 )"; - $queryParams[1] = [$petitionTypeID, 'Positive']; - } - $query = "SELECT COUNT(*) FROM civicrm_survey petition {$whereClause}"; - - return (int) CRM_Core_DAO::singleValueQuery($query, $queryParams); - } - /** * Takes an associative array and creates a petition signature activity. * diff --git a/civicrm/CRM/Campaign/BAO/Survey.php b/civicrm/CRM/Campaign/BAO/Survey.php index 5f9ee27493..c6aa2dc2cb 100644 --- a/civicrm/CRM/Campaign/BAO/Survey.php +++ b/civicrm/CRM/Campaign/BAO/Survey.php @@ -63,141 +63,6 @@ class CRM_Campaign_BAO_Survey extends CRM_Campaign_DAO_Survey implements Civi\Co return $dao; } - /** - * Retrieve surveys for dashboard. - * - * @param array $params - * @param bool $onlyCount - * - * @return array|int - */ - public static function getSurveySummary($params = [], $onlyCount = FALSE) { - //build the limit and order clause. - $limitClause = $orderByClause = $lookupTableJoins = NULL; - if (!$onlyCount) { - $sortParams = [ - 'sort' => 'created_date', - 'offset' => 0, - 'rowCount' => 10, - 'sortOrder' => 'desc', - ]; - foreach ($sortParams as $name => $default) { - if (!empty($params[$name])) { - $sortParams[$name] = $params[$name]; - } - } - - //need to lookup tables. - $orderOnSurveyTable = TRUE; - if ($sortParams['sort'] == 'campaign') { - $orderOnSurveyTable = FALSE; - $lookupTableJoins = ' - LEFT JOIN civicrm_campaign campaign ON ( campaign.id = survey.campaign_id )'; - $orderByClause = "ORDER BY campaign.title {$sortParams['sortOrder']}"; - } - elseif ($sortParams['sort'] == 'activity_type') { - $orderOnSurveyTable = FALSE; - $lookupTableJoins = " - LEFT JOIN civicrm_option_value activity_type ON ( activity_type.value = survey.activity_type_id - OR survey.activity_type_id IS NULL ) -INNER JOIN civicrm_option_group grp ON ( activity_type.option_group_id = grp.id AND grp.name = 'activity_type' )"; - $orderByClause = "ORDER BY activity_type.label {$sortParams['sortOrder']}"; - } - elseif ($sortParams['sort'] == 'isActive') { - $sortParams['sort'] = 'is_active'; - } - if ($orderOnSurveyTable) { - $orderByClause = "ORDER BY survey.{$sortParams['sort']} {$sortParams['sortOrder']}"; - } - $limitClause = "LIMIT {$sortParams['offset']}, {$sortParams['rowCount']}"; - } - - //build the where clause. - $queryParams = $where = []; - - //we only have activity type as a - //difference between survey and petition. - $petitionTypeID = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', 'activity_type_id', 'Petition'); - if ($petitionTypeID) { - $where[] = "( survey.activity_type_id != %1 )"; - $queryParams[1] = [$petitionTypeID, 'Positive']; - } - - if (!empty($params['title'])) { - $where[] = "( survey.title LIKE %2 )"; - $queryParams[2] = ['%' . trim($params['title']) . '%', 'String']; - } - if (!empty($params['campaign_id'])) { - $where[] = '( survey.campaign_id = %3 )'; - $queryParams[3] = [$params['campaign_id'], 'Positive']; - } - if (!empty($params['activity_type_id'])) { - $typeId = $params['activity_type_id']; - if (is_array($params['activity_type_id'])) { - $typeId = implode(' , ', $params['activity_type_id']); - } - $where[] = "( survey.activity_type_id IN ( {$typeId} ) )"; - } - $whereClause = NULL; - if (!empty($where)) { - $whereClause = ' WHERE ' . implode(" \nAND ", $where); - } - - $selectClause = ' -SELECT survey.id as id, - survey.title as title, - survey.is_active as is_active, - survey.result_id as result_id, - survey.is_default as is_default, - survey.campaign_id as campaign_id, - survey.activity_type_id as activity_type_id, - survey.release_frequency as release_frequency, - survey.max_number_of_contacts as max_number_of_contacts, - survey.default_number_of_contacts as default_number_of_contacts'; - if ($onlyCount) { - $selectClause = 'SELECT COUNT(*)'; - } - $fromClause = 'FROM civicrm_survey survey'; - - $query = "{$selectClause} {$fromClause} {$lookupTableJoins} {$whereClause} {$orderByClause} {$limitClause}"; - - //return only count. - if ($onlyCount) { - return (int) CRM_Core_DAO::singleValueQuery($query, $queryParams); - } - - $surveys = []; - $properties = [ - 'id', - 'title', - 'campaign_id', - 'is_active', - 'is_default', - 'result_id', - 'activity_type_id', - 'release_frequency', - 'max_number_of_contacts', - 'default_number_of_contacts', - ]; - - $survey = CRM_Core_DAO::executeQuery($query, $queryParams); - while ($survey->fetch()) { - foreach ($properties as $property) { - $surveys[$survey->id][$property] = $survey->$property; - } - } - - return $surveys; - } - - /** - * Get the survey count. - * - */ - public static function getSurveyCount() { - return (int) CRM_Core_DAO::singleValueQuery('SELECT COUNT(*) FROM civicrm_survey'); - } - /** * Get Surveys. * diff --git a/civicrm/CRM/Campaign/DAO/Survey.php b/civicrm/CRM/Campaign/DAO/Survey.php index cbf590c943..8343227f38 100644 --- a/civicrm/CRM/Campaign/DAO/Survey.php +++ b/civicrm/CRM/Campaign/DAO/Survey.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Campaign/Survey.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:754f9a2e62e86ff340afea563b561dec) + * (GenCodeChecksum:b517a686715877b8cde6af69122dcc0d) */ /** @@ -45,6 +45,17 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO { */ public static $_log = FALSE; + /** + * Paths for accessing this entity in the UI. + * + * @var string[] + */ + protected static $_paths = [ + 'add' => 'civicrm/survey/add?reset=1', + 'update' => 'civicrm/survey/configure/main?reset=1&action=update&id=[id]', + 'delete' => 'civicrm/survey/delete?reset=1&id=[id]', + ]; + /** * Survey id. * diff --git a/civicrm/CRM/Campaign/Form/Campaign.php b/civicrm/CRM/Campaign/Form/Campaign.php index 6a3931a1e9..7feef215f2 100644 --- a/civicrm/CRM/Campaign/Form/Campaign.php +++ b/civicrm/CRM/Campaign/Form/Campaign.php @@ -235,14 +235,6 @@ class CRM_Campaign_Form_Campaign extends CRM_Core_Form { 'isDefault' => TRUE, ], ]; - // Skip this button when adding a new campaign from an entityRef - if (empty($_GET['snippet']) || empty($_GET['returnExtra'])) { - $buttons[] = [ - 'type' => 'upload', - 'name' => ts('Save and New'), - 'subName' => 'new', - ]; - } $buttons[] = [ 'type' => 'cancel', 'name' => ts('Cancel'), diff --git a/civicrm/CRM/Campaign/Form/Search/Campaign.php b/civicrm/CRM/Campaign/Form/Search/Campaign.php deleted file mode 100644 index 3778ccea92..0000000000 --- a/civicrm/CRM/Campaign/Form/Search/Campaign.php +++ /dev/null @@ -1,119 +0,0 @@ -<?php -/* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ - */ - -/** - * - * @package CRM - * @copyright CiviCRM LLC https://civicrm.org/licensing - */ - -/** - * Files required. - */ -class CRM_Campaign_Form_Search_Campaign extends CRM_Core_Form { - - /** - * Explicitly declare the entity api name. - * - * @return string - */ - public function getDefaultEntity() { - return 'Campaign'; - } - - /** - * Are we forced to run a search. - * - * @var int - */ - protected $_force; - - /** - * Processing needed for buildForm and later. - */ - public function preProcess() { - $this->_search = $_GET['search'] ?? NULL; - $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE, FALSE); - $this->_searchTab = CRM_Utils_Request::retrieve('type', 'String', $this, FALSE, 'campaign'); - - //when we do load tab, lets load the default objects. - $this->assign('force', $this->_force || $this->_searchTab); - $this->assign('searchParams', json_encode($this->get('searchParams'))); - $this->assign('buildSelector', $this->_search); - $this->assign('searchFor', $this->_searchTab); - $this->assign('campaignTypes', json_encode($this->get('campaignTypes'))); - $this->assign('campaignStatus', json_encode($this->get('campaignStatus'))); - $this->assign('suppressForm', TRUE); - - //set the form title. - $this->setTitle(ts('Find Campaigns')); - } - - /** - * Build the form object. - */ - public function buildQuickForm() { - if ($this->_search) { - return; - } - - $attributes = CRM_Core_DAO::getAttribute('CRM_Campaign_DAO_Campaign'); - $this->add('text', 'campaign_title', ts('Title'), $attributes['title']); - - //campaign description. - $this->add('text', 'description', ts('Description'), $attributes['description']); - - $this->add('datepicker', 'start_date', ts('Campaign Start Date'), [], FALSE, ['time' => FALSE]); - $this->add('datepicker', 'end_date', ts('Campaign End Date'), [], FALSE, ['time' => FALSE]); - - //campaign type. - $campaignTypes = CRM_Campaign_PseudoConstant::campaignType(); - $this->add('select', 'campaign_type_id', ts('Campaign Type'), - [ - '' => ts('- select -'), - ] + $campaignTypes - ); - - $this->set('campaignTypes', $campaignTypes); - $this->assign('campaignTypes', json_encode($campaignTypes)); - - //campaign status - $campaignStatus = CRM_Campaign_PseudoConstant::campaignStatus(); - $this->addElement('select', 'status_id', ts('Campaign Status'), - [ - '' => ts('- select -'), - ] + $campaignStatus - ); - $this->set('campaignStatus', $campaignStatus); - $this->assign('campaignStatus', json_encode($campaignStatus)); - - //active campaigns - $this->addElement('select', 'is_active', ts('Is Active?'), [ - '' => ts('- select -'), - '0' => ts('Yes'), - '1' => ts('No'), - ]); - - //build the array of all search params. - $this->_searchParams = []; - foreach ($this->_elements as $element) { - $name = $element->_attributes['name']; - $label = $element->_label; - if ($name == 'qfKey') { - continue; - } - $this->_searchParams[$name] = ($label) ? $label : $name; - } - $this->set('searchParams', $this->_searchParams); - $this->assign('searchParams', json_encode($this->_searchParams)); - } - -} diff --git a/civicrm/CRM/Campaign/Form/Search/Petition.php b/civicrm/CRM/Campaign/Form/Search/Petition.php deleted file mode 100644 index 49b94a1226..0000000000 --- a/civicrm/CRM/Campaign/Form/Search/Petition.php +++ /dev/null @@ -1,81 +0,0 @@ -<?php -/* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ - */ - -/** - * - * @package CRM - * @copyright CiviCRM LLC https://civicrm.org/licensing - */ - -/** - * Files required. - */ -class CRM_Campaign_Form_Search_Petition extends CRM_Core_Form { - - /** - * Are we forced to run a search. - * - * @var int - */ - protected $_force; - - /** - * Processing needed for buildForm and later. - */ - public function preProcess() { - $this->_search = $_GET['search'] ?? NULL; - $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE, FALSE); - $this->_searchTab = CRM_Utils_Request::retrieve('type', 'String', $this, FALSE, 'petition'); - - //when we do load tab, lets load the default objects. - $this->assign('force', $this->_force || $this->_searchTab); - $this->assign('searchParams', json_encode($this->get('searchParams'))); - $this->assign('buildSelector', $this->_search); - $this->assign('searchFor', $this->_searchTab); - $this->assign('petitionCampaigns', json_encode($this->get('petitionCampaigns'))); - $this->assign('suppressForm', TRUE); - - //set the form title. - $this->setTitle(ts('Find Petition')); - } - - /** - * Build the form object. - */ - public function buildQuickForm() { - if ($this->_search) { - return; - } - - $attributes = CRM_Core_DAO::getAttribute('CRM_Campaign_DAO_Survey'); - $this->add('text', 'petition_title', ts('Title'), $attributes['title']); - - //campaigns - $campaigns = CRM_Campaign_BAO_Campaign::getCampaigns(NULL, NULL, FALSE, FALSE, FALSE, TRUE); - $this->add('select', 'petition_campaign_id', ts('Campaign'), ['' => ts('- select -')] + $campaigns); - $this->set('petitionCampaigns', $campaigns); - $this->assign('petitionCampaigns', json_encode($campaigns)); - - //build the array of all search params. - $this->_searchParams = []; - foreach ($this->_elements as $element) { - $name = $element->_attributes['name']; - $label = $element->_label; - if ($name == 'qfKey') { - continue; - } - $this->_searchParams[$name] = ($label) ? $label : $name; - } - $this->set('searchParams', $this->_searchParams); - $this->assign('searchParams', json_encode($this->_searchParams)); - } - -} diff --git a/civicrm/CRM/Campaign/Form/Search/Survey.php b/civicrm/CRM/Campaign/Form/Search/Survey.php deleted file mode 100644 index 6ad51606c7..0000000000 --- a/civicrm/CRM/Campaign/Form/Search/Survey.php +++ /dev/null @@ -1,92 +0,0 @@ -<?php -/* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ - */ - -/** - * - * @package CRM - * @copyright CiviCRM LLC https://civicrm.org/licensing - */ - -/** - * Files required. - */ -class CRM_Campaign_Form_Search_Survey extends CRM_Core_Form { - - /** - * Are we forced to run a search. - * - * @var int - */ - protected $_force; - - /** - * Processing needed for buildForm and later. - */ - public function preProcess() { - $this->_search = $_GET['search'] ?? NULL; - $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE, FALSE); - $this->_searchTab = CRM_Utils_Request::retrieve('type', 'String', $this, FALSE, 'survey'); - - //when we do load tab, lets load the default objects. - $this->assign('force', $this->_force || $this->_searchTab); - $this->assign('searchParams', json_encode($this->get('searchParams'))); - $this->assign('buildSelector', $this->_search); - $this->assign('searchFor', $this->_searchTab); - $this->assign('surveyTypes', json_encode($this->get('surveyTypes'))); - $this->assign('surveyCampaigns', json_encode($this->get('surveyCampaigns'))); - $this->assign('suppressForm', TRUE); - - //set the form title. - $this->setTitle(ts('Find Survey')); - } - - /** - * Build the form object. - */ - public function buildQuickForm() { - if ($this->_search) { - return; - } - - $attributes = CRM_Core_DAO::getAttribute('CRM_Campaign_DAO_Survey'); - $this->add('text', 'survey_title', ts('Title'), $attributes['title']); - - //activity Type id - $surveyTypes = CRM_Campaign_BAO_Survey::getSurveyActivityType(); - $this->add('select', 'activity_type_id', - ts('Activity Type'), [ - '' => ts('- select -'), - ] + $surveyTypes - ); - $this->set('surveyTypes', $surveyTypes); - $this->assign('surveyTypes', json_encode($surveyTypes)); - - //campaigns - $campaigns = CRM_Campaign_BAO_Campaign::getCampaigns(NULL, NULL, FALSE, FALSE, FALSE, TRUE); - $this->add('select', 'survey_campaign_id', ts('Campaign'), ['' => ts('- select -')] + $campaigns); - $this->set('surveyCampaigns', $campaigns); - $this->assign('surveyCampaigns', json_encode($campaigns)); - - //build the array of all search params. - $this->_searchParams = []; - foreach ($this->_elements as $element) { - $name = $element->_attributes['name']; - $label = $element->_label; - if ($name == 'qfKey') { - continue; - } - $this->_searchParams[$name] = ($label) ? $label : $name; - } - $this->set('searchParams', $this->_searchParams); - $this->assign('searchParams', json_encode($this->_searchParams)); - } - -} diff --git a/civicrm/CRM/Campaign/Form/Survey.php b/civicrm/CRM/Campaign/Form/Survey.php index a15aa03dea..7b533d4d24 100644 --- a/civicrm/CRM/Campaign/Form/Survey.php +++ b/civicrm/CRM/Campaign/Form/Survey.php @@ -58,6 +58,9 @@ class CRM_Campaign_Form_Survey extends CRM_Core_Form { } public function preProcess() { + // Multistep form doesn't play well with popups + $this->preventAjaxSubmit(); + if (!CRM_Campaign_BAO_Campaign::accessCampaign()) { CRM_Utils_System::permissionDenied(); } @@ -101,17 +104,6 @@ class CRM_Campaign_Form_Survey extends CRM_Core_Form { 'name' => ts('Save'), 'isDefault' => TRUE, ], - [ - 'type' => 'upload', - 'name' => ts('Save and Done'), - 'subName' => 'done', - ], - [ - 'type' => 'upload', - 'name' => ts('Save and Next'), - 'spacing' => ' ', - 'subName' => 'next', - ], ]; } else { @@ -168,15 +160,13 @@ class CRM_Campaign_Form_Survey extends CRM_Core_Form { /** * @return string */ - public function getTemplateFileName() { - if ($this->controller->getPrint() || $this->getVar('_surveyId') <= 0) { + public function getTemplateFileName(): string { + if ($this->_surveyId <= 0 || $this->controller->getPrint()) { return parent::getTemplateFileName(); } - else { - // hack lets suppress the form rendering for now - self::$_template->assign('isForm', FALSE); - return 'CRM/Campaign/Form/Survey/Tab.tpl'; - } + // hack lets suppress the form rendering for now + self::$_template->assign('isForm', FALSE); + return 'CRM/Campaign/Form/Survey/Tab.tpl'; } } diff --git a/civicrm/CRM/Campaign/Page/AJAX.php b/civicrm/CRM/Campaign/Page/AJAX.php index f5e857c2d3..6236287a30 100644 --- a/civicrm/CRM/Campaign/Page/AJAX.php +++ b/civicrm/CRM/Campaign/Page/AJAX.php @@ -501,312 +501,4 @@ class CRM_Campaign_Page_AJAX { CRM_Utils_JSON::output($results); } - /** - * This function uses the deprecated v1 datatable api and needs updating. See CRM-16353. - * @deprecated - */ - public static function campaignList() { - //get the search criteria params. - $searchCriteria = CRM_Utils_Request::retrieve('searchCriteria', 'String', CRM_Core_DAO::$_nullObject, FALSE, NULL, 'POST'); - $searchParams = explode(',', $searchCriteria); - - $params = $searchRows = []; - foreach ($searchParams as $param) { - if (isset($_POST[$param])) { - $params[$param] = $_POST[$param]; - } - } - - //this is sequence columns on datatable. - $selectorCols = [ - 'id', - 'name', - 'title', - 'description', - 'start_date', - 'end_date', - 'campaign_type_id', - 'campaign_type', - 'status_id', - 'status', - 'is_active', - 'isActive', - 'action', - ]; - - // get the data table params. - $dataTableParams = [ - 'sEcho' => [ - 'name' => 'sEcho', - 'type' => 'Integer', - 'default' => 0, - ], - 'offset' => [ - 'name' => 'iDisplayStart', - 'type' => 'Integer', - 'default' => 0, - ], - 'rowCount' => [ - 'name' => 'iDisplayLength', - 'type' => 'Integer', - 'default' => 25, - ], - 'sort' => [ - 'name' => 'iSortCol_0', - 'type' => 'Integer', - 'default' => 'start_date', - ], - 'sortOrder' => [ - 'name' => 'sSortDir_0', - 'type' => 'String', - 'default' => 'desc', - ], - ]; - foreach ($dataTableParams as $pName => $pValues) { - $$pName = $pValues['default']; - if (!empty($_POST[$pValues['name']])) { - $$pName = CRM_Utils_Type::escape($_POST[$pValues['name']], $pValues['type']); - if ($pName == 'sort') { - $$pName = $selectorCols[$$pName]; - } - } - } - foreach ([ - 'sort', - 'offset', - 'rowCount', - 'sortOrder', - ] as $sortParam) { - $params[$sortParam] = $$sortParam; - } - - $searchCount = CRM_Campaign_BAO_Campaign::getCampaignSummary($params, TRUE); - $campaigns = CRM_Campaign_Page_DashBoard::getCampaignSummary($params); - $iTotal = $searchCount; - - if ($searchCount > 0) { - if ($searchCount < $offset) { - $offset = 0; - } - foreach ($campaigns as $campaignID => $values) { - foreach ($selectorCols as $col) { - $searchRows[$campaignID][$col] = $values[$col] ?? NULL; - } - } - } - - $selectorElements = $selectorCols; - - $iFilteredTotal = $iTotal; - - CRM_Utils_System::setHttpHeader('Content-Type', 'application/json'); - echo CRM_Utils_JSON::encodeDataTableSelector($searchRows, $sEcho, $iTotal, $iFilteredTotal, $selectorElements); - CRM_Utils_System::civiExit(); - } - - /** - * This function uses the deprecated v1 datatable api and needs updating. See CRM-16353. - * @deprecated - */ - public static function surveyList() { - //get the search criteria params. - $searchCriteria = CRM_Utils_Request::retrieve('searchCriteria', 'String', CRM_Core_DAO::$_nullObject, FALSE, NULL, 'POST'); - $searchParams = explode(',', $searchCriteria); - - $params = $searchRows = []; - foreach ($searchParams as $param) { - if (!empty($_POST[$param])) { - $params[$param] = $_POST[$param]; - } - } - - //this is sequence columns on datatable. - $selectorCols = [ - 'id', - 'title', - 'campaign_id', - 'campaign', - 'activity_type_id', - 'activity_type', - 'release_frequency', - 'default_number_of_contacts', - 'max_number_of_contacts', - 'is_default', - 'is_active', - 'isActive', - 'result_id', - 'action', - 'voterLinks', - ]; - - // get the data table params. - $dataTableParams = [ - 'sEcho' => [ - 'name' => 'sEcho', - 'type' => 'Integer', - 'default' => 0, - ], - 'offset' => [ - 'name' => 'iDisplayStart', - 'type' => 'Integer', - 'default' => 0, - ], - 'rowCount' => [ - 'name' => 'iDisplayLength', - 'type' => 'Integer', - 'default' => 25, - ], - 'sort' => [ - 'name' => 'iSortCol_0', - 'type' => 'Integer', - 'default' => 'created_date', - ], - 'sortOrder' => [ - 'name' => 'sSortDir_0', - 'type' => 'String', - 'default' => 'desc', - ], - ]; - foreach ($dataTableParams as $pName => $pValues) { - $$pName = $pValues['default']; - if (!empty($_POST[$pValues['name']])) { - $$pName = CRM_Utils_Type::escape($_POST[$pValues['name']], $pValues['type']); - if ($pName == 'sort') { - $$pName = $selectorCols[$$pName]; - } - } - } - foreach ([ - 'sort', - 'offset', - 'rowCount', - 'sortOrder', - ] as $sortParam) { - $params[$sortParam] = $$sortParam; - } - - $surveys = CRM_Campaign_Page_DashBoard::getSurveySummary($params); - $searchCount = CRM_Campaign_BAO_Survey::getSurveySummary($params, TRUE); - $iTotal = $searchCount; - - if ($searchCount > 0) { - if ($searchCount < $offset) { - $offset = 0; - } - foreach ($surveys as $surveyID => $values) { - foreach ($selectorCols as $col) { - $searchRows[$surveyID][$col] = $values[$col] ?? NULL; - } - } - } - - $selectorElements = $selectorCols; - - $iFilteredTotal = $iTotal; - - CRM_Utils_System::setHttpHeader('Content-Type', 'application/json'); - echo CRM_Utils_JSON::encodeDataTableSelector($searchRows, $sEcho, $iTotal, $iFilteredTotal, $selectorElements); - CRM_Utils_System::civiExit(); - } - - /** - * This function uses the deprecated v1 datatable api and needs updating. See CRM-16353. - * @deprecated - */ - public static function petitionList() { - //get the search criteria params. - $searchCriteria = CRM_Utils_Request::retrieve('searchCriteria', 'String', CRM_Core_DAO::$_nullObject, FALSE, NULL, 'POST'); - $searchParams = explode(',', $searchCriteria); - - $params = $searchRows = []; - foreach ($searchParams as $param) { - if (!empty($_POST[$param])) { - $params[$param] = $_POST[$param]; - } - } - - //this is sequence columns on datatable. - $selectorCols = [ - 'id', - 'title', - 'campaign_id', - 'campaign', - 'activity_type_id', - 'activity_type', - 'is_default', - 'is_active', - 'isActive', - 'action', - ]; - - // get the data table params. - $dataTableParams = [ - 'sEcho' => [ - 'name' => 'sEcho', - 'type' => 'Integer', - 'default' => 0, - ], - 'offset' => [ - 'name' => 'iDisplayStart', - 'type' => 'Integer', - 'default' => 0, - ], - 'rowCount' => [ - 'name' => 'iDisplayLength', - 'type' => 'Integer', - 'default' => 25, - ], - 'sort' => [ - 'name' => 'iSortCol_0', - 'type' => 'Integer', - 'default' => 'created_date', - ], - 'sortOrder' => [ - 'name' => 'sSortDir_0', - 'type' => 'String', - 'default' => 'desc', - ], - ]; - foreach ($dataTableParams as $pName => $pValues) { - $$pName = $pValues['default']; - if (!empty($_POST[$pValues['name']])) { - $$pName = CRM_Utils_Type::escape($_POST[$pValues['name']], $pValues['type']); - if ($pName == 'sort') { - $$pName = $selectorCols[$$pName]; - } - } - } - foreach ([ - 'sort', - 'offset', - 'rowCount', - 'sortOrder', - ] as $sortParam) { - $params[$sortParam] = $$sortParam; - } - - $petitions = CRM_Campaign_Page_DashBoard::getPetitionSummary($params); - $searchCount = CRM_Campaign_BAO_Petition::getPetitionSummary($params, TRUE); - $iTotal = $searchCount; - - if ($searchCount > 0) { - if ($searchCount < $offset) { - $offset = 0; - } - foreach ($petitions as $petitionID => $values) { - foreach ($selectorCols as $col) { - $searchRows[$petitionID][$col] = $values[$col] ?? NULL; - } - } - } - - $selectorElements = $selectorCols; - - $iFilteredTotal = $iTotal; - - CRM_Utils_System::setHttpHeader('Content-Type', 'application/json'); - echo CRM_Utils_JSON::encodeDataTableSelector($searchRows, $sEcho, $iTotal, $iFilteredTotal, $selectorElements); - CRM_Utils_System::civiExit(); - } - } diff --git a/civicrm/CRM/Campaign/Page/DashBoard.php b/civicrm/CRM/Campaign/Page/DashBoard.php deleted file mode 100644 index 013ebcec4d..0000000000 --- a/civicrm/CRM/Campaign/Page/DashBoard.php +++ /dev/null @@ -1,499 +0,0 @@ -<?php -/* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ - */ - -/** - * - * @package CRM - * @copyright CiviCRM LLC https://civicrm.org/licensing - */ - -/** - * Page for displaying Campaigns. - */ -class CRM_Campaign_Page_DashBoard extends CRM_Core_Page { - - /** - * The action links that we need to display for the browse screen. - * - * @var array - */ - private static $_campaignActionLinks; - private static $_surveyActionLinks; - private static $_petitionActionLinks; - - public $_tabs; - - /** - * Get the action links for this page. - * - * @return array - */ - public static function campaignActionLinks() { - // check if variable _actionsLinks is populated - if (!isset(self::$_campaignActionLinks)) { - self::$_campaignActionLinks = [ - CRM_Core_Action::UPDATE => [ - 'name' => ts('Edit'), - 'url' => 'civicrm/campaign/add', - 'qs' => 'reset=1&action=update&id=%%id%%', - 'title' => ts('Update Campaign'), - ], - CRM_Core_Action::DISABLE => [ - 'name' => ts('Disable'), - 'title' => ts('Disable Campaign'), - 'ref' => 'crm-enable-disable', - ], - CRM_Core_Action::ENABLE => [ - 'name' => ts('Enable'), - 'title' => ts('Enable Campaign'), - 'ref' => 'crm-enable-disable', - ], - CRM_Core_Action::DELETE => [ - 'name' => ts('Delete'), - 'url' => 'civicrm/campaign/add', - 'qs' => 'action=delete&reset=1&id=%%id%%', - 'title' => ts('Delete Campaign'), - ], - ]; - } - - return self::$_campaignActionLinks; - } - - /** - * @return array - */ - public static function surveyActionLinks() { - // check if variable _actionsLinks is populated - if (!isset(self::$_surveyActionLinks)) { - self::$_surveyActionLinks = [ - CRM_Core_Action::UPDATE => [ - 'name' => ts('Edit'), - 'url' => 'civicrm/survey/configure/main', - 'qs' => 'action=update&id=%%id%%&reset=1', - 'title' => ts('Update Survey'), - ], - CRM_Core_Action::DISABLE => [ - 'name' => ts('Disable'), - 'ref' => 'crm-enable-disable', - 'title' => ts('Disable Survey'), - ], - CRM_Core_Action::ENABLE => [ - 'name' => ts('Enable'), - 'ref' => 'crm-enable-disable', - 'title' => ts('Enable Survey'), - ], - CRM_Core_Action::DELETE => [ - 'name' => ts('Delete'), - 'url' => 'civicrm/survey/delete', - 'qs' => 'id=%%id%%&reset=1', - 'title' => ts('Delete Survey'), - ], - ]; - } - - return self::$_surveyActionLinks; - } - - /** - * @return array - */ - public static function petitionActionLinks() { - if (!isset(self::$_petitionActionLinks)) { - self::$_petitionActionLinks = self::surveyActionLinks(); - self::$_petitionActionLinks[CRM_Core_Action::UPDATE] = [ - 'name' => ts('Edit'), - 'url' => 'civicrm/petition/add', - 'qs' => 'action=update&id=%%id%%&reset=1', - 'title' => ts('Update Petition'), - ]; - self::$_petitionActionLinks[CRM_Core_Action::DISABLE] = [ - 'name' => ts('Disable'), - 'ref' => 'crm-enable-disable', - 'title' => ts('Disable Petition'), - ]; - self::$_petitionActionLinks[CRM_Core_Action::ENABLE] = [ - 'name' => ts('Enable'), - 'ref' => 'crm-enable-disable', - 'title' => ts('Enable Petition'), - ]; - self::$_petitionActionLinks[CRM_Core_Action::DELETE] = [ - 'name' => ts('Delete'), - 'url' => 'civicrm/petition/add', - 'qs' => 'action=delete&id=%%id%%&reset=1', - 'title' => ts('Delete Petition'), - ]; - self::$_petitionActionLinks[CRM_Core_Action::PROFILE] = [ - 'name' => ts('Sign'), - 'url' => 'civicrm/petition/sign', - 'qs' => 'sid=%%id%%&reset=1', - 'title' => ts('Sign Petition'), - 'fe' => TRUE, - //CRM_Core_Action::PROFILE is used because there isn't a specific action for sign - ]; - self::$_petitionActionLinks[CRM_Core_Action::BROWSE] = [ - 'name' => ts('Signatures'), - 'url' => 'civicrm/activity/search', - 'qs' => 'survey=%%id%%&force=1', - 'title' => ts('List the signatures'), - //CRM_Core_Action::PROFILE is used because there isn't a specific action for sign - ]; - } - - return self::$_petitionActionLinks; - } - - /** - * @return mixed - */ - public function browseCampaign() { - // ensure valid javascript (these must have a value set) - $this->assign('searchParams', json_encode(NULL)); - $this->assign('campaignTypes', json_encode(NULL)); - $this->assign('campaignStatus', json_encode(NULL)); - - $this->assign('addCampaignUrl', CRM_Utils_System::url('civicrm/campaign/add', 'reset=1&action=add')); - $campaignCount = CRM_Campaign_BAO_Campaign::getCampaignCount(); - //don't load find interface when no campaigns in db. - if (!$campaignCount) { - $this->assign('hasCampaigns', FALSE); - return; - } - $this->assign('hasCampaigns', TRUE); - - //build the ajaxify campaign search and selector. - $controller = new CRM_Core_Controller_Simple('CRM_Campaign_Form_Search_Campaign', ts('Search Campaigns')); - $controller->set('searchTab', 'campaign'); - $controller->setEmbedded(TRUE); - $controller->process(); - return $controller->run(); - } - - /** - * @param array $params - * - * @return array - */ - public static function getCampaignSummary($params = []) { - $campaignsData = []; - - //get the campaigns. - $campaigns = CRM_Campaign_BAO_Campaign::getCampaignSummary($params); - if (!empty($campaigns)) { - $config = CRM_Core_Config::singleton(); - $campaignType = CRM_Campaign_PseudoConstant::campaignType(); - $campaignStatus = CRM_Campaign_PseudoConstant::campaignStatus(); - $properties = [ - 'id', - 'name', - 'title', - 'status_id', - 'description', - 'campaign_type_id', - 'is_active', - 'start_date', - 'end_date', - ]; - foreach ($campaigns as $cmpid => $campaign) { - foreach ($properties as $prop) { - $campaignsData[$cmpid][$prop] = $campaign[$prop] ?? NULL; - } - $statusId = $campaign['status_id'] ?? NULL; - $campaignsData[$cmpid]['status'] = $campaignStatus[$statusId] ?? NULL; - $campaignsData[$cmpid]['campaign_id'] = $campaign['id']; - $campaignsData[$cmpid]['campaign_type'] = $campaignType[$campaign['campaign_type_id']]; - - $action = array_sum(array_keys(self::campaignActionLinks())); - if ($campaign['is_active']) { - $action -= CRM_Core_Action::ENABLE; - } - else { - $action -= CRM_Core_Action::DISABLE; - } - - $isActive = ts('No'); - if ($campaignsData[$cmpid]['is_active']) { - $isActive = ts('Yes'); - } - $campaignsData[$cmpid]['isActive'] = $isActive; - - if (!empty($campaignsData[$cmpid]['start_date'])) { - $campaignsData[$cmpid]['start_date'] = CRM_Utils_Date::customFormat($campaignsData[$cmpid]['start_date'], - $config->dateformatFull - ); - } - if (!empty($campaignsData[$cmpid]['end_date'])) { - $campaignsData[$cmpid]['end_date'] = CRM_Utils_Date::customFormat($campaignsData[$cmpid]['end_date'], - $config->dateformatFull - ); - } - $campaignsData[$cmpid]['action'] = CRM_Core_Action::formLink(self::campaignActionLinks(), - $action, - ['id' => $campaign['id']], - ts('more'), - FALSE, - 'campaign.dashboard.row', - 'Campaign', - $campaign['id'] - ); - } - } - - return $campaignsData; - } - - /** - * @return mixed - */ - public function browseSurvey() { - // ensure valid javascript - this must have a value set - $this->assign('searchParams', json_encode(NULL)); - $this->assign('surveyTypes', json_encode(NULL)); - $this->assign('surveyCampaigns', json_encode(NULL)); - - $this->assign('addSurveyUrl', CRM_Utils_System::url('civicrm/survey/add', 'reset=1&action=add')); - - $surveyCount = CRM_Campaign_BAO_Survey::getSurveyCount(); - //don't load find interface when no survey in db. - if (!$surveyCount) { - $this->assign('hasSurveys', FALSE); - return; - } - $this->assign('hasSurveys', TRUE); - - //build the ajaxify survey search and selector. - $controller = new CRM_Core_Controller_Simple('CRM_Campaign_Form_Search_Survey', ts('Search Survey')); - $controller->set('searchTab', 'survey'); - $controller->setEmbedded(TRUE); - $controller->process(); - return $controller->run(); - } - - /** - * @param array $params - * - * @return array - */ - public static function getSurveySummary($params = []) { - $surveysData = []; - - //get the survey. - $config = CRM_Core_Config::singleton(); - $surveys = CRM_Campaign_BAO_Survey::getSurveySummary($params); - if (!empty($surveys)) { - $campaigns = CRM_Campaign_BAO_Campaign::getCampaigns(NULL, NULL, FALSE, FALSE, FALSE, TRUE); - $surveyType = CRM_Campaign_BAO_Survey::getSurveyActivityType(); - foreach ($surveys as $sid => $survey) { - $surveysData[$sid] = $survey; - $campaignId = $survey['campaign_id'] ?? NULL; - $surveysData[$sid]['campaign'] = $campaigns[$campaignId] ?? NULL; - $surveysData[$sid]['activity_type'] = $surveyType[$survey['activity_type_id']]; - if (!empty($survey['release_frequency'])) { - $surveysData[$sid]['release_frequency'] = ts('1 Day', ['plural' => '%count Days', 'count' => $survey['release_frequency']]); - } - - $action = array_sum(array_keys(self::surveyActionLinks($surveysData[$sid]['activity_type']))); - if ($survey['is_active']) { - $action -= CRM_Core_Action::ENABLE; - } - else { - $action -= CRM_Core_Action::DISABLE; - } - - $isActive = ts('No'); - if ($surveysData[$sid]['is_active']) { - $isActive = ts('Yes'); - } - $surveysData[$sid]['isActive'] = $isActive; - - // For some reason, 'is_default' is coming as a string. - $surveysData[$sid]['is_default'] = boolval($surveysData[$sid]['is_default']); - - if ($surveysData[$sid]['result_id']) { - $resultSet = '<a href= "javascript:displayResultSet( ' . $sid . ', ' . htmlspecialchars(json_encode($surveysData[$sid]['title'])) . ', ' . $surveysData[$sid]['result_id'] . ' )" title="' . ts('view result set', ['escape' => 'htmlattribute']) . '">' . ts('Result Set') . '</a>'; - $surveysData[$sid]['result_id'] = $resultSet; - } - else { - $resultUrl = CRM_Utils_System::url("civicrm/survey/configure/results", "action=update&id={$sid}&reset=1"); - $surveysData[$sid]['result_id'] = "<a href='{$resultUrl}' class='status-warning'>(" . ts('Incomplete. Click to configure result set.') . ')</a>'; - } - $surveysData[$sid]['action'] = CRM_Core_Action::formLink(self::surveyActionLinks($surveysData[$sid]['activity_type']), - $action, - ['id' => $sid], - ts('more'), - FALSE, - 'survey.dashboard.row', - 'Survey', - $sid - ); - - if (($surveysData[$sid]['activity_type'] ?? NULL) != 'Petition') { - $surveysData[$sid]['voterLinks'] = CRM_Campaign_BAO_Survey::buildPermissionLinks($sid, - TRUE, - ts('more') - ); - } - - if ($reportID = CRM_Campaign_BAO_Survey::getReportID($sid)) { - $url = CRM_Utils_System::url("civicrm/report/instance/{$reportID}", 'reset=1'); - $surveysData[$sid]['title'] = "<a href='{$url}' title='View Survey Report'>{$surveysData[$sid]['title']}</a>"; - } - } - } - - return $surveysData; - } - - /** - * Browse petitions. - * - * @return mixed|null - */ - public function browsePetition() { - // Ensure valid javascript - this must have a value set - $this->assign('searchParams', json_encode(NULL)); - $this->assign('petitionCampaigns', json_encode(NULL)); - - $this->assign('addPetitionUrl', CRM_Utils_System::url('civicrm/petition/add', 'reset=1&action=add')); - - $petitionCount = CRM_Campaign_BAO_Petition::getPetitionCount(); - //don't load find interface when no petition in db. - if (!$petitionCount) { - $this->assign('hasPetitions', FALSE); - return NULL; - } - $this->assign('hasPetitions', TRUE); - - // Build the ajax petition search and selector. - $controller = new CRM_Core_Controller_Simple('CRM_Campaign_Form_Search_Petition', ts('Search Petition')); - $controller->set('searchTab', 'petition'); - $controller->setEmbedded(TRUE); - $controller->process(); - return $controller->run(); - } - - /** - * @param array $params - * - * @return array - */ - public static function getPetitionSummary($params = []) { - $config = CRM_Core_Config::singleton(); - $petitionsData = []; - - //get the petitions. - $petitions = CRM_Campaign_BAO_Petition::getPetitionSummary($params); - if (!empty($petitions)) { - $campaigns = CRM_Campaign_BAO_Campaign::getCampaigns(NULL, NULL, FALSE, FALSE, FALSE, TRUE); - $petitionType = CRM_Campaign_BAO_Survey::getSurveyActivityType('label', TRUE); - foreach ($petitions as $pid => $petition) { - $petitionsData[$pid] = $petition; - $camapignId = $petition['campaign_id'] ?? NULL; - $petitionsData[$pid]['campaign'] = $campaigns[$camapignId] ?? NULL; - $petitionsData[$pid]['activity_type'] = $petitionType[$petition['activity_type_id']]; - - $action = array_sum(array_keys(self::petitionActionLinks())); - - if ($petition['is_active']) { - $action -= CRM_Core_Action::ENABLE; - } - else { - $action -= CRM_Core_Action::DISABLE; - } - - $isActive = ts('No'); - if ($petitionsData[$pid]['is_active']) { - $isActive = ts('Yes'); - } - $petitionsData[$pid]['isActive'] = $isActive; - - // For some reason, 'is_default' is coming as a string. - $petitionsData[$pid]['is_default'] = boolval($petitionsData[$pid]['is_default']); - - $petitionsData[$pid]['action'] = CRM_Core_Action::formLink(self::petitionActionLinks(), - $action, - ['id' => $pid], - ts('more'), - FALSE, - 'petition.dashboard.row', - 'Petition', - $pid - ); - } - } - - return $petitionsData; - } - - public function browse() { - $this->_tabs = [ - 'campaign' => ts('Campaigns'), - 'survey' => ts('Surveys'), - 'petition' => ts('Petitions'), - ]; - - $subPageType = CRM_Utils_Request::retrieve('type', 'String', $this); - // Load the data for a specific tab - if ($subPageType) { - if (!isset($this->_tabs[$subPageType])) { - CRM_Utils_System::permissionDenied(); - } - //load the data in tabs. - $this->{'browse' . ucfirst($subPageType)}(); - } - // Initialize tabs - else { - $this->buildTabs(); - } - $this->assign('subPageType', ucfirst($subPageType)); - } - - /** - * @return string - */ - public function run() { - if (!CRM_Campaign_BAO_Campaign::accessCampaign()) { - CRM_Utils_System::permissionDenied(); - } - - $this->browse(); - - return parent::run(); - } - - public function buildTabs() { - $allTabs = []; - foreach ($this->_tabs as $name => $title) { - $allTabs[$name] = [ - 'title' => $title, - 'valid' => TRUE, - 'active' => TRUE, - 'link' => CRM_Utils_System::url('civicrm/campaign', "reset=1&type=$name"), - 'extra' => NULL, - 'template' => NULL, - 'count' => NULL, - 'icon' => NULL, - 'class' => NULL, - ]; - } - $allTabs['campaign']['class'] = 'livePage'; - $this->assign('tabHeader', $allTabs); - CRM_Core_Resources::singleton() - ->addScriptFile('civicrm', 'templates/CRM/common/TabHeader.js', 1, 'html-header') - ->addSetting([ - 'tabSettings' => [ - // Tabs should use selectedChild, but Campaign has many legacy links - 'active' => strtolower($_GET['subPage'] ?? $_GET['selectedChild'] ?? 'campaign'), - ], - ]); - } - -} diff --git a/civicrm/CRM/Campaign/xml/Menu/Campaign.xml b/civicrm/CRM/Campaign/xml/Menu/Campaign.xml index 5d051df249..9e4be74c21 100644 --- a/civicrm/CRM/Campaign/xml/Menu/Campaign.xml +++ b/civicrm/CRM/Campaign/xml/Menu/Campaign.xml @@ -1,13 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> <menu> - <item> - <path>civicrm/campaign</path> - <title>Campaign Dashboard</title> - <page_callback>CRM_Campaign_Page_DashBoard</page_callback> - <access_arguments>administer CiviCampaign;manage campaign</access_arguments> - <component>CiviCampaign</component> - </item> <item> <path>civicrm/campaign/add</path> <title>New Campaign</title> diff --git a/civicrm/CRM/Case/BAO/Case.php b/civicrm/CRM/Case/BAO/Case.php index aaa7fab22b..d6d3c55cd9 100644 --- a/civicrm/CRM/Case/BAO/Case.php +++ b/civicrm/CRM/Case/BAO/Case.php @@ -3013,36 +3013,53 @@ WHERE id IN (' . implode(',', $copiedActivityIds) . ')'; } /** + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @inheritDoc */ - public function addSelectWhereClause() { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { + $administerCases = CRM_Core_Permission::check('administer CiviCase', $userId); + $viewMyCases = CRM_Core_Permission::check('access my cases and activities', $userId); + $viewAllCases = CRM_Core_Permission::check('access all cases and activities', $userId); + // We always return an array with these keys, even if they are empty, // because this tells the query builder that we have considered these fields for acls $clauses = [ 'id' => [], // Only case admins can view deleted cases - 'is_deleted' => CRM_Core_Permission::check('administer CiviCase') ? [] : ["= 0"], + 'is_deleted' => $administerCases ? [] : ['= 0'], ]; - // Ensure the user has permission to view the case client - $contactClause = CRM_Utils_SQL::mergeSubquery('Contact'); - if ($contactClause) { - $contactClause = implode(' AND contact_id ', $contactClause); - $clauses['id'][] = "IN (SELECT case_id FROM civicrm_case_contact WHERE contact_id $contactClause)"; - } - // The api gatekeeper ensures the user has at least "access my cases and activities" - // so if they do not have permission to see all cases we'll assume they can only access their own - if (!CRM_Core_Permission::check('access all cases and activities')) { - $user = (int) CRM_Core_Session::getLoggedInContactID(); - $clauses['id'][] = "IN ( - SELECT r.case_id FROM civicrm_relationship r, civicrm_case_contact cc WHERE r.is_active = 1 AND cc.case_id = r.case_id AND ( - (r.contact_id_a = cc.contact_id AND r.contact_id_b = $user) OR (r.contact_id_b = cc.contact_id AND r.contact_id_a = $user) - ) - )"; - } - CRM_Utils_Hook::selectWhereClause($this, $clauses); + + // No CiviCase access + if (!$viewAllCases && !$viewMyCases) { + $clauses['id'][] = 'IS NULL'; + } + else { + // Enforce permission to view the case client + $contactClause = CRM_Utils_SQL::mergeSubquery('Contact'); + if ($contactClause) { + $contactClause = implode(' AND contact_id ', $contactClause); + $clauses['id'][] = "IN (SELECT case_id FROM civicrm_case_contact WHERE contact_id $contactClause)"; + } + // User can only access their own cases + if (!$viewAllCases) { + $clauses['id'][] = self::getAccessMyCasesClause($userId); + } + } + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } + private static function getAccessMyCasesClause(int $userId = NULL): string { + $user = $userId ?? (int) CRM_Core_Session::getLoggedInContactID(); + return "IN ( + SELECT r.case_id FROM civicrm_relationship r, civicrm_case_contact cc WHERE r.is_active = 1 AND cc.case_id = r.case_id AND ( + (r.contact_id_a = cc.contact_id AND r.contact_id_b = $user) OR (r.contact_id_b = cc.contact_id AND r.contact_id_a = $user) + ) + )"; + } + /** * CRM-20308: Method to get the contact id to use as from contact for email copy * 1. Activity Added by Contact's email address diff --git a/civicrm/CRM/Case/BAO/CaseContact.php b/civicrm/CRM/Case/BAO/CaseContact.php index af7086c7c2..ba3cccd9ed 100644 --- a/civicrm/CRM/Case/BAO/CaseContact.php +++ b/civicrm/CRM/Case/BAO/CaseContact.php @@ -71,9 +71,12 @@ class CRM_Case_BAO_CaseContact extends CRM_Case_DAO_CaseContact implements \Civi } /** + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @inheritDoc */ - public function addSelectWhereClause() { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { return [ // Reuse case acls 'case_id' => CRM_Utils_SQL::mergeSubquery('Case'), diff --git a/civicrm/CRM/Case/BAO/CaseType.php b/civicrm/CRM/Case/BAO/CaseType.php index 8021fa1ea9..63d3dba55a 100644 --- a/civicrm/CRM/Case/BAO/CaseType.php +++ b/civicrm/CRM/Case/BAO/CaseType.php @@ -57,10 +57,12 @@ class CRM_Case_BAO_CaseType extends CRM_Case_DAO_CaseType implements \Civi\Core\ $caseTypeName = (isset($params['name'])) ? $params['name'] : CRM_Core_DAO::getFieldValue('CRM_Case_DAO_CaseType', $params['id'], 'name', 'id', TRUE); - // function to format definition column + // Format definition column if (isset($params['definition']) && is_array($params['definition'])) { $params['definition'] = self::convertDefinitionToXML($caseTypeName, $params['definition']); - CRM_Core_ManagedEntities::scheduleReconciliation(); + // Ensure entities declared in the definition get created. + // @see CRM_Case_ManagedEntities + CRM_Core_ManagedEntities::scheduleReconciliation(['civicrm']); } $caseTypeDAO->copyValues($params); diff --git a/civicrm/CRM/Case/DAO/Case.php b/civicrm/CRM/Case/DAO/Case.php index 08d048818b..cc6544671c 100644 --- a/civicrm/CRM/Case/DAO/Case.php +++ b/civicrm/CRM/Case/DAO/Case.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Case/Case.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:83be6db09d4f5220f74ccc72149dcab6) + * (GenCodeChecksum:b5dbbb96b15e9ff288890017d324b984) */ /** @@ -45,6 +45,15 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO { */ public static $_log = TRUE; + /** + * Paths for accessing this entity in the UI. + * + * @var string[] + */ + protected static $_paths = [ + 'view' => 'civicrm/contact/view/case?action=view&reset=1&id=[id]', + ]; + /** * Unique Case ID * diff --git a/civicrm/CRM/Case/Form/CaseView.php b/civicrm/CRM/Case/Form/CaseView.php index 24c0f4552c..bf50e3ec6a 100644 --- a/civicrm/CRM/Case/Form/CaseView.php +++ b/civicrm/CRM/Case/Form/CaseView.php @@ -49,6 +49,8 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form { */ public $_contactID; + private $_caseClients; + /** * ID of case being viewed * @@ -100,9 +102,21 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form { $this->_hasAccessToAllCases = CRM_Core_Permission::check('access all cases and activities'); $this->assign('hasAccessToAllCases', $this->_hasAccessToAllCases); - $this->assign('contactID', $this->_contactID = (int) $this->get('cid')); $this->assign('caseID', $this->_caseID = (int) $this->get('id')); + $this->_caseClients = CRM_Case_BAO_Case::getContactNames($this->_caseID); + + $cid = $this->get('cid'); + + // If no cid supplied, use first case client + if (!$cid) { + $cid = array_keys($this->_caseClients)[0]; + } + elseif (!isset($this->_caseClients[$cid])) { + CRM_Core_Error::statusBounce("Contact $cid not a client of case " . $this->_caseID); + } + $this->assign('contactID', $this->_contactID = (int) $cid); + // Access check. if (!CRM_Case_BAO_Case::accessCase($this->_caseID, FALSE)) { CRM_Core_Error::statusBounce(ts('You do not have permission to access this case.')); @@ -147,7 +161,7 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form { "action=view&reset=1&id={$this->_caseID}&cid={$this->_contactID}&context=home" ); - $displayName = CRM_Contact_BAO_Contact::displayName($this->_contactID); + $displayName = $this->_caseClients[$this->_contactID]['display_name']; $this->assign('displayName', $displayName); $this->setTitle($displayName . ' - ' . $caseType); @@ -366,7 +380,7 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form { $this->assign('caseRelationships', $caseRelationships); //also add client as role. CRM-4438 - $caseRoles['client'] = CRM_Case_BAO_Case::getContactNames($this->_caseID); + $caseRoles['client'] = $this->_caseClients; $this->assign('caseRoles', $caseRoles); diff --git a/civicrm/CRM/Case/ManagedEntities.php b/civicrm/CRM/Case/ManagedEntities.php index 4f253e430e..6c6d3d1f83 100644 --- a/civicrm/CRM/Case/ManagedEntities.php +++ b/civicrm/CRM/Case/ManagedEntities.php @@ -58,12 +58,11 @@ class CRM_Case_ManagedEntities { * Get a list of managed activity-types by searching CiviCase XML files. * * @param \CRM_Case_XMLRepository $xmlRepo - * @param \CRM_Core_ManagedEntities $me * * @return array * @see CRM_Utils_Hook::managed */ - public static function createManagedActivityTypes(CRM_Case_XMLRepository $xmlRepo, CRM_Core_ManagedEntities $me) { + public static function createManagedActivityTypes(CRM_Case_XMLRepository $xmlRepo): array { $result = []; $validActTypes = CRM_Core_PseudoConstant::activityType(TRUE, TRUE, TRUE, 'name'); @@ -102,12 +101,11 @@ class CRM_Case_ManagedEntities { * Get a list of managed relationship-types by searching CiviCase XML files. * * @param \CRM_Case_XMLRepository $xmlRepo - * @param \CRM_Core_ManagedEntities $me * * @return array * @see CRM_Utils_Hook::managed */ - public static function createManagedRelationshipTypes(CRM_Case_XMLRepository $xmlRepo, CRM_Core_ManagedEntities $me) { + public static function createManagedRelationshipTypes(CRM_Case_XMLRepository $xmlRepo): array { $result = []; if (!isset(Civi::$statics[__CLASS__]['reltypes'])) { diff --git a/civicrm/CRM/Case/Page/Tab.php b/civicrm/CRM/Case/Page/Tab.php index 8c91b6ffb5..3dc37a7e6b 100644 --- a/civicrm/CRM/Case/Page/Tab.php +++ b/civicrm/CRM/Case/Page/Tab.php @@ -61,11 +61,6 @@ class CRM_Case_Page_Tab extends CRM_Core_Page { CRM_Contact_Page_View::checkUserPermission($this); } } - else { - if ($this->_action & CRM_Core_Action::VIEW) { - CRM_Core_Error::statusBounce(ts('Contact Id is required for view action.')); - } - } $activityTypes = CRM_Case_PseudoConstant::caseActivityType(); diff --git a/civicrm/CRM/Case/XMLRepository.php b/civicrm/CRM/Case/XMLRepository.php index 000ccdb52f..70fc9088b2 100644 --- a/civicrm/CRM/Case/XMLRepository.php +++ b/civicrm/CRM/Case/XMLRepository.php @@ -32,11 +32,11 @@ class CRM_Case_XMLRepository { protected $hookCache = NULL; /** - * Symbolic names of case-types. + * Override case types, only used by unit tests * * @var array|null */ - protected $allCaseTypes = NULL; + protected $unitTestCaseTypes = NULL; /** * @param bool $fresh @@ -52,18 +52,18 @@ class CRM_Case_XMLRepository { public function flush() { $this->xml = []; $this->hookCache = NULL; - $this->allCaseTypes = NULL; + $this->unitTestCaseTypes = NULL; CRM_Core_DAO::$_dbColumnValueCache = []; } /** * Class constructor. * - * @param array $allCaseTypes + * @param array $unitTestCaseTypes * @param array $xml */ - public function __construct($allCaseTypes = NULL, $xml = []) { - $this->allCaseTypes = $allCaseTypes; + public function __construct($unitTestCaseTypes = NULL, $xml = []) { + $this->unitTestCaseTypes = $unitTestCaseTypes; $this->xml = $xml; } @@ -215,13 +215,11 @@ class CRM_Case_XMLRepository { } /** - * @return array<string> symbolic names of case-types + * @return string[] + * symbolic names of case-types */ public function getAllCaseTypes() { - if ($this->allCaseTypes === NULL) { - $this->allCaseTypes = CRM_Case_PseudoConstant::caseType("name"); - } - return $this->allCaseTypes; + return $this->unitTestCaseTypes ?? CRM_Case_PseudoConstant::caseType("name"); } /** diff --git a/civicrm/CRM/Contact/BAO/Contact.php b/civicrm/CRM/Contact/BAO/Contact.php index def5241622..5d948999fc 100644 --- a/civicrm/CRM/Contact/BAO/Contact.php +++ b/civicrm/CRM/Contact/BAO/Contact.php @@ -1995,7 +1995,7 @@ ORDER BY civicrm_email.is_primary DESC"; else { CRM_Utils_Hook::post('create', 'Profile', $contactID, $params); } - return $contactID; + return (int) $contactID; } /** @@ -2925,8 +2925,8 @@ LEFT JOIN civicrm_email ON ( civicrm_contact.id = civicrm_email.contact_id ) 'key' => 'note', 'tab' => 'note', 'class' => 'medium-popup', - 'href' => CRM_Utils_System::url('civicrm/contact/view/note', - 'reset=1&action=add' + 'href' => CRM_Utils_System::url('civicrm/note', + 'reset=1&action=add&entity_table=civicrm_contact&entity_id=' . $contactId ), 'permissions' => ['edit all contacts'], ], @@ -3409,16 +3409,19 @@ LEFT JOIN civicrm_address ON ( civicrm_address.contact_id = civicrm_contact.id ) } /** + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @inheritDoc */ - public function addSelectWhereClause() { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { // We always return an array with these keys, even if they are empty, // because this tells the query builder that we have considered these fields for acls $clauses = [ 'id' => (array) CRM_Contact_BAO_Contact_Permission::cacheSubquery(), 'is_deleted' => CRM_Core_Permission::check('access deleted contacts') ? [] : ['!= 1'], ]; - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } @@ -3578,6 +3581,7 @@ LEFT JOIN civicrm_address ON ( civicrm_address.contact_id = civicrm_contact.id ) public static function getEntityRefFilters() { return [ ['key' => 'contact_type', 'value' => ts('Contact Type')], + ['key' => 'email', 'value' => ts('Email'), 'entity' => 'Email', 'type' => 'text'], ['key' => 'group', 'value' => ts('Group'), 'entity' => 'GroupContact'], ['key' => 'tag', 'value' => ts('Tag'), 'entity' => 'EntityTag'], ['key' => 'city', 'value' => ts('City'), 'type' => 'text', 'entity' => 'Address'], diff --git a/civicrm/CRM/Contact/BAO/ContactType.php b/civicrm/CRM/Contact/BAO/ContactType.php index 477bb09d06..de18235c96 100644 --- a/civicrm/CRM/Contact/BAO/ContactType.php +++ b/civicrm/CRM/Contact/BAO/ContactType.php @@ -69,7 +69,7 @@ class CRM_Contact_BAO_ContactType extends CRM_Contact_DAO_ContactType implements * @throws \CRM_Core_Exception * @throws \Civi\API\Exception\UnauthorizedException */ - public static function basicTypes($all = FALSE) { + public static function basicTypes($all = FALSE): array { return array_keys(self::basicTypeInfo($all)); } @@ -849,15 +849,26 @@ WHERE ($subtypeClause)"; $contactTypes[$name]['parent_label'] = $contactType['parent_id'] ? $parents[$contactType['parent_id']]['label'] : NULL; // Cast int/bool types. $contactTypes[$name]['id'] = (int) $contactType['id']; - $contactTypes[$name]['parent_id'] = $contactType['parent_id'] ? (int) $contactType['parent_id'] : NULL; + $contactTypes[$name]['parent_id'] = ((int) $contactType['parent_id']) ?: NULL; $contactTypes[$name]['is_active'] = (bool) $contactType['is_active']; $contactTypes[$name]['is_reserved'] = (bool) $contactType['is_reserved']; + $contactTypes[$name]['icon'] = $contactType['icon'] ?? $parents[$contactType['parent_id']]['icon'] ?? NULL; } $cache->set($cacheKey, $contactTypes); } return $contactTypes; } + /** + * Get contact type by name + * + * @param string $name + * @return array|null + */ + public static function getContactType(string $name): ?array { + return self::getAllContactTypes()[$name] ?? NULL; + } + /** * @param string $entityName * @param string $action diff --git a/civicrm/CRM/Contact/BAO/Group.php b/civicrm/CRM/Contact/BAO/Group.php index e39077b4db..3a5b8b7b81 100644 --- a/civicrm/CRM/Contact/BAO/Group.php +++ b/civicrm/CRM/Contact/BAO/Group.php @@ -310,16 +310,19 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { } /** + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @inheritDoc */ - public function addSelectWhereClause() { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { $clauses = []; if (!CRM_Core_Permission::check([['edit all contacts', 'view all contacts']])) { $allowedGroups = CRM_Core_Permission::group(NULL, FALSE); $groupsIn = $allowedGroups ? implode(',', array_keys($allowedGroups)) : '0'; $clauses['id'][] = "IN ($groupsIn)"; } - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } diff --git a/civicrm/CRM/Contact/BAO/GroupContact.php b/civicrm/CRM/Contact/BAO/GroupContact.php index 114eba98e5..56182d0ee8 100644 --- a/civicrm/CRM/Contact/BAO/GroupContact.php +++ b/civicrm/CRM/Contact/BAO/GroupContact.php @@ -201,14 +201,15 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact implemen CRM_Contact_BAO_GroupContactCache::invalidateGroupContactCache($groupId); } else { + // 'Removed' means we add a history record and ensure the GroupContact record exists with a 'Removed' status. $groupContact = new CRM_Contact_DAO_GroupContact(); $groupContact->group_id = $groupId; $groupContact->contact_id = $contactId; - // check if the selected contact id already a member, or if this is + // check if the selected contact is already listed as Removed // an opt-out of a smart group. // if not a member remove to groupContact else keep the count of contacts that are not removed - if ($groupContact->find(TRUE) || $group->saved_search_id) { - // remove the contact from the group + if (($groupContact->find(TRUE) || $group->saved_search_id) && $groupContact->status !== $status) { + // remove the contact from the group. $numContactsRemoved++; } else { diff --git a/civicrm/CRM/Contact/BAO/GroupContactCache.php b/civicrm/CRM/Contact/BAO/GroupContactCache.php index 8d30ca73c5..2400867d81 100644 --- a/civicrm/CRM/Contact/BAO/GroupContactCache.php +++ b/civicrm/CRM/Contact/BAO/GroupContactCache.php @@ -162,21 +162,35 @@ AND ( * @param array $groupID * @param bool $processed * Whether the cache data was recently modified. + * @param ?float $startTime + * A float from microtime() for when we began work updating this group. */ - protected static function updateCacheTime($groupID, $processed) { + protected static function updateCacheTime($groupID, $processed, ?float $startTime = NULL) { // only update cache entry if we had any values + $now = 'null'; + $setCacheFillTook = ''; if ($processed) { // also update the group with cache date information $now = date('YmdHis'); - } - else { - $now = 'null'; + if ($startTime) { + // If we can calculate how long this took, we update the cache_fill_took column. + $took = microtime(TRUE) - $startTime; + $setCacheFillTook = ", cache_fill_took = $took"; + $maxTime = CRM_Utils_Constant::value('CIVICRM_SLOW_SMART_GROUP_SECONDS'); + if ($maxTime && $took > $maxTime) { + Civi::log()->warning( + "Updating smart group $groupID took over " + . $maxTime + . "s defined by CIVICRM_SLOW_SMART_GROUP_SECONDS (took " . number_format($took, 3) . "s)" + ); + } + } } $groupIDs = implode(',', $groupID); $sql = " UPDATE civicrm_group -SET cache_date = $now +SET cache_date = $now$setCacheFillTook WHERE id IN ( $groupIDs ) "; CRM_Core_DAO::executeQuery($sql); @@ -353,14 +367,16 @@ WHERE id IN ( $groupIDs ) $lockedGroups = self::getLocksForRefreshableGroupsTo([$groupID]); foreach ($lockedGroups as $groupID) { + $startTime = microtime(TRUE); $groupContactsTempTable = CRM_Utils_SQL_TempTable::build() ->setCategory('gccache') ->setMemory(); self::buildGroupContactTempTable([$groupID], $groupContactsTempTable); self::clearGroupContactCache([$groupID]); - self::updateCacheFromTempTable($groupContactsTempTable, [$groupID]); + self::updateCacheFromTempTable($groupContactsTempTable, [$groupID], $startTime); self::releaseGroupLocks([$groupID]); $groupContactsTempTable->drop(); + } return in_array($groupID, $lockedGroups); } @@ -723,8 +739,10 @@ ORDER BY gc.contact_id, g.children * * @param \CRM_Utils_SQL_TempTable $groupContactsTempTable * @param array $groupIDs + * @param ?float $startTime + * A float from microtime() for when we began work updating this group. */ - private static function updateCacheFromTempTable(CRM_Utils_SQL_TempTable $groupContactsTempTable, array $groupIDs): void { + private static function updateCacheFromTempTable(CRM_Utils_SQL_TempTable $groupContactsTempTable, array $groupIDs, ?float $startTime = NULL): void { $tempTable = $groupContactsTempTable->getName(); // @fixme: GROUP BY is here to guard against having duplicate contacts in the temptable. @@ -736,7 +754,7 @@ ORDER BY gc.contact_id, g.children GROUP BY contact_id,group_id "); foreach ($groupIDs as $groupID) { - self::updateCacheTime([$groupID], TRUE); + self::updateCacheTime([$groupID], TRUE, $startTime); } } diff --git a/civicrm/CRM/Contact/BAO/Individual.php b/civicrm/CRM/Contact/BAO/Individual.php index 7d4ea9875a..200c7b54d7 100644 --- a/civicrm/CRM/Contact/BAO/Individual.php +++ b/civicrm/CRM/Contact/BAO/Individual.php @@ -31,12 +31,12 @@ class CRM_Contact_BAO_Individual extends CRM_Contact_DAO_Contact { * * @param array $params * (reference ) an assoc array of name/value pairs. - * @param CRM_Contact_BAO_Contact $contact + * @param CRM_Contact_DAO_Contact $contact * Contact object. * - * @return CRM_Contact_BAO_Contact + * @return CRM_Contact_DAO_Contact */ - public static function format(&$params, &$contact) { + public static function format(&$params, $contact) { if (!self::dataExists($params)) { return NULL; } @@ -59,13 +59,8 @@ class CRM_Contact_BAO_Individual extends CRM_Contact_DAO_Contact { $formalTitle = CRM_Utils_Array::value('formal_title', $params, ''); // get prefix and suffix names - $prefix = $suffix = NULL; - if ($prefix_id) { - $params['individual_prefix'] = $prefix = CRM_Core_PseudoConstant::getLabel('CRM_Contact_DAO_Contact', 'prefix_id', $prefix_id); - } - if ($suffix_id) { - $params['individual_suffix'] = $suffix = CRM_Core_PseudoConstant::getLabel('CRM_Contact_DAO_Contact', 'suffix_id', $suffix_id); - } + $params['prefix_id:label'] = $prefix = CRM_Core_PseudoConstant::getLabel('CRM_Contact_DAO_Contact', 'prefix_id', $prefix_id); + $params['suffix_id:label'] = $suffix = CRM_Core_PseudoConstant::getLabel('CRM_Contact_DAO_Contact', 'suffix_id', $suffix_id); $individual = NULL; if ($contact->id) { @@ -87,12 +82,12 @@ class CRM_Contact_BAO_Individual extends CRM_Contact_DAO_Contact { } } - foreach (['prefix', 'suffix'] as $name) { - $dbName = "{$name}_id"; - $value = $individual->$dbName; - if ($value && !empty($params['preserveDBName'])) { - $useDBNames[] = $name; - } + if ($individual->suffix_id && !empty($params['preserveDBName'])) { + $useDBNames[] = 'suffix_id'; + } + + if ($individual->prefix_id && !empty($params['preserveDBName'])) { + $useDBNames[] = 'prefix_id'; } if ($individual->formal_title && !empty($params['preserveDBName'])) { @@ -168,8 +163,8 @@ class CRM_Contact_BAO_Individual extends CRM_Contact_DAO_Contact { 'middle_name' => $middleName, 'last_name' => $lastName, 'nick_name' => $nickName, - 'individual_suffix' => $suffix, - 'individual_prefix' => $prefix, + 'suffix_id:label' => $suffix, + 'prefix_id:label' => $prefix, 'prefix_id' => $prefix_id, 'suffix_id' => $suffix_id, 'formal_title' => $formalTitle, diff --git a/civicrm/CRM/Contact/BAO/Query.php b/civicrm/CRM/Contact/BAO/Query.php index 8642c163bc..0969bc8bfc 100644 --- a/civicrm/CRM/Contact/BAO/Query.php +++ b/civicrm/CRM/Contact/BAO/Query.php @@ -583,10 +583,10 @@ class CRM_Contact_BAO_Query { // Unit test coverage in api_v3_FinancialTypeACLTest::testGetACLContribution. $clauses = []; if ($component === 'contribution') { - $clauses = CRM_Contribute_BAO_Contribution::getSelectWhereClause(); + $clauses = array_filter(CRM_Contribute_BAO_Contribution::getSelectWhereClause()); } if ($component === 'membership') { - $clauses = CRM_Member_BAO_Membership::getSelectWhereClause(); + $clauses = array_filter(CRM_Member_BAO_Membership::getSelectWhereClause()); } if ($clauses) { $this->_whereClause .= ' AND ' . implode(' AND ', $clauses); @@ -5077,25 +5077,12 @@ civicrm_relationship.start_date > {$today} } } + // Add ACL permission clause generated by the BAO. This is the same clause used by API::get. + // TODO: Why only activities? if (isset($this->_tables['civicrm_activity'])) { - $bao = new CRM_Activity_BAO_Activity(); - $clauses = $subclauses = []; - foreach ((array) $bao->addSelectWhereClause() as $field => $vals) { - if ($vals && $field !== 'id') { - $clauses[] = $bao->tableName() . ".$field " . $vals; - } - elseif ($vals) { - $subclauses[] = "$field " . implode(" AND $field ", (array) $vals); - } - } - if ($subclauses) { - $clauses[] = $bao->tableName() . '.`id` IN (SELECT `id` FROM `' . $bao->tableName() . '` WHERE ' . implode(' AND ', $subclauses) . ')'; - } - if (!empty($clauses) && $this->_permissionWhereClause) { - $this->_permissionWhereClause .= ' AND (' . implode(' AND ', $clauses) . ')'; - } - elseif (!empty($clauses)) { - $this->_permissionWhereClause .= '(' . implode(' AND ', $clauses) . ')'; + $clauses = array_filter(CRM_Activity_BAO_Activity::getSelectWhereClause()); + if ($clauses) { + $this->_permissionWhereClause .= ($this->_permissionWhereClause ? ' AND ' : '') . '(' . implode(' AND ', $clauses) . ')'; } } } diff --git a/civicrm/CRM/Contact/BAO/Relationship.php b/civicrm/CRM/Contact/BAO/Relationship.php index 6405520474..dacab11fcf 100644 --- a/civicrm/CRM/Contact/BAO/Relationship.php +++ b/civicrm/CRM/Contact/BAO/Relationship.php @@ -1807,14 +1807,7 @@ AND cc.sort_name LIKE '%$name%'"; } /** - * Wrapper for contact relationship selector. - * - * @param array $params - * Associated array for params record id. - * - * @return array - * associated array of contact relationships - * @throws \Exception + * DELETEME only-used-by-user-dashboard */ public static function getContactRelationshipSelector(&$params) { // format the params @@ -1957,7 +1950,7 @@ AND cc.sort_name LIKE '%$name%'"; } /** - * @return array + * DELETEME only-used-by-user-dashboard */ public static function getColumnHeaders() { return [ diff --git a/civicrm/CRM/Contact/BAO/RelationshipCache.php b/civicrm/CRM/Contact/BAO/RelationshipCache.php index 54906ee2e9..cc3e2d89a5 100644 --- a/civicrm/CRM/Contact/BAO/RelationshipCache.php +++ b/civicrm/CRM/Contact/BAO/RelationshipCache.php @@ -156,16 +156,19 @@ class CRM_Contact_BAO_RelationshipCache extends CRM_Contact_DAO_RelationshipCach } /** + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @return array */ - public function addSelectWhereClause() { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { // Permission for this entity depends on access to the two related contacts. $contactClause = CRM_Utils_SQL::mergeSubquery('Contact'); $clauses = [ 'near_contact_id' => $contactClause, 'far_contact_id' => $contactClause, ]; - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } diff --git a/civicrm/CRM/Contact/DAO/Contact.php b/civicrm/CRM/Contact/DAO/Contact.php index edae63298b..af30aab877 100644 --- a/civicrm/CRM/Contact/DAO/Contact.php +++ b/civicrm/CRM/Contact/DAO/Contact.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/Contact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4066902548c1bc5ba4358b9e0195a3fa) + * (GenCodeChecksum:0470d0df786c3ac33a435555a3d026fb) */ /** @@ -604,7 +604,6 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO { ], 'where' => 'civicrm_contact.contact_type', 'export' => TRUE, - 'contactType' => NULL, 'table_name' => 'civicrm_contact', 'entity' => 'Contact', 'bao' => 'CRM_Contact_BAO_Contact', diff --git a/civicrm/CRM/Contact/DAO/Group.php b/civicrm/CRM/Contact/DAO/Group.php index eaf99bed29..1cb5e045f6 100644 --- a/civicrm/CRM/Contact/DAO/Group.php +++ b/civicrm/CRM/Contact/DAO/Group.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/Group.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:81bebe4ba76713e7fb6a39e7710634a4) + * (GenCodeChecksum:751b5e9e81fbe25cb995f4b4c3494346) */ /** @@ -177,6 +177,15 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO { */ public $cache_date; + /** + * Seconds taken to fill smart group cache + * + * @var float|string + * (SQL type: double) + * Note that values will be retrieved from the database as a string. + */ + public $cache_fill_took; + /** * Unused deprecated column. * @@ -594,6 +603,26 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO { 'readonly' => TRUE, 'add' => '2.1', ], + 'cache_fill_took' => [ + 'name' => 'cache_fill_took', + 'type' => CRM_Utils_Type::T_FLOAT, + 'title' => ts('Seconds taken by last cache fill'), + 'description' => ts('Seconds taken to fill smart group cache'), + 'required' => FALSE, + 'usage' => [ + 'import' => FALSE, + 'export' => FALSE, + 'duplicate_matching' => FALSE, + 'token' => FALSE, + ], + 'where' => 'civicrm_group.cache_fill_took', + 'table_name' => 'civicrm_group', + 'entity' => 'Group', + 'bao' => 'CRM_Contact_BAO_Group', + 'localizable' => 0, + 'readonly' => TRUE, + 'add' => '5.67', + ], 'refresh_date' => [ 'name' => 'refresh_date', 'type' => CRM_Utils_Type::T_TIMESTAMP, diff --git a/civicrm/CRM/Contact/DAO/Relationship.php b/civicrm/CRM/Contact/DAO/Relationship.php index 32b8f3e61b..ea5624a36f 100644 --- a/civicrm/CRM/Contact/DAO/Relationship.php +++ b/civicrm/CRM/Contact/DAO/Relationship.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/Relationship.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:053ca157abcac8e7f4c8ab55425df5ff) + * (GenCodeChecksum:e6e709da33773d09d7e788d21c64437b) */ /** @@ -423,6 +423,11 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO { ], 'pseudoconstant' => [ 'callback' => 'CRM_Core_SelectValues::getPermissionedRelationshipOptions', + 'suffixes' => [ + 'name', + 'label', + 'icon', + ], ], 'add' => '2.1', ], @@ -449,6 +454,11 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO { ], 'pseudoconstant' => [ 'callback' => 'CRM_Core_SelectValues::getPermissionedRelationshipOptions', + 'suffixes' => [ + 'name', + 'label', + 'icon', + ], ], 'add' => '2.1', ], diff --git a/civicrm/CRM/Contact/DAO/RelationshipCache.php b/civicrm/CRM/Contact/DAO/RelationshipCache.php index 060f180637..5486d1c3b9 100644 --- a/civicrm/CRM/Contact/DAO/RelationshipCache.php +++ b/civicrm/CRM/Contact/DAO/RelationshipCache.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/RelationshipCache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:422520600ff998c1a9203004ae958e8c) + * (GenCodeChecksum:9170513963860f5b9cadce190a68b8bf) */ /** @@ -43,6 +43,7 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO { * @var string[] */ protected static $_paths = [ + 'add' => 'civicrm/contact/view/rel?cid=[near_contact_id]&action=add&reset=1', 'view' => 'civicrm/contact/view/rel?action=view&reset=1&cid=[near_contact_id]&id=[relationship_id]', 'update' => 'civicrm/contact/view/rel?action=update&reset=1&cid=[near_contact_id]&id=[relationship_id]&rtype=[orientation]', 'delete' => 'civicrm/contact/view/rel?action=delete&reset=1&cid=[near_contact_id]&id=[relationship_id]', diff --git a/civicrm/CRM/Contact/Form/Contact.php b/civicrm/CRM/Contact/Form/Contact.php index b1395a93c8..a016b17d3d 100644 --- a/civicrm/CRM/Contact/Form/Contact.php +++ b/civicrm/CRM/Contact/Form/Contact.php @@ -892,7 +892,7 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form { 'isDefault' => TRUE, ], ]; - if (CRM_Core_Permission::check('add contacts')) { + if (!$this->_contactId && CRM_Core_Permission::check('add contacts')) { $buttons[] = [ 'type' => 'upload', 'name' => ts('Save and New'), diff --git a/civicrm/CRM/Contact/Form/ContactFormTrait.php b/civicrm/CRM/Contact/Form/ContactFormTrait.php new file mode 100644 index 0000000000..fc66253a72 --- /dev/null +++ b/civicrm/CRM/Contact/Form/ContactFormTrait.php @@ -0,0 +1,52 @@ +<?php + +use Civi\API\EntityLookupTrait; + +/** + * Trait implements getContactValue + overridable getContactID functions. + * + * These are commonly used on forms - although getContactID() would often + * be overridden. By using these functions it is not necessary to know + * if the Contact ID has already been defined as `getContactID()` will retrieve + * them form the values available (unless it is yet to be created). + */ +trait CRM_Contact_Form_ContactFormTrait { + + use EntityLookupTrait; + + /** + * Get a value for the contact being acted on in the form. + * + * This can be called from any point in the form flow and if + * the contact can not yet be determined it will return NULL. + * + * @throws \CRM_Core_Exception + */ + public function getContactValue($fieldName) { + if ($this->isDefined('Contact')) { + return $this->lookup('Contact', $fieldName); + } + $id = $this->getContactID(); + if ($id) { + $this->define('Contact', 'Contact', ['id' => $id]); + return $this->lookup('Contact', $fieldName); + } + return NULL; + } + + /** + * Get the contact ID. + * + * Override this for more complex retrieval as required by the form. + * + * @return int|null + * + * @noinspection PhpUnhandledExceptionInspection + * @noinspection PhpDocMissingThrowsInspection + */ + public function getContactID(): ?int { + $id = (int) CRM_Utils_Request::retrieve('cid', 'Positive', $this); + return $id ?: NULL; + } + +} diff --git a/civicrm/CRM/Contact/Form/CustomData.php b/civicrm/CRM/Contact/Form/CustomData.php index da7ab34fd8..9769ab9fa9 100644 --- a/civicrm/CRM/Contact/Form/CustomData.php +++ b/civicrm/CRM/Contact/Form/CustomData.php @@ -97,7 +97,7 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form { if (!empty($entityId)) { $subType = CRM_Contact_BAO_Contact::getContactSubType($entityId, ','); } - CRM_Custom_Form_CustomData::preProcess($this, NULL, $subType, NULL, NULL, $entityId); + CRM_Custom_Form_CustomData::preProcess($this, NULL, $subType, NULL, CRM_Utils_Request::retrieve('type', 'String', $this), $entityId); if ($this->_multiRecordDisplay) { $this->_groupID = CRM_Utils_Request::retrieve('groupID', 'Positive', $this); $this->_tableID = $this->_entityId; @@ -215,7 +215,7 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form { if ($this->_cdType || $this->_multiRecordDisplay == 'single') { if ($this->_copyValueId) { // cached tree is fetched - $groupTree = CRM_Core_BAO_CustomGroup::getTree($this->_type, + $groupTree = CRM_Core_BAO_CustomGroup::getTree('Contact', NULL, $this->_entityId, $this->_groupID, diff --git a/civicrm/CRM/Contact/Form/Relationship.php b/civicrm/CRM/Contact/Form/Relationship.php index 47116d7d17..46f69186b9 100644 --- a/civicrm/CRM/Contact/Form/Relationship.php +++ b/civicrm/CRM/Contact/Form/Relationship.php @@ -403,10 +403,6 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form { // Refresh contact tabs which might have been affected $this->ajaxResponse = [ 'reloadBlocks' => ['#crm-contactinfo-content'], - 'updateTabs' => [ - '#tab_member' => CRM_Contact_BAO_Contact::getCountComponent('membership', $this->_contactId), - '#tab_contribute' => CRM_Contact_BAO_Contact::getCountComponent('contribution', $this->_contactId), - ], ]; } diff --git a/civicrm/CRM/Contact/Form/Search.php b/civicrm/CRM/Contact/Form/Search.php index 575b3d38c2..ac69d0ce9b 100644 --- a/civicrm/CRM/Contact/Form/Search.php +++ b/civicrm/CRM/Contact/Form/Search.php @@ -530,7 +530,7 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search { $this->_amtgID = CRM_Utils_Request::retrieve('amtgID', 'Positive', $this); $this->_ssID = CRM_Utils_Request::retrieve('ssID', 'Positive', $this); $this->_sortByCharacter = CRM_Utils_Request::retrieve('sortByCharacter', 'String', $this); - $this->_ufGroupID = CRM_Utils_Request::retrieve('id', 'Positive', $this); + $ufGroupID = CRM_Utils_Request::retrieve('uf_group_id', 'Positive', $this); $this->_componentMode = CRM_Utils_Request::retrieve('component_mode', 'Positive', $this, FALSE, CRM_Contact_BAO_Query::MODE_CONTACTS, $_REQUEST); $this->_operator = CRM_Utils_Request::retrieve('operator', 'String', $this, FALSE, CRM_Contact_BAO_Query::SEARCH_OPERATOR_AND, 'REQUEST'); @@ -547,10 +547,10 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search { // if we dont get this from the url, use default if one exsts $config = CRM_Core_Config::singleton(); - if ($this->_ufGroupID == NULL && + if ($ufGroupID == NULL && $config->defaultSearchProfileID != NULL ) { - $this->_ufGroupID = $config->defaultSearchProfileID; + $ufGroupID = $config->defaultSearchProfileID; } // assign context to drive the template display, make sure context is valid @@ -579,9 +579,9 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search { $this->_returnProperties = &$this->returnProperties(); // also get the uf group id directly from the post value - $this->_ufGroupID = CRM_Utils_Array::value('uf_group_id', $_POST, $this->_ufGroupID); - $this->_formValues['uf_group_id'] = $this->_ufGroupID; - $this->set('id', $this->_ufGroupID); + $ufGroupID = $_POST['uf_group_id'] ?? $ufGroupID; + $this->_formValues['uf_group_id'] = $ufGroupID; + $this->set('uf_group_id', $ufGroupID); // also get the object mode directly from the post value $this->_componentMode = CRM_Utils_Array::value('component_mode', $_POST, $this->_componentMode); @@ -595,8 +595,8 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search { $this->_formValues = $this->get('formValues'); $this->_params = CRM_Contact_BAO_Query::convertFormValues($this->_formValues, 0, FALSE, NULL, $this->entityReferenceFields); $this->_returnProperties = &$this->returnProperties(); - if (!empty($this->_ufGroupID)) { - $this->set('id', $this->_ufGroupID); + if ($ufGroupID) { + $this->set('uf_group_id', $ufGroupID); } } @@ -623,9 +623,9 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search { $this->_returnProperties = &$this->returnProperties(); } else { - if (isset($this->_ufGroupID)) { + if ($ufGroupID) { // also set the uf group id if not already present - $this->_formValues['uf_group_id'] = $this->_ufGroupID; + $this->_formValues['uf_group_id'] = $ufGroupID; } if (isset($this->_componentMode)) { $this->_formValues['component_mode'] = $this->_componentMode; @@ -667,9 +667,7 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search { } } } - $this->assign('id', - CRM_Utils_Array::value('uf_group_id', $this->_formValues) - ); + $this->assign('id', $ufGroupID); $operator = CRM_Utils_Array::value('operator', $this->_formValues, CRM_Contact_BAO_Query::SEARCH_OPERATOR_AND); $this->set('queryOperator', $operator); if ($operator == CRM_Contact_BAO_Query::SEARCH_OPERATOR_OR) { @@ -768,10 +766,7 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search { //get the button name $buttonName = $this->controller->getButtonName(); - - if (isset($this->_ufGroupID) && empty($this->_formValues['uf_group_id'])) { - $this->_formValues['uf_group_id'] = $this->_ufGroupID; - } + $this->_formValues['uf_group_id'] = $this->_formValues['uf_group_id'] ?? $this->get('uf_group_id'); if (isset($this->_componentMode) && empty($this->_formValues['component_mode'])) { $this->_formValues['component_mode'] = $this->_componentMode; diff --git a/civicrm/CRM/Contact/Form/Search/Advanced.php b/civicrm/CRM/Contact/Form/Search/Advanced.php index fb00ab8809..7b9d471ef3 100644 --- a/civicrm/CRM/Contact/Form/Search/Advanced.php +++ b/civicrm/CRM/Contact/Form/Search/Advanced.php @@ -226,6 +226,10 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search { $this->set('isAdvanced', '1'); $this->setFormValues(); + if (is_numeric($_POST['id'] ?? NULL)) { + $this->_formValues['contact_id'] = (int) $_POST['id']; + } + $this->set('formValues', $this->_formValues); // get user submitted values // get it from controller only if form has been submitted, else preProcess has set this if (!empty($_POST)) { @@ -238,13 +242,7 @@ class CRM_Contact_Form_Search_Advanced extends CRM_Contact_Form_Search { } } - // set the group if group is submitted - if (!empty($this->_formValues['uf_group_id'])) { - $this->set('id', $this->_formValues['uf_group_id']); - } - else { - $this->set('id', ''); - } + $this->set('uf_group_id', $this->_formValues['uf_group_id'] ?? ''); } // retrieve ssID values only if formValues is null, i.e. form has never been posted diff --git a/civicrm/CRM/Contact/Form/Search/Builder.php b/civicrm/CRM/Contact/Form/Search/Builder.php index c65dc87d0c..a0a1e70f0f 100644 --- a/civicrm/CRM/Contact/Form/Search/Builder.php +++ b/civicrm/CRM/Contact/Form/Search/Builder.php @@ -365,14 +365,7 @@ class CRM_Contact_Form_Search_Builder extends CRM_Contact_Form_Search { // get it from controller only if form has been submitted, else preProcess has set this if (!empty($_POST)) { $this->_formValues = $this->controller->exportValues($this->_name); - - // set the group if group is submitted - if (!empty($this->_formValues['uf_group_id'])) { - $this->set('id', $this->_formValues['uf_group_id']); - } - else { - $this->set('id', ''); - } + $this->set('uf_group_id', $this->_formValues['uf_group_id'] ?? ''); } // we dont want to store the sortByCharacter in the formValue, it is more like diff --git a/civicrm/CRM/Contact/Form/Search/Criteria.php b/civicrm/CRM/Contact/Form/Search/Criteria.php index ac6b938203..b7f60d9469 100644 --- a/civicrm/CRM/Contact/Form/Search/Criteria.php +++ b/civicrm/CRM/Contact/Form/Search/Criteria.php @@ -98,8 +98,8 @@ class CRM_Contact_Form_Search_Criteria { $form->addElement('text', 'job_title', ts('Job Title'), CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Contact', 'job_title')); //added internal ID - $form->add('number', 'contact_id', ts('Contact ID'), CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Contact', 'id') + ['min' => 1]); - $form->addRule('contact_id', ts('Please enter valid Contact ID'), 'positiveInteger'); + $form->add('number', 'id', ts('Contact ID'), CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Contact', 'id') + ['min' => 1]); + $form->addRule('id', ts('Please enter valid Contact ID'), 'positiveInteger'); //added external ID $form->addElement('text', 'external_identifier', ts('External ID'), CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Contact', 'external_identifier')); diff --git a/civicrm/CRM/Contact/Form/Task/PDFTrait.php b/civicrm/CRM/Contact/Form/Task/PDFTrait.php index 521e02664f..9e8219c27d 100644 --- a/civicrm/CRM/Contact/Form/Task/PDFTrait.php +++ b/civicrm/CRM/Contact/Form/Task/PDFTrait.php @@ -151,7 +151,6 @@ trait CRM_Contact_Form_Task_PDFTrait { $form->assign('totalSelectedContacts', !is_null($form->_contactIds) ? count($form->_contactIds) : 0); $form->add('select', 'document_type', ts('Document Type'), CRM_Core_SelectValues::documentFormat()); - $documentTypes = implode(',', CRM_Core_SelectValues::documentApplicationType()); $form->addElement('file', "document_file", 'Upload Document', 'size=30 maxlength=255 accept="' . $documentTypes . '"'); $form->addUploadElement("document_file"); diff --git a/civicrm/CRM/Contact/Page/AJAX.php b/civicrm/CRM/Contact/Page/AJAX.php index 99181e9276..3c9f17e001 100644 --- a/civicrm/CRM/Contact/Page/AJAX.php +++ b/civicrm/CRM/Contact/Page/AJAX.php @@ -979,7 +979,7 @@ LIMIT {$offset}, {$rowCount} } /** - * Retrieve contact relationships. + * DELETEME only-used-by-user-dashboard */ public static function getContactRelationships() { $contactID = CRM_Utils_Type::escape($_GET['cid'], 'Integer'); diff --git a/civicrm/CRM/Contact/Page/DedupeMerge.php b/civicrm/CRM/Contact/Page/DedupeMerge.php index 559ab66764..70a7bd91aa 100644 --- a/civicrm/CRM/Contact/Page/DedupeMerge.php +++ b/civicrm/CRM/Contact/Page/DedupeMerge.php @@ -42,7 +42,7 @@ class CRM_Contact_Page_DedupeMerge extends CRM_Core_Page { $limit = CRM_Utils_Request::retrieveValue('limit', 'Positive'); $action = CRM_Utils_Request::retrieveValue('action', 'String'); $mode = CRM_Utils_Request::retrieveValue('mode', 'String', 'safe'); - $criteria = CRM_Utils_Request::retrieve('criteria', 'Json', $null, FALSE, '{}'); + $criteria = CRM_Utils_Request::retrieve('criteria', 'Json', NULL, FALSE, '{}'); $urlQry = [ 'reset' => 1, diff --git a/civicrm/CRM/Contact/Page/View/Note.php b/civicrm/CRM/Contact/Page/View/Note.php deleted file mode 100644 index 8375a27606..0000000000 --- a/civicrm/CRM/Contact/Page/View/Note.php +++ /dev/null @@ -1,311 +0,0 @@ -<?php -/* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ - */ - -/** - * - * @package CRM - * @copyright CiviCRM LLC https://civicrm.org/licensing - */ - -/** - * Main page for viewing Notes. - */ -class CRM_Contact_Page_View_Note extends CRM_Core_Page { - - /** - * Notes found running the browse function - * @var array - */ - public $values = []; - - /** - * View details of a note. - */ - public function view() { - $note = \Civi\Api4\Note::get() - ->addSelect('*', 'privacy:label') - ->addWhere('id', '=', $this->_id) - ->execute() - ->single(); - $note['privacy'] = $note['privacy:label']; - $this->assign('note', $note); - - $comments = CRM_Core_BAO_Note::getNoteTree($this->_id, 1); - $this->assign('comments', $comments); - - // add attachments part - $currentAttachmentInfo = CRM_Core_BAO_File::getEntityFile('civicrm_note', $this->_id); - $this->assign('currentAttachmentInfo', $currentAttachmentInfo); - - } - - /** - * called when action is browse. - */ - public function browse(): void { - $note = new CRM_Core_DAO_Note(); - $note->entity_table = 'civicrm_contact'; - $note->entity_id = $this->getContactID(); - - $note->orderBy('modified_date desc'); - - //CRM-4418, handling edit and delete separately. - $permissions = [$this->_permission]; - if ($this->_permission == CRM_Core_Permission::EDIT) { - //previously delete was subset of edit - //so for consistency lets grant delete also. - $permissions[] = CRM_Core_Permission::DELETE; - } - $mask = CRM_Core_Action::mask($permissions); - - $this->assign('canAddNotes', CRM_Core_Permission::check('add contact notes')); - - $links = self::links(); - $action = array_sum(array_keys($links)) & $mask; - - $note->find(); - while ($note->fetch()) { - if (!CRM_Core_BAO_Note::getNotePrivacyHidden($note)) { - CRM_Core_DAO::storeValues($note, $this->values[$note->id]); - - $this->values[$note->id]['action'] = CRM_Core_Action::formLink($links, - $action, - [ - 'id' => $note->id, - 'cid' => $this->getContactID(), - ], - ts('more'), - FALSE, - 'note.selector.row', - 'Note', - $note->id - ); - if (!empty($note->contact_id)) { - $contact = new CRM_Contact_DAO_Contact(); - $contact->id = $note->contact_id; - $contact->find(); - $contact->fetch(); - $this->values[$note->id]['createdBy'] = $contact->display_name; - } - $this->values[$note->id]['comment_count'] = CRM_Core_BAO_Note::getChildCount($note->id); - - // paper icon view for attachments part - $paperIconAttachmentInfo = CRM_Core_BAO_File::paperIconAttachment('civicrm_note', $note->id); - $this->values[$note->id]['attachment'] = $paperIconAttachmentInfo; - } - } - $this->assign('notes', $this->values); - - $commentLinks = self::commentLinks(); - - $action = array_sum(array_keys($commentLinks)) & $mask; - - $commentAction = CRM_Core_Action::formLink($commentLinks, - $action, - [ - 'id' => $note->id, - 'pid' => $note->entity_id, - 'cid' => $note->entity_id, - ], - ts('more'), - FALSE, - 'note.comment.action', - 'Note', - $note->id - ); - $this->assign('commentAction', $commentAction); - - $this->ajaxResponse['tabCount'] = CRM_Contact_BAO_Contact::getCountComponent('note', $this->getContactID()); - } - - /** - * called when action is update or new. - */ - public function edit() { - $controller = new CRM_Core_Controller_Simple('CRM_Note_Form_Note', ts('Contact Notes'), $this->_action); - $controller->setEmbedded(TRUE); - - // set the userContext stack - $session = CRM_Core_Session::singleton(); - $contactID = $this->getContactID(); - $url = CRM_Utils_System::url('civicrm/contact/view', - 'action=browse&selectedChild=note&cid=' . $contactID - ); - $session->pushUserContext($url); - - if (CRM_Utils_Request::retrieve('confirmed', 'Boolean')) { - $this->delete(); - CRM_Utils_System::redirect($url); - } - - $controller->reset(); - $controller->set('entityTable', 'civicrm_contact'); - $controller->set('entityId', $this->_contactId); - $controller->set('id', $this->_id); - - $controller->process(); - $controller->run(); - } - - public function preProcess() { - $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this); - - if ($this->_id && CRM_Core_BAO_Note::getNotePrivacyHidden($this->_id)) { - CRM_Core_Error::statusBounce(ts('You do not have access to this note.')); - } - - $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE); - $this->assign('contactId', $this->_contactId); - - // check logged in url permission - CRM_Contact_Page_View::checkUserPermission($this); - - $displayName = CRM_Contact_BAO_Contact::displayName($this->_contactId); - CRM_Utils_System::setTitle(ts('Notes for') . ' ' . $displayName); - - $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); - $this->assign('action', $this->_action); - } - - /** - * the main function that is called when the page loads, - * it decides the which action has to be taken for the page. - * - * @return null - */ - public function run() { - $this->preProcess(); - - if ($this->_action & CRM_Core_Action::VIEW) { - $this->view(); - } - elseif ($this->_action & CRM_Core_Action::ADD) { - if ( - $this->_permission != CRM_Core_Permission::EDIT && - !CRM_Core_Permission::check('add contact notes') - ) { - CRM_Core_Error::statusBounce(ts('You do not have access to add notes.')); - } - - $this->edit(); - } - elseif ($this->_action & CRM_Core_Action::UPDATE) { - if ($this->_permission != CRM_Core_Permission::EDIT) { - CRM_Core_Error::statusBounce(ts('You do not have access to edit this note.')); - } - - $this->edit(); - } - elseif ($this->_action & CRM_Core_Action::DELETE) { - if ($this->_permission != CRM_Core_Permission::EDIT) { - CRM_Core_Error::statusBounce(ts('You do not have access to delete this note.')); - } - // we use the edit screen the confirm the delete - $this->edit(); - } - - $this->browse(); - return parent::run(); - } - - /** - * Delete the note object from the db and set a status msg. - */ - public function delete() { - CRM_Core_BAO_Note::deleteRecord(['id' => $this->_id]); - $status = ts('Selected Note has been deleted successfully.'); - CRM_Core_Session::setStatus($status, ts('Deleted'), 'success'); - } - - /** - * Get action links. - * - * @return array[] - */ - public static function links() { - return [ - CRM_Core_Action::VIEW => [ - 'name' => ts('View'), - 'url' => 'civicrm/contact/view/note', - 'qs' => 'action=view&reset=1&cid=%%cid%%&id=%%id%%&selectedChild=note', - 'title' => ts('View Note'), - 'weight' => -20, - ], - CRM_Core_Action::UPDATE => [ - 'name' => ts('Edit'), - 'url' => 'civicrm/contact/view/note', - 'qs' => 'action=update&reset=1&cid=%%cid%%&id=%%id%%&selectedChild=note', - 'title' => ts('Edit Note'), - 'weight' => -10, - ], - CRM_Core_Action::ADD => [ - 'name' => ts('Comment'), - 'url' => 'civicrm/contact/view/note', - 'qs' => 'action=add&reset=1&cid=%%cid%%&parentId=%%id%%&selectedChild=note', - 'title' => ts('Add Comment'), - 'weight' => -5, - ], - CRM_Core_Action::DELETE => [ - 'name' => ts('Delete'), - 'url' => 'civicrm/contact/view/note', - 'qs' => 'action=delete&reset=1&cid=%%cid%%&id=%%id%%&selectedChild=note', - 'title' => ts('Delete Note'), - 'weight' => 100, - ], - ]; - } - - /** - * Get action links for comments. - * - * @return array[] - */ - public static function commentLinks(): array { - return [ - CRM_Core_Action::VIEW => [ - 'name' => ts('View'), - 'url' => 'civicrm/contact/view/note', - 'qs' => 'action=view&reset=1&cid=%%cid%%&id={id}&selectedChild=note', - 'title' => ts('View Comment'), - 'weight' => -20, - ], - CRM_Core_Action::UPDATE => [ - 'name' => ts('Edit'), - 'url' => 'civicrm/contact/view/note', - 'qs' => 'action=update&reset=1&cid=%%cid%%&id={id}&parentId=%%pid%%&selectedChild=note', - 'title' => ts('Edit Comment'), - 'weight' => -10, - ], - CRM_Core_Action::DELETE => [ - 'name' => ts('Delete'), - 'url' => 'civicrm/contact/view/note', - 'qs' => 'action=delete&reset=1&cid=%%cid%%&id={id}&selectedChild=note', - 'title' => ts('Delete Comment'), - 'weight' => 100, - ], - ]; - } - - /** - * Get the relevant contact ID. - * - * @api supported to be accessed from outside of core. - * - * @return int - * - * @noinspection PhpUnhandledExceptionInspection - * @noinspection PhpDocMissingThrowsInspection - */ - public function getContactID(): int { - return (int) CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE); - } - -} diff --git a/civicrm/CRM/Contact/Page/View/Relationship.php b/civicrm/CRM/Contact/Page/View/Relationship.php index f0d6e4d804..0b0bb7eb8c 100644 --- a/civicrm/CRM/Contact/Page/View/Relationship.php +++ b/civicrm/CRM/Contact/Page/View/Relationship.php @@ -139,19 +139,6 @@ class CRM_Contact_Page_View_Relationship extends CRM_Core_Page { ); } - /** - * called when action is browse. - * - */ - public function browse() { - // do nothing :) we are using datatable for rendering relationship selectors - $columnHeaders = CRM_Contact_BAO_Relationship::getColumnHeaders(); - $selector = NULL; - $contactRelationships = []; - CRM_Utils_Hook::searchColumns('relationship.columns', $columnHeaders, $contactRelationships, $selector); - $this->assign('columnHeaders', $columnHeaders); - } - /** * called when action is update or new. * @@ -215,11 +202,6 @@ class CRM_Contact_Page_View_Relationship extends CRM_Core_Page { $this->edit(); } - // if this is called from case view, suppress browse relationships form - else { - $this->browse(); - } - return parent::run(); } @@ -245,7 +227,7 @@ class CRM_Contact_Page_View_Relationship extends CRM_Core_Page { } /** - * Get action links. + * DELETEME only-used-by-user-dashboard * * @return array * (reference) of action links diff --git a/civicrm/CRM/Contact/Page/View/Summary.php b/civicrm/CRM/Contact/Page/View/Summary.php index 585bf193fc..f138745723 100644 --- a/civicrm/CRM/Contact/Page/View/Summary.php +++ b/civicrm/CRM/Contact/Page/View/Summary.php @@ -304,13 +304,6 @@ class CRM_Contact_Page_View_Summary extends CRM_Contact_Page_View { 'weight' => 70, 'icon' => 'crm-i fa-tasks', ], - [ - 'id' => 'rel', - 'title' => ts('Relationships'), - 'class' => 'livePage', - 'weight' => 80, - 'icon' => 'crm-i fa-handshake-o', - ], [ 'id' => 'group', 'title' => ts('Groups'), @@ -318,13 +311,6 @@ class CRM_Contact_Page_View_Summary extends CRM_Contact_Page_View { 'weight' => 90, 'icon' => 'crm-i fa-users', ], - [ - 'id' => 'note', - 'title' => ts('Notes'), - 'class' => 'livePage', - 'weight' => 100, - 'icon' => 'crm-i fa-sticky-note-o', - ], [ 'id' => 'tag', 'title' => ts('Tags'), diff --git a/civicrm/CRM/Contact/Page/View/UserDashBoard.php b/civicrm/CRM/Contact/Page/View/UserDashBoard.php index dcadcc71ef..5ac3aa23bc 100644 --- a/civicrm/CRM/Contact/Page/View/UserDashBoard.php +++ b/civicrm/CRM/Contact/Page/View/UserDashBoard.php @@ -19,7 +19,7 @@ * This class is used to build User Dashboard */ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page { - public $_contactId = NULL; + public $_contactId; /** * Always show public groups. @@ -34,7 +34,7 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page { * * @var array */ - public static $_links = NULL; + public static $_links; /** * @throws Exception @@ -126,7 +126,10 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page { } } - // CRM-16512 - Hide related contact table if user lacks permission to view self + // Relationship section + // FIXME - this used to share code with the contact summary "Relationships" tab + // now that tab has been switched to use SearchKit, and this ought to be switched as well; + // then remove all code commented with "DELETEME only-used-by-user-dashboard" if (!empty($dashboardOptions['Permissioned Orgs']) && CRM_Core_Permission::check('view my contact')) { $columnHeaders = CRM_Contact_BAO_Relationship::getColumnHeaders(); $contactRelationships = $selector = NULL; @@ -149,7 +152,7 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page { 'sectionTitle' => ts('Personal Campaign Pages'), 'weight' => 40, ]; - list($pcpBlock, $pcpInfo) = CRM_PCP_BAO_PCP::getPcpDashboardInfo($this->_contactId); + [$pcpBlock, $pcpInfo] = CRM_PCP_BAO_PCP::getPcpDashboardInfo((int) $this->_contactId); $this->assign('pcpBlock', $pcpBlock); $this->assign('pcpInfo', $pcpInfo); } diff --git a/civicrm/CRM/Contribute/BAO/Contribution.php b/civicrm/CRM/Contribute/BAO/Contribution.php index 928eb3a83d..cc88625bb2 100644 --- a/civicrm/CRM/Contribute/BAO/Contribution.php +++ b/civicrm/CRM/Contribute/BAO/Contribution.php @@ -1715,35 +1715,18 @@ WHERE $condition * Online Event Registration or Online Membership signup. * * @param int $componentId - * Participant/membership id. - * @param string $componentName - * Event/Membership. + * Participant id. * * @return int * pending contribution id. */ - public static function checkOnlinePendingContribution($componentId, $componentName) { + public static function checkOnlinePendingContribution($componentId) { $contributionId = NULL; - if (!$componentId || - !in_array($componentName, ['Event', 'Membership']) - ) { - return $contributionId; - } - - if ($componentName === 'Event') { - $idName = 'participant_id'; - $componentTable = 'civicrm_participant'; - $paymentTable = 'civicrm_participant_payment'; - $source = ts('Online Event Registration'); - } - - if ($componentName === 'Membership') { - $idName = 'membership_id'; - $componentTable = 'civicrm_membership'; - $paymentTable = 'civicrm_membership_payment'; - $source = ts('Online Contribution'); - } + $idName = 'participant_id'; + $componentTable = 'civicrm_participant'; + $paymentTable = 'civicrm_participant_payment'; + $source = ts('Online Event Registration'); $pendingStatusId = array_search('Pending', CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name')); $query = " diff --git a/civicrm/CRM/Contribute/BAO/ContributionRecur.php b/civicrm/CRM/Contribute/BAO/ContributionRecur.php index 23d39173ed..c2b914b43e 100644 --- a/civicrm/CRM/Contribute/BAO/ContributionRecur.php +++ b/civicrm/CRM/Contribute/BAO/ContributionRecur.php @@ -38,14 +38,16 @@ class CRM_Contribute_BAO_ContributionRecur extends CRM_Contribute_DAO_Contributi * Takes an associative array and creates a contribution object. * * the function extract all the params it needs to initialize the create a - * contribution object. the params array could contain additional unused name/value - * pairs + * contribution object. the params array could contain additional unused + * name/value pairs * * @param array $params * (reference ) an assoc array of name/value pairs. * - * @return \CRM_Contribute_BAO_ContributionRecur|\CRM_Core_Error - * @todo move hook calls / extended logic to create - requires changing calls to call create not add + * @return \CRM_Contribute_BAO_ContributionRecur + * @throws \CRM_Core_Exception + * @todo move hook calls / extended logic to create - requires changing calls + * to call create not add */ public static function add(&$params) { if (!empty($params['id'])) { @@ -59,14 +61,7 @@ class CRM_Contribute_BAO_ContributionRecur extends CRM_Contribute_DAO_Contributi // or invoice ID as an existing recurring contribution $duplicates = []; if (self::checkDuplicate($params, $duplicates)) { - $error = CRM_Core_Error::singleton(); - $d = implode(', ', $duplicates); - $error->push(CRM_Core_Error::DUPLICATE_CONTRIBUTION, - 'Fatal', - [$d], - "Found matching recurring contribution(s): $d" - ); - return $error; + throw new CRM_Core_Exception('Found matching recurring contribution(s): ' . implode(', ', $duplicates)); } $recurring = new CRM_Contribute_BAO_ContributionRecur(); diff --git a/civicrm/CRM/Contribute/BAO/ContributionSoft.php b/civicrm/CRM/Contribute/BAO/ContributionSoft.php index 5843115465..797d3dce9b 100644 --- a/civicrm/CRM/Contribute/BAO/ContributionSoft.php +++ b/civicrm/CRM/Contribute/BAO/ContributionSoft.php @@ -646,11 +646,14 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio } /** + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @inheritDoc */ - public function addSelectWhereClause(): array { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { $clauses['contribution_id'] = CRM_Utils_SQL::mergeSubquery('Contribution'); - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } diff --git a/civicrm/CRM/Contribute/Form/AbstractEditPayment.php b/civicrm/CRM/Contribute/Form/AbstractEditPayment.php index b9ff55e169..68e86322e4 100644 --- a/civicrm/CRM/Contribute/Form/AbstractEditPayment.php +++ b/civicrm/CRM/Contribute/Form/AbstractEditPayment.php @@ -136,6 +136,18 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task { */ public $_honorID = NULL; + /** + * Array of payment related fields to potentially display on this form (generally credit card or debit card fields). + * + * Note that this is not accessed in core except in a function that could use + * a local variable but both IATS & TSys access it. + * + * This is rendered via billingBlock.tpl. + * + * @var array + */ + public $_paymentFields = []; + /** * The contribution values if an existing contribution * @var array @@ -212,17 +224,6 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task { */ protected $_component; - /** - * Array of fields to display on billingBlock.tpl - this is not fully implemented but basically intent is the panes/fieldsets on this page should - * be all in this array in order like - * 'credit_card' => array('credit_card_number' ... - * 'billing_details' => array('first_name' ... - * - * such that both the fields and the order can be more easily altered by payment processors & other extensions - * @var array - */ - public $billingFieldSets = []; - /** * Monetary fields that may be submitted. * @@ -539,12 +540,18 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task { * Note that this function works based on the presence or otherwise of billing fields & can be called regardless of * whether they are 'expected' (due to assumptions about the payment processor type or the setting to collect billing * for pay later. + * + * @param int $contactID + * @param string $email + * + * @throws \CRM_Core_Exception + * @throws \Civi\API\Exception\UnauthorizedException */ - protected function processBillingAddress() { + protected function processBillingAddress(int $contactID, string $email): void { $fields = []; $fields['email-Primary'] = 1; - $this->_params['email-5'] = $this->_params['email-Primary'] = $this->_contributorEmail; + $this->_params['email-5'] = $this->_params['email-Primary'] = $email; // now set the values for the billing location. foreach (array_keys($this->_fields) as $name) { $fields[$name] = 1; @@ -553,7 +560,7 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task { $fields["address_name-{$this->_bltID}"] = 1; //ensure we don't over-write the payer's email with the member's email - if ($this->_contributorContactID == $this->_contactID) { + if ($contactID == $this->_contactID) { $fields["email-{$this->_bltID}"] = 1; } @@ -570,10 +577,10 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task { } //here we are setting up the billing contact - if different from the member they are already created // but they will get billing details assigned - $addressParams['contact_id'] = $this->_contributorContactID; + $addressParams['contact_id'] = $contactID; CRM_Contact_BAO_Contact::createProfileContact($addressParams, $fields, - $this->_contributorContactID, NULL, NULL, - CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_contributorContactID, 'contact_type') + $contactID, NULL, NULL, + CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $contactID, 'contact_type') ); } @@ -673,7 +680,7 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task { protected function assignContactEmailDetails() { if ($this->getContactID()) { - [$displayName, $this->userEmail] = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->getContactID()); + [$displayName] = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->getContactID()); if (!$displayName) { $displayName = civicrm_api3('contact', 'getvalue', ['id' => $this->getContactID(), 'return' => 'display_name']); } diff --git a/civicrm/CRM/Contribute/Form/AdditionalPayment.php b/civicrm/CRM/Contribute/Form/AdditionalPayment.php index de5821dc04..e6e6cb824c 100644 --- a/civicrm/CRM/Contribute/Form/AdditionalPayment.php +++ b/civicrm/CRM/Contribute/Form/AdditionalPayment.php @@ -314,8 +314,10 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract public function submit($submittedValues) { $this->_params = $submittedValues; $this->beginPostProcess(); + // _contributorContactID may no longer need to be set - setting it here + // was for use in processBillingAddress $this->_contributorContactID = $this->_contactID; - $this->processBillingAddress(); + $this->processBillingAddress($this->_contactID, (string) $this->_contributorEmail); $participantId = NULL; if ($this->_component === 'event') { $participantId = $this->_id; @@ -369,9 +371,7 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract // we need to retrieve email address if ($this->_context === 'standalone' && !empty($this->_params['is_email_receipt'])) { - list($displayName, - $this->userEmail - ) = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_contactId); + [$displayName] = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_contactId); $this->assign('displayName', $displayName); } diff --git a/civicrm/CRM/Contribute/Form/Contribution.php b/civicrm/CRM/Contribute/Form/Contribution.php index b35e3d1f22..8ea0d4fe32 100644 --- a/civicrm/CRM/Contribute/Form/Contribution.php +++ b/civicrm/CRM/Contribute/Form/Contribution.php @@ -17,6 +17,8 @@ use Civi\Payment\Exception\PaymentProcessorException; * This class generates form components for processing a contribution. */ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditPayment { + use CRM_Contact_Form_ContactFormTrait; + /** * The id of the contribution that we are processing. * @@ -29,12 +31,12 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP * * @var int */ - public $_premiumID = NULL; + public $_premiumID; /** * @var CRM_Contribute_DAO_ContributionProduct */ - public $_productDAO = NULL; + public $_productDAO; /** * The id of the note. @@ -54,6 +56,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP * The id of the pledge payment that we are processing. * * @var int + * @internal Only retrieve using $this->getPledgePaymentID(). */ public $_ppID; @@ -146,11 +149,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP * @var array */ public $_paymentFields = []; - /** - * Logged in user's email. - * @var string - */ - public $userEmail; /** * Price set ID. @@ -165,13 +163,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP */ public $_priceSet; - /** - * User display name - * - * @var string - */ - public $userDisplayName; - /** * Status message to be shown to the user. * @@ -229,7 +220,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP * * @throws \CRM_Core_Exception */ - public function preProcess() { + public function preProcess(): void { // Check permission for action. if (!CRM_Core_Permission::checkActionPermission('CiviContribute', $this->_action)) { CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.')); @@ -243,9 +234,8 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $this->_priceSetId = $_GET['priceSetId'] ?? NULL; $this->set('priceSetId', $this->_priceSetId); $this->assign('priceSetId', $this->_priceSetId); - - // Get the pledge payment id - $this->_ppID = CRM_Utils_Request::retrieve('ppid', 'Positive', $this); + $this->assign('taxTerm', Civi::settings()->get('tax_term')); + $this->assign('ppID', $this->getPledgePaymentID()); $this->assign('action', $this->_action); @@ -352,7 +342,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $ids = []; $pledgeParams = ['id' => $this->_pledgeID]; CRM_Pledge_BAO_Pledge::getValues($pledgeParams, $this->_pledgeValues, $ids); - $this->assign('ppID', $this->_ppID); } else { // Not making a pledge payment, so if adding a new contribution we should check if pledge payment(s) are due for this contact so we can alert the user. CRM-5206 @@ -488,7 +477,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP // For Premium section. if ($this->_premiumID) { $this->assign('showOption', FALSE); - $options = $this->_options[$this->_productDAO->product_id] ?? ""; + $options = $this->_options[$this->_productDAO->product_id] ?? ''; if (!$options) { $this->assign('showOption', TRUE); } @@ -504,7 +493,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP } } - $this->assign('email', $this->userEmail); $this->assign('is_pay_later', !empty($defaults['is_pay_later'])); $this->assign('contribution_status_id', CRM_Utils_Array::value('contribution_status_id', $defaults)); @@ -704,8 +692,8 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP //need to assign custom data type and subtype to the template $this->assign('customDataType', 'Contribution'); $this->assign('customDataSubType', $this->getFinancialTypeID()); - $this->assign('entityID', $this->_id); - + $this->assign('entityID', $this->getContributionID()); + $this->assign('email', $this->getContactValue('email_primary.email')); $contactField = $this->addEntityRef('contact_id', ts('Contributor'), ['create' => TRUE, 'api' => ['extra' => ['email']]], TRUE); if ($this->_context !== 'standalone') { $contactField->freeze(); @@ -832,7 +820,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $element = $this->add('select', 'price_set_id', ts('Choose price set'), ['' => ts('Choose price set')] + $priceSets, NULL, - ['onchange' => "buildAmount( this.value, " . json_encode($financialTypeIds) . ");", 'class' => 'crm-select2'] + ['onchange' => 'buildAmount( this.value, ' . json_encode($financialTypeIds) . ');', 'class' => 'crm-select2'] ); if ($this->_online && !($this->_action & CRM_Core_Action::UPDATE)) { $element->freeze(); @@ -878,30 +866,33 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $js = NULL; if (!$this->_mode) { - $js = ['onclick' => "return verify( );"]; + $js = ['onclick' => 'return verify( );']; } $mailingInfo = Civi::settings()->get('mailing_backend'); $this->assign('outBound_option', $mailingInfo['outBound_option']); - $this->addButtons([ + $buttons = [ [ 'type' => 'upload', 'name' => ts('Save'), 'js' => $js, 'isDefault' => TRUE, ], - [ + ]; + if (!$this->_id) { + $buttons[] = [ 'type' => 'upload', 'name' => ts('Save and New'), 'js' => $js, 'subName' => 'new', - ], - [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ], - ]); + ]; + } + $buttons[] = [ + 'type' => 'cancel', + 'name' => ts('Cancel'), + ]; + $this->addButtons($buttons); // if contribution is related to membership or participant freeze Financial Type, Amount if ($this->_id) { @@ -1099,7 +1090,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP * @throws \CRM_Core_Exception */ protected function processCreditCard($submittedValues, $lineItem, $contactID) { - $isTest = ($this->_mode == 'test') ? 1 : 0; + $isTest = ($this->_mode === 'test') ? 1 : 0; // CRM-12680 set $_lineItem if its not set // @todo - I don't believe this would ever BE set. I can't find anywhere in the code. // It would be better to pass line item out to functions than $this->_lineItem as @@ -1128,9 +1119,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $now = date('YmdHis'); - $this->_contributorEmail = $this->userEmail; - $this->_contributorContactID = $contactID; - $this->processBillingAddress(); + $this->processBillingAddress($contactID, (string) $this->getContactValue('email_primary.email')); if (!empty($params['source'])) { unset($params['source']); } @@ -1178,7 +1167,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $paymentParams['contributionPageID'] = NULL; if (!empty($this->_params['is_email_receipt'])) { - $paymentParams['email'] = $this->userEmail; + $paymentParams['email'] = $this->getContactValue('email_primary.email'); $paymentParams['is_email_receipt'] = 1; } else { @@ -1263,7 +1252,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $contribution->contribution_status_id = 1; } catch (CRM_Core_Exception $e) { - if ($e->getErrorCode() != 'contribution_completed') { + if ($e->getErrorCode() !== 'contribution_completed') { \Civi::log()->error('CRM_Contribute_Form_Contribution::processCreditCard CRM_Core_Exception: ' . $e->getMessage()); throw new CRM_Core_Exception('Failed to update contribution in database'); } @@ -1609,10 +1598,10 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP if ($this->_id) { if ($this->_compId) { - if ($this->_context == 'participant') { + if ($this->_context === 'participant') { $pId = $this->_compId; } - elseif ($this->_context == 'membership') { + elseif ($this->_context === 'membership') { $isRelatedId = TRUE; } else { @@ -1682,7 +1671,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $lineItems[$itemId]['tax_rate'] = $financialItemsId[$submittedValues['financial_type_id']]; } else { - $lineItems[$itemId]['tax_rate'] = $lineItems[$itemId]['tax_amount'] = ""; + $lineItems[$itemId]['tax_rate'] = $lineItems[$itemId]['tax_amount'] = ''; $submittedValues['tax_amount'] = 0; } if ($lineItems[$itemId]['tax_rate']) { @@ -1791,7 +1780,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP } if (!empty($formValues['is_email_receipt'])) { - $params['receipt_date'] = date("Y-m-d"); + $params['receipt_date'] = date('Y-m-d'); } if (CRM_Contribute_BAO_Contribution::isContributionStatusNegative($params['contribution_status_id']) @@ -1920,7 +1909,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP * @param int $action * @param array $lineItem */ - protected function invoicingPostProcessHook($submittedValues, $action, $lineItem) { + protected function invoicingPostProcessHook($submittedValues, $action, $lineItem): void { if (!Civi::settings()->get('invoicing')) { return; } @@ -1942,12 +1931,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP } if ($action & CRM_Core_Action::UPDATE) { - if (isset($submittedValues['tax_amount'])) { - $totalTaxAmount = $submittedValues['tax_amount']; - } - else { - $totalTaxAmount = $this->_values['tax_amount']; - } + $totalTaxAmount = $submittedValues['tax_amount'] ?? $this->_values['tax_amount']; $this->assign('totalTaxAmount', $totalTaxAmount); $this->assign('dataArray', $taxRate); } @@ -1956,7 +1940,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $this->assign('totalTaxAmount', $submittedValues['tax_amount']); $this->assign('getTaxDetails', $getTaxDetails); $this->assign('dataArray', $taxRate); - $this->assign('taxTerm', Civi::settings()->get('tax_term')); } else { $this->assign('totalTaxAmount', CRM_Utils_Array::value('tax_amount', $submittedValues)); @@ -2050,7 +2033,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP public function setUserContext(): void { $session = CRM_Core_Session::singleton(); $buttonName = $this->controller->getButtonName(); - if ($this->_context == 'standalone') { + if ($this->_context === 'standalone') { if ($buttonName == $this->getButtonName('upload', 'new')) { $session->replaceUserContext(CRM_Utils_System::url('civicrm/contribute/add', 'reset=1&action=add&context=standalone' @@ -2062,7 +2045,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP )); } } - elseif ($this->_context == 'contribution' && $this->_mode && $buttonName == $this->getButtonName('upload', 'new')) { + elseif ($this->_context === 'contribution' && $this->_mode && $buttonName == $this->getButtonName('upload', 'new')) { $session->replaceUserContext(CRM_Utils_System::url('civicrm/contact/view/contribution', "reset=1&action=add&context={$this->_context}&cid={$this->_contactID}&mode={$this->_mode}" )); @@ -2213,4 +2196,31 @@ WHERE contribution_id = {$id} } } + /** + * Get the contact ID in use. + * + * Ideally override this as appropriate to the form. + * + * @noinspection PhpUnhandledExceptionInspection + * @noinspection PhpDocSignatureIsNotCompleteInspection + */ + public function getContactID(): ?int { + if ($this->_contactID === NULL) { + $this->_contactID = CRM_Utils_Request::retrieve('cid', 'Positive', $this); + if (empty($this->_contactID) && !empty($this->_id) && $this->entity) { + $this->_contactID = civicrm_api3($this->entity, 'getvalue', ['id' => $this->_id, 'return' => 'contact_id']); + } + } + return $this->_contactID ? (int) $this->_contactID : NULL; + } + + /** + * @return int|null + * @throws \CRM_Core_Exception + */ + public function getPledgePaymentID(): ?int { + $this->_ppID = CRM_Utils_Request::retrieve('ppid', 'Positive', $this) ?: FALSE; + return $this->_ppID ? (int) $this->_ppID : NULL; + } + } diff --git a/civicrm/CRM/Contribute/Form/Contribution/Confirm.php b/civicrm/CRM/Contribute/Form/Contribution/Confirm.php index e43d107f1c..0da5a223ce 100644 --- a/civicrm/CRM/Contribute/Form/Contribution/Confirm.php +++ b/civicrm/CRM/Contribute/Form/Contribution/Confirm.php @@ -1217,19 +1217,6 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr $campaignId = $params['campaign_id'] ?? $form->_values['campaign_id'] ?? NULL; $recurParams['campaign_id'] = $campaignId; $recurring = CRM_Contribute_BAO_ContributionRecur::add($recurParams); - if (is_a($recurring, 'CRM_Core_Error')) { - CRM_Core_Error::displaySessionError($recurring); - $urlString = 'civicrm/contribute/transact'; - $urlParams = '_qf_Main_display=true'; - if (get_class($form) == 'CRM_Contribute_Form_Contribution') { - $urlString = 'civicrm/contact/view/contribution'; - $urlParams = "action=add&cid={$form->_contactID}"; - if ($form->_mode) { - $urlParams .= "&mode={$form->_mode}"; - } - } - CRM_Utils_System::redirect(CRM_Utils_System::url($urlString, $urlParams)); - } $form->_params['contributionRecurID'] = $recurring->id; return $recurring->id; @@ -1594,15 +1581,6 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr $pending = $membershipContribution->contribution_status_id == CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Pending'); } else { - // The concept of contributeMode is deprecated. - // the is_monetary concept probably should be too as it can be calculated from - // the existence of 'amount' & seems fragile. - if (((isset($this->_contributeMode)) || !empty($this->_params['is_pay_later']) - ) && - (($this->_values['is_monetary'] && $this->_amount > 0.0)) - ) { - $pending = TRUE; - } $pending = FALSE; } diff --git a/civicrm/CRM/Contribute/Form/Contribution/Main.php b/civicrm/CRM/Contribute/Form/Contribution/Main.php index 38f9126f70..e05211d3f5 100644 --- a/civicrm/CRM/Contribute/Form/Contribution/Main.php +++ b/civicrm/CRM/Contribute/Form/Contribution/Main.php @@ -254,7 +254,11 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu //set custom field defaults foreach ($this->_fields as $name => $field) { if ($customFieldID = CRM_Core_BAO_CustomField::getKeyID($name)) { - if (!isset($this->_defaults[$name])) { + // check if the custom field is on a membership, we only want to load + // defaults for membership custom fields here, not contact fields + if (!isset($this->_defaults[$name]) + && !CRM_Core_BAO_CustomGroup::checkCustomField($customFieldID, ['Membership']) + ) { CRM_Core_BAO_CustomField::setProfileDefaults($customFieldID, $name, $this->_defaults, $entityId, CRM_Profile_Form::MODE_REGISTER ); @@ -321,10 +325,9 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu $this->addPaymentProcessorFieldsToForm(); $this->assign('is_pay_later', $this->getCurrentPaymentProcessor() === 0 && $this->_values['is_pay_later']); $this->assign('pay_later_text', $this->getCurrentPaymentProcessor() === 0 ? $this->getPayLaterLabel() : NULL); - + $this->assign('nocid', $contactID === 0); if ($contactID === 0) { $this->addCidZeroOptions(); - } //build pledge block. diff --git a/civicrm/CRM/Contribute/Form/ContributionBase.php b/civicrm/CRM/Contribute/Form/ContributionBase.php index b1972d0060..95ff6b6a4d 100644 --- a/civicrm/CRM/Contribute/Form/ContributionBase.php +++ b/civicrm/CRM/Contribute/Form/ContributionBase.php @@ -359,7 +359,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { CRM_Core_Error::deprecatedFunctionWarning('forms require a price set ID'); } $this->_priceSet = $this->get('priceSet'); - + $this->assign('quickConfig', $this->isQuickConfig()); if (!$this->_values) { // get all the values from the dao object $this->_values = []; @@ -410,7 +410,6 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { )); $this->assignPaymentProcessor($isPayLater); - $this->assign('quickConfig', $this->isQuickConfig()); // get price info // CRM-5095 $this->initSet($this); @@ -544,13 +543,9 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { if ($priceSetId) { if ($form->_action & CRM_Core_Action::UPDATE) { $form->_values['line_items'] = CRM_Price_BAO_LineItem::getLineItems($form->_id, 'contribution'); - $required = FALSE; - } - else { - $required = TRUE; } - $priceSet = CRM_Price_BAO_PriceSet::getSetDetail($priceSetId, $required); + $priceSet = CRM_Price_BAO_PriceSet::getSetDetail($priceSetId); $form->_priceSet = $priceSet[$priceSetId] ?? NULL; $form->_values['fee'] = $form->_priceSet['fields'] ?? NULL; $form->set('priceSet', $form->_priceSet); diff --git a/civicrm/CRM/Contribute/Form/ContributionPage.php b/civicrm/CRM/Contribute/Form/ContributionPage.php index f09086dfd0..28a383d00f 100644 --- a/civicrm/CRM/Contribute/Form/ContributionPage.php +++ b/civicrm/CRM/Contribute/Form/ContributionPage.php @@ -34,13 +34,6 @@ class CRM_Contribute_Form_ContributionPage extends CRM_Core_Form { */ protected $_pledgeBlockID; - /** - * Are we in single form mode or wizard mode? - * - * @var bool - */ - protected $_single; - /** * Is this the first page? * @@ -48,13 +41,6 @@ class CRM_Contribute_Form_ContributionPage extends CRM_Core_Form { */ protected $_first = FALSE; - /** - * Is this the last page? - * - * @var bool - */ - protected $_last = FALSE; - /** * Store price set id. * @@ -97,10 +83,6 @@ class CRM_Contribute_Form_ContributionPage extends CRM_Core_Form { // setting title and 3rd level breadcrumb for html page if contrib page exists if ($this->_id) { $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'title'); - - if ($this->_action == CRM_Core_Action::UPDATE) { - $this->_single = TRUE; - } } // CRM-16776 - show edit/copy/create buttons on Profiles Tab if user has required permission. @@ -166,57 +148,18 @@ class CRM_Contribute_Form_ContributionPage extends CRM_Core_Form { $this->addElement('hidden', 'cancelURL', $this->_cancelURL); } - if ($this->_single) { - $buttons = [ - [ - 'type' => 'next', - 'name' => ts('Save'), - 'spacing' => ' ', - 'isDefault' => TRUE, - ], - [ - 'type' => 'upload', - 'name' => ts('Save and Done'), - 'spacing' => ' ', - 'subName' => 'done', - ], - ]; - if (!$this->_last) { - $buttons[] = [ - 'type' => 'submit', - 'name' => ts('Save and Next'), - 'spacing' => ' ', - 'subName' => 'savenext', - ]; - } - $buttons[] = [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ]; - $this->addButtons($buttons); - } - else { - $buttons = []; - if (!$this->_first) { - $buttons[] = [ - 'type' => 'back', - 'name' => ts('Previous'), - 'spacing' => ' ', - ]; - } - $buttons[] = [ + $buttons = [ + [ 'type' => 'next', - 'name' => ts('Continue'), - 'spacing' => ' ', + 'name' => ts('Save'), 'isDefault' => TRUE, - ]; - $buttons[] = [ + ], + [ 'type' => 'cancel', 'name' => ts('Cancel'), - ]; - - $this->addButtons($buttons); - } + ], + ]; + $this->addButtons($buttons); $session->replaceUserContext($this->_cancelURL); diff --git a/civicrm/CRM/Contribute/Form/ContributionPage/Settings.php b/civicrm/CRM/Contribute/Form/ContributionPage/Settings.php index ebf7b9cc78..c91b6e9ec6 100644 --- a/civicrm/CRM/Contribute/Form/ContributionPage/Settings.php +++ b/civicrm/CRM/Contribute/Form/ContributionPage/Settings.php @@ -389,15 +389,6 @@ class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_ if ($this->_action & CRM_Core_Action::ADD) { $url = 'civicrm/admin/contribute/amount'; $urlParams = "action=update&reset=1&id={$dao->id}"; - // special case for 'Save and Done' consistency. - if ($this->controller->getButtonName('submit') == '_qf_Amount_upload_done') { - $url = 'civicrm/admin/contribute'; - $urlParams = 'reset=1'; - CRM_Core_Session::setStatus(ts("'%1' information has been saved.", - [1 => $this->getTitle()] - ), ts('Saved'), 'success'); - } - CRM_Utils_System::redirect(CRM_Utils_System::url($url, $urlParams)); } parent::endPostProcess(); diff --git a/civicrm/CRM/Contribute/Page/Tab.php b/civicrm/CRM/Contribute/Page/Tab.php index 641bb6ee4f..b9ed69a9ba 100644 --- a/civicrm/CRM/Contribute/Page/Tab.php +++ b/civicrm/CRM/Contribute/Page/Tab.php @@ -428,7 +428,7 @@ class CRM_Contribute_Page_Tab extends CRM_Core_Page { $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this); - if ($context == 'standalone') { + if ($context === 'standalone') { $this->_action = CRM_Core_Action::ADD; } else { @@ -439,11 +439,11 @@ class CRM_Contribute_Page_Tab extends CRM_Core_Page { 'return' => 'contact_id', ]); } - $this->assign('contactId', $this->_contactId); // check logged in url permission CRM_Contact_Page_View::checkUserPermission($this); } + $this->assign('contactId', $this->_contactId); $this->assign('action', $this->_action); if ($this->_permission == CRM_Core_Permission::EDIT && !CRM_Core_Permission::check('edit contributions')) { diff --git a/civicrm/CRM/Contribute/WorkflowMessage/ContributionTrait.php b/civicrm/CRM/Contribute/WorkflowMessage/ContributionTrait.php index 81e32f49b4..b7baed4edb 100644 --- a/civicrm/CRM/Contribute/WorkflowMessage/ContributionTrait.php +++ b/civicrm/CRM/Contribute/WorkflowMessage/ContributionTrait.php @@ -30,6 +30,18 @@ trait CRM_Contribute_WorkflowMessage_ContributionTrait { */ public $isShowTax; + /** + * Is it a good idea to show the line item subtotal. + * + * This would be true if at least one line has a quantity > 1. + * Otherwise it is very repetitive. + * + * @var bool + * + * @scope tplParams + */ + public $isShowLineSubtotal; + /** * Line items associated with the contribution. * @@ -109,6 +121,25 @@ trait CRM_Contribute_WorkflowMessage_ContributionTrait { return FALSE; } return !$this->order->getPriceSetMetadata()['is_quick_config']; + return $this->isShowLineItems; + } + + /** + * Is it a good idea to show the line item subtotal. + * + * This would be true if at least one line has a quantity > 1. + * Otherwise it is very repetitive. + * + * @return bool + * @throws \CRM_Core_Exception + */ + public function getIsShowLineSubtotal(): bool { + foreach ($this->getLineItems() as $lineItem) { + if ((int) $lineItem['qty'] > 1) { + return TRUE; + } + } + return FALSE; } /** diff --git a/civicrm/CRM/Core/Action.php b/civicrm/CRM/Core/Action.php index faa335682f..eed5724a99 100644 --- a/civicrm/CRM/Core/Action.php +++ b/civicrm/CRM/Core/Action.php @@ -20,12 +20,11 @@ class CRM_Core_Action { /** - * Different possible actions are defined here. Keep in sync with the - * constant from CRM_Core_Form for various modes. + * Different possible actions are defined here. * * @var int */ - const + public const NONE = 0, ADD = 1, UPDATE = 2, diff --git a/civicrm/CRM/Core/BAO/CMSUser.php b/civicrm/CRM/Core/BAO/CMSUser.php index e43a7b4998..c5f01e496a 100644 --- a/civicrm/CRM/Core/BAO/CMSUser.php +++ b/civicrm/CRM/Core/BAO/CMSUser.php @@ -40,9 +40,12 @@ class CRM_Core_BAO_CMSUser { $ufID = $config->userSystem->createUser($params, $mailParam); - //if contact doesn't already exist create UF Match - if ($ufID !== FALSE && - isset($params['contactID']) + // Create UF Match if we have contactID unless we're Standalone + // since in Standalone uf_match is the same table as User. + if ( + CIVICRM_UF !== 'Standalone' + && $ufID !== FALSE + && isset($params['contactID']) ) { // create the UF Match record $ufmatch['uf_id'] = $ufID; diff --git a/civicrm/CRM/Core/BAO/CustomField.php b/civicrm/CRM/Core/BAO/CustomField.php index c40de2cb86..619dbdb042 100644 --- a/civicrm/CRM/Core/BAO/CustomField.php +++ b/civicrm/CRM/Core/BAO/CustomField.php @@ -286,45 +286,23 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { } /** - * @param string $context + * @param string|null $context * @return array|bool */ - public function getOptions($context = NULL) { - CRM_Core_DAO::buildOptionsContext($context); + public function getOptions(?string $context = NULL) { if (!$this->id) { return FALSE; } - $cacheKey = "CRM_Core_BAO_CustomField_getOptions_{$this->id}_$context"; - $cache = CRM_Utils_Cache::singleton(); - $options = $cache->get($cacheKey); - if (!isset($options)) { - if (!$this->data_type || !$this->custom_group_id) { - $this->find(TRUE); - } - - // This will hold the list of options in format key => label - $options = []; - - if (!empty($this->option_group_id)) { - $options = CRM_Core_OptionGroup::valuesByID( - $this->option_group_id, FALSE, FALSE, FALSE, $context == 'validate' ? 'name' : 'label', !($context == 'validate' || $context == 'get') - ); - } - elseif ($this->data_type === 'StateProvince') { - $options = CRM_Core_PseudoConstant::stateProvince(); - } - elseif ($this->data_type === 'Country') { - $options = $context == 'validate' ? CRM_Core_PseudoConstant::countryIsoCode() : CRM_Core_PseudoConstant::country(); - } - elseif ($this->data_type === 'Boolean') { - $options = $context == 'validate' ? [0, 1] : CRM_Core_SelectValues::boolean(); - } - CRM_Utils_Hook::customFieldOptions($this->id, $options, FALSE); - CRM_Utils_Hook::fieldOptions($this->getEntity(), "custom_{$this->id}", $options, ['context' => $context]); - $cache->set($cacheKey, $options); + if (!$this->data_type || !$this->custom_group_id) { + $this->find(TRUE); } - return $options; + $id = (int) $this->id; + $dataType = $this->data_type; + $optionGroupID = $this->option_group_id ? (int) $this->option_group_id : NULL; + $entity = $this->getEntity(); + + return self::getFieldOptions($id, $optionGroupID, $dataType, $entity, $context); } /** @@ -637,6 +615,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { ->addSelect('custom_group_id.extends_entity_column_value') ->addSelect('custom_group_id.is_active') ->addSelect('custom_group_id.name') + ->addSelect('custom_group_id.title') ->addSelect('custom_group_id.table_name') ->addSelect('custom_group_id.is_public'); if ($permissionType && !CRM_Core_Permission::customGroupAdmin()) { @@ -810,6 +789,87 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { return $field; } + /** + * Use the cache to get all values of a specific custom field. + * + * @param int $id + * The custom field ID. + * @param int|false $permissionType + * + * @return array + * The field object. + * @throws CRM_Core_Exception + */ + public static function getField(int $id, $permissionType = FALSE): array { + $field = self::getAllCustomFields($permissionType)[$id]; + // @todo - on the fence about caching these in the cache for all custom fields. The down side is the + // cache array could get really big & serializing & un-serializing big arrays is expensive. + $entity = in_array($field['custom_group_id.extends'], CRM_Contact_BAO_ContactType::basicTypes(TRUE), TRUE) ? 'Contact' : $field['custom_group_id.extends']; + $field['options'] = self::getFieldOptions($field['id'], $field['option_group_id'], $field['data_type'], $entity); + return $field; + } + + /** + * Gets an array of custom fields that are public. + * + * @internal do not use from untested or external code - signature may change. + * + * This takes into account + * - the is_public setting on the Custom Group + * - the is_view permission on the field (these are generally suppressed). + * + * @param string $extends + * @param array $extendsEntity + * Keyed by name values from CRM_Core_BAO_CustomGroup::getExtendsEntityColumnIdOptions() + * Values can be an int or an array. + * eg ['ParticipantRole' = [1], 'ParticipantEventType' => 2], ['ParticipantEventName' => 3] + * @param int $permissionType + * + * @return array + * @throws \CRM_Core_Exception + */ + public static function getViewableCustomFields(string $extends, array $extendsEntity = [], $permissionType = CRM_Core_Permission::VIEW): array { + $entityFilters = []; + // Convert from ['ParticipantRole' = [1], 'ParticipantEventType' => 2], ['ParticipantEventName' => 3] + // to [1 => [1], 2 => [2], 3 = [3] + if (!empty($extendsEntity)) { + $entityColumns = CRM_Core_BAO_CustomGroup::getExtendsEntityColumnIdOptions(); + foreach ($entityColumns as $entityColumn) { + if (isset($extendsEntity[$entityColumn['name']])) { + $entityFilters[(int) $entityColumn['id']] = (array) $extendsEntity[$entityColumn['name']]; + foreach ($entityFilters[$entityColumn['id']] as &$value) { + // Cast to string because we don't want the calling function to have to worry + // but also the array intersect fails otherwise. + $value = (string) $value; + } + } + } + } + $cacheKey = $extends . $permissionType . CRM_Core_Config::domainID() . '_' . CRM_Core_I18n::getLocale() . substr(md5(json_encode($extendsEntity)), 0, 30); + if (!isset(\Civi::$statics[__CLASS__][__FUNCTION__][$cacheKey])) { + \Civi::$statics[__CLASS__][__FUNCTION__][$cacheKey] = []; + $allFields = CRM_Core_BAO_CustomField::getAllCustomFields($permissionType); + foreach ($allFields as $field) { + $entityValueMatches = array_intersect((array) $field['custom_group_id.extends_entity_column_value'], ($entityFilters[$field['custom_group_id.extends_entity_column_id']] ?? [])); + if ( + !$field['is_view'] + && $field['custom_group_id.is_public'] + && ( + !empty($entityValueMatches) + || empty($field['custom_group_id.extends_entity_column_id']) + ) + && ( + $field['custom_group_id.extends'] === $extends + || ($field['custom_group_id.extends'] === 'Contact' && in_array($extends, ['Individual', 'Organization', 'Household'])) + ) + ) { + \Civi::$statics[__CLASS__][__FUNCTION__][$cacheKey][(int) $field['id']] = $field; + } + } + } + return \Civi::$statics[__CLASS__][__FUNCTION__][$cacheKey]; + } + /** * Add a custom field to an existing form. * @@ -1166,31 +1226,24 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { /** * @param string|int|array|null $value - * @param CRM_Core_BAO_CustomField|int|array|string $field - * @param int $entityId + * @param int $fieldID + * @param ?int $entityID + * Entity ID is used a a proxy for context + * - In the context of displaying a profile, show file/image + * - In other contexts show a paperclip icon. * * @return string - * - * @throws \CRM_Core_Exception + * @throws \CRM_Core_Exception|\Brick\Money\Exception\UnknownCurrencyException */ - public static function displayValue($value, $field, $entityId = NULL) { - $field = is_array($field) ? $field['id'] : $field; - $fieldId = is_object($field) ? $field->id : (int) str_replace('custom_', '', $field); - - if (!$fieldId) { - throw new CRM_Core_Exception('CRM_Core_BAO_CustomField::displayValue requires a field id'); - } - - if (!is_a($field, 'CRM_Core_BAO_CustomField')) { - $field = self::getFieldObject($fieldId); + public static function displayValue($value, $fieldID, $entityID = NULL) { + if (!is_numeric($fieldID)) { + // Deprecated support for a non-id value. + $fieldID = is_object($fieldID) ? $fieldID->id : (int) str_replace('custom_', '', $fieldID); } - - $fieldInfo = ['options' => $field->getOptions()] + (array) $field; - - $displayValue = self::formatDisplayValue($value, $fieldInfo, $entityId); - + $fieldInfo = self::getField($fieldID); + $displayValue = self::formatDisplayValue($value, $fieldInfo, $entityID); // Call hook to alter display value. - CRM_Utils_Hook::alterCustomFieldDisplayValue($displayValue, $value, $entityId, $fieldInfo); + CRM_Utils_Hook::alterCustomFieldDisplayValue($displayValue, $value, $entityID, $fieldInfo); return $displayValue; } @@ -2043,8 +2096,12 @@ WHERE id IN ( %1, %2 ) $add->custom_group_id = $newGroup->id; self::createField($add, 'add'); + // IS NOT NULL needed here to prevent NULL values from being inserted when a field is moving from one entity type to another. + // It will pass _moveFieldValidate if all values are NULL, + // but will break things to try to insert NULL values for entity ids that make no sense for the new entity type. $sql = "INSERT INTO {$newGroup->table_name} (entity_id, `{$field->column_name}`) SELECT entity_id, `{$field->column_name}` FROM {$oldGroup->table_name} + WHERE `{$field->column_name}` IS NOT NULL ON DUPLICATE KEY UPDATE `{$field->column_name}` = {$oldGroup->table_name}.`{$field->column_name}` "; CRM_Core_DAO::executeQuery($sql); @@ -2911,4 +2968,44 @@ WHERE cf.id = %1 AND cg.is_multiple = 1"; return $params; } + /** + * @param int $id + * @param int|null $optionGroupID + * @param string $dataType + * @param string $entity + * @param string|null $context + * + * @return array|int[]|mixed|null + * @throws \CRM_Core_Exception + */ + private static function getFieldOptions(int $id, ?int $optionGroupID, string $dataType, string $entity, ?string $context = NULL): array { + CRM_Core_DAO::buildOptionsContext($context); + $cacheKey = "CRM_Core_BAO_CustomField_getOptions_{$id}_$context"; + $cache = CRM_Utils_Cache::singleton(); + $options = $cache->get($cacheKey); + if (!isset($options)) { + // This will hold the list of options in format key => label + $options = []; + + if ($optionGroupID) { + $options = CRM_Core_OptionGroup::valuesByID( + $optionGroupID, FALSE, FALSE, FALSE, $context === 'validate' ? 'name' : 'label', !($context === 'validate' || $context === 'get') + ); + } + elseif ($dataType === 'StateProvince') { + $options = CRM_Core_PseudoConstant::stateProvince(); + } + elseif ($dataType === 'Country') { + $options = $context === 'validate' ? CRM_Core_PseudoConstant::countryIsoCode() : CRM_Core_PseudoConstant::country(); + } + elseif ($dataType === 'Boolean') { + $options = $context === 'validate' ? [0, 1] : CRM_Core_SelectValues::boolean(); + } + CRM_Utils_Hook::customFieldOptions($id, $options); + CRM_Utils_Hook::fieldOptions($entity, "custom_{$id}", $options, ['context' => $context]); + $cache->set($cacheKey, $options); + } + return $options; + } + } diff --git a/civicrm/CRM/Core/BAO/CustomGroup.php b/civicrm/CRM/Core/BAO/CustomGroup.php index 44973b7ace..69acff7378 100644 --- a/civicrm/CRM/Core/BAO/CustomGroup.php +++ b/civicrm/CRM/Core/BAO/CustomGroup.php @@ -550,6 +550,7 @@ ORDER BY civicrm_custom_group.weight, $cacheString .= "_Inline"; } + $multipleFieldGroups = []; $cacheKey = "CRM_Core_DAO_CustomGroup_Query " . md5($cacheString); $multipleFieldGroupCacheKey = "CRM_Core_DAO_CustomGroup_QueryMultipleFields " . md5($cacheString); $cache = CRM_Utils_Cache::singleton(); @@ -2062,7 +2063,7 @@ SELECT civicrm_custom_group.id as groupID, civicrm_custom_group.title as groupT * @param array $params * @return array */ - public static function getExtendsEntityColumnValueOptions($context, $params) { + public static function getExtendsEntityColumnValueOptions($context, $params): array { $props = $params['values'] ?? []; // Requesting this option list only makes sense if the value of 'extends' is known or can be looked up if (!empty($props['id']) || !empty($props['name']) || !empty($props['extends']) || !empty($props['extends_entity_column_id'])) { @@ -2398,18 +2399,51 @@ SELECT civicrm_custom_group.id as groupID, civicrm_custom_group.title as groupT return in_array($groupId, $allowedGroups); } + /** + * Given the name of a custom group, gets the name of the API entity the group extends. + * + * Sort of the inverse of this function: + * @see \Civi\Api4\Utils\CoreUtil::getCustomGroupExtends + * + * @param string $groupName + * @return string + * @throws \CRM_Core_Exception + */ + public static function getEntityForGroup(string $groupName): string { + $extends = \CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $groupName, 'extends', 'name'); + if (!$extends) { + throw new \CRM_Core_Exception("Custom group $groupName not found"); + } + return self::getEntityFromExtends($extends); + } + + /** + * Translate CustomGroup.extends to entity name. + * + * CustomGroup.extends pretty much maps 1-1 with entity names, except for Individual, Organization & Household. + * @param string $extends + * @return string + * @see self::getCustomGroupExtendsOptions + */ + public static function getEntityFromExtends(string $extends): string { + if ($extends === 'Contact' || in_array($extends, \CRM_Contact_BAO_ContactType::basicTypes(TRUE))) { + return 'Contact'; + } + return $extends; + } + /** * List all possible values for `CustomGroup.extends`. * - * This includes the fake entities "Individual", "Organization", "Household" - * but not the extra options from `custom_data_type` used on the form ("ParticipantStatus", etc). + * This includes the pseudo-entities "Individual", "Organization", "Household". * * Returns a mix of hard-coded array and `cg_extend_objects` OptionValues. - * The 'id' return key maps to the 'value' in `cg_extend_objects`. - * The 'grouping' key refers to the entity field used to select a sub-type. - * The 'table_name' key is for internal use (is not returned by getFields.loadOptions), and - * maps to the 'name' in `cg_extend_objects`. We don't return it as the 'name' in getFields because - * it is not always unique (since contact types are pseudo-entities in this list). + * - 'id' return key (maps to `cg_extend_objects.value`). + * - 'grouping' key refers to the entity field used to select a sub-type. + * - 'is_multiple' (@internal, not returned by getFields.loadOptions) (maps to `cg_extend_objects.filter`) + * controls whether the entity supports multi-record custom groups. + * - 'table_name' (@internal, not returned by getFields.loadOptions) (maps to `cg_extend_objects.name`). + * We don't return it as the 'name' in getFields because it is not always unique (since contact types are pseudo-entities). * * @return array{id: string, label: string, grouping: string, table_name: string}[] */ @@ -2420,81 +2454,100 @@ SELECT civicrm_custom_group.id as groupID, civicrm_custom_group.title as groupT 'label' => ts('Activities'), 'grouping' => 'activity_type_id', 'table_name' => 'civicrm_activity', + 'is_multiple' => FALSE, ], [ 'id' => 'Relationship', 'label' => ts('Relationships'), 'grouping' => 'relationship_type_id', 'table_name' => 'civicrm_relationship', + 'is_multiple' => FALSE, ], + // TODO: Move to civi_contribute extension (example: OptionValue_cg_extends_objects_grant.mgd.php) [ 'id' => 'Contribution', 'label' => ts('Contributions'), 'grouping' => 'financial_type_id', 'table_name' => 'civicrm_contribution', + 'is_multiple' => FALSE, ], [ 'id' => 'ContributionRecur', 'label' => ts('Recurring Contributions'), 'grouping' => NULL, 'table_name' => 'civicrm_contribution_recur', + 'is_multiple' => FALSE, ], [ 'id' => 'Group', 'label' => ts('Groups'), 'grouping' => NULL, 'table_name' => 'civicrm_group', + 'is_multiple' => FALSE, ], + // TODO: Move to civi_member extension (example: OptionValue_cg_extends_objects_grant.mgd.php) [ 'id' => 'Membership', 'label' => ts('Memberships'), 'grouping' => 'membership_type_id', 'table_name' => 'civicrm_membership', + 'is_multiple' => FALSE, ], + // TODO: Move to civi_event extension (example: OptionValue_cg_extends_objects_grant.mgd.php) [ 'id' => 'Event', 'label' => ts('Events'), 'grouping' => 'event_type_id', 'table_name' => 'civicrm_event', + 'is_multiple' => FALSE, ], [ 'id' => 'Participant', 'label' => ts('Participants'), 'grouping' => NULL, 'table_name' => 'civicrm_participant', + 'is_multiple' => FALSE, ], + // TODO: Move to civi_pledge extension (example: OptionValue_cg_extends_objects_grant.mgd.php) [ 'id' => 'Pledge', 'label' => ts('Pledges'), 'grouping' => NULL, 'table_name' => 'civicrm_pledge', + 'is_multiple' => FALSE, ], [ 'id' => 'Address', 'label' => ts('Addresses'), 'grouping' => NULL, 'table_name' => 'civicrm_address', + 'is_multiple' => FALSE, ], + // TODO: Move to civi_campaign extension (example: OptionValue_cg_extends_objects_grant.mgd.php) [ 'id' => 'Campaign', 'label' => ts('Campaigns'), 'grouping' => 'campaign_type_id', 'table_name' => 'civicrm_campaign', + 'is_multiple' => FALSE, ], [ 'id' => 'Contact', 'label' => ts('Contacts'), 'grouping' => NULL, 'table_name' => 'civicrm_contact', + 'is_multiple' => TRUE, ], ]; // `CustomGroup.extends` stores contact type as if it were an entity. - foreach (CRM_Contact_BAO_ContactType::basicTypePairs(TRUE) as $contactType => $contactTypeLabel) { + foreach (CRM_Contact_BAO_ContactType::basicTypeInfo(TRUE) as $contactType => $contactInfo) { $options[] = [ 'id' => $contactType, - 'label' => $contactTypeLabel, + 'label' => $contactInfo['label'], 'grouping' => 'contact_sub_type', 'table_name' => 'civicrm_contact', + 'is_multiple' => TRUE, + 'icon' => $contactInfo['icon'], ]; } $ogId = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', 'cg_extend_objects', 'id', 'name'); @@ -2505,8 +2558,12 @@ SELECT civicrm_custom_group.id as groupID, civicrm_custom_group.title as groupT 'label' => $ogValue['label'], 'grouping' => $ogValue['grouping'] ?? NULL, 'table_name' => $ogValue['name'], + 'is_multiple' => !empty($ogValue['filter']), ]; } + foreach ($options as &$option) { + $option['icon'] = $option['icon'] ?? \Civi\Api4\Utils\CoreUtil::getInfoItem($option['id'], 'icon'); + } return $options; } diff --git a/civicrm/CRM/Core/BAO/CustomValue.php b/civicrm/CRM/Core/BAO/CustomValue.php index 88024d0b86..485b231cc4 100644 --- a/civicrm/CRM/Core/BAO/CustomValue.php +++ b/civicrm/CRM/Core/BAO/CustomValue.php @@ -211,14 +211,21 @@ class CRM_Core_BAO_CustomValue extends CRM_Core_DAO { } /** - * ACL clause for an APIv4 custom pseudo-entity (aka multi-record custom group extending Contact). + * ACL clause for an APIv4 custom pseudo-entity (aka multi-record custom group). + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @return array */ - public function addSelectWhereClause() { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { + // Some legacy code omits $entityName, in which case fall-back on 'Contact' which until 2023 + // was the only type of entity that could be extended by multi-record custom groups. + $groupName = \Civi\Api4\Utils\CoreUtil::getCustomGroupName((string) $entityName); + $joinEntity = $groupName ? CRM_Core_BAO_CustomGroup::getEntityForGroup($groupName) : 'Contact'; $clauses = [ - 'entity_id' => CRM_Utils_SQL::mergeSubquery('Contact'), + 'entity_id' => CRM_Utils_SQL::mergeSubquery($joinEntity), ]; - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($entityName ?? $this, $clauses); return $clauses; } @@ -226,7 +233,7 @@ class CRM_Core_BAO_CustomValue extends CRM_Core_DAO { * Special checkAccess function for multi-record custom pseudo-entities * * @param string $entityName - * Ex: 'Contact' or 'Custom_Foobar' + * APIv4-style entity name e.g. 'Custom_Foobar' * @param string $action * @param array $record * @param int $userID @@ -237,8 +244,9 @@ class CRM_Core_BAO_CustomValue extends CRM_Core_DAO { public static function _checkAccess(string $entityName, string $action, array $record, int $userID): ?bool { // This check implements two rules: you must have access to the specific custom-data-group - and to the underlying record (e.g. Contact). - $groupName = substr($entityName, 0, 7) === 'Custom_' ? substr($entityName, 7) : NULL; - $extends = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $groupName, 'extends', 'name'); + // Expecting APIv4-style entity name + $groupName = \Civi\Api4\Utils\CoreUtil::getCustomGroupName($entityName); + $extends = \CRM_Core_BAO_CustomGroup::getEntityForGroup($groupName); $id = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $groupName, 'id', 'name'); if (!$groupName) { // $groupName is required but the function signature has to match the parent. @@ -261,17 +269,8 @@ class CRM_Core_BAO_CustomValue extends CRM_Core_DAO { } // Do we have access to the target record? - if ($extends === 'Contact' || in_array($extends, CRM_Contact_BAO_ContactType::basicTypes(TRUE), TRUE)) { - return \Civi\Api4\Utils\CoreUtil::checkAccessDelegated('Contact', 'update', ['id' => $eid], $userID); - } - elseif (\Civi\Api4\Utils\CoreUtil::getApiClass($extends)) { - // For most entities (Activity, Relationship, Contribution, ad nauseum), we acn just use an eponymous API. - return \Civi\Api4\Utils\CoreUtil::checkAccessDelegated($extends, 'update', ['id' => $eid], $userID); - } - else { - // Do you need to add a special case for some oddball custom-group type? - throw new CRM_Core_Exception("Cannot assess delegated permissions for group {$groupName}."); - } + $delegatedAction = $action === 'get' ? 'get' : 'update'; + return \Civi\Api4\Utils\CoreUtil::checkAccessDelegated($extends, $delegatedAction, ['id' => $eid], $userID); } } diff --git a/civicrm/CRM/Core/BAO/File.php b/civicrm/CRM/Core/BAO/File.php index b1672b4aa0..d0ad6492a3 100644 --- a/civicrm/CRM/Core/BAO/File.php +++ b/civicrm/CRM/Core/BAO/File.php @@ -834,4 +834,51 @@ HEREDOC; return FALSE; } + /** + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions + * @inheritDoc + */ + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { + // TODO: This seemded like a good idea... piggybacking off the ACL clause of EntityFile + // however that's too restrictive because entityFile ACLs are limited to just attachments, + // so this would prevent access to other file fields (e.g. custom fields) + // Disabling this function for now by calling the parent instead. + return parent::addSelectWhereClause('File', $userId, $conditions); + // $clauses = [ + // 'id' => [], + // ]; + // // File ACLs are driven by the EntityFile table + // $entityFileClause = CRM_Core_DAO_EntityFile::getDynamicFkAclClauses(); + // if ($entityFileClause) { + // $clauses['id'] = 'IN (SELECT file_id FROM `civicrm_entity_file` WHERE (' . implode(') OR (', $entityFileClause) . '))'; + // } + // CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); + // return $clauses; + } + + /** + * FIXME: Incomplete pseudoconstant for EntityFile.entity_table + * + * The `EntityFile` table serves 2 purposes: + * 1. As a many-to-many bridge table for entities that support multiple attachments + * 2. As a redundant copy of the value of custom fields of type File + * + * The 2nd use isn't really a bridge entity, and doesn't even make much sense + * (what purpose does it serve other than as a dummy value to use in file download links). + * Including the 2nd in this function would blow up the possible values for `entity_table` + * and make ACL clauses quite slow. So until someone comes up with a better idea, + * this only returns values relevant to the 1st. + * + * @return array + */ + public static function getEntityTables(): array { + return [ + 'civicrm_activity' => ts('Activity'), + 'civicrm_case' => ts('Case'), + 'civicrm_note' => ts('Note'), + ]; + } + } diff --git a/civicrm/CRM/Core/BAO/Managed.php b/civicrm/CRM/Core/BAO/Managed.php index 124eabfdad..4204350105 100644 --- a/civicrm/CRM/Core/BAO/Managed.php +++ b/civicrm/CRM/Core/BAO/Managed.php @@ -20,6 +20,31 @@ */ class CRM_Core_BAO_Managed extends CRM_Core_DAO_Managed implements Civi\Core\HookInterface { + /** + * Scan core `civicrm/managed` directory for entity declarations. + * + * Note: This is similar to the `mgd-php` mixin for extensions, but slightly stricter: + * - It doesn't scan any directory outside `managed/` + * - It doesn't allow omitting `$params['version']` + * TODO: Consider making a 2.0 version of the extension mixin using this code, for consistent strictness. + * + * @param \Civi\Core\Event\GenericHookEvent $e + * @implements CRM_Utils_Hook::managed + */ + public static function on_hook_civicrm_managed(\Civi\Core\Event\GenericHookEvent $e) { + if ($e->modules && !in_array('civicrm', $e->modules, TRUE)) { + return; + } + $mgdFiles = CRM_Utils_File::findFiles(Civi::paths()->getPath('[civicrm.root]/managed'), '*.mgd.php'); + sort($mgdFiles); + foreach ($mgdFiles as $file) { + $declarations = include $file; + foreach ($declarations as $declaration) { + $e->entities[] = $declaration + ['module' => 'civicrm']; + } + } + } + /** * Callback for hook_civicrm_post(). * @param \Civi\Core\Event\PostEvent $event @@ -54,4 +79,18 @@ class CRM_Core_BAO_Managed extends CRM_Core_DAO_Managed implements Civi\Core\Hoo return $type && in_array('ManagedEntity', $type, TRUE); } + /** + * Options callback for `base_module`. + * @return array + */ + public static function getBaseModules(): array { + $modules = []; + foreach (CRM_Core_Module::getAll() as $module) { + if ($module->is_active) { + $modules[$module->name] = $module->label; + } + } + return $modules; + } + } diff --git a/civicrm/CRM/Core/BAO/Note.php b/civicrm/CRM/Core/BAO/Note.php index 8df7525a98..f1e54f06f7 100644 --- a/civicrm/CRM/Core/BAO/Note.php +++ b/civicrm/CRM/Core/BAO/Note.php @@ -50,7 +50,7 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note implements \Civi\Core\HookInte * * @return bool * TRUE if the note should be hidden, otherwise FALSE - * + * @deprecated in favor of selectWhereClause */ public static function getNotePrivacyHidden($note) { if (CRM_Core_Permission::check('view all notes')) { @@ -61,6 +61,9 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note implements \Civi\Core\HookInte if (is_object($note) && get_class($note) === 'CRM_Core_DAO_Note') { CRM_Core_DAO::storeValues($note, $noteValues); } + elseif (is_array($note)) { + $noteValues = $note; + } else { $noteDAO = new CRM_Core_DAO_Note(); $noteDAO->id = $note; @@ -168,19 +171,19 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note implements \Civi\Core\HookInte $recentOther = []; if ($noteActions) { $recentOther = [ - 'editUrl' => CRM_Utils_System::url('civicrm/contact/view/note', - "reset=1&action=update&cid={$note->entity_id}&id={$note->id}&context=home" + 'editUrl' => CRM_Utils_System::url('civicrm/note', + "reset=1&action=update&id={$note->id}&context=home" ), - 'deleteUrl' => CRM_Utils_System::url('civicrm/contact/view/note', - "reset=1&action=delete&cid={$note->entity_id}&id={$note->id}&context=home" + 'deleteUrl' => CRM_Utils_System::url('civicrm/note', + "reset=1&action=delete&id={$note->id}&context=home" ), ]; } // add the recently created Note CRM_Utils_Recent::add($displayName . ' - ' . $note->subject, - CRM_Utils_System::url('civicrm/contact/view/note', - "reset=1&action=view&cid={$note->entity_id}&id={$note->id}&context=home" + CRM_Utils_System::url('civicrm/note', + "reset=1&action=view&id={$note->id}&context=home" ), $note->id, 'Note', @@ -373,7 +376,7 @@ ORDER BY modified_date desc"; * * @return array * Nested associative array beginning with direct children of given note. - * + * @deprecated only called by deprecated APIv3 */ public static function getNoteTree($parentId, $maxDepth = 0, $snippet = FALSE) { return self::buildNoteTree($parentId, $maxDepth, $snippet); @@ -419,6 +422,7 @@ ORDER BY modified_date desc"; * * @return array * Nested associative array beginning with direct children of given note. + * @deprecated only called by deprecated APIv3 */ private static function buildNoteTree($parentId, $maxDepth = 0, $snippet = FALSE, &$tree = [], $depth = 0) { if ($maxDepth && $depth > $maxDepth) { @@ -526,4 +530,25 @@ WHERE participant.contact_id = %1 AND note.entity_table = 'civicrm_participant' } } + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { + $clauses = []; + $relatedClauses = self::getDynamicFkAclClauses('entity_table', 'entity_id', $conditions['entity_table'] ?? NULL); + if ($relatedClauses) { + // Nested array will be joined with OR + $clauses['entity_table'] = [$relatedClauses]; + } + // Enforce note privacy setting + if (!CRM_Core_Permission::check('view all notes')) { + $clauses['privacy'] = [ + [ + '= 0', + // OR + '= 1 AND {contact_id} = ' . (int) CRM_Core_Session::getLoggedInContactID(), + ], + ]; + } + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); + return $clauses; + } + } diff --git a/civicrm/CRM/Core/BAO/UFJoin.php b/civicrm/CRM/Core/BAO/UFJoin.php index 493594176d..b9344ea232 100644 --- a/civicrm/CRM/Core/BAO/UFJoin.php +++ b/civicrm/CRM/Core/BAO/UFJoin.php @@ -178,11 +178,14 @@ class CRM_Core_BAO_UFJoin extends CRM_Core_DAO_UFJoin { /** * Override base method which assumes permissions should be based on entity_table. * + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @return array */ - public function addSelectWhereClause() { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { $clauses = []; - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } diff --git a/civicrm/CRM/Core/BAO/UFMatch.php b/civicrm/CRM/Core/BAO/UFMatch.php index d3ef595149..6290430fd0 100644 --- a/civicrm/CRM/Core/BAO/UFMatch.php +++ b/civicrm/CRM/Core/BAO/UFMatch.php @@ -539,8 +539,7 @@ AND domain_id = %4 } /** - * Get the next unused uf_id value, since the standalone UF doesn't - * have id's (it uses OpenIDs, which go in a different field). + * Get the next unused uf_id value * * @deprecated * @return int @@ -616,12 +615,15 @@ AND domain_id = %4 } /** + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @inheritDoc */ - public function addSelectWhereClause() { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { // Prevent default behavior of joining ACLs onto the contact_id field. $clauses = []; - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } diff --git a/civicrm/CRM/Core/BAO/UserJob.php b/civicrm/CRM/Core/BAO/UserJob.php index 9979e6c73e..a6ba558f83 100644 --- a/civicrm/CRM/Core/BAO/UserJob.php +++ b/civicrm/CRM/Core/BAO/UserJob.php @@ -147,16 +147,19 @@ class CRM_Core_BAO_UserJob extends CRM_Core_DAO_UserJob implements HookInterface * use an existing permission? a new permission ? do they require * 'view all contacts' etc. * + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @inheritDoc */ - public function addSelectWhereClause(): array { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { $clauses = []; if (!\CRM_Core_Permission::check('administer queues')) { // @todo - the is_template should really be prefixed. We need to add support // for that in the compiler & then this would be `{table}.is_template` $clauses['created_id'] = '= ' . (int) CRM_Core_Session::getLoggedInContactID() . ' OR is_template = 1'; } - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } diff --git a/civicrm/CRM/Core/Config.php b/civicrm/CRM/Core/Config.php index 55093d3613..2018a486fb 100644 --- a/civicrm/CRM/Core/Config.php +++ b/civicrm/CRM/Core/Config.php @@ -91,7 +91,10 @@ class CRM_Core_Config extends CRM_Core_Config_MagicMerge { unset($errorScope); - CRM_Utils_Hook::config(self::$_singleton); + CRM_Utils_Hook::config(self::$_singleton, [ + 'civicrm' => TRUE, + 'uf' => self::$_singleton->userSystem->isLoaded(), + ]); self::$_singleton->authenticate(); // Extreme backward compat: $config binds to active domain at moment of setup. diff --git a/civicrm/CRM/Core/DAO.php b/civicrm/CRM/Core/DAO.php index ad06001e74..027ea8c5ab 100644 --- a/civicrm/CRM/Core/DAO.php +++ b/civicrm/CRM/Core/DAO.php @@ -3059,74 +3059,154 @@ SELECT contact_id * * Return format is in the form of fieldname => clauses starting with an operator. e.g.: * ``` - * array( - * 'location_type_id' => array('IS NOT NULL', 'IN (1,2,3)') - * ) + * [ + * // Each string in the array will get joined with AND + * 'location_type_id' => ['IS NOT NULL', 'IN (1,2,3)'], + * // Each sub-array in the array will get joined with OR, field names must be enclosed in curly braces + * 'privacy' => [ + * ['= 0', '= 1 AND {contact_id} = 456'], + * ], + * ] * ``` * * Note that all array keys must be actual field names in this entity. Use subqueries to filter on other tables e.g. custom values. - * + * The query strings MAY reference other fields in this entity; they must be enclosed in {curly_braces}. + * + * @param string|null $entityName + * Name of the entity being queried (for normal BAO files implementing this method, this variable is redundant + * as there is a 1-1 relationship between most entities and most BAOs. However the variable is passed in to support + * dynamic entities such as ECK). + * @param int|null $userId + * Contact id of the current user. + * This param is more aspirational than functional for now. Someday the API may support checking permissions + * for contacts other than the current user, but at present this is always NULL which defaults to the current user. + * @param array $conditions + * Contains field/value pairs gleaned from the WHERE clause or ON clause + * (depending on how the entity was added to the query). + * Can be used for optimization/deduping of clauses. * @return array */ - public function addSelectWhereClause() { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { $clauses = []; - $fields = $this->fields(); - // Notes should check permissions on the entity_id field, not the contact_id field - $skipContactCheckFor = ['Note']; + $fields = $this::getSupportedFields(); foreach ($fields as $fieldName => $field) { // Clause for contact-related entities like Email, Relationship, etc. - if (strpos($field['name'], 'contact_id') === 0 && !in_array($field['entity'], $skipContactCheckFor) && ($field['FKClassName'] ?? NULL) == 'CRM_Contact_DAO_Contact') { + if (str_starts_with($fieldName, 'contact_id') && ($field['FKClassName'] ?? NULL) === 'CRM_Contact_DAO_Contact') { $contactClause = CRM_Utils_SQL::mergeSubquery('Contact'); if (!empty($contactClause)) { - $clauses[$field['name']] = $contactClause; + $clauses[$fieldName] = $contactClause; } } // Clause for an entity_table/entity_id combo - if ($field['name'] === 'entity_id' && isset($fields['entity_table'])) { - $relatedClauses = []; - $relatedEntities = $this->buildOptions('entity_table', 'get'); - foreach ((array) $relatedEntities as $table => $ent) { - if (!empty($ent)) { - $ent = CRM_Core_DAO_AllCoreTables::getEntityNameForTable($table); - $subquery = CRM_Utils_SQL::mergeSubquery($ent); - if ($subquery) { - $relatedClauses[] = "(entity_table = '$table' AND entity_id " . implode(' AND entity_id ', $subquery) . ")"; - } - else { - $relatedClauses[] = "(entity_table = '$table')"; - } - } - } + if ($fieldName === 'entity_id' && isset($fields['entity_table'])) { + $relatedClauses = self::getDynamicFkAclClauses('entity_table', 'entity_id', $conditions['entity_table'] ?? NULL); if ($relatedClauses) { - $clauses['id'] = 'IN (SELECT id FROM `' . $this->tableName() . '` WHERE (' . implode(') OR (', $relatedClauses) . '))'; + // Nested array will be joined with OR + $clauses['entity_table'] = [$relatedClauses]; } } } - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($entityName ?? $this, $clauses); return $clauses; } + /** + * Get an array of ACL clauses for a dynamic FK (entity_id/entity_table combo) + * + * @param string $entityTableField + * @param string $entityIdField + * @param mixed|NULL $entityTableValues + * @return array + */ + protected static function getDynamicFkAclClauses(string $entityTableField, string $entityIdField, $entityTableValues = NULL): array { + // If entity_table is specified in the WHERE clause, use that instead of the entity_table pseudoconstant + if ($entityTableValues && is_string($entityTableValues) || is_array($entityTableValues)) { + // Ideally we would validate table names against the entity_table pseudoconstant, + // but some entities have missing/incomplete metadata and it's better to generate an ACL + // clause for what we have than no ACL clause at all, so validate against all known tables. + $allTableNames = CRM_Core_DAO_AllCoreTables::tables(); + $relatedEntities = array_intersect_key(array_flip((array) $entityTableValues), $allTableNames); + } + // No valid entity_table in WHERE clause so build an ACL case for every possible entity type + if (empty($relatedEntities)) { + $relatedEntities = static::buildOptions($entityTableField, 'get'); + } + // Hmm, this entity is missing entity_table pseudoconstant. We really should fix that. + if (!$relatedEntities) { + return []; + } + $relatedClauses = []; + foreach ($relatedEntities as $table => $ent) { + // Ensure $ent is the machine name of the entity not a translated title + $ent = CRM_Core_DAO_AllCoreTables::getEntityNameForTable($table); + // Prevent infinite recursion + $subquery = $table === static::getTableName() ? NULL : CRM_Utils_SQL::mergeSubquery($ent); + if ($subquery) { + foreach ($subquery as $index => $condition) { + // Join OR clauses + if (is_array($condition)) { + $subquery[$index] = "(({{$entityIdField}} " . implode(") OR ({{$entityIdField}} ", $condition) . '))'; + } + else { + $subquery[$index] = "{{$entityIdField}} $condition"; + } + } + $relatedClauses[] = "= '$table' AND " . implode(" AND ", $subquery); + } + // If it's the only value with no conditions, don't need to add it + elseif (!$entityTableValues || count($relatedEntities) > 1) { + $relatedClauses[] = "= '$table'"; + } + } + return $relatedClauses; + } + /** * This returns the final permissioned query string for this entity * * With acls from related entities + additional clauses from hook_civicrm_selectWhereClause * - * @param string $tableAlias + * DO NOT OVERRIDE THIS FUNCTION + * + * @TODO: ADD `final` keyword to function signature + * + * @param string|null $tableAlias + * @param string|null $entityName + * @param array $conditions + * Values from WHERE or ON clause * @return array */ - public static function getSelectWhereClause($tableAlias = NULL) { + public static function getSelectWhereClause($tableAlias = NULL, $entityName = NULL, $conditions = []) { $bao = new static(); - if ($tableAlias === NULL) { - $tableAlias = $bao->tableName(); - } - $clauses = []; - foreach ((array) $bao->addSelectWhereClause() as $field => $vals) { - $clauses[$field] = NULL; - if ($vals) { - $clauses[$field] = "(`$tableAlias`.`$field` IS NULL OR (`$tableAlias`.`$field` " . implode(" AND `$tableAlias`.`$field` ", (array) $vals) . '))'; + $tableAlias = $tableAlias ?? $bao->tableName(); + $entityName = $entityName ?? CRM_Core_DAO_AllCoreTables::getBriefName(get_class($bao)); + $finalClauses = []; + $fields = static::getSupportedFields(); + $selectWhereClauses = $bao->addSelectWhereClause($entityName, NULL, $conditions); + foreach ($selectWhereClauses as $fieldName => $fieldClauses) { + $finalClauses[$fieldName] = NULL; + if ($fieldClauses) { + if (!is_array($fieldClauses)) { + CRM_Core_Error::deprecatedWarning('Expected array of selectWhereClauses for ' . $bao->tableName() . '.' . $fieldName . ', instead got ' . json_encode($fieldClauses)); + $fieldClauses = (array) $fieldClauses; + } + $formattedClauses = []; + foreach (CRM_Utils_SQL::prefixFieldNames($fieldClauses, array_keys($fields), $tableAlias) as $subClause) { + // Arrays of arrays get joined with OR (similar to CRM_Core_Permission::check) + if (is_array($subClause)) { + $formattedClauses[] = "(`$tableAlias`.`$fieldName` " . implode(" OR `$tableAlias`.`$fieldName` ", $subClause) . ')'; + } + else { + $formattedClauses[] = "(`$tableAlias`.`$fieldName` " . $subClause . ')'; + } + } + $finalClauses[$fieldName] = '(' . implode(' AND ', $formattedClauses) . ')'; + if (empty($fields[$fieldName]['required'])) { + $finalClauses[$fieldName] = "(`$tableAlias`.`$fieldName` IS NULL OR {$finalClauses[$fieldName]})"; + } } } - return $clauses; + return $finalClauses; } /** diff --git a/civicrm/CRM/Core/DAO/AllCoreTables.php b/civicrm/CRM/Core/DAO/AllCoreTables.php index 4c22ee769b..ba28171ba9 100644 --- a/civicrm/CRM/Core/DAO/AllCoreTables.php +++ b/civicrm/CRM/Core/DAO/AllCoreTables.php @@ -358,7 +358,7 @@ class CRM_Core_DAO_AllCoreTables { * * @param string $briefName * - * @return FALSE|string + * @return string */ public static function getTableForEntityName($briefName): string { self::init(); diff --git a/civicrm/CRM/Core/DAO/CustomGroup.php b/civicrm/CRM/Core/DAO/CustomGroup.php index 17c0bd8922..f1efcc5ca5 100644 --- a/civicrm/CRM/Core/DAO/CustomGroup.php +++ b/civicrm/CRM/Core/DAO/CustomGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/CustomGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:7a53822fedde32eeb1089f09654a2d88) + * (GenCodeChecksum:05aa9cfdd47acd56178a0a33a2f6ffc1) */ /** @@ -87,7 +87,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { public $extends; /** - * FK to civicrm_option_value.id (for option group custom_data_type.) + * FK to civicrm_option_value.value (for option group custom_data_type) * * @var int|string|null * (SQL type: int unsigned) @@ -384,6 +384,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { 'name', 'label', 'grouping', + 'icon', ], ], 'add' => '1.1', @@ -392,7 +393,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { 'name' => 'extends_entity_column_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Custom Group Subtype List'), - 'description' => ts('FK to civicrm_option_value.id (for option group custom_data_type.)'), + 'description' => ts('FK to civicrm_option_value.value (for option group custom_data_type)'), 'usage' => [ 'import' => FALSE, 'export' => FALSE, diff --git a/civicrm/CRM/Core/DAO/EntityFile.php b/civicrm/CRM/Core/DAO/EntityFile.php index 21383d0788..325a58ffc8 100644 --- a/civicrm/CRM/Core/DAO/EntityFile.php +++ b/civicrm/CRM/Core/DAO/EntityFile.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/EntityFile.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:abc8d2d096560e9cf5e96f385bb6c4a6) + * (GenCodeChecksum:21c0d34d03ae7f8aad9706aab1793656) */ /** @@ -42,7 +42,7 @@ class CRM_Core_DAO_EntityFile extends CRM_Core_DAO { /** * physical tablename for entity being joined to file, e.g. civicrm_contact * - * @var string|null + * @var string * (SQL type: varchar(64)) * Note that values will be retrieved from the database as a string. */ @@ -136,6 +136,7 @@ class CRM_Core_DAO_EntityFile extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'description' => ts('physical tablename for entity being joined to file, e.g. civicrm_contact'), + 'required' => TRUE, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'usage' => [ @@ -149,6 +150,9 @@ class CRM_Core_DAO_EntityFile extends CRM_Core_DAO { 'entity' => 'EntityFile', 'bao' => 'CRM_Core_DAO_EntityFile', 'localizable' => 0, + 'pseudoconstant' => [ + 'callback' => 'CRM_Core_BAO_File::getEntityTables', + ], 'add' => '1.5', ], 'entity_id' => [ diff --git a/civicrm/CRM/Core/DAO/MessageTemplate.php b/civicrm/CRM/Core/DAO/MessageTemplate.php index b39d92c083..fd7f5cafd2 100644 --- a/civicrm/CRM/Core/DAO/MessageTemplate.php +++ b/civicrm/CRM/Core/DAO/MessageTemplate.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/MessageTemplate.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:65e3ae090a60b085f252019d3d113ceb) + * (GenCodeChecksum:6dc7072586d725f18dd3c984091820f0) */ /** @@ -23,6 +23,13 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_msg_template'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'msg_title'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/civicrm/CRM/Core/DAO/Note.php b/civicrm/CRM/Core/DAO/Note.php index c126f61b2e..5fa11086ca 100644 --- a/civicrm/CRM/Core/DAO/Note.php +++ b/civicrm/CRM/Core/DAO/Note.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Note.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5b5ae6f3bd3ed46257a0b0f3e9b9075b) + * (GenCodeChecksum:9036c8c92bb1abbbd67b08f5c06f7ea3) */ /** @@ -37,6 +37,18 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { */ public static $_log = TRUE; + /** + * Paths for accessing this entity in the UI. + * + * @var string[] + */ + protected static $_paths = [ + 'add' => 'civicrm/note?reset=1&action=add&entity_table=[entity_table]&entity_id=[entity_id]', + 'view' => 'civicrm/note?reset=1&action=view&id=[id]', + 'update' => 'civicrm/note?reset=1&action=update&id=[id]', + 'delete' => 'civicrm/note?reset=1&action=delete&id=[id]', + ]; + /** * Note ID * @@ -121,7 +133,7 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { /** * Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK) * - * @var string|null + * @var string * (SQL type: varchar(255)) * Note that values will be retrieved from the database as a string. */ @@ -211,6 +223,10 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { 'entity' => 'Note', 'bao' => 'CRM_Core_BAO_Note', 'localizable' => 0, + 'html' => [ + 'type' => 'Select', + 'label' => ts("Reference Type"), + ], 'pseudoconstant' => [ 'optionGroupName' => 'note_used_for', 'optionEditPath' => 'civicrm/admin/options/note_used_for', @@ -234,6 +250,10 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { 'entity' => 'Note', 'bao' => 'CRM_Core_BAO_Note', 'localizable' => 0, + 'html' => [ + 'type' => 'EntityRef', + 'label' => ts("Reference Item"), + ], 'add' => '1.1', ], 'note' => [ @@ -281,6 +301,7 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Contact_DAO_Contact', 'html' => [ + 'type' => 'EntityRef', 'label' => ts("Created By"), ], 'add' => '1.1', @@ -326,12 +347,17 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { 'entity' => 'Note', 'bao' => 'CRM_Core_BAO_Note', 'localizable' => 0, + 'html' => [ + 'type' => 'Select Date', + 'formatType' => 'activityDateTime', + ], + 'readonly' => TRUE, 'add' => '5.36', ], 'modified_date' => [ 'name' => 'modified_date', 'type' => CRM_Utils_Type::T_TIMESTAMP, - 'title' => ts('Note Modified By'), + 'title' => ts('Note Modified Date'), 'description' => ts('When was this note last modified/edited'), 'usage' => [ 'import' => FALSE, @@ -345,6 +371,11 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { 'entity' => 'Note', 'bao' => 'CRM_Core_BAO_Note', 'localizable' => 0, + 'html' => [ + 'type' => 'Select Date', + 'formatType' => 'activityDateTime', + 'label' => ts("Modified Date"), + ], 'readonly' => TRUE, 'add' => '1.1', ], @@ -376,6 +407,7 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Privacy'), 'description' => ts('Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)'), + 'required' => TRUE, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'usage' => [ @@ -385,6 +417,7 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { 'token' => FALSE, ], 'where' => 'civicrm_note.privacy', + 'default' => '0', 'table_name' => 'civicrm_note', 'entity' => 'Note', 'bao' => 'CRM_Core_BAO_Note', diff --git a/civicrm/CRM/Core/DAO/UFGroup.php b/civicrm/CRM/Core/DAO/UFGroup.php index 17e166c906..e8a0cc4a78 100644 --- a/civicrm/CRM/Core/DAO/UFGroup.php +++ b/civicrm/CRM/Core/DAO/UFGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/UFGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0b3f7d95cc8abdec20fb926e2edb2fbd) + * (GenCodeChecksum:6fc322aa33235bda47a6c3322173d741) */ /** @@ -48,6 +48,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { 'update' => 'civicrm/admin/uf/group/update?action=update&reset=1&id=[id]', 'delete' => 'civicrm/admin/uf/group/update?action=delete&reset=1&id=[id]', 'browse' => 'civicrm/admin/uf/group', + 'copy' => 'civicrm/admin/uf/group/copy?action=copy&reset=1&gid=[id]', ]; /** diff --git a/civicrm/CRM/Core/DAO/UFMatch.php b/civicrm/CRM/Core/DAO/UFMatch.php index 38744177fa..aaa71a8278 100644 --- a/civicrm/CRM/Core/DAO/UFMatch.php +++ b/civicrm/CRM/Core/DAO/UFMatch.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/UFMatch.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:03d955dcec4176dec67ec9fbc818e490) + * (GenCodeChecksum:ddf0ceeb22715a1ee0b7b93c90df31f2) */ /** @@ -214,7 +214,7 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO { 'entity' => 'UFMatch', 'bao' => 'CRM_Core_BAO_UFMatch', 'localizable' => 0, - 'add' => '1.9.kabissa', + 'add' => '1.9', ], 'contact_id' => [ 'name' => 'contact_id', diff --git a/civicrm/CRM/Core/EntityTokens.php b/civicrm/CRM/Core/EntityTokens.php index 908937cea0..850f5848de 100644 --- a/civicrm/CRM/Core/EntityTokens.php +++ b/civicrm/CRM/Core/EntityTokens.php @@ -99,7 +99,7 @@ class CRM_Core_EntityTokens extends AbstractTokenSubscriber { $fieldValue = $this->getFieldValue($row, $field); if (is_array($fieldValue)) { // eg. role_id for participant would be an array here. - $fieldValue = implode(',', $fieldValue); + $fieldValue = implode(', ', $fieldValue); } if ($this->isPseudoField($field)) { @@ -152,7 +152,6 @@ class CRM_Core_EntityTokens extends AbstractTokenSubscriber { * @return bool */ public function isHTMLTextField(string $fieldName): bool { - $metadata = $this->getMetadataForField($fieldName); return ($this->getMetadataForField($fieldName)['input_type'] ?? NULL) === 'RichTextEditor'; } diff --git a/civicrm/CRM/Core/Error.php b/civicrm/CRM/Core/Error.php index fd6ae04c14..28dac3a85d 100644 --- a/civicrm/CRM/Core/Error.php +++ b/civicrm/CRM/Core/Error.php @@ -655,7 +655,13 @@ class CRM_Core_Error extends PEAR_ErrorStack { */ public static function createDebugLogger($prefix = '') { self::generateLogFileName($prefix); - return Log::singleton('file', \Civi::$statics[__CLASS__]['logger_file' . $prefix], ''); + $log = Log::singleton('file', \Civi::$statics[__CLASS__]['logger_file' . $prefix], '', [ + 'timeFormat' => '%Y-%m-%d %H:%M:%S%z', + ]); + if (is_callable([$log, 'setLocale'])) { + $log->setLocale(CRM_Core_I18n::getLocale()); + } + return $log; } /** diff --git a/civicrm/CRM/Core/Form.php b/civicrm/CRM/Core/Form.php index 88968b816f..07e15afea7 100644 --- a/civicrm/CRM/Core/Form.php +++ b/civicrm/CRM/Core/Form.php @@ -447,7 +447,8 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * @return HTML_QuickForm_Element * Could be an error object * - * @throws \CRM_Core_Exception + * @noinspection PhpDocMissingThrowsInspection + * @noinspection PhpUnhandledExceptionInspection */ public function &add( $type, $name, $label = '', @@ -465,27 +466,23 @@ class CRM_Core_Form extends HTML_QuickForm_Page { } // Fudge some extra types that quickform doesn't support $inputType = $type; - if ($type == 'wysiwyg' || in_array($type, self::$html5Types)) { + if ($type === 'wysiwyg' || in_array($type, self::$html5Types)) { $attributes = ($attributes ?: []) + ['class' => '']; $attributes['class'] = ltrim($attributes['class'] . " crm-form-$type"); - if ($type == 'wysiwyg' && isset($attributes['preset'])) { + if ($type === 'wysiwyg' && isset($attributes['preset'])) { $attributes['data-preset'] = $attributes['preset']; unset($attributes['preset']); } - $type = $type == 'wysiwyg' ? 'textarea' : 'text'; + $type = $type === 'wysiwyg' ? 'textarea' : 'text'; } // Like select but accepts rich array data (with nesting, colors, icons, etc) as option list. - if ($inputType == 'select2') { + if ($inputType === 'select2') { $type = 'text'; - $options = []; - foreach ($attributes as $option) { - // Transform options from api4.getFields format - $option['text'] = $option['text'] ?? $option['label']; - unset($option['label']); - $options[] = $option; - } + // Options stored in $attributes. Transform from api4.getFields format if needed. + $options = CRM_Utils_Array::formatForSelect2($attributes ?: []); + // Attributes stored in $extra $attributes = ($extra ?: []) + ['class' => '']; - $attributes['class'] = ltrim($attributes['class'] . " crm-select2 crm-form-select2"); + $attributes['class'] = ltrim($attributes['class'] . ' crm-select2 crm-form-select2'); $attributes['data-select-params'] = json_encode(['data' => $options, 'multiple' => !empty($attributes['multiple'])]); unset($attributes['multiple']); $extra = NULL; @@ -515,7 +512,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { if (!empty($attributes['aria-label']) || $label) { $attributes['aria-label'] = $attributes['aria-label'] ?? $label; } - $type = "text"; + $type = 'text'; } if ($type === 'select' && is_array($extra)) { // Normalize this property @@ -557,12 +554,12 @@ class CRM_Core_Form extends HTML_QuickForm_Page { CRM_Core_Error::statusBounce(HTML_QuickForm::errorMessage($element)); } - if ($inputType == 'color') { + if ($inputType === 'color') { $this->addRule($name, ts('%1 must contain a color value e.g. #ffffff.', [1 => $label]), 'regex', '/#[0-9a-fA-F]{6}/'); } if ($required) { - if ($type == 'file') { + if ($type === 'file') { $error = $this->addRule($name, ts('%1 is a required field.', [1 => $label]), 'uploadedfile'); } else { @@ -987,16 +984,17 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * * @return array $params */ - protected function prepareParamsForPaymentProcessor($params) { + protected function prepareParamsForPaymentProcessor(array $params): array { // also add location name to the array - $params["address_name-{$this->_bltID}"] = ($params['billing_first_name'] ?? '') . ' ' . ($params['billing_middle_name'] ?? '') . ' ' . ($params['billing_last_name'] ?? ''); - $params["address_name-{$this->_bltID}"] = trim($params["address_name-{$this->_bltID}"]); + $billingLocationID = CRM_Core_BAO_LocationType::getBilling(); + $params['address_name-' . $billingLocationID] = ($params['billing_first_name'] ?? '') . ' ' . ($params['billing_middle_name'] ?? '') . ' ' . ($params['billing_last_name'] ?? ''); + $params['address_name-' . $billingLocationID] = trim($params['address_name-' . $billingLocationID]); // Add additional parameters that the payment processors are used to receiving. - if (!empty($params["billing_state_province_id-{$this->_bltID}"])) { - $params['state_province'] = $params["state_province-{$this->_bltID}"] = $params["billing_state_province-{$this->_bltID}"] = CRM_Core_PseudoConstant::stateProvinceAbbreviation($params["billing_state_province_id-{$this->_bltID}"]); + if (!empty($params["billing_state_province_id-$billingLocationID"])) { + $params['state_province'] = $params["state_province-$billingLocationID"] = $params["billing_state_province-$billingLocationID"] = CRM_Core_PseudoConstant::stateProvinceAbbreviation($params["billing_state_province_id-$billingLocationID"]); } - if (!empty($params["billing_country_id-{$this->_bltID}"])) { - $params['country'] = $params["country-{$this->_bltID}"] = $params["billing_country-{$this->_bltID}"] = CRM_Core_PseudoConstant::countryIsoCode($params["billing_country_id-{$this->_bltID}"]); + if (!empty($params["billing_country_id-$billingLocationID"])) { + $params['country'] = $params["country-$billingLocationID"] = $params["billing_country-$billingLocationID"] = CRM_Core_PseudoConstant::countryIsoCode($params["billing_country_id-$billingLocationID"]); } [$hasAddressField, $addressParams] = CRM_Contribute_BAO_Contribution::getPaymentProcessorReadyAddressParams($params, $this->_bltID); @@ -1013,12 +1011,21 @@ class CRM_Core_Form extends HTML_QuickForm_Page { } } - // For legacy reasons we set these creditcard expiry fields if present + // For legacy reasons we set these credit card expiry fields if present CRM_Contribute_Form_AbstractEditPayment::formatCreditCardDetails($params); // Assign IP address parameter $params['ip_address'] = CRM_Utils_System::ipAddress(); - + // Ensure our contracted fields are set. + // See https://docs.civicrm.org/dev/en/latest/extensions/payment-processors/create/#getpaymentformfields + if (empty($params['currency'])) { + // Ideally never null but the tests have to catch up. + $params['currency'] = $params['currencyID'] ?? NULL; + } + if (empty($params['contactID'])) { + // Ideally never null but the tests have to catch up. + $params['contactID'] = $params['contact_id'] ?? NULL; + } return $params; } @@ -1298,10 +1305,17 @@ class CRM_Core_Form extends HTML_QuickForm_Page { /** * Getter for action. * - * @return int + * @return int|null */ public function getAction() { - return $this->_action; + if (!is_numeric($this->_action)) { + if (!$this->_action) { + return NULL; + } + CRM_Core_Error::deprecatedWarning('action should be an integer'); + return $this->_action; + } + return (int) $this->_action; } /** @@ -1311,7 +1325,13 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * The mode we want to set the form. */ public function setAction($action) { - $this->_action = $action; + if (is_numeric($action)) { + $this->_action = (int) $action; + } + else { + CRM_Core_Error::deprecatedWarning('action should be an integer'); + $this->_action = $action; + } } /** @@ -1607,7 +1627,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { return 'delete'; } // If you get this exception try adding more cases above. - throw new Exception("Cannot determine api action for " . get_class($this) . '.' . 'CRM_Core_Action "' . CRM_Core_Action::description($action) . '" not recognized.'); + throw new CRM_Core_Exception("Cannot determine api action for " . get_class($this) . '.' . 'CRM_Core_Action "' . CRM_Core_Action::description($action) . '" not recognized.'); } /** @@ -1615,7 +1635,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * @throws Exception */ public function getDefaultEntity() { - throw new Exception("Cannot determine default entity. " . get_class($this) . " should implement getDefaultEntity()."); + throw new CRM_Core_Exception("Cannot determine default entity. " . get_class($this) . " should implement getDefaultEntity()."); } /** @@ -1625,7 +1645,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * @throws Exception */ public function getDefaultContext() { - throw new Exception("Cannot determine default context. " . get_class($this) . " should implement getDefaultContext()."); + throw new CRM_Core_Exception("Cannot determine default context. " . get_class($this) . " should implement getDefaultContext()."); } /** @@ -2045,6 +2065,14 @@ class CRM_Core_Form extends HTML_QuickForm_Page { /** * @param string $name * + * @deprecated - use of this function assumes that an otherwise unavailable + * variable can be used form outside the class in question. However, the very + * fact it is otherwise unavailable means there is no contract that it will + * not be changed or become unused. This function is OK for temporary usage but + * should be accompanied with an effort to establish a more correct method + * or property tested hook / api interface if this is being done from outside of + * core. + * * @return mixed */ public function getVar($name) { @@ -2054,6 +2082,14 @@ class CRM_Core_Form extends HTML_QuickForm_Page { /** * @param string $name * @param mixed $value + * + * @deprecated - use of this function assumes that an otherwise unavailable + * variable can be used form outside the class in question. However, the very + * fact it is otherwise unavailable means there is no contract that it will + * not be changed or become unused. This function is OK for temporary usage but + * should be accompanied with an effort to establish a more correct method + * or property tested hook / api interface if this is being done from outside of + * core. */ public function setVar($name, $value) { $this->$name = $value; @@ -2587,7 +2623,6 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * and a dozen other small ones to be refactored into a shared parent with the reduction of much code duplication */ public function addCIDZeroOptions() { - $this->assign('nocid', TRUE); $profiles = []; if ($this->_values['custom_pre_id']) { $profiles[] = $this->_values['custom_pre_id']; @@ -2643,9 +2678,13 @@ class CRM_Core_Form extends HTML_QuickForm_Page { /** * Sets page title based on entity and action. - * @param string $entityLabel + * @param string|null $entityLabel + * @throws CRM_Core_Exception */ - public function setPageTitle($entityLabel) { + public function setPageTitle(?string $entityLabel = NULL): void { + if (!isset($entityLabel)) { + $entityLabel = \Civi\Api4\Utils\CoreUtil::getInfoItem($this->getDefaultEntity(), 'title'); + } switch ($this->_action) { case CRM_Core_Action::ADD: $this->setTitle(ts('New %1', [1 => $entityLabel])); diff --git a/civicrm/CRM/Core/Form/EntityFormTrait.php b/civicrm/CRM/Core/Form/EntityFormTrait.php index f6173a4e64..3941da88d6 100644 --- a/civicrm/CRM/Core/Form/EntityFormTrait.php +++ b/civicrm/CRM/Core/Form/EntityFormTrait.php @@ -176,11 +176,9 @@ trait CRM_Core_Form_EntityFormTrait { $this->entityFields[$index] = array_replace_recursive([ 'template' => '', 'help' => ['id' => '', 'file' => ''], - 'pre_html_text' => '', 'post_html_text' => '', 'description' => '', 'documentation_link' => ['page' => '', 'resource' => ''], - 'place_holder' => '', ], $fields); } $this->assign('entityFields', $this->entityFields); diff --git a/civicrm/CRM/Core/Form/Renderer.php b/civicrm/CRM/Core/Form/Renderer.php index 92e23e7a50..11f40d86ed 100644 --- a/civicrm/CRM/Core/Form/Renderer.php +++ b/civicrm/CRM/Core/Form/Renderer.php @@ -217,6 +217,34 @@ class CRM_Core_Form_Renderer extends HTML_QuickForm_Renderer_ArraySmarty { $element->updateAttributes($attributes); } + /** + * Process an template sourced in a string with Smarty + * + * This overrides the quick form function which has not been updated in a while. + * + * The function is called when render the code to mark a field as 'required' + * + * The notes on the quick form function seem to refer to older smarty - ie: + * Smarty has no core function to render a template given as a string. + * So we use the smarty eval plugin function to do this. + * + * @param string $tplSource The template source + */ + public function _tplFetch($tplSource) { + // Smarty3 does not have this function defined so the parent fails. + // Adding this is preparatory to smarty 3.... + if (!function_exists('smarty_function_eval') && !file_exists(SMARTY_DIR . '/plugins/function.eval.php')) { + $smarty = $this->_tpl; + $smarty->assign('var', $tplSource); + return $smarty->fetch("string:$tplSource"); + } + // This part is what the parent does & is suitable to Smarty 2. + if (!function_exists('smarty_function_eval')) { + require SMARTY_DIR . '/plugins/function.eval.php'; + } + return smarty_function_eval(['var' => $tplSource], $this->_tpl); + } + /** * Convert IDs to values and format for display. * diff --git a/civicrm/CRM/Core/JobManager.php b/civicrm/CRM/Core/JobManager.php index de0e94cd9c..28049bb8e9 100644 --- a/civicrm/CRM/Core/JobManager.php +++ b/civicrm/CRM/Core/JobManager.php @@ -23,7 +23,7 @@ class CRM_Core_JobManager { * * Format is ($id => CRM_Core_ScheduledJob). * - * @var array + * @var CRM_Core_ScheduledJob[] */ public $jobs = NULL; @@ -40,7 +40,7 @@ class CRM_Core_JobManager { * Class constructor. */ public function __construct() { - $this->jobs = $this->_getJobs(); + $this->jobs = $this->getJobs(); } /** @@ -75,18 +75,12 @@ class CRM_Core_JobManager { CRM_Core_BAO_StatusPreference::create($statusPref); } - /** - * Class destructor. - */ - public function __destruct() { - } - /** * @param $entity * @param $action */ public function executeJobByAction($entity, $action) { - $job = $this->_getJob(NULL, $entity, $action); + $job = $this->getJob(NULL, $entity, $action); $this->executeJob($job); } @@ -94,7 +88,7 @@ class CRM_Core_JobManager { * @param int $id */ public function executeJobById($id) { - $job = $this->_getJob($id); + $job = $this->getJob($id); $this->executeJob($job); } @@ -135,7 +129,7 @@ class CRM_Core_JobManager { $result = $e; } CRM_Utils_Hook::postJob($job, $params, $result); - $this->logEntry('Finished execution of ' . $job->name . ' with result: ' . $this->_apiResultToMessage($result)); + $this->logEntry('Finished execution of ' . $job->name . ' with result: ' . $this->apiResultToMessage($result)); $this->currentJob = FALSE; //Disable outBound option after executing the job. @@ -152,7 +146,7 @@ class CRM_Core_JobManager { * @return array * ($id => CRM_Core_ScheduledJob) */ - private function _getJobs(): array { + private function getJobs(): array { $jobs = []; $dao = new CRM_Core_DAO_Job(); $dao->orderBy('name'); @@ -177,7 +171,7 @@ class CRM_Core_JobManager { * @return CRM_Core_ScheduledJob * @throws Exception */ - private function _getJob($id = NULL, $entity = NULL, $action = NULL) { + private function getJob($id = NULL, $entity = NULL, $action = NULL) { if (is_null($id) && is_null($action)) { throw new CRM_Core_Exception('You need to provide either id or name to use this method'); } @@ -258,7 +252,7 @@ class CRM_Core_JobManager { * * @return string */ - private function _apiResultToMessage($apiResult) { + private function apiResultToMessage($apiResult) { $status = ($apiResult['is_error'] ?? FALSE) ? ts('Failure') : ts('Success'); $msg = CRM_Utils_Array::value('error_message', $apiResult, 'empty error_message!'); $vals = CRM_Utils_Array::value('values', $apiResult, 'empty values!'); diff --git a/civicrm/CRM/Core/ManagedEntities.php b/civicrm/CRM/Core/ManagedEntities.php index 0c16cb2644..daacdca7a5 100644 --- a/civicrm/CRM/Core/ManagedEntities.php +++ b/civicrm/CRM/Core/ManagedEntities.php @@ -1,6 +1,7 @@ <?php use Civi\Api4\Managed; +use Civi\Api4\Utils\CoreUtil; /** * The ManagedEntities system allows modules to add records to the database @@ -43,14 +44,15 @@ class CRM_Core_ManagedEntities { /** * Perform an asynchronous reconciliation when the transaction ends. + * @param array|null $modules */ - public static function scheduleReconciliation() { + public static function scheduleReconciliation(array $modules = NULL) { CRM_Core_Transaction::addCallback( CRM_Core_Transaction::PHASE_POST_COMMIT, - function () { - CRM_Core_ManagedEntities::singleton(TRUE)->reconcile(); + function ($modules) { + CRM_Core_ManagedEntities::singleton(TRUE)->reconcile($modules); }, - [], + [$modules], 'ManagedEntities::reconcile' ); } @@ -115,12 +117,14 @@ class CRM_Core_ManagedEntities { /** * Force-revert a record back to its original state. - * @param array $params - * Key->value properties of CRM_Core_DAO_Managed used to match an existing record + * @param string $entityType + * @param $entityId + * @return bool */ - public function revert(array $params) { + public function revert(string $entityType, $entityId): bool { $mgd = new \CRM_Core_DAO_Managed(); - $mgd->copyValues($params); + $mgd->entity_type = $entityType; + $mgd->entity_id = $entityId; $mgd->find(TRUE); $declarations = $this->getDeclarations([$mgd->module]); $declarations = CRM_Utils_Array::findAll($declarations, [ @@ -129,12 +133,39 @@ class CRM_Core_ManagedEntities { 'entity' => $mgd->entity_type, ]); if ($mgd->id && isset($declarations[0])) { - $this->updateExistingEntity(['update' => 'always'] + $declarations[0] + $mgd->toArray()); + $item = ['update' => 'always'] + $declarations[0] + $mgd->toArray(); + $this->backfillDefaults($item); + $this->updateExistingEntity($item); return TRUE; } return FALSE; } + /** + * Backfill default values to restore record to a pristine state + * + * @param array $item Managed APIv4 record + */ + private function backfillDefaults(array &$item): void { + if ($item['params']['version'] != 4) { + return; + } + // Fetch default values for fields that are writeable + $condition = [['type', '=', 'Field'], ['readonly', 'IS EMPTY'], ['default_value', '!=', 'now']]; + // Exclude "weight" as that auto-adjusts + if (in_array('SortableEntity', CoreUtil::getInfoItem($item['entity_type'], 'type'), TRUE)) { + $weightCol = CoreUtil::getInfoItem($item['entity_type'], 'order_by'); + $condition[] = ['name', '!=', $weightCol]; + } + $getFields = civicrm_api4($item['entity_type'], 'getFields', [ + 'checkPermissions' => FALSE, + 'action' => 'create', + 'where' => $condition, + ]); + $defaultValues = $getFields->indexBy('name')->column('default_value'); + $item['params']['values'] += $defaultValues; + } + /** * Take appropriate action on every managed entity. * @@ -331,7 +362,7 @@ class CRM_Core_ManagedEntities { case 'unused': if (CRM_Core_BAO_Managed::isApi4ManagedType($item['entity_type'])) { - $getRefCount = \Civi\Api4\Utils\CoreUtil::getRefCount($item['entity_type'], $item['entity_id']); + $getRefCount = CoreUtil::getRefCount($item['entity_type'], $item['entity_id']); } else { $getRefCount = civicrm_api3($item['entity_type'], 'getrefcount', [ diff --git a/civicrm/CRM/Core/Module.php b/civicrm/CRM/Core/Module.php index 7f0daefb2a..1e46e957de 100644 --- a/civicrm/CRM/Core/Module.php +++ b/civicrm/CRM/Core/Module.php @@ -24,6 +24,13 @@ class CRM_Core_Module { */ public $name; + /** + * Pretty name of the module + * + * @var string + */ + public $label; + /** * Is the module enabled. * @@ -35,11 +42,15 @@ class CRM_Core_Module { * Class constructor. * * @param string $name + * Unique machine name of the module * @param bool $is_active + * @param string|null $label + * Pretty name of the module. If omitted, fallback to $name. */ - public function __construct($name, $is_active) { + public function __construct($name, $is_active, ?string $label = NULL) { $this->name = $name; $this->is_active = $is_active; + $this->label = $label ?: $name; } /** @@ -55,7 +66,7 @@ class CRM_Core_Module { if ($fresh || !is_array($result)) { $result = CRM_Extension_System::singleton()->getMapper()->getModules(); // pseudo-module for core - $result[] = new CRM_Core_Module('civicrm', TRUE); + $result[] = new CRM_Core_Module('civicrm', TRUE, ts('CiviCRM Core')); $config = CRM_Core_Config::singleton(); $result = array_merge($result, $config->userSystem->getModules()); diff --git a/civicrm/CRM/Core/Payment/Form.php b/civicrm/CRM/Core/Payment/Form.php index 5f0b99a110..6002459f34 100644 --- a/civicrm/CRM/Core/Payment/Form.php +++ b/civicrm/CRM/Core/Payment/Form.php @@ -39,7 +39,6 @@ class CRM_Core_Payment_Form { * ID of the payment processor. */ public static function setPaymentFieldsByProcessor(&$form, $processor, $billing_profile_id = NULL, $isBackOffice = FALSE, $paymentInstrumentID = NULL) { - $form->billingFieldSets = []; // Load the pay-later processor // @todo load this right up where the other processors are loaded initially. if (empty($processor)) { @@ -55,12 +54,10 @@ class CRM_Core_Payment_Form { $form->assign('paymentTypeName', $paymentTypeName); $form->assign('paymentTypeLabel', self::getPaymentLabel($processor['object'])); $form->assign('isBackOffice', $isBackOffice); - $form->_paymentFields = $form->billingFieldSets[$paymentTypeName]['fields'] = self::getPaymentFieldMetadata($processor); + $form->_paymentFields = self::getPaymentFieldMetadata($processor); $form->_paymentFields = array_merge($form->_paymentFields, self::getBillingAddressMetadata($processor, $form->_bltID)); $form->assign('paymentFields', self::getPaymentFields($processor)); self::setBillingAddressFields($form, $processor); - // @todo - this may be obsolete - although potentially it could be used to re-order things in the form. - $form->billingFieldSets['billing_name_address-group']['fields'] = []; } /** diff --git a/civicrm/CRM/Core/Payment/PayPalProIPN.php b/civicrm/CRM/Core/Payment/PayPalProIPN.php index 2106e136d4..61460ca9c3 100644 --- a/civicrm/CRM/Core/Payment/PayPalProIPN.php +++ b/civicrm/CRM/Core/Payment/PayPalProIPN.php @@ -228,60 +228,29 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN { $first = !$this->isContributionCompleted(); $recur = $this->getContributionRecurObject(); if (!isset($input['txnType'])) { - Civi::log()->debug('PayPalProIPN: Could not find txn_type in input request.'); + Civi::log('paypal_pro')->debug('PayPalProIPN: Could not find txn_type in input request.'); echo 'Failure: Invalid parameters<p>'; return; } - // make sure the invoice ids match - // make sure the invoice is valid and matches what we have in - // the contribution record - if ($recur->invoice_id != $input['invoice']) { - Civi::log()->debug('PayPalProIPN: Invoice values dont match between database and IPN request recur is ' . $recur->invoice_id . ' input is ' . $input['invoice']); - echo 'Failure: Invoice values dont match between database and IPN request recur is ' . $recur->invoice_id . " input is " . $input['invoice']; - return; - } - $now = date('YmdHis'); - $sendNotification = FALSE; - $subscriptionPaymentStatus = NULL; - //List of Transaction Type - /* - recurring_payment_profile_created RP Profile Created - recurring_payment RP Successful Payment - recurring_payment_failed RP Failed Payment - recurring_payment_profile_cancel RP Profile Cancelled - recurring_payment_expired RP Profile Expired - recurring_payment_skipped RP Profile Skipped - recurring_payment_outstanding_payment RP Successful Outstanding Payment - recurring_payment_outstanding_payment_failed RP Failed Outstanding Payment - recurring_payment_suspended RP Profile Suspended - recurring_payment_suspended_due_to_max_failed_payment RP Profile Suspended due to Max Failed Payment - */ - - //set transaction type $txnType = $this->retrieve('txn_type', 'String'); - //Changes for paypal pro recurring payment + switch ($txnType) { case 'recurring_payment_profile_created': - if (in_array(CRM_Core_PseudoConstant::getName('CRM_Contribute_BAO_ContributionRecur', 'contribution_status_id', $recur->contribution_status_id), [ - 'Pending', 'In Progress', - ], TRUE) - && !empty($recur->processor_id) + if (CRM_Core_PseudoConstant::getName('CRM_Contribute_BAO_ContributionRecur', 'contribution_status_id', $recur->contribution_status_id) === 'In Progress' ) { - echo 'already handled'; + Civi::log('paypal_pro')->debug('already handled'); return; } - $recur->create_date = $now; - $recur->contribution_status_id = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_ContributionRecur', 'contribution_status_id', 'Pending'); - $recur->processor_id = $this->retrieve('recurring_payment_id', 'String'); - $recur->trxn_id = $recur->processor_id; - $subscriptionPaymentStatus = CRM_Core_Payment::RECURRING_PAYMENT_START; - $sendNotification = TRUE; - break; + $this->processProfileCreated(); + return; case 'recurring_payment': + $recur->processor_id = $this->retrieve('recurring_payment_id', 'String'); + $recur->trxn_id = $recur->processor_id; + $recur->save(); if (!$first) { if ($input['paymentStatus'] !== 'Completed') { throw new CRM_Core_Exception('Ignore all IPN payments that are not completed'); @@ -306,29 +275,18 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN { } $recur->contribution_status_id = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_ContributionRecur', 'contribution_status_id', 'Completed'); $recur->end_date = $now; - $sendNotification = TRUE; - $subscriptionPaymentStatus = CRM_Core_Payment::RECURRING_PAYMENT_END; + $recur->save(); + //send recurring Notification email for user + CRM_Contribute_BAO_ContributionPage::recurringNotify( + $this->getContributionID(), + CRM_Core_Payment::RECURRING_PAYMENT_END, + $recur + ); } - + $this->single($input); break; } - $recur->save(); - - if ($sendNotification) { - //send recurring Notification email for user - CRM_Contribute_BAO_ContributionPage::recurringNotify( - $this->getContributionID(), - $subscriptionPaymentStatus, - $recur - ); - } - - if ($txnType !== 'recurring_payment') { - return; - } - - $this->single($input); } /** @@ -355,11 +313,11 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN { 'cancel_date' => 'now', 'contribution_status_id:name' => 'Failed', ])->addWhere('id', '=', $this->getContributionID())->execute(); - Civi::log()->debug('Setting contribution status to Failed'); + Civi::log('paypal_pro')->debug('Setting contribution status to Failed'); return; } if ($status === 'Pending') { - Civi::log()->debug('Returning since contribution status is Pending'); + Civi::log('paypal_pro')->debug('Returning since contribution status is Pending'); return; } if ($status === 'Refunded' || $status === 'Reversed') { @@ -367,16 +325,16 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN { 'cancel_date' => 'now', 'contribution_status_id:name' => 'Cancelled', ])->addWhere('id', '=', $this->getContributionID())->execute(); - Civi::log()->debug('Setting contribution status to Cancelled'); + Civi::log('paypal_pro')->debug('Setting contribution status to Cancelled'); return; } if ($status !== 'Completed') { - Civi::log()->debug('Returning since contribution status is not handled'); + Civi::log('paypal_pro')->debug('Returning since contribution status is not handled'); return; } if ($this->isContributionCompleted()) { - Civi::log()->debug('PayPalProIPN: Returning since contribution has already been handled.'); + Civi::log('paypal_pro')->debug('PayPalProIPN: Returning since contribution has already been handled.'); echo 'Success: Contribution has already been handled<p>'; return; } @@ -396,7 +354,7 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN { // entirely). The only thing the IPN class should really do is extract data from the request, validate it // & call completetransaction or call fail? (which may not exist yet). - Civi::log()->warning('Unreliable method used to get payment_processor_id for PayPal Pro IPN - this will cause problems if you have more than one instance'); + Civi::log('paypal_pro')->warning('Unreliable method used to get payment_processor_id for PayPal Pro IPN - this will cause problems if you have more than one instance'); $paymentProcessorTypeID = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_PaymentProcessorType', 'PayPal', 'id', 'name' @@ -449,7 +407,7 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN { $this->single($input); } catch (Exception $e) { - Civi::log()->debug($e->getMessage() . ' input {input}', ['input' => $input]); + Civi::log('paypal_pro')->debug($e->getMessage() . ' input {input}', ['input' => $input]); echo 'Invalid or missing data'; } } @@ -561,6 +519,15 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN { if (!$contributionRecur->find(TRUE)) { throw new CRM_Core_Exception('Failure: Could not find contribution recur record'); } + + // make sure the invoice ids match + // make sure the invoice is valid and matches what we have in + // the contribution record + $invoice = (string) $this->getValue('i'); + if ((string) $contributionRecur->invoice_id !== $invoice) { + Civi::log('paypal_pro')->debug('PayPalProIPN: Invoice values dont match between database and IPN request recur is ' . $contributionRecur->invoice_id . ' input is ' . $invoice); + throw new CRM_Core_Exception('Failure: Invoice values dont match between database and IPN request recur is ' . $contributionRecur->invoice_id . " input is " . $invoice); + } return $this->contributionRecurObject = $contributionRecur; } return $this->contributionRecurObject; @@ -607,4 +574,30 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN { return $status === 'Completed'; } + /** + * Update a recurring contribution to in progress based on an ipn profile_create notification. + * + * recurring_payment_profile_created is called when the + * subscription has been authorized and confirmed by the user, + * but before a payment has been taken. + * The recurring_payment_id is POSTed to the IPN + * and we store it in the recurring contribution's processor_id. + * + * @throws \CRM_Core_Exception + */ + private function processProfileCreated(): void { + $recur = $this->getContributionRecurObject(); + $recur->create_date = date('YmdHis'); + $recur->contribution_status_id = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_ContributionRecur', 'contribution_status_id', 'Pending'); + $recur->processor_id = $this->retrieve('recurring_payment_id', 'String'); + $recur->trxn_id = $recur->processor_id; + $recur->save(); + //send recurring Notification email for user + CRM_Contribute_BAO_ContributionPage::recurringNotify( + $this->getContributionID(), + CRM_Core_Payment::RECURRING_PAYMENT_START, + $recur + ); + } + } diff --git a/civicrm/CRM/Core/Payment/ProcessorForm.php b/civicrm/CRM/Core/Payment/ProcessorForm.php index e62763f7d3..381090f7aa 100644 --- a/civicrm/CRM/Core/Payment/ProcessorForm.php +++ b/civicrm/CRM/Core/Payment/ProcessorForm.php @@ -31,16 +31,10 @@ class CRM_Core_Payment_ProcessorForm { * @throws Exception */ public static function preProcess(&$form, $type = NULL, $mode = NULL) { + $type = $type ?: CRM_Utils_Request::retrieve('type', 'String', $form); if ($type) { - $form->_type = $type; - } - else { - $form->_type = CRM_Utils_Request::retrieve('type', 'String', $form); - } - - if ($form->_type) { // @todo not sure when this would be true. Never passed in. - $form->_paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment($form->_type, $form->_mode); + $form->_paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment($type, $form->_mode); } if (empty($form->_paymentProcessor)) { diff --git a/civicrm/CRM/Core/Permission.php b/civicrm/CRM/Core/Permission.php index 64a7db180b..f8f2fb7ace 100644 --- a/civicrm/CRM/Core/Permission.php +++ b/civicrm/CRM/Core/Permission.php @@ -1259,6 +1259,7 @@ class CRM_Core_Permission { ], ]; $permissions['files_by_entity'] = $permissions['file']; + $permissions['entity_file'] = $permissions['file']; // Group permissions $permissions['group'] = [ @@ -1576,6 +1577,12 @@ class CRM_Core_Permission { 'gettree' => ['access CiviCRM'], ]; + $permissions['location_type'] = [ + 'get' => ['access CiviCRM'], + 'update' => ['administer CiviCRM data'], + 'delete' => ['administer CiviCRM data'], + ]; + $permissions['message_template'] = [ 'get' => ['access CiviCRM'], 'create' => [['edit message templates', 'edit user-driven message templates', 'edit system workflow message templates']], diff --git a/civicrm/CRM/Core/Reference/Dynamic.php b/civicrm/CRM/Core/Reference/Dynamic.php index b806a89398..dd192d58c6 100644 --- a/civicrm/CRM/Core/Reference/Dynamic.php +++ b/civicrm/CRM/Core/Reference/Dynamic.php @@ -24,7 +24,7 @@ class CRM_Core_Reference_Dynamic extends CRM_Core_Reference_Basic { public function getTargetEntities(): array { $targetEntities = []; $bao = CRM_Core_DAO_AllCoreTables::getClassForTable($this->refTable); - $targetTables = (array) $bao::buildOptions($this->refTypeColumn); + $targetTables = $bao::buildOptions($this->refTypeColumn) ?: []; foreach ($targetTables as $table => $label) { $targetEntities[$table] = CRM_Core_DAO_AllCoreTables::getEntityNameForTable($table); } diff --git a/civicrm/CRM/Core/Resources.php b/civicrm/CRM/Core/Resources.php index b1818c6893..f1610b35f6 100644 --- a/civicrm/CRM/Core/Resources.php +++ b/civicrm/CRM/Core/Resources.php @@ -429,7 +429,7 @@ class CRM_Core_Resources implements CRM_Core_Resources_CollectionAdderInterface $e->mimeType = 'application/javascript'; $params = $e->params; $params += [ - 'contactSearch' => json_encode($params['includeEmailInName'] ? ts('Search by name/email or id...') : ts('Search by name or id...')), + 'contactSearch' => json_encode(!empty($params['includeEmailInName']) ? ts('Search by name/email or id...') : ts('Search by name or id...')), 'otherSearch' => json_encode(ts('Enter search term or id...')), 'entityRef' => self::getEntityRefMetadata(), ]; diff --git a/civicrm/CRM/Core/ScheduledJob.php b/civicrm/CRM/Core/ScheduledJob.php index 34cfd57bcf..02e5184799 100644 --- a/civicrm/CRM/Core/ScheduledJob.php +++ b/civicrm/CRM/Core/ScheduledJob.php @@ -19,34 +19,123 @@ class CRM_Core_ScheduledJob { /** + * Job ID + * * @var int - * @deprecated */ - public $version = 3; + public $id; /** + * Which Domain is this scheduled job for + * * @var int */ - public $id; + public $domain_id; + + /** + * Scheduled job run frequency. + * + * @var string + */ + public $run_frequency; + + /** + * When was this cron entry last run + * + * @var string + */ + public $last_run; + + /** + * When is this cron entry scheduled to run + * + * @var string + */ + public $scheduled_run_date; + + /** + * Title of the job + * + * @var string + */ + public $name; + + /** + * Description of the job + * + * @var string + */ + public $description; - public $name = NULL; + /** + * Entity of the job api call + * + * @var string + */ + public $api_entity; + + /** + * Action of the job api call + * + * @var string + */ + public $api_action; + + /** + * List of parameters to the command. + * + * @var string + */ + public $parameters; /** + * Is this job active? + * + * @var bool + */ + public $is_active; + + /** + * Class string + * + * Set as a URL, when the jobs template is rendered, + * but not set in other contexts + * + * @var string|null + */ + public $action = NULL; + + /** + * Action + * * @var string + * @todo This seems to only ever be set to an empty string and passed through to job.tpl, + * where it is used a HTML `class`. Can this be removed? */ - public $parameters = ''; + public $class; + /** + * Result of parsing multi-line `$parameters` string into an array + * + * @var array + */ public $apiParams = []; + /** + * Container for error messages + * + * @var array + */ public $remarks = []; /** * @param array $params */ public function __construct($params) { - // Fixme - setting undeclared class properties! foreach ($params as $name => $param) { - $this->$name = $param; + if (property_exists($this, $name)) { + $this->$name = $param; + } } try { diff --git a/civicrm/CRM/Core/SelectValues.php b/civicrm/CRM/Core/SelectValues.php index 0573b1a8a1..e3886e2fd1 100644 --- a/civicrm/CRM/Core/SelectValues.php +++ b/civicrm/CRM/Core/SelectValues.php @@ -1079,16 +1079,19 @@ class CRM_Core_SelectValues { 'id' => CRM_Contact_BAO_Relationship::NONE, 'name' => 'None', 'label' => ts('None'), + 'icon' => NULL, ], [ 'id' => CRM_Contact_BAO_Relationship::VIEW, 'name' => 'View only', 'label' => ts('View only'), + 'icon' => 'fa-eye', ], [ 'id' => CRM_Contact_BAO_Relationship::EDIT, 'name' => 'View and update', 'label' => ts('View and update'), + 'icon' => 'fa-pencil-square', ], ]; } diff --git a/civicrm/CRM/Core/Smarty.php b/civicrm/CRM/Core/Smarty.php index b5c22c62df..41de354b17 100644 --- a/civicrm/CRM/Core/Smarty.php +++ b/civicrm/CRM/Core/Smarty.php @@ -22,14 +22,10 @@ use Civi\Core\Event\SmartyErrorEvent; -if (!class_exists('Smarty')) { - require_once 'Smarty/Smarty.class.php'; -} - /** * */ -class CRM_Core_Smarty extends Smarty { +class CRM_Core_Smarty extends CRM_Core_SmartyCompatibility { const // use print.tpl and bypass the CMS. Civi prints a valid html file PRINT_PAGE = 1, @@ -132,6 +128,14 @@ class CRM_Core_Smarty extends Smarty { $this->assign('config', $config); $this->assign('session', $session); + $this->assign('debugging', [ + 'smartyDebug' => CRM_Utils_Request::retrieveValue('smartyDebug', 'Integer'), + 'sessionReset' => CRM_Utils_Request::retrieveValue('sessionReset', 'Integer'), + 'sessionDebug' => CRM_Utils_Request::retrieveValue('sessionDebug', 'Integer'), + 'directoryCleanup' => CRM_Utils_Request::retrieveValue('directoryCleanup', 'Integer'), + 'cacheCleanup' => CRM_Utils_Request::retrieveValue('cacheCleanup', 'Integer'), + 'configReset' => CRM_Utils_Request::retrieveValue('configReset', 'Integer'), + ]); $tsLocale = CRM_Core_I18n::getLocale(); $this->assign('tsLocale', $tsLocale); @@ -141,7 +145,12 @@ class CRM_Core_Smarty extends Smarty { $this->assign('langSwitch', CRM_Core_I18n::uiLanguages()); } - if (CRM_Utils_Constant::value('CIVICRM_SMARTY_DEFAULT_ESCAPE')) { + if (CRM_Utils_Constant::value('CIVICRM_SMARTY_DEFAULT_ESCAPE') + && !CRM_Utils_Constant::value('CIVICRM_SMARTY3_AUTOLOAD_PATH')) { + // Currently DEFAULT escape does not work with Smarty3 + // dunno why - thought it would be the default with Smarty3 - but + // getting onto Smarty 3 is higher priority. + // The include below loads the v2 version which is why id doesn't work. // When default escape is enabled if the core escape is called before // any custom escaping is done the modifier_escape function is not // found, so require_once straight away. Note this was hit on the basic @@ -183,35 +192,6 @@ class CRM_Core_Smarty extends Smarty { return self::$_singleton; } - /** - * Executes & returns or displays the template results - * - * @param string $resource_name - * @param string $cache_id - * @param string $compile_id - * @param bool $display - * - * @return bool|mixed|string - * - * @noinspection PhpDocMissingThrowsInspection - * @noinspection PhpUnhandledExceptionInspection - */ - public function fetch($resource_name, $cache_id = NULL, $compile_id = NULL, $display = FALSE) { - if (preg_match('/^(\s+)?string:/', $resource_name)) { - $old_security = $this->security; - $this->security = TRUE; - } - try { - $output = parent::fetch($resource_name, $cache_id, $compile_id, $display); - } - finally { - if (isset($old_security)) { - $this->security = $old_security; - } - } - return $output; - } - /** * Handle smarty error in one off string. * diff --git a/civicrm/CRM/Core/Smarty/plugins/block.crmButton.php b/civicrm/CRM/Core/Smarty/plugins/block.crmButton.php index 64543d5957..fbd6606329 100644 --- a/civicrm/CRM/Core/Smarty/plugins/block.crmButton.php +++ b/civicrm/CRM/Core/Smarty/plugins/block.crmButton.php @@ -24,33 +24,37 @@ * Contents of block. * @param CRM_Core_Smarty $smarty * The Smarty object. + * @param bool $repeat + * Repeat is true for the opening tag, false for the closing tag * - * @return string + * @return string|null * The generated html. */ -function smarty_block_crmButton($params, $text, &$smarty) { - // Generate url (pass 'html' param as false to avoid double-encode by htmlAttributes) - if (empty($params['href'])) { - $params['href'] = CRM_Utils_System::crmURL($params + ['h' => FALSE]); - } - // Always add class 'button' - fixme probably should be crm-button - $params['class'] = empty($params['class']) ? 'button' : 'button ' . $params['class']; - // Any FA icon works - if (array_key_exists('icon', $params) && !$params['icon']) { - // icon=0 should produce a button with no icon - $iconMarkup = ''; - } - else { - $icon = $params['icon'] ?? 'fa-pencil'; - // Assume for now that all icons are Font Awesome v4.x but handle if it's - // specified - if (strpos($icon, 'fa-') !== 0) { - $icon = "fa-$icon"; +function smarty_block_crmButton($params, $text, &$smarty, &$repeat) { + if (!$repeat) { + // Generate url (pass 'html' param as false to avoid double-encode by htmlAttributes) + if (empty($params['href'])) { + $params['href'] = CRM_Utils_System::crmURL($params + ['h' => FALSE]); + } + // Always add class 'button' - fixme probably should be crm-button + $params['class'] = empty($params['class']) ? 'button' : 'button ' . $params['class']; + // Any FA icon works + if (array_key_exists('icon', $params) && !$params['icon']) { + // icon=0 should produce a button with no icon + $iconMarkup = ''; + } + else { + $icon = $params['icon'] ?? 'fa-pencil'; + // Assume for now that all icons are Font Awesome v4.x but handle if it's + // specified + if (strpos($icon, 'fa-') !== 0) { + $icon = "fa-$icon"; + } + $iconMarkup = "<i class='crm-i $icon' aria-hidden=\"true\"></i> "; } - $iconMarkup = "<i class='crm-i $icon' aria-hidden=\"true\"></i> "; + // All other params are treated as html attributes + CRM_Utils_Array::remove($params, 'icon', 'p', 'q', 'a', 'f', 'h', 'fb', 'fe'); + $attributes = CRM_Utils_String::htmlAttributes($params); + return "<a $attributes><span>$iconMarkup$text</span></a>"; } - // All other params are treated as html attributes - CRM_Utils_Array::remove($params, 'icon', 'p', 'q', 'a', 'f', 'h', 'fb', 'fe'); - $attributes = CRM_Utils_String::htmlAttributes($params); - return "<a $attributes><span>$iconMarkup$text</span></a>"; } diff --git a/civicrm/CRM/Core/Smarty/plugins/block.crmUpgradeSnapshot.php b/civicrm/CRM/Core/Smarty/plugins/block.crmUpgradeSnapshot.php index 9e95233751..44571c14ed 100644 --- a/civicrm/CRM/Core/Smarty/plugins/block.crmUpgradeSnapshot.php +++ b/civicrm/CRM/Core/Smarty/plugins/block.crmUpgradeSnapshot.php @@ -32,11 +32,13 @@ * @param string|null $text * The SELECT query which supplies the interesting data to be stored in the snapshot. * @param CRM_Core_Smarty $smarty + * @param bool $repeat + * Repeat is true for the opening tag, false for the closing tag * @return string|null * @throws \CRM_Core_Exception */ -function smarty_block_crmUpgradeSnapshot($params, $text, &$smarty) { - if ($text === NULL) { +function smarty_block_crmUpgradeSnapshot($params, $text, &$smarty, &$repeat) { + if ($repeat || $text === NULL) { return NULL; } diff --git a/civicrm/CRM/Core/Smarty/plugins/block.edit.php b/civicrm/CRM/Core/Smarty/plugins/block.edit.php index d42fe44e03..cb3d15479d 100644 --- a/civicrm/CRM/Core/Smarty/plugins/block.edit.php +++ b/civicrm/CRM/Core/Smarty/plugins/block.edit.php @@ -30,11 +30,15 @@ * {edit} block contents from the template. * @param CRM_Core_Smarty $smarty * The Smarty object. + * @param bool $repeat + * Repeat is true for the opening tag, false for the closing tag * - * @return string + * @return string|null * the string, translated by gettext */ -function smarty_block_edit($params, $text, &$smarty) { - $action = $smarty->_tpl_vars['action']; - return ($action & 3) ? $text : NULL; +function smarty_block_edit($params, $text, &$smarty, &$repeat) { + if (!$repeat) { + $action = $smarty->get_template_vars()['action']; + return ($action & 3) ? $text : NULL; + } } diff --git a/civicrm/CRM/Core/Smarty/plugins/block.htxt.php b/civicrm/CRM/Core/Smarty/plugins/block.htxt.php index cfd03732c1..cc58bda773 100644 --- a/civicrm/CRM/Core/Smarty/plugins/block.htxt.php +++ b/civicrm/CRM/Core/Smarty/plugins/block.htxt.php @@ -26,16 +26,16 @@ * {ts} block contents from the template. * @param CRM_Core_Smarty $smarty * The Smarty object. + * @param bool $repeat + * Repeat is true for the opening tag, false for the closing tag * - * @return string + * @return string|null * the string, translated by gettext */ -function smarty_block_htxt($params, $text, &$smarty) { - if ($params['id'] == $smarty->_tpl_vars['id']) { +function smarty_block_htxt($params, $text, $smarty, &$repeat) { + if (!$repeat && $params['id'] == $smarty->getTemplateVars('id')) { $smarty->assign('override_help_text', !empty($params['override'])); return $text; } - else { - return NULL; - } + return NULL; } diff --git a/civicrm/CRM/Core/Smarty/plugins/block.icon.php b/civicrm/CRM/Core/Smarty/plugins/block.icon.php index 97dbb6d55d..84865c63d4 100644 --- a/civicrm/CRM/Core/Smarty/plugins/block.icon.php +++ b/civicrm/CRM/Core/Smarty/plugins/block.icon.php @@ -30,14 +30,19 @@ * * @param $smarty * - * @return string + * @param bool $repeat + * Repeat is true for the opening tag, false for the closing tag + * + * @return string|null */ -function smarty_block_icon($params, $text, &$smarty) { - $condition = array_key_exists('condition', $params) ? $params['condition'] : 1; - $icon = $params['icon'] ?? 'fa-check'; - $dontPass = [ - 'condition' => 1, - 'icon' => 1, - ]; - return CRM_Core_Page::crmIcon($icon, $text, $condition, array_diff_key($params, $dontPass)); +function smarty_block_icon($params, $text, &$smarty, &$repeat) { + if (!$repeat) { + $condition = array_key_exists('condition', $params) ? $params['condition'] : 1; + $icon = $params['icon'] ?? 'fa-check'; + $dontPass = [ + 'condition' => 1, + 'icon' => 1, + ]; + return CRM_Core_Page::crmIcon($icon, $text, $condition, array_diff_key($params, $dontPass)); + } } diff --git a/civicrm/CRM/Core/Smarty/plugins/block.localize.php b/civicrm/CRM/Core/Smarty/plugins/block.localize.php index 2042827919..47e64fe6be 100644 --- a/civicrm/CRM/Core/Smarty/plugins/block.localize.php +++ b/civicrm/CRM/Core/Smarty/plugins/block.localize.php @@ -26,11 +26,19 @@ * {ts} block contents from the template. * @param CRM_Core_Smarty $smarty * The Smarty object. + * @param bool $repeat + * Confusing variable that means it's either the opening tag or you can use + * it to signal back not to repeat. * * @return string * multilingualized query */ -function smarty_block_localize($params, $text, &$smarty) { +function smarty_block_localize($params, $text, &$smarty, &$repeat) { + if ($repeat) { + // For opening tag text is always null + return ''; + } + if (!array_key_exists('multilingual', $smarty->_tpl_vars) || !$smarty->_tpl_vars['multilingual']) { return $text; } diff --git a/civicrm/CRM/Core/Smarty/plugins/block.serialize.php b/civicrm/CRM/Core/Smarty/plugins/block.serialize.php deleted file mode 100644 index e716631050..0000000000 --- a/civicrm/CRM/Core/Smarty/plugins/block.serialize.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php -/* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ - */ - -/** - * CiviCRM's Smarty gettext plugin - * - * @package CRM - * @author Donald Lobo <lobo@civicrm.org> - * @copyright CiviCRM LLC https://civicrm.org/licensing - */ - -/** - * Smarty block function providing serialization support - * - * See CRM_Core_I18n class documentation for details. - * - * @param array $params - * Template call's parameters. - * @param string $text - * {serialize} block contents from the template. - * @param CRM_Core_Smarty $smarty - * The Smarty object. - * - * @return string - * the string, translated by gettext - */ -function smarty_block_serialize($params, $text, &$smarty) { - return serialize($text); -} diff --git a/civicrm/CRM/Core/Smarty/plugins/block.ts.php b/civicrm/CRM/Core/Smarty/plugins/block.ts.php index 785122d36e..cb077675de 100644 --- a/civicrm/CRM/Core/Smarty/plugins/block.ts.php +++ b/civicrm/CRM/Core/Smarty/plugins/block.ts.php @@ -29,13 +29,17 @@ * {ts} block contents from the template. * @param CRM_Core_Smarty $smarty * The Smarty object. + * @param bool $repeat + * Repeat is true for the opening tag, false for the closing tag * - * @return string + * @return string|null * the string, translated by gettext */ -function smarty_block_ts($params, $text, &$smarty) { - if (!isset($params['domain']) && $extensionKey = $smarty->get_template_vars('extensionKey')) { - $params['domain'] = is_array($extensionKey) ? $extensionKey : [$extensionKey, NULL]; +function smarty_block_ts($params, $text, &$smarty, &$repeat) { + if (!$repeat) { + if (!isset($params['domain']) && $extensionKey = $smarty->get_template_vars('extensionKey')) { + $params['domain'] = is_array($extensionKey) ? $extensionKey : [$extensionKey, NULL]; + } + return _ts($text, $params); } - return _ts($text, $params); } diff --git a/civicrm/CRM/Core/Smarty/plugins/block.url.php b/civicrm/CRM/Core/Smarty/plugins/block.url.php index 71814af2a1..890d9d20b4 100644 --- a/civicrm/CRM/Core/Smarty/plugins/block.url.php +++ b/civicrm/CRM/Core/Smarty/plugins/block.url.php @@ -34,10 +34,13 @@ * Contents of block. * @param CRM_Core_Smarty $smarty * The Smarty object. + * @param bool $repeat + * Repeat is true for the opening tag, false for the closing tag + * * @return string */ -function smarty_block_url($params, $text, &$smarty) { - if ($text === NULL) { +function smarty_block_url($params, $text, &$smarty, &$repeat) { + if ($repeat || $text === NULL) { return NULL; } diff --git a/civicrm/CRM/Core/Smarty/plugins/function.help.php b/civicrm/CRM/Core/Smarty/plugins/function.help.php index 754d2ec401..a7010ef8ed 100644 --- a/civicrm/CRM/Core/Smarty/plugins/function.help.php +++ b/civicrm/CRM/Core/Smarty/plugins/function.help.php @@ -27,12 +27,12 @@ * the help html to be inserted */ function smarty_function_help($params, &$smarty) { - if (!isset($params['id']) || !isset($smarty->_tpl_vars['config'])) { + if (!isset($params['id']) || !isset($smarty->get_template_vars()['config'])) { return NULL; } - if (empty($params['file']) && isset($smarty->_tpl_vars['tplFile'])) { - $params['file'] = $smarty->_tpl_vars['tplFile']; + if (empty($params['file']) && isset($smarty->get_template_vars()['tplFile'])) { + $params['file'] = $smarty->get_template_vars()['tplFile']; } elseif (empty($params['file'])) { return NULL; @@ -43,7 +43,6 @@ function smarty_function_help($params, &$smarty) { if (empty($params['title'])) { $vars = $smarty->get_template_vars(); - $smarty->assign('id', $params['id'] . '-title'); // The way this works is a bit bonkers. All the .hlp files are expecting an // assign called $params (which is different from our php var here called @@ -52,14 +51,16 @@ function smarty_function_help($params, &$smarty) { // that we return at the bottom below). But right now when we fetch the // file on the next line, there is no params. So it gives a notice. So // let's assign something. + // We also need to assign the id for the title we are looking for, which + // will not be present in Smarty 3 otherwise. // It's also awkward since the ONLY reason we're fetching the file // now is to get the help section's title and we don't care about the rest // of the file, but that is a bit of a separate issue. - $temporary_vars = []; + $temporary_vars = ['id' => $params['id'] . '-title']; if (!array_key_exists('params', $vars)) { // In the unlikely event that params already exists, we don't want to // overwrite it, so only do this if not already set. - $temporary_vars = ['params' => []]; + $temporary_vars += ['params' => []]; } // Note fetchWith adds the temporary ones to the existing scope but then // will reset, unsetting them if not already present before, which is what diff --git a/civicrm/CRM/Core/Smarty/plugins/modifier.smarty.php b/civicrm/CRM/Core/Smarty/plugins/modifier.smarty.php new file mode 100644 index 0000000000..000e87ecf3 --- /dev/null +++ b/civicrm/CRM/Core/Smarty/plugins/modifier.smarty.php @@ -0,0 +1,45 @@ +<?php +/* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ + */ + +/** + * + * @package CRM + * @copyright CiviCRM LLC https://civicrm.org/licensing + */ + +/** + * Implement smarty:nodefaults for Smarty3. + * + * Adding |smarty:nodefaults to strings is the smarty + * v2 way to indicates that a string should not be escaped. + * It doesn't work with smarty 3 but it is a useful way to make strings + * findable for this purpose as we figure out the best way for smarty 3. + * + * As a bridging mechanism this ensures the modifiers added in v2 do not error in v3. + * + * Eventually we want to run v3/v4 to escape by default but we are deferring that challenge + * until we have achieved the first set of upgrading to v3. + * + * @param string $string + * The html to be tweaked. + * @param string $modifier + * Either nodefaults or nothing + * + * @return string + * the new modified html string + */ +function smarty_modifier_smarty($string, string $modifier) { + if ($modifier === 'nodefaults') { + return $string; + } + // For clarity - we don't do this. + throw new CRM_Core_Exception('unsupported modifier'); +} diff --git a/civicrm/CRM/Core/Smarty/plugins/prefilter.htxtFilter.php b/civicrm/CRM/Core/Smarty/plugins/prefilter.htxtFilter.php index c731f68c6e..37ad98fe98 100644 --- a/civicrm/CRM/Core/Smarty/plugins/prefilter.htxtFilter.php +++ b/civicrm/CRM/Core/Smarty/plugins/prefilter.htxtFilter.php @@ -6,10 +6,9 @@ * evaluate unassigned variables. * * @param string $tpl_source - * @param $smarty * @return string */ -function smarty_prefilter_htxtFilter($tpl_source, &$smarty) { +function smarty_prefilter_htxtFilter($tpl_source) { if (strpos($tpl_source, '{htxt') === FALSE) { return $tpl_source; } diff --git a/civicrm/CRM/Core/Smarty/plugins/prefilter.resetExtScope.php b/civicrm/CRM/Core/Smarty/plugins/prefilter.resetExtScope.php index c9c35ec466..5f87362382 100644 --- a/civicrm/CRM/Core/Smarty/plugins/prefilter.resetExtScope.php +++ b/civicrm/CRM/Core/Smarty/plugins/prefilter.resetExtScope.php @@ -3,11 +3,11 @@ /** * Wrap every Smarty template in a {crmScope} tag that sets the * variable "extensionKey" to blank. - * @param $tpl_source - * @param $smarty + * @param string $tpl_source + * * @return string */ -function smarty_prefilter_resetExtScope($tpl_source, &$smarty) { +function smarty_prefilter_resetExtScope($tpl_source) { return '{crmScope extensionKey=""}' . $tpl_source . '{/crmScope}'; diff --git a/civicrm/CRM/Core/Smarty/resources/String.php b/civicrm/CRM/Core/Smarty/resources/String.php index b533b44c78..deb316a3bc 100644 --- a/civicrm/CRM/Core/Smarty/resources/String.php +++ b/civicrm/CRM/Core/Smarty/resources/String.php @@ -15,11 +15,10 @@ * @copyright CiviCRM LLC https://civicrm.org/licensing * @param $tpl_name * @param $tpl_source - * @param $smarty_obj * * @return bool */ -function civicrm_smarty_resource_string_get_template($tpl_name, &$tpl_source, &$smarty_obj) { +function civicrm_smarty_resource_string_get_template($tpl_name, &$tpl_source) { $tpl_source = $tpl_name; return TRUE; } @@ -27,30 +26,24 @@ function civicrm_smarty_resource_string_get_template($tpl_name, &$tpl_source, &$ /** * @param string $tpl_name * @param $tpl_timestamp - * @param CRM_Core_Smarty $smarty_obj * * @return bool */ -function civicrm_smarty_resource_string_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) { +function civicrm_smarty_resource_string_get_timestamp($tpl_name, &$tpl_timestamp) { $tpl_timestamp = time(); return TRUE; } /** - * @param string $tpl_name - * @param CRM_Core_Smarty $smarty_obj - * * @return bool */ -function civicrm_smarty_resource_string_get_secure($tpl_name, &$smarty_obj) { +function civicrm_smarty_resource_string_get_secure() { return TRUE; } /** - * @param string $tpl_name - * @param CRM_Core_Smarty $smarty_obj */ -function civicrm_smarty_resource_string_get_trusted($tpl_name, &$smarty_obj) { +function civicrm_smarty_resource_string_get_trusted() { } diff --git a/civicrm/CRM/Core/SmartyCompatibility.php b/civicrm/CRM/Core/SmartyCompatibility.php new file mode 100644 index 0000000000..25364d9055 --- /dev/null +++ b/civicrm/CRM/Core/SmartyCompatibility.php @@ -0,0 +1,237 @@ +<?php +/* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ + */ + +/** + * + * @package CRM + * @copyright CiviCRM LLC https://civicrm.org/licensing + */ + +/** + * Smarty Compatibility class. + * + * This class implements but Smarty v2 & Smarty v3 functions so that + * + * 1) we can start to transition functions like `$smarty->assign_var` to + * `$smarty->assignVar()` + * 2) if someone adds the Smarty3 package onto their site and + * defines CIVICRM_SMARTY3_AUTOLOAD_PATH then Smarty3 will load from that + * location. + * + * Note that experimenting with `CIVICRM_SMARTY3_AUTOLOAD_PATH` will not + * go well if extensions are installed that have not run civix upgrade + * somewhat recently (ie have the old version of the hook_civicrm_config + * with reference to `$template =& CRM_Core_Smarty::singleton();` + */ + +/** + * Fix for bug CRM-392. Not sure if this is the best fix or it will impact + * other similar PEAR packages. doubt it + */ +if (!class_exists('Smarty')) { + if (defined('CIVICRM_SMARTY3_AUTOLOAD_PATH')) { + // @todo - this is experimental but it allows someone to + // get Smarty3 to load instead of Smarty2 if set. + // It is likely the final Smarty3 solution will look + // different but this makes testing possible without re-inventing + // it each time we try... + require_once CIVICRM_SMARTY3_AUTOLOAD_PATH; + } + else { + require_once 'Smarty/Smarty.class.php'; + } +} + +/** + * + */ +class CRM_Core_SmartyCompatibility extends Smarty { + + public function loadFilter($type, $name) { + if (method_exists(get_parent_class(), 'load_filter')) { + parent::load_filter($type, $name); + return; + } + parent::loadFilter($type, $name); + } + + /** + * @deprecated + * + * @param string $type + * @param string $name + * + * @throws \SmartyException + */ + public function load_filter($type, $name) { + if (method_exists(get_parent_class(), 'load_filter')) { + parent::load_filter($type, $name); + return; + } + parent::loadFilter($type, $name); + } + + /** + * Registers modifier to be used in templates + * + * @deprecated + * + * @param string $modifier name of template modifier + * @param string $modifier_impl name of PHP function to register + */ + public function register_modifier($modifier, $modifier_impl) { + if (method_exists(get_parent_class(), 'register_modifier')) { + parent::register_modifier($modifier, $modifier_impl); + return; + } + parent::registerPlugin('modifier', $modifier, $modifier_impl); + } + + public function registerPlugin($type, $name, $callback, $cacheable = TRUE, $cache_attr = NULL) { + if (method_exists(get_parent_class(), 'registerPlugin')) { + parent::registerPlugin($type, $name, $callback, $cacheable = TRUE, $cache_attr = NULL); + return; + } + if ($type === 'modifier') { + parent::register_modifier($name, $callback); + } + } + + /** + * Registers a resource to fetch a template + * + * @param string $type name of resource + * @param array $functions array of functions to handle resource + */ + public function register_resource($type, $functions) { + if (method_exists(get_parent_class(), 'register_resource')) { + parent::register_resource($type, $functions); + return; + } + parent::registerResource($type, $functions); + } + + /** + * Registers custom function to be used in templates + * + * @param string $function the name of the template function + * @param string $function_impl the name of the PHP function to register + * @param bool $cacheable + * @param null $cache_attrs + * + * @throws \SmartyException + */ + public function register_function($function, $function_impl, $cacheable = TRUE, $cache_attrs = NULL) { + if (method_exists(get_parent_class(), 'register_function')) { + parent::register_function($function, $function_impl, $cacheable = TRUE, $cache_attrs = NULL); + return; + } + parent::registerPlugin('function', $function, $function, $cacheable, $cache_attrs); + } + + /** + * Returns an array containing template variables + * + * @param string $name + * + * @return array + */ + public function &get_template_vars($name = NULL) { + if (method_exists(get_parent_class(), 'get_template_vars')) { + return parent::get_template_vars($name); + } + $var = parent::getTemplateVars($name); + return $var; + } + + /** + * Returns a single or all template variables + * + * @api Smarty::getTemplateVars() + * @link http://www.smarty.net/docs/en/api.get.template.vars.tpl + * + * @param string $varName variable name or NULL + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $_ptr optional pointer to data object + * @param bool $searchParents include parent templates? + * + * @return mixed variable value or or array of variables + */ + public function getTemplateVars($varName = NULL, Smarty_Internal_Data $_ptr = NULL, $searchParents = TRUE) { + if (method_exists(get_parent_class(), 'getTemplateVars')) { + return parent::getTemplateVars($varName . $_ptr, $searchParents); + } + return parent::get_template_vars($varName); + } + + /** + * Generally Civi mis-uses this for perceived php4 conformance, avoid. + * + * @deprecated + * @param string $tpl_var + * @param mixed $value + * + * @return mixed|null|void + */ + public function assign_by_ref($tpl_var, &$value) { + if (method_exists(get_parent_class(), 'assign_by_ref')) { + parent::assign_by_ref($tpl_var, $value); + return; + } + return parent::assignByRef($tpl_var, $value); + } + + /** + * Generally Civi mis-uses this for perceived php4 conformance, avoid. + * + * @deprecated + * @param string $tpl_var + * + * @return mixed|null|void + */ + public function clear_assign($tpl_var) { + if (method_exists(get_parent_class(), 'clear_assign')) { + parent::clear_assign($tpl_var); + return; + } + return parent::clearAssign($tpl_var); + } + + /** + * Checks whether requested template exists. + * + * @param string $tpl_file + * + * @return bool + * @throws \SmartyException + */ + public function template_exists($tpl_file) { + if (method_exists(get_parent_class(), 'template_exists')) { + return parent::template_exists($tpl_file); + } + return parent::templateExists($tpl_file); + } + + /** + * Check if a template resource exists + * + * @param string $resource_name template name + * + * @return bool status + * @throws \SmartyException + */ + public function templateExists($resource_name) { + if (method_exists(get_parent_class(), 'templateExists')) { + return parent::templateExists($resource_name); + } + return parent::template_exists($resource_name); + } + +} diff --git a/civicrm/CRM/Core/xml/Menu/Admin.xml b/civicrm/CRM/Core/xml/Menu/Admin.xml index 9d7d5f4c09..93ecf39477 100644 --- a/civicrm/CRM/Core/xml/Menu/Admin.xml +++ b/civicrm/CRM/Core/xml/Menu/Admin.xml @@ -101,6 +101,12 @@ <page_callback>CRM_UF_Form_Group</page_callback> <weight>25</weight> </item> + <item> + <path>civicrm/admin/uf/group/copy</path> + <title>Profile Copy</title> + <page_callback>CRM_UF_Page_Group</page_callback> + <weight>26</weight> + </item> <item> <path>civicrm/admin/uf/group/setting</path> <title>AdditionalInfo Form</title> diff --git a/civicrm/CRM/Core/xml/Menu/Contact.xml b/civicrm/CRM/Core/xml/Menu/Contact.xml index ed81f2bc82..5de7c28143 100644 --- a/civicrm/CRM/Core/xml/Menu/Contact.xml +++ b/civicrm/CRM/Core/xml/Menu/Contact.xml @@ -176,12 +176,6 @@ <title>Smart Groups</title> <page_callback>CRM_Contact_Page_View_ContactSmartGroup</page_callback> </item> - <item> - <path>civicrm/contact/view/note</path> - <path_arguments>cid=%%cid%%</path_arguments> - <title>Notes</title> - <page_callback>CRM_Contact_Page_View_Note</page_callback> - </item> <item> <path>civicrm/contact/view/tag</path> <path_arguments>cid=%%cid%%</path_arguments> @@ -377,6 +371,7 @@ <page_callback>CRM_Contact_Form_Task_SMS</page_callback> <access_arguments>send SMS</access_arguments> </item> + <!-- DELETEME only-used-by-user-dashboard --> <item> <path>civicrm/ajax/contactrelationships</path> <page_callback>CRM_Contact_Page_AJAX::getContactRelationships</page_callback> diff --git a/civicrm/CRM/Core/xml/Menu/Misc.xml b/civicrm/CRM/Core/xml/Menu/Misc.xml index 222e7ece8f..396e13c6b4 100644 --- a/civicrm/CRM/Core/xml/Menu/Misc.xml +++ b/civicrm/CRM/Core/xml/Menu/Misc.xml @@ -286,4 +286,9 @@ <page_callback>CRM_Activity_Form_Activity</page_callback> <access_arguments>access CiviCRM</access_arguments> </item> + <item> + <path>civicrm/note</path> + <page_callback>CRM_Note_Form_Note</page_callback> + <access_arguments>access CiviCRM</access_arguments> + </item> </menu> diff --git a/civicrm/CRM/Custom/Form/CustomData.php b/civicrm/CRM/Custom/Form/CustomData.php index 007d1caf3a..b063936c81 100644 --- a/civicrm/CRM/Custom/Form/CustomData.php +++ b/civicrm/CRM/Custom/Form/CustomData.php @@ -82,11 +82,9 @@ class CRM_Custom_Form_CustomData { &$form, $extendsEntityColumn = NULL, $subType = NULL, $groupCount = NULL, $type = NULL, $entityID = NULL, $onlySubType = NULL ) { - if ($type) { - $form->_type = $type; - } - else { - $form->_type = CRM_Utils_Request::retrieve('type', 'String', $form); + if (!$type) { + CRM_Core_Error::deprecatedWarning('type should be passed in'); + $type = CRM_Utils_Request::retrieve('type', 'String', $form); } if (!isset($subType)) { @@ -150,7 +148,7 @@ class CRM_Custom_Form_CustomData { $singleRecord = 'new'; } - $groupTree = CRM_Core_BAO_CustomGroup::getTree($form->_type, + $groupTree = CRM_Core_BAO_CustomGroup::getTree($type, NULL, $form->_entityId, $gid, diff --git a/civicrm/CRM/Custom/Form/Field.php b/civicrm/CRM/Custom/Form/Field.php index a61292f666..9a8c2e3d73 100644 --- a/civicrm/CRM/Custom/Form/Field.php +++ b/civicrm/CRM/Custom/Form/Field.php @@ -238,7 +238,8 @@ class CRM_Custom_Form_Field extends CRM_Core_Form { 'select' => ['minimumInputLength' => 0], ]); - if ($this->_action == CRM_Core_Action::UPDATE) { + $isUpdateAction = $this->_action == CRM_Core_Action::UPDATE; + if ($isUpdateAction) { $this->freeze('data_type'); if (!empty($this->_values['option_group_id'])) { $this->assign('hasOptionGroup', in_array($this->_values['html_type'], self::$htmlTypesWithOptions)); @@ -247,12 +248,10 @@ class CRM_Custom_Form_Field extends CRM_Core_Form { $optionGroupParams['id'] = $this->_values['option_group_id']; $optionGroupParams['options']['or'] = [["is_reserved", "id"]]; } - $this->assign('originalHtmlType', $this->_values['html_type']); - $this->assign('originalSerialize', $this->_values['serialize']); - if (!empty($this->_values['serialize'])) { - $this->assign('existingMultiValueCount', $this->getMultiValueCount()); - } } + $this->assign('existingMultiValueCount', ($isUpdateAction && !empty($this->_values['serialize'])) ? $this->getMultiValueCount() : NULL); + $this->assign('originalSerialize', $isUpdateAction ? $this->_values['serialize'] : NULL); + $this->assign('originalHtmlType', $isUpdateAction ? $this->_values['html_type'] : NULL); // Retrieve optiongroups for selection list $optionGroupMetadata = civicrm_api3('OptionGroup', 'get', $optionGroupParams); diff --git a/civicrm/CRM/Custom/Form/Group.php b/civicrm/CRM/Custom/Form/Group.php index 4f9baa4544..0c1dd26f6c 100644 --- a/civicrm/CRM/Custom/Form/Group.php +++ b/civicrm/CRM/Custom/Form/Group.php @@ -18,61 +18,42 @@ /** * form to process actions on the set aspect of Custom Data */ -class CRM_Custom_Form_Group extends CRM_Core_Form { +class CRM_Custom_Form_Group extends CRM_Admin_Form { /** - * The set id saved to the session for an update. - * - * @var int - */ - public $_id; - - /** - * set is empty or not. + * Have any custom data records been saved yet? + * If not we can be more lenient about making changes. * * @var bool */ protected $_isGroupEmpty = TRUE; /** - * Array of existing subtypes set for a custom set. - * - * @var array + * Use APIv4 to load values. + * @var string */ - protected $_subtypes = []; + protected $retrieveMethod = 'api4'; /** * Set variables up before form is built. * - * * @return void */ public function preProcess() { $this->preventAjaxSubmit(); - Civi::resources()->addScriptFile('civicrm', 'js/jquery/jquery.crmIconPicker.js'); + parent::preProcess(); - // current set id - $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this); $this->setAction($this->_id ? CRM_Core_Action::UPDATE : CRM_Core_Action::ADD); - if ($this->_id && CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $this->_id, 'is_reserved', 'id')) { - CRM_Core_Error::statusBounce("You cannot edit the settings of a reserved custom field-set."); - } - if ($this->_id) { - $title = CRM_Core_BAO_CustomGroup::getTitle($this->_id); - $this->setTitle(ts('Edit %1', [1 => $title])); - $params = ['id' => $this->_id]; - CRM_Core_BAO_CustomGroup::retrieve($params, $this->_defaults); - - $subExtends = $this->_defaults['extends_entity_column_value'] ?? NULL; - if (!empty($subExtends)) { - $this->_subtypes = explode(CRM_Core_DAO::VALUE_SEPARATOR, substr($subExtends, 1, -1)); + if ($this->_values['is_reserved']) { + CRM_Core_Error::statusBounce("You cannot edit the settings of a reserved custom field-set."); } + $this->_isGroupEmpty = CRM_Core_BAO_CustomGroup::isGroupEmpty($this->_id); + $this->setTitle(ts('Edit %1', [1 => $this->_values['title']])); } - else { - $this->setTitle(ts('New Custom Field Set')); - } + // Used by I18n/Dialog + $this->assign('gid', $this->_id); } /** @@ -103,26 +84,6 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { $errors['title'] = ts('Custom group \'%1\' already exists in Database.', [1 => $title]); } - if (!empty($fields['extends'][1])) { - if (in_array('', $fields['extends'][1]) && count($fields['extends'][1]) > 1) { - $errors['extends'] = ts("Cannot combine other option with 'Any'."); - } - } - - if (empty($fields['extends'][0])) { - $errors['extends'] = ts("You need to select the type of record that this set of custom fields is applicable for."); - } - - $extends = ['Activity', 'Relationship', 'Group', 'Contribution', 'Membership', 'Event', 'Participant']; - if (in_array($fields['extends'][0], $extends) && $fields['style'] == 'Tab') { - $errors['style'] = ts("Display Style should be Inline for this Class"); - $self->assign('showStyle', TRUE); - } - - if (!empty($fields['is_multiple'])) { - $self->assign('showMultiple', TRUE); - } - if (empty($fields['is_multiple']) && $fields['style'] == 'Tab with table') { $errors['style'] = ts("Display Style 'Tab with table' is only supported for multiple-record custom field sets."); } @@ -160,74 +121,67 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { */ public function buildQuickForm() { $this->applyFilter('__ALL__', 'trim'); - $attributes = CRM_Core_DAO::getAttribute('CRM_Core_DAO_CustomGroup'); - //title - $this->add('text', 'title', ts('Set Name'), $attributes['title'], TRUE); + // This form is largely driven by a trio of related fields: + // 1. `extends` - entity name e.g. Activity, Contact, (plus contact types pretending to be entities e.g. Individual, Organization) + // 2. `extends_entity_column_id` - "category" of sub_type (usually null as most entities only have one category of sub_type) + // 3. `extends_entity_column_value` - sub_type value(s) e.g. options from `activity_type_id` + // Most entities have no options for field 2. For them, it will be hidden from the form, and + // the pair of fields 1 & 3 will act like a normal chain-select, (value of 1 controls the options shown in 3). + // For extra-complex entities like Participant, fields 1 + 2 will act like a compound key to + // control the options in field 3. + + // Get options for the `extends` field. + $extendsOptions = CRM_Core_BAO_CustomGroup::getCustomGroupExtendsOptions(); + // Sort by label + $labels = array_column($extendsOptions, 'label'); + array_multisort($labels, SORT_NATURAL, $extendsOptions); + + // Get options for `extends_entity_column_id` (rarely used except for participants) + // Format as an array keyed by entity to match with 'extends' values, e.g. + // [ + // 'Participant' => [['id' => 'ParticipantRole', 'text' => 'Participants (Role)'], ...]], + // ] + $entityColumnIdOptions = []; + foreach (CRM_Core_BAO_CustomGroup::getExtendsEntityColumnIdOptions() as $idOption) { + $entityColumnIdOptions[$idOption['extends']][] = [ + 'id' => $idOption['id'], + 'text' => $idOption['label'], + ]; + } - //Fix for code alignment, CRM-3058 - $contactTypes = array_merge(['Contact'], CRM_Contact_BAO_ContactType::basicTypes()); - $this->assign('contactTypes', json_encode($contactTypes)); + $extendsValue = $this->_values['extends'] ?? NULL; + $initialEntityColumnIdOptions = $entityColumnIdOptions[$extendsValue] ?? []; + + $initialEntityColumnValueOptions = []; + if ($extendsValue) { + $initialEntityColumnValueOptions = civicrm_api4('CustomGroup', 'getFields', [ + 'where' => [['name', '=', 'extends_entity_column_value']], + 'action' => 'create', + 'loadOptions' => ['id', 'label'], + 'values' => $this->_values, + ], 0)['options']; + } - $sel1 = ["" => ts("- select -")] + CRM_Core_SelectValues::customGroupExtends(); - ksort($sel1); - $sel2 = CRM_Core_BAO_CustomGroup::getSubTypes(); + // Assign data for use by js chain-selects + $this->assign('entityColumnIdOptions', $entityColumnIdOptions); + // List of entities that allow `is_multiple` + $this->assign('allowMultiple', array_column($extendsOptions, 'is_multiple', 'id')); + // Used by warnDataLoss + $this->assign('defaultSubtypes', $this->_values['extends_entity_column_value'] ?? []); + // Used to initially hide selects with no options + $this->assign('emptyEntityColumnId', empty($initialEntityColumnIdOptions)); + $this->assign('emptyEntityColumnValue', empty($initialEntityColumnValueOptions)); + + // Add form fields + $this->add('text', 'title', ts('Set Name'), $attributes['title'], TRUE); - foreach ($sel2 as $main => $sub) { - if (!empty($sel2[$main])) { - $sel2[$main] = [ - '' => ts("- Any -"), - ] + $sel2[$main]; - } - } + $this->add('select2', 'extends', ts('Used For'), $extendsOptions, TRUE, ['placeholder' => ts('Select')]); - $sel = &$this->add('hierselect', - 'extends', - ts('Used For'), - [ - 'name' => 'extends[0]', - 'style' => 'vertical-align: top;', - ], - TRUE - ); - $sel->setOptions([$sel1, $sel2]); - if (is_a($sel->_elements[1], 'HTML_QuickForm_select')) { - // make second selector a multi-select - - $sel->_elements[1]->setMultiple(TRUE); - $sel->_elements[1]->setSize(5); - } - if ($this->_action == CRM_Core_Action::UPDATE) { - $subName = $this->_defaults['extends_entity_column_id'] ?? NULL; - if ($this->_defaults['extends'] == 'Participant') { - if ($subName == 1) { - $this->_defaults['extends'] = 'ParticipantRole'; - } - elseif ($subName == 2) { - $this->_defaults['extends'] = 'ParticipantEventName'; - } - elseif ($subName == 3) { - $this->_defaults['extends'] = 'ParticipantEventType'; - } - } + $this->add('select2', 'extends_entity_column_id', ts('Type'), $initialEntityColumnIdOptions, FALSE, ['placeholder' => ts('Any')]); - //allow to edit settings if custom set is empty CRM-5258 - $this->_isGroupEmpty = CRM_Core_BAO_CustomGroup::isGroupEmpty($this->_id); - if (!$this->_isGroupEmpty) { - if (!empty($this->_subtypes)) { - // we want to allow adding / updating subtypes for this case, - // and therefore freeze the first selector only. - $sel->_elements[0]->freeze(); - } - else { - // freeze both the selectors - $sel->freeze(); - } - } - $this->assign('isCustomGroupEmpty', $this->_isGroupEmpty); - $this->assign('gid', $this->_id); - } - $this->assign('defaultSubtypes', json_encode($this->_subtypes)); + $this->add('select2', 'extends_entity_column_value', ts('Sub Type'), $initialEntityColumnValueOptions, FALSE, ['multiple' => TRUE, 'placeholder' => ts('Any')]); // help text $this->add('wysiwyg', 'help_pre', ts('Pre-form Help'), $attributes['help_pre']); @@ -254,26 +208,21 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { //Is this set visible on public pages? $this->addElement('advcheckbox', 'is_public', ts('Is this Custom Data Set public?')); - // does this set have multiple record? - $multiple = $this->addElement('advcheckbox', 'is_multiple', + $this->addElement('advcheckbox', 'is_multiple', ts('Does this Custom Field Set allow multiple records?'), NULL); - // $min_multiple = $this->add('text', 'min_multiple', ts('Minimum number of multiple records'), $attributes['min_multiple'] ); - // $this->addRule('min_multiple', ts('is a numeric field') , 'numeric'); - - $max_multiple = $this->add('number', 'max_multiple', ts('Maximum number of multiple records'), $attributes['max_multiple']); + $this->add('number', 'max_multiple', ts('Maximum number of multiple records'), $attributes['max_multiple']); $this->addRule('max_multiple', ts('is a numeric field'), 'numeric'); - //allow to edit settings if custom set is empty CRM-5258 - $this->assign('isGroupEmpty', $this->_isGroupEmpty); + // Once data exists, certain options cannot be changed if (!$this->_isGroupEmpty) { - $multiple->freeze(); - //$min_multiple->freeze(); - $max_multiple->freeze(); + $this->getElement('extends')->freeze(); + $this->getElement('extends_entity_column_id')->freeze(); + $this->getElement('is_multiple')->freeze(); + // Don't allow max to be lowered if data already exists + $this->getElement('max_multiple')->setAttribute('min', $this->_values['max_multiple'] ?? '0'); } - $this->assign('showStyle', FALSE); - $this->assign('showMultiple', FALSE); $buttons = [ [ 'type' => 'next', @@ -286,77 +235,41 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { 'name' => ts('Cancel'), ], ]; - if (!$this->_isGroupEmpty && !empty($this->_subtypes)) { + if (!$this->_isGroupEmpty && !empty($this->_values['extends_entity_column_value'])) { $buttons[0]['class'] = 'crm-warnDataLoss'; } $this->addButtons($buttons); } /** - * Set default values for the form. Note that in edit/view mode - * the default values are retrieved from the database - * - * + * Set default values for the form. * @return array - * array of default values */ - public function setDefaultValues() { - $defaults = &$this->_defaults; - $this->assign('showMaxMultiple', TRUE); + public function setDefaultValues(): array { + $defaults = &$this->_values; if ($this->_action == CRM_Core_Action::ADD) { $defaults['weight'] = CRM_Utils_Weight::getDefaultWeight('CRM_Core_DAO_CustomGroup'); - $defaults['is_multiple'] = $defaults['min_multiple'] = 0; $defaults['is_active'] = $defaults['is_public'] = $defaults['collapse_adv_display'] = 1; $defaults['style'] = 'Inline'; } - elseif (empty($defaults['max_multiple']) && !$this->_isGroupEmpty) { - $this->assign('showMaxMultiple', FALSE); - } - - if (($this->_action & CRM_Core_Action::UPDATE) && !empty($defaults['is_multiple'])) { - $defaults['collapse_display'] = 0; - } - - if (isset($defaults['extends'])) { - $extends = $defaults['extends']; - unset($defaults['extends']); - - $defaults['extends'][0] = $extends; - - if (!empty($this->_subtypes)) { - $defaults['extends'][1] = $this->_subtypes; - } - else { - $defaults['extends'][1] = [0 => '']; - } - - if ($extends == 'Relationship' && !empty($this->_subtypes)) { - $relationshipDefaults = []; - foreach ($defaults['extends'][1] as $donCare => $rel_type_id) { - $relationshipDefaults[] = $rel_type_id; - } - - $defaults['extends'][1] = $relationshipDefaults; - } - } - return $defaults; } /** - * Process the form. - * - * * @return void */ public function postProcess() { // get the submitted form values. $params = $this->controller->exportValues('Group'); + if (!empty($params['extends_entity_column_value']) && is_string($params['extends_entity_column_value'])) { + // Because select2 + $params['extends_entity_column_value'] = explode(',', $params['extends_entity_column_value']); + } $params['overrideFKConstraint'] = 0; if ($this->_action & CRM_Core_Action::UPDATE) { $params['id'] = $this->_id; - if ($this->_defaults['extends'][0] != $params['extends'][0]) { + if ($this->_values['extends'] != $params['extends']) { $params['overrideFKConstraint'] = 1; } @@ -423,11 +336,14 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { } } + public function getDefaultEntity(): string { + return 'CustomGroup'; + } + /** - * Return a formatted list of relationship labels. + * Function that's only ever called by another deprecated function. * - * @return array - * Array (int $id => string $label). + * @deprecated */ public static function getRelationshipTypes() { // Note: We include inactive reltypes because we don't want to break custom-data diff --git a/civicrm/CRM/Custom/Page/Field.php b/civicrm/CRM/Custom/Page/Field.php index e7c3c86feb..8d6b6aefb6 100644 --- a/civicrm/CRM/Custom/Page/Field.php +++ b/civicrm/CRM/Custom/Page/Field.php @@ -55,28 +55,33 @@ class CRM_Custom_Page_Field extends CRM_Core_Page { 'url' => 'civicrm/admin/custom/group/field/update', 'qs' => 'action=update&reset=1&gid=%%gid%%&id=%%id%%', 'title' => ts('Edit Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::UPDATE), ], CRM_Core_Action::BROWSE => [ 'name' => ts('Edit Multiple Choice Options'), 'url' => 'civicrm/admin/custom/group/field/option', 'qs' => 'reset=1&action=browse&gid=%%gid%%&fid=%%id%%', 'title' => ts('List Custom Options'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::BROWSE), ], CRM_Core_Action::PREVIEW => [ 'name' => ts('Preview Field Display'), 'url' => 'civicrm/admin/custom/group/preview', 'qs' => 'action=preview&reset=1&fid=%%id%%', 'title' => ts('Preview Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::PREVIEW), ], CRM_Core_Action::DISABLE => [ 'name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DISABLE), ], CRM_Core_Action::ENABLE => [ 'name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ENABLE), ], CRM_Core_Action::EXPORT => [ 'name' => ts('Move'), @@ -84,12 +89,14 @@ class CRM_Custom_Page_Field extends CRM_Core_Page { 'class' => 'small-popup', 'qs' => 'reset=1&fid=%%id%%', 'title' => ts('Move Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::EXPORT), ], CRM_Core_Action::DELETE => [ 'name' => ts('Delete'), 'url' => 'civicrm/admin/custom/group/field/delete', 'qs' => 'reset=1&id=%%id%%', 'title' => ts('Delete Custom Field'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DELETE), ], ]; } diff --git a/civicrm/CRM/Dashlet/Page/GettingStarted.php b/civicrm/CRM/Dashlet/Page/GettingStarted.php index 69503748cc..5d1462c8d5 100644 --- a/civicrm/CRM/Dashlet/Page/GettingStarted.php +++ b/civicrm/CRM/Dashlet/Page/GettingStarted.php @@ -31,6 +31,7 @@ class CRM_Dashlet_Page_GettingStarted extends CRM_Core_Page { public static $_tokens = [ 'crmurl' => [ 'configbackend' => 'civicrm/admin/configtask', + 'systemstatus' => 'civicrm/a/#/status', ], ]; diff --git a/civicrm/CRM/Event/BAO/Event.php b/civicrm/CRM/Event/BAO/Event.php index f2a5e6dee7..4fcbb99cef 100644 --- a/civicrm/CRM/Event/BAO/Event.php +++ b/civicrm/CRM/Event/BAO/Event.php @@ -667,9 +667,9 @@ $event_summary_limit * * @return array */ - public static function &getMapInfo(&$id) { + public static function getMapInfo($id): array { - $sql = " + $sql = ' SELECT civicrm_event.id AS event_id, civicrm_event.title AS display_name, @@ -691,10 +691,9 @@ FROM LEFT JOIN civicrm_location_type ON ( civicrm_location_type.id = civicrm_address.location_type_id ) WHERE civicrm_address.geo_code_1 IS NOT NULL AND civicrm_address.geo_code_2 IS NOT NULL - AND civicrm_event.id = " . CRM_Utils_Type::escape($id, 'Integer'); + AND civicrm_event.id = ' . CRM_Utils_Type::escape($id, 'Integer'); - $dao = new CRM_Core_DAO(); - $dao->query($sql); + $dao = CRM_Core_DAO::executeQuery($sql); $locations = []; @@ -1147,8 +1146,6 @@ WHERE civicrm_event.is_active = 1 $participantParams ); - $sessions = CRM_Event_Cart_BAO_Conference::get_participant_sessions($participantId); - // @todo - the goal is that all params available to the message template are explicitly defined here rather than // 'in a smattering of places'. Note that leakage can happen between mailings when not explicitly defined. if ($postProfileID) { @@ -1164,15 +1161,12 @@ WHERE civicrm_event.is_active = 1 'email' => $notifyEmail, 'confirm_email_text' => $values['event']['confirm_email_text'] ?? NULL, 'isShowLocation' => $values['event']['is_show_location'] ?? NULL, - // The concept of contributeMode is deprecated. - 'contributeMode' => $template->_tpl_vars['contributeMode'] ?? NULL, 'customPre' => $profilePre[0], 'customPre_grouptitle' => empty($profilePre[1]) ? NULL : [CRM_Core_BAO_UFGroup::getFrontEndTitle((int) $preProfileID)], 'customPost' => $profilePost[0], 'customPost_grouptitle' => $customPostTitles, 'participantID' => $participantId, 'contactID' => $contactID, - 'conference_sessions' => $sessions, 'credit_card_number' => CRM_Utils_System::mungeCreditCard(CRM_Utils_Array::value('credit_card_number', $participantParams)), 'credit_card_exp_date' => CRM_Utils_Date::mysqlToIso(CRM_Utils_Date::format(CRM_Utils_Array::value('credit_card_exp_date', $participantParams))), 'selfcancelxfer_time' => abs($values['event']['selfcancelxfer_time']), @@ -1207,8 +1201,6 @@ WHERE civicrm_event.is_active = 1 $displayAddress = $values['address'] ?? NULL; if ($displayAddress) { $sendTemplateParams['tplParams']['address'] = $displayAddress; - // The concept of contributeMode is deprecated. - $sendTemplateParams['tplParams']['contributeMode'] = NULL; } // set lineItem details diff --git a/civicrm/CRM/Event/BAO/Participant.php b/civicrm/CRM/Event/BAO/Participant.php index 64768f27e0..9018edaec5 100644 --- a/civicrm/CRM/Event/BAO/Participant.php +++ b/civicrm/CRM/Event/BAO/Participant.php @@ -269,8 +269,8 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant implements \Ci ); } if (CRM_Core_Permission::check('delete in CiviEvent')) { - $recentOther['deleteUrl'] = CRM_Utils_System::url('civicrm/contact/view/participant', - "action=delete&reset=1&id={$participant->id}&cid={$participant->contact_id}&context=home" + $recentOther['deleteUrl'] = CRM_Utils_System::url('civicrm/participant/delete', + "reset=1&id={$participant->id}" ); } diff --git a/civicrm/CRM/Event/DAO/Event.php b/civicrm/CRM/Event/DAO/Event.php index 2d6e3fa421..e1bc30cb40 100644 --- a/civicrm/CRM/Event/DAO/Event.php +++ b/civicrm/CRM/Event/DAO/Event.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/Event.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:80eed9bb6b3badce7199dd8da7f3f14b) + * (GenCodeChecksum:a1c6fa263d5a0c98d03e270a5759dd35) */ /** @@ -648,11 +648,12 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO { public $parent_event_id; /** - * Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot. + * Needs to be moved to Event cart extension. Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot. * * @var int|string|null * (SQL type: int unsigned) * Note that values will be retrieved from the database as a string. + * @deprecated */ public $slot_label_id; @@ -2292,7 +2293,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO { 'name' => 'slot_label_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Subevent Slot Label ID'), - 'description' => ts('Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot.'), + 'description' => ts('Needs to be moved to Event cart extension. Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot.'), 'usage' => [ 'import' => FALSE, 'export' => FALSE, @@ -2305,6 +2306,7 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO { 'entity' => 'Event', 'bao' => 'CRM_Event_BAO_Event', 'localizable' => 0, + 'deprecated' => TRUE, 'html' => [ 'type' => 'Select', ], diff --git a/civicrm/CRM/Event/DAO/Participant.php b/civicrm/CRM/Event/DAO/Participant.php index dee37a6c53..62f514a41b 100644 --- a/civicrm/CRM/Event/DAO/Participant.php +++ b/civicrm/CRM/Event/DAO/Participant.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/Participant.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3faebf0fa49dd7b3bf527bd082dd1fb7) + * (GenCodeChecksum:54acecd8443b824933d1cae2e77b2f8e) */ /** @@ -47,7 +47,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'add' => 'civicrm/participant/add?action=add&context=standalone&reset=1', 'view' => 'civicrm/contact/view/participant?id=[id]&cid=[contact_id]&action=view&reset=1', 'update' => 'civicrm/contact/view/participant?id=[id]&cid=[contact_id]&action=update&reset=1', - 'delete' => 'civicrm/contact/view/participant?id=[id]&cid=[contact_id]&action=delete&reset=1', + 'delete' => 'civicrm/participant/delete?id=[id]&reset=1', ]; /** diff --git a/civicrm/CRM/Event/Form/EventFees.php b/civicrm/CRM/Event/Form/EventFees.php index 5ef84b3c58..b0601f014b 100644 --- a/civicrm/CRM/Event/Form/EventFees.php +++ b/civicrm/CRM/Event/Form/EventFees.php @@ -37,9 +37,6 @@ class CRM_Event_Form_EventFees { $form->_pId = CRM_Utils_Request::retrieve('participantId', 'Positive', $form); $form->_discountId = CRM_Utils_Request::retrieve('discountId', 'Positive', $form); - // @todo - stop setting this, call the function, as appropriate. This is in a weird place. - $form->_fromEmails = CRM_Event_BAO_Event::getFromEmailIds($form->_eventId); - //CRM-6907 set event specific currency. if ($form->_eventId && ($currency = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $form->_eventId, 'currency')) @@ -64,10 +61,10 @@ class CRM_Event_Form_EventFees { $details = []; CRM_Core_DAO::commonRetrieveAll('CRM_Event_DAO_Event', 'id', $form->_eventId, $details, $returnProperities); if (!empty($details[$form->_eventId]['financial_type_id'])) { - $defaults[$form->_pId]['financial_type_id'] = $details[$form->_eventId]['financial_type_id']; + $defaults['financial_type_id'] = $details[$form->_eventId]['financial_type_id']; } if (!empty($details[$form->_eventId]['confirm_email_text'])) { - $defaults[$form->_pId]['receipt_text'] = $details[$form->_eventId]['confirm_email_text']; + $defaults['receipt_text'] = $details[$form->_eventId]['confirm_email_text']; } } @@ -76,6 +73,8 @@ class CRM_Event_Form_EventFees { $params = ['id' => $form->_pId]; CRM_Event_BAO_Participant::getValues($params, $defaults, $ids); + $defaults += $defaults[$form->_pId]; + unset($defaults[$form->_pId]); if ($form->_action == CRM_Core_Action::UPDATE) { $discounts = []; if (!empty($form->_values['discount'])) { @@ -85,54 +84,54 @@ class CRM_Event_Form_EventFees { } } - if ($form->_discountId && !empty($discounts[$defaults[$form->_pId]['discount_id']])) { - $form->assign('discount', $discounts[$defaults[$form->_pId]['discount_id']]); + if ($form->_discountId && !empty($discounts[$defaults['discount_id']])) { + $form->assign('discount', $discounts[$defaults['discount_id']]); } - $form->assign('fee_amount', CRM_Utils_Array::value('fee_amount', $defaults[$form->_pId])); - $form->assign('fee_level', CRM_Utils_Array::value('fee_level', $defaults[$form->_pId])); + $form->assign('fee_amount', CRM_Utils_Array::value('fee_amount', $defaults)); + $form->assign('fee_level', CRM_Utils_Array::value('fee_level', $defaults)); } - $defaults[$form->_pId]['send_receipt'] = 0; + $defaults['send_receipt'] = 0; } else { - $defaults[$form->_pId]['send_receipt'] = (strtotime(CRM_Utils_Array::value('start_date', $details[$form->_eventId])) >= time()) ? 1 : 0; - $defaults[$form->_pId]['receive_date'] = date('Y-m-d H:i:s'); + $defaults['send_receipt'] = (strtotime(CRM_Utils_Array::value('start_date', $details[$form->_eventId])) >= time()) ? 1 : 0; + $defaults['receive_date'] = date('Y-m-d H:i:s'); } //CRM-11601 we should keep the record contribution //true by default while adding participant if ($form->_action == CRM_Core_Action::ADD && !$form->_mode && $form->_isPaidEvent) { - $defaults[$form->_pId]['record_contribution'] = 1; + $defaults['record_contribution'] = 1; } //CRM-13420 if (empty($defaults['payment_instrument_id'])) { - $defaults[$form->_pId]['payment_instrument_id'] = key(CRM_Core_OptionGroup::values('payment_instrument', FALSE, FALSE, FALSE, 'AND is_default = 1')); + $defaults['payment_instrument_id'] = key(CRM_Core_OptionGroup::values('payment_instrument', FALSE, FALSE, FALSE, 'AND is_default = 1')); } if ($form->_mode) { $config = CRM_Core_Config::singleton(); // set default country from config if no country set - if (empty($defaults[$form->_pId]["billing_country_id-{$form->_bltID}"])) { - $defaults[$form->_pId]["billing_country_id-{$form->_bltID}"] = $config->defaultContactCountry; + if (empty($defaults["billing_country_id-{$form->_bltID}"])) { + $defaults["billing_country_id-{$form->_bltID}"] = $config->defaultContactCountry; } if (empty($defaults["billing_state_province_id-{$form->_bltID}"])) { - $defaults[$form->_pId]["billing_state_province_id-{$form->_bltID}"] = $config->defaultContactStateProvince; + $defaults["billing_state_province_id-{$form->_bltID}"] = $config->defaultContactStateProvince; } $billingDefaults = $form->getProfileDefaults('Billing', $form->_contactId); - $defaults[$form->_pId] = array_merge($defaults[$form->_pId], $billingDefaults); + $defaults = array_merge($defaults, $billingDefaults); } // if user has selected discount use that to set default if (isset($form->_discountId)) { - $defaults[$form->_pId]['discount_id'] = $form->_discountId; + $defaults['discount_id'] = $form->_discountId; //hack to set defaults for already selected discount value if ($form->_action == CRM_Core_Action::UPDATE && !$form->_originalDiscountId) { - $form->_originalDiscountId = $defaults[$form->_pId]['discount_id']; + $form->_originalDiscountId = $defaults['discount_id']; if ($form->_originalDiscountId) { - $defaults[$form->_pId]['discount_id'] = $form->_originalDiscountId; + $defaults['discount_id'] = $form->_originalDiscountId; } } $discountId = $form->_discountId; @@ -150,7 +149,7 @@ class CRM_Event_Form_EventFees { if (($form->_action == CRM_Core_Action::ADD) && $form->_eventId && $discountId) { // this case is for add mode, where we show discount automatically - $defaults[$form->_pId]['discount_id'] = $discountId; + $defaults['discount_id'] = $discountId; } if ($priceSetId) { @@ -165,7 +164,7 @@ class CRM_Event_Form_EventFees { )) { $priceSetValues = self::setDefaultPriceSet($form->_pId, $form->_eventId); if (!empty($priceSetValues)) { - $defaults[$form->_pId] = array_merge($defaults[$form->_pId], $priceSetValues); + $defaults = array_merge($defaults, $priceSetValues); } } @@ -178,33 +177,33 @@ class CRM_Event_Form_EventFees { } if ($val['html_type'] == 'CheckBox') { - $defaults[$form->_pId]["price_{$key}"][$keys] = 1; + $defaults["price_{$key}"][$keys] = 1; } else { - $defaults[$form->_pId]["price_{$key}"] = $keys; + $defaults["price_{$key}"] = $keys; } } } } } - $form->assign('totalAmount', CRM_Utils_Array::value('fee_amount', $defaults[$form->_pId])); + $form->assign('totalAmount', CRM_Utils_Array::value('fee_amount', $defaults)); if ($form->_action == CRM_Core_Action::UPDATE) { - $fee_level = $defaults[$form->_pId]['fee_level']; + $fee_level = $defaults['fee_level']; CRM_Event_BAO_Participant::fixEventLevel($fee_level); $form->assign('fee_level', $fee_level); - $form->assign('fee_amount', CRM_Utils_Array::value('fee_amount', $defaults[$form->_pId])); + $form->assign('fee_amount', CRM_Utils_Array::value('fee_amount', $defaults)); } } //CRM-4453 - if (!empty($defaults[$form->_pId]['participant_fee_currency'])) { - $form->assign('fee_currency', $defaults[$form->_pId]['participant_fee_currency']); + if (!empty($defaults['participant_fee_currency'])) { + $form->assign('fee_currency', $defaults['participant_fee_currency']); } // CRM-4395 if ($contriId = $form->get('onlinePendingContributionId')) { - $defaults[$form->_pId]['record_contribution'] = 1; + $defaults['record_contribution'] = 1; $contribution = new CRM_Contribute_DAO_Contribution(); $contribution->id = $contriId; $contribution->find(TRUE); @@ -215,10 +214,10 @@ class CRM_Event_Form_EventFees { 'receive_date', 'total_amount', ] as $f) { - $defaults[$form->_pId][$f] = $contribution->$f; + $defaults[$f] = $contribution->$f; } } - return $defaults[$form->_pId]; + return $defaults; } /** diff --git a/civicrm/CRM/Event/Form/EventFormTrait.php b/civicrm/CRM/Event/Form/EventFormTrait.php new file mode 100644 index 0000000000..442cf5619a --- /dev/null +++ b/civicrm/CRM/Event/Form/EventFormTrait.php @@ -0,0 +1,95 @@ +<?php + +use Civi\API\EntityLookupTrait; + +/** + * Trait implements getContactValue + overridable getContactID functions. + * + * These are commonly used on forms - although getContactID() would often + * be overridden. By using these functions it is not necessary to know + * if the Contact ID has already been defined as `getContactID()` will retrieve + * them form the values available (unless it is yet to be created). + */ +trait CRM_Event_Form_EventFormTrait { + + use EntityLookupTrait; + + /** + * Get the value for a field relating to the event. + * + * All values returned in apiv4 format. Escaping may be required. + * + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. + * + * @param string $fieldName + * + * @return mixed + * @throws \CRM_Core_Exception + */ + public function getEventValue(string $fieldName) { + if ($this->isDefined('Event')) { + return $this->lookup('Event', $fieldName); + } + $id = $this->getEventID(); + if ($id) { + $this->define('Event', 'Event', ['id' => $id]); + return $this->lookup('Event', $fieldName); + } + return NULL; + } + + /** + * Get the selected Event ID. + * + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. + * + * @noinspection PhpUnhandledExceptionInspection + * @noinspection PhpDocMissingThrowsInspection + */ + public function getEventID(): ?int { + throw new CRM_Core_Exception('`getEventID` must be implemented'); + } + + /** + * Get id of participant being acted on. + * + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. + */ + public function getParticipantID(): ?int { + throw new CRM_Core_Exception('`getParticipantID` must be implemented'); + } + + /** + * Get a value from the participant being acted on. + * + * All values returned in apiv4 format. Escaping may be required. + * + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. + * + * @param string $fieldName + * + * @return mixed + * + * @throws \CRM_Core_Exception + */ + public function getParticipantValue(string $fieldName) { + if ($this->isDefined('Participant')) { + return $this->lookup('Participant', $fieldName); + } + $id = $this->getParticipantID(); + if ($id) { + $this->define('Participant', 'Participant', ['id' => $id]); + return $this->lookup('Participant', $fieldName); + } + return NULL; + } + +} diff --git a/civicrm/CRM/Event/Form/ManageEvent.php b/civicrm/CRM/Event/Form/ManageEvent.php index f496bdc670..10d3018cae 100644 --- a/civicrm/CRM/Event/Form/ManageEvent.php +++ b/civicrm/CRM/Event/Form/ManageEvent.php @@ -269,12 +269,6 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form { 'name' => ts('Save'), 'isDefault' => TRUE, ], - [ - 'type' => 'upload', - 'name' => ts('Save and Done'), - 'spacing' => ' ', - 'subName' => 'done', - ], [ 'type' => 'cancel', 'name' => ts('Cancel'), diff --git a/civicrm/CRM/Event/Form/ManageEvent/EventInfo.php b/civicrm/CRM/Event/Form/ManageEvent/EventInfo.php index 9743f45c45..c2b896f001 100644 --- a/civicrm/CRM/Event/Form/ManageEvent/EventInfo.php +++ b/civicrm/CRM/Event/Form/ManageEvent/EventInfo.php @@ -244,22 +244,11 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent { } $this->set('id', $event->id); - $this->postProcessHook(); if ($this->_action & CRM_Core_Action::ADD) { - $url = 'civicrm/event/manage/location'; - $urlParams = "action=update&reset=1&id={$event->id}"; - // special case for 'Save and Done' consistency. - if ('_qf_EventInfo_upload_done' === $this->controller->getButtonName('submit')) { - $url = 'civicrm/event/manage'; - $urlParams = 'reset=1'; - CRM_Core_Session::setStatus(ts("'%1' information has been saved.", - [1 => $this->getTitle()] - ), ts('Saved'), 'success'); - } - - CRM_Utils_System::redirect(CRM_Utils_System::url($url, $urlParams)); + $url = CRM_Utils_System::url('civicrm/event/manage/location', "action=update&reset=1&id={$event->id}"); + CRM_Utils_System::redirect($url); } parent::endPostProcess(); diff --git a/civicrm/CRM/Event/Form/ManageEvent/TabHeader.php b/civicrm/CRM/Event/Form/ManageEvent/TabHeader.php index 8c159a7c39..27eba8a848 100644 --- a/civicrm/CRM/Event/Form/ManageEvent/TabHeader.php +++ b/civicrm/CRM/Event/Form/ManageEvent/TabHeader.php @@ -76,7 +76,7 @@ class CRM_Event_Form_ManageEvent_TabHeader { if (CRM_Core_Permission::check('administer CiviCRM data') || !empty($permissions[CRM_Core_Permission::EDIT])) { $tabs['reminder'] = ['title' => ts('Schedule Reminders'), 'class' => 'livePage'] + $default; } - $tabs['conference'] = ['title' => ts('Conference Slots')] + $default; + $tabs['friend'] = ['title' => ts('Tell a Friend')] + $default; $tabs['pcp'] = ['title' => ts('Personal Campaigns')] + $default; $tabs['repeat'] = ['title' => ts('Repeat')] + $default; @@ -86,12 +86,6 @@ class CRM_Event_Form_ManageEvent_TabHeader { unset($tabs['repeat']['class']); } - // @todo Move to eventcart extension - // check if we're in shopping cart mode for events - if (!(bool) Civi::settings()->get('enable_cart')) { - unset($tabs['conference']); - } - $eventID = $form->getVar('_id'); if ($eventID) { // disable tabs based on their configuration status diff --git a/civicrm/CRM/Event/Form/Participant.php b/civicrm/CRM/Event/Form/Participant.php index fc8c303ce9..d867ae8b12 100644 --- a/civicrm/CRM/Event/Form/Participant.php +++ b/civicrm/CRM/Event/Form/Participant.php @@ -24,6 +24,8 @@ use Civi\API\EntityLookupTrait; class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment { use EntityLookupTrait; + use CRM_Contact_Form_ContactFormTrait; + use CRM_Event_Form_EventFormTrait; /** * Participant ID - use getParticipantID. @@ -93,13 +95,6 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment */ public $_contactId; - /** - * Array of event values. - * - * @var array - */ - protected $_event; - /** * Are we operating in "single mode", i.e. adding / editing only * one participant record, or is this a batch add operation. @@ -139,19 +134,12 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment */ protected $_statusId = NULL; - /** - * Cache all the participant statuses. - * - * @var array - */ - protected $_participantStatuses; - /** * Participant mode. * * @var string */ - public $_mode = NULL; + public $_mode; /** * Event ID preselect. @@ -177,26 +165,12 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment public $_online; - /** - * Store id of role custom data type ( option value ) - * - * @var int - */ - protected $_roleCustomDataTypeID; - - /** - * Store id of event Name custom data type ( option value) - * - * @var int - */ - protected $_eventNameCustomDataTypeID; - /** * Selected discount id. * * @var int */ - public $_originalDiscountId = NULL; + public $_originalDiscountId; /** * Event id. @@ -218,14 +192,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment * @var null * @todo add explanatory note about this */ - public $_onlinePendingContributionId = NULL; - - /** - * Stored participant record. - * - * @var array - */ - protected $participantRecord; + public $_onlinePendingContributionId; /** * Params for creating a payment to add to the contribution. @@ -353,14 +320,6 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.')); } - if ($this->_action & CRM_Core_Action::DELETE) { - // check delete permission for contribution - if ($this->_id && $this->_paymentId && !CRM_Core_Permission::checkActionPermission('CiviContribute', $this->_action)) { - CRM_Core_Error::statusBounce(ts("This Participant is linked to a contribution. You must have 'delete in CiviContribute' permission in order to delete this record.")); - } - return; - } - // when fee amount is included in form if (!empty($_POST['hidden_feeblock']) || !empty($_POST['send_receipt'])) { if ($this->_submitValues['event_id']) { @@ -379,14 +338,14 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment // not sure if that ever really happens if (!empty($_POST['role_id'])) { foreach ($_POST['role_id'] as $roleID) { - CRM_Custom_Form_CustomData::preProcess($this, $this->_roleCustomDataTypeID, $roleID, 1, 'Participant', $this->_id); + CRM_Custom_Form_CustomData::preProcess($this, $this->getExtendsEntityColumnID('ParticipantRole'), $roleID, 1, 'Participant', $this->_id); CRM_Custom_Form_CustomData::buildQuickForm($this); CRM_Custom_Form_CustomData::setDefaultValues($this); } } //custom data of type participant event - CRM_Custom_Form_CustomData::preProcess($this, $this->_eventNameCustomDataTypeID, $eventId, 1, 'Participant', $this->_id); + CRM_Custom_Form_CustomData::preProcess($this, $this->getExtendsEntityColumnID('ParticipantEventType'), $eventId, 1, 'Participant', $this->_id); CRM_Custom_Form_CustomData::buildQuickForm($this); CRM_Custom_Form_CustomData::setDefaultValues($this); @@ -395,7 +354,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment if ($eventId) { $eventTypeId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $eventId, 'event_type_id', 'id'); } - CRM_Custom_Form_CustomData::preProcess($this, $this->_eventTypeCustomDataTypeID, $eventTypeId, + CRM_Custom_Form_CustomData::preProcess($this, $this->getExtendsEntityColumnID('ParticipantEventType'), $eventTypeId, 1, 'Participant', $this->_id ); CRM_Custom_Form_CustomData::buildQuickForm($this); @@ -431,25 +390,22 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment $defaults = []; - if ($this->_action & CRM_Core_Action::DELETE) { - return $defaults; - } - if ($this->_id) { $ids = []; $params = ['id' => $this->_id]; CRM_Event_BAO_Participant::getValues($params, $defaults, $ids); + $defaults = $defaults[$this->_id]; $sep = CRM_Core_DAO::VALUE_SEPARATOR; - if ($defaults[$this->_id]['role_id']) { - $roleIDs = explode($sep, $defaults[$this->_id]['role_id']); + if ($defaults['role_id']) { + $roleIDs = explode($sep, $defaults['role_id']); } - $this->_contactId = $defaults[$this->_id]['contact_id']; - $this->_statusId = $defaults[$this->_id]['participant_status_id']; + $this->_contactId = $defaults['contact_id']; + $this->_statusId = $defaults['participant_status_id']; //set defaults for note $noteDetails = CRM_Core_BAO_Note::getNote($this->_id, 'civicrm_participant'); - $defaults[$this->_id]['note'] = array_pop($noteDetails); + $defaults['note'] = array_pop($noteDetails); // Check if this is a primaryParticipant (registered for others) and retrieve additional participants if true (CRM-4859) if (CRM_Event_BAO_Participant::isPrimaryParticipant($this->_id)) { @@ -458,31 +414,31 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment $this->assign('additionalParticipants', $additionalParticipants ?? NULL); // Get registered_by contact ID and display_name if participant was registered by someone else (CRM-4859) - if (!empty($defaults[$this->_id]['participant_registered_by_id'])) { + if (!empty($defaults['participant_registered_by_id'])) { $registered_by_contact_id = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Participant', - $defaults[$this->_id]['participant_registered_by_id'], + $defaults['participant_registered_by_id'], 'contact_id', 'id' ); - $this->assign('participant_registered_by_id', $defaults[$this->_id]['participant_registered_by_id']); + $this->assign('participant_registered_by_id', $defaults['participant_registered_by_id']); $this->assign('registered_by_display_name', CRM_Contact_BAO_Contact::displayName($registered_by_contact_id)); } $this->assign('registered_by_contact_id', $registered_by_contact_id ?? NULL); } elseif ($this->_contactID) { - $defaults[$this->_id]['contact_id'] = $this->_contactID; + $defaults['contact_id'] = $this->_contactID; } //setting default register date if ($this->_action == CRM_Core_Action::ADD) { $statuses = array_flip(CRM_Event_PseudoConstant::participantStatus()); - $defaults[$this->_id]['status_id'] = $statuses['Registered'] ?? NULL; - if (!empty($defaults[$this->_id]['event_id'])) { + $defaults['status_id'] = $statuses['Registered'] ?? NULL; + if (!empty($defaults['event_id'])) { $financialTypeID = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', - $defaults[$this->_id]['event_id'], + $defaults['event_id'], 'financial_type_id' ); if ($financialTypeID) { - $defaults[$this->_id]['financial_type_id'] = $financialTypeID; + $defaults['financial_type_id'] = $financialTypeID; } } @@ -497,7 +453,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment if (empty($defaults["email-{$this->_bltID}"]) && !empty($defaults['email-Primary']) ) { - $defaults[$this->_id]["email-{$this->_bltID}"] = $defaults['email-Primary']; + $defaults["email-{$this->_bltID}"] = $defaults['email-Primary']; } } @@ -509,16 +465,16 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment if (!empty($submittedEvent[0])) { $eventID = $submittedEvent[0]; } - $defaults[$this->_id]['register_date'] = date('Y-m-d H:i:s'); + $defaults['register_date'] = date('Y-m-d H:i:s'); } else { - $defaults[$this->_id]['record_contribution'] = 0; + $defaults['record_contribution'] = 0; - if ($defaults[$this->_id]['participant_is_pay_later']) { + if ($defaults['participant_is_pay_later']) { $this->assign('participant_is_pay_later', TRUE); } - $eventID = $defaults[$this->_id]['event_id']; + $eventID = $defaults['event_id']; $this->_eventTypeId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $eventID, 'event_type_id', 'id'); @@ -530,8 +486,8 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment //assign event and role id, this is needed for Custom data building $sep = CRM_Core_DAO::VALUE_SEPARATOR; - if (!empty($defaults[$this->_id]['participant_role_id'])) { - $roleIDs = explode($sep, $defaults[$this->_id]['participant_role_id']); + if (!empty($defaults['participant_role_id'])) { + $roleIDs = explode($sep, $defaults['participant_role_id']); } if (isset($_POST['event_id'])) { $eventID = $_POST['event_id']; @@ -546,9 +502,9 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment 'default_role_id' ); if (empty($roleIDs)) { - $roleIDs = (array) $defaults[$this->_id]['participant_role_id'] = $roleID; + $roleIDs = (array) $defaults['participant_role_id'] = $roleID; } - $defaults[$this->_id]['event_id'] = $eventID; + $defaults['event_id'] = $eventID; } if (!empty($eventID)) { $this->_eventTypeId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $eventID, 'event_type_id', 'id'); @@ -559,7 +515,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment $roleIDs = explode(',', $urlRoleIDS); } if (isset($roleIDs)) { - $defaults[$this->_id]['role_id'] = implode(',', $roleIDs); + $defaults['role_id'] = implode(',', $roleIDs); } if (isset($eventID)) { @@ -569,27 +525,8 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment $this->assign('eventTypeID', $this->_eventTypeId); - $this->assign('event_is_test', CRM_Utils_Array::value('event_is_test', $defaults[$this->_id])); - return $defaults[$this->_id]; - } - - /** - * Get a value for the contact being acted on in the form. - * - * This can be called from any point in the form flow and if - * the contact can not yet be determined it will return NULL. - * - * @throws \CRM_Core_Exception - */ - public function getContactValue($fieldName) { - if ($this->isDefined('Contact')) { - return $this->lookup('Contact', $fieldName); - } - if ($this->getContactID()) { - $this->define('Contact', 'Contact', ['id' => $this->getContactID()]); - return $this->lookup('Contact', $fieldName); - } - return NULL; + $this->assign('event_is_test', CRM_Utils_Array::value('event_is_test', $defaults)); + return $defaults; } /** @@ -613,39 +550,6 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment $this->applyFilter('__ALL__', 'trim'); - if ($this->_action & CRM_Core_Action::DELETE) { - if ($this->_single) { - $additionalParticipant = count(CRM_Event_BAO_Event::buildCustomProfile($this->_id, - NULL, - $this->_contactId, - FALSE, - TRUE - )) - 1; - if ($additionalParticipant) { - $deleteParticipants = [ - 1 => ts('Delete this participant record along with associated participant record(s).'), - 2 => ts('Delete only this participant record.'), - ]; - $this->addRadio('delete_participant', NULL, $deleteParticipants, NULL, '<br />'); - $this->setDefaults(['delete_participant' => 1]); - } - $this->assign('additionalParticipant', $additionalParticipant); - } - $this->addButtons([ - [ - 'type' => 'next', - 'name' => ts('Delete'), - 'spacing' => ' ', - 'isDefault' => TRUE, - ], - [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ], - ]); - return; - } - if ($this->_single) { $contactField = $this->addEntityRef('contact_id', ts('Participant'), ['create' => TRUE, 'api' => ['extra' => ['email']]], TRUE); if ($this->_context !== 'standalone') { @@ -732,7 +636,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment $notificationStatusIds = implode(',', array_keys(array_intersect($participantStatusName, $notificationStatuses))); $this->assign('notificationStatusIds', $notificationStatusIds); - $this->_participantStatuses = $statusOptions = CRM_Event_BAO_Participant::buildOptions('status_id', 'create'); + $statusOptions = CRM_Event_BAO_Participant::buildOptions('status_id', 'create'); // Only show refund status when editing if ($this->_action & CRM_Core_Action::ADD) { @@ -765,7 +669,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment 'civicrm/contact/search', 'civicrm/group/search', ]; - if (!in_array($path, $excludeForPaths)) { + if (!$this->getParticipantID() && !in_array($path, $excludeForPaths)) { $buttons[] = [ 'type' => 'upload', 'name' => ts('Save and New'), @@ -806,13 +710,12 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment * list of errors to be posted back to the form */ public static function formRule($values, $files, $self) { - // If $values['_qf_Participant_next'] is Delete or // $values['event_id'] is empty, then return - // instead of proceeding further. - - if ((($values['_qf_Participant_next'] ?? NULL) === 'Delete') || - empty($values['event_id']) - ) { + // instead of proceeding further - this is legacy handling + // and it is unclear why but perhaps relates to the form's + // 'multitasking' & can go once the form is not overloaded? + // event_id is normally a required field.. + if (empty($values['event_id'])) { return TRUE; } @@ -842,9 +745,9 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment ) || ($self->_id && !$self->_paymentId && isset($self->_values['line_items']) && is_array($self->_values['line_items'])) ) { - $priceSetId = $values['priceSetId'] ?? NULL; - if ($priceSetId) { - CRM_Price_BAO_PriceField::priceSetValidation($priceSetId, $values, $errorMsg, TRUE); + // @todo - this seems unreachable. + if ($self->getPriceSetID()) { + CRM_Price_BAO_PriceField::priceSetValidation($self->getPriceSetID(), $values, $errorMsg, TRUE); } } // For single additions - show validation error if the contact has already been registered @@ -885,26 +788,6 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment // get the submitted form values. $params = $this->controller->exportValues($this->_name); - if ($this->_action & CRM_Core_Action::DELETE) { - if (($params['delete_participant'] ?? NULL) == 2) { - $additionalId = (CRM_Event_BAO_Participant::getAdditionalParticipantIds($this->_id)); - $participantLinks = (CRM_Event_BAO_Participant::getAdditionalParticipantUrl($additionalId)); - } - if (($params['delete_participant'] ?? NULL) == 1) { - $additionalIds = CRM_Event_BAO_Participant::getAdditionalParticipantIds($this->_id); - foreach ($additionalIds as $value) { - CRM_Event_BAO_Participant::deleteParticipant($value); - } - } - CRM_Event_BAO_Participant::deleteParticipant($this->_id); - CRM_Core_Session::setStatus(ts('Selected participant was deleted successfully.'), ts('Record Deleted'), 'success'); - if (!empty($participantLinks)) { - $status = ts('The following participants no longer have an event fee recorded. You can edit their registration and record a replacement contribution by clicking the links below:') . '<br/>' . $participantLinks; - CRM_Core_Session::setStatus($status, ts('Group Payment Deleted')); - } - return; - } - $statusMsg = $this->submit($params); CRM_Core_Session::setStatus($statusMsg, ts('Saved'), 'success'); $session = CRM_Core_Session::singleton(); @@ -983,15 +866,10 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment // Retrieve the name and email of the current user - this will be the FROM for the receipt email $userName = CRM_Core_Session::singleton()->getLoggedInContactDisplayName(); - if ($this->_contactId) { - [, $this->_contributorEmail, $this->_toDoNotEmail] = CRM_Contact_BAO_Contact::getContactDetails($this->_contactId); - } - //modify params according to parameter used in create //participant method (addParticipant) $this->_params['participant_status_id'] = $params['status_id']; - $this->_params['participant_role_id'] = is_array($params['role_id']) ? $params['role_id'] : explode(',', $params['role_id']); - $roleIdWithSeparator = implode(CRM_Core_DAO::VALUE_SEPARATOR, $this->_params['participant_role_id']); + $this->_params['participant_role_id'] = $this->getSubmittedValue('role_id'); $this->assign('participant_status_id', $params['status_id']); $now = date('YmdHis'); @@ -1016,7 +894,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment // set email for primary location. $fields['email-Primary'] = 1; - $params['email-Primary'] = $params["email-{$this->_bltID}"] = $this->_contributorEmail; + $params['email-Primary'] = $params["email-{$this->_bltID}"] = $this->getContactValue('email_primary.email'); // now set the values for the billing location. foreach ($this->_fields as $name => $dontCare) { @@ -1045,33 +923,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment } $contactID = CRM_Contact_BAO_Contact::createProfileContact($params, $fields, $this->_contactId, NULL, NULL, $ctype); } - - if (!empty($this->_params['participant_role_id'])) { - $customFieldsRole = []; - foreach ($this->_params['participant_role_id'] as $roleKey) { - $customFieldsRole = CRM_Utils_Array::crmArrayMerge(CRM_Core_BAO_CustomField::getFields('Participant', - FALSE, FALSE, $roleKey, $this->_roleCustomDataTypeID), $customFieldsRole); - } - $customFieldsEvent = CRM_Core_BAO_CustomField::getFields('Participant', - FALSE, - FALSE, - CRM_Utils_Array::value('event_id', $params), - $this->_eventNameCustomDataTypeID - ); - $customFieldsEventType = CRM_Core_BAO_CustomField::getFields('Participant', - FALSE, - FALSE, - $this->_eventTypeId, - $this->_eventTypeCustomDataTypeID - ); - $customFields = CRM_Utils_Array::crmArrayMerge($customFieldsRole, - CRM_Core_BAO_CustomField::getFields('Participant', FALSE, FALSE, NULL, NULL, TRUE) - ); - $customFields = CRM_Utils_Array::crmArrayMerge($customFieldsEvent, $customFields); - $customFields = CRM_Utils_Array::crmArrayMerge($customFieldsEventType, $customFields); - - $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params, $this->_id, $this->getDefaultEntity()); - } + $params['custom'] = CRM_Core_BAO_CustomField::postProcess($params, $this->_id, $this->getDefaultEntity()); //do cleanup line items if participant edit the Event Fee. if (($this->_lineItem || !isset($params['proceSetId'])) && !$this->_paymentId && $this->_id) { @@ -1091,7 +943,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment // so we copy stuff over to first_name etc. $paymentParams = $this->_params; if (!empty($this->_params['send_receipt'])) { - $paymentParams['email'] = $this->_contributorEmail; + $paymentParams['email'] = $this->getContactValue('email_primary.email'); } // The only reason for merging in the 'contact_id' rather than ensuring it is set @@ -1364,7 +1216,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment } if (!empty($params['send_receipt'])) { - $result = $this->sendReceipts($params, $customFields, $participants, $lineItem[0] ?? [], $additionalParticipantDetails ?? []); + $result = $this->sendReceipts($params, $participants, $lineItem[0] ?? [], $additionalParticipantDetails ?? []); } // set the participant id if it is not set @@ -1382,13 +1234,26 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment * no longer call it. */ public function setCustomDataTypes(): void { - $customDataType = CRM_Core_OptionGroup::values('custom_data_type', FALSE, FALSE, FALSE, NULL, 'name'); - $this->_roleCustomDataTypeID = array_search('ParticipantRole', $customDataType); - $this->_eventNameCustomDataTypeID = array_search('ParticipantEventName', $customDataType); - $this->_eventTypeCustomDataTypeID = array_search('ParticipantEventType', $customDataType); - $this->assign('roleCustomDataTypeID', $this->_roleCustomDataTypeID); - $this->assign('eventNameCustomDataTypeID', $this->_eventNameCustomDataTypeID); - $this->assign('eventTypeCustomDataTypeID', $this->_eventTypeCustomDataTypeID); + $this->assign('roleCustomDataTypeID', $this->getExtendsEntityColumnID('ParticipantRole')); + $this->assign('eventNameCustomDataTypeID', $this->getExtendsEntityColumnID('ParticipantEventName')); + $this->assign('eventTypeCustomDataTypeID', $this->getExtendsEntityColumnID('ParticipantEventType')); + } + + /** + * Get the relevant mapping for civicrm_custom_group.extends_entity_column_value. + * + * @param string $type + * + * @return int|null + */ + private function getExtendsEntityColumnID(string $type): ?int { + foreach (CRM_Core_BAO_CustomGroup::getExtendsEntityColumnIdOptions() as $item) { + if ($item['name'] === $type) { + return (int) $item['id']; + } + } + // Should not be reachable but maybe people disable them? + return NULL; } /** @@ -1450,7 +1315,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment //retrieve custom information $form->_values = []; - CRM_Event_Form_Registration::initEventFee($form, $event['id'], FALSE, $this->getPriceSetID()); + CRM_Event_Form_Registration::initEventFee($form, FALSE, $this->getPriceSetID()); if ($form->_context === 'standalone' || $form->_context === 'participant') { $discountedEvent = CRM_Core_BAO_Discount::getOptionGroup($event['id'], 'civicrm_event'); if (is_array($discountedEvent)) { @@ -1579,8 +1444,8 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment // Retrieve the name and email of the contact - form will be the TO for receipt email ( only if context is not standalone) if ($form->_context !== 'standalone') { if ($form->getContactID()) { - [, $form->_contributorEmail] = CRM_Contact_BAO_Contact_Location::getEmailDetails($form->_contactId); - $form->assign('email', $form->_contributorEmail); + // @todo - this is likely unneeded now. + $form->assign('email', $this->getContactValue('email_primary.email')); } else { //show email block for batch update for event @@ -1706,9 +1571,9 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment * @param $participantRoles * @param $receiptText * - * @return void + * @throws \CRM_Core_Exception */ - protected function assignEventDetailsToTpl($eventID, $participantRoles, $receiptText) { + protected function assignEventDetailsToTpl($eventID, $participantRoles, $receiptText): void { //use of the message template below requires variables in different format $events = []; $returnProperties = ['event_type_id', 'fee_label', 'start_date', 'end_date', 'is_show_location', 'title']; @@ -1939,36 +1804,6 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment return ($this->getParticipantID() && $this->_action & CRM_Core_Action::UPDATE) && $this->_paymentId; } - /** - * Get the value for a field relating to the event. - * - * @param string $fieldName - * - * @return mixed - * @throws \CRM_Core_Exception - */ - protected function getEventValue(string $fieldName) { - if (!isset($this->_event)) { - $this->_event = civicrm_api3('Event', 'getsingle', ['id' => $this->_eventId]); - } - return $this->_event[$fieldName]; - } - - /** - * Get a value from the existing participant record (applies to edits). - * - * @param string $fieldName - * - * @return array - * @throws \CRM_Core_Exception - */ - protected function getParticipantValue($fieldName) { - if (!$this->participantRecord) { - $this->participantRecord = civicrm_api3('Participant', 'getsingle', ['id' => $this->getParticipantID()]); - } - return $this->participantRecord[$fieldName] ?? $this->participantRecord['participant_' . $fieldName]; - } - /** * Get id of participant being edited. * @@ -2039,6 +1874,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment * Do fetch from line items. * * @return array + * @throws \Civi\Core\Exception\DBQueryException */ public function getFeeDetails($participantIds, $hasLineItems = FALSE) { $feeDetails = []; @@ -2129,24 +1965,19 @@ INNER JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field_ /** * @param $params - * @param array $customFields * @param array $participants * @param $lineItem * @param $additionalParticipantDetails * * @return array * @throws \CRM_Core_Exception + * @throws \Brick\Money\Exception\UnknownCurrencyException */ - protected function sendReceipts($params, array $customFields, array $participants, $lineItem, $additionalParticipantDetails): array { + protected function sendReceipts($params, array $participants, $lineItem, $additionalParticipantDetails): array { $sent = []; $notSent = []; $this->assign('module', 'Event Registration'); $this->assignEventDetailsToTpl($params['event_id'], CRM_Utils_Array::value('role_id', $params), CRM_Utils_Array::value('receipt_text', $params)); - // @todo - this is no longer in core templates as of 5.63 - // we should remove once we have done a 'push upgrade' on addresses - ie advised - // people to upgrade their templates in an upgrade message, as - // opposed to just updating unmodified templates. - $this->assign('isPrimary', (int) $this->_isPaidEvent); if ($this->_isPaidEvent) { $paymentInstrument = CRM_Contribute_PseudoConstant::paymentInstrument(); if (!$this->_mode) { @@ -2179,34 +2010,44 @@ INNER JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field_ } $customGroup = []; - //format submitted data + $customFieldFilters = [ + 'ParticipantRole' => $this->getSubmittedValue('role_id'), + 'ParticipantEventName' => $this->getEventID(), + 'ParticipantEventType' => $this->getEventValue('event_type_id'), + ]; + $customFields = CRM_Core_BAO_CustomField::getViewableCustomFields('Participant', $customFieldFilters); foreach ($params['custom'] as $fieldID => $values) { foreach ($values as $fieldValue) { - $isPublic = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $fieldValue['custom_group_id'], 'is_public'); - if ($isPublic) { - $customFields[$fieldID]['id'] = $fieldID; - $formattedValue = CRM_Core_BAO_CustomField::displayValue($fieldValue['value'], $fieldID, $participants[0]->id); - $customGroup[$customFields[$fieldID]['groupTitle']][$customFields[$fieldID]['label']] = str_replace(' ', '', $formattedValue); - } + $formattedValue = CRM_Core_BAO_CustomField::displayValue($fieldValue['value'], $fieldID, $participants[0]->id); + $customGroup[$customFields[$fieldID]['custom_group_id.title']][$customFields[$fieldID]['label']] = str_replace(' ', '', $formattedValue); } } + $this->assign('customGroup', $customGroup); - foreach ($this->_contactIds as $num => $contactID) { - // Retrieve the name and email of the contact - this will be the TO for receipt email - [, $this->_contributorEmail, $this->_toDoNotEmail] = CRM_Contact_BAO_Contact::getContactDetails($contactID); + $fromEmails = CRM_Event_BAO_Event::getFromEmailIds($this->getEventID()); + foreach ($participants as $num => $participant) { + $participantID = $participant->id; + $contactID = $participant->contact_id; + $key = 'contact_' . $contactID; + $this->define('Contact', $key, ['id' => $contactID]); + if (!$this->lookup($key, 'email_primary.email') || $this->lookup($key, 'do_not_email')) { + // try to send emails only if email id is present + // and the do-not-email option is not checked for that contact + $notSent[] = $contactID; + continue; + } $waitStatus = CRM_Event_PseudoConstant::participantStatus(NULL, "class = 'Waiting'"); $waitingStatus = $waitStatus[$params['status_id']] ?? NULL; if ($waitingStatus) { $this->assign('isOnWaitlist', TRUE); } - $this->assign('customGroup', $customGroup); $this->assign('contactID', $contactID); - $this->assign('participantID', $participants[$num]->id); + $this->assign('participantID', $participantID); $contributionID = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', - $participants[$num]->id, 'contribution_id', 'participant_id' + $participantID, 'contribution_id', 'participant_id' ); $totalAmount = 0; if ($contributionID) { @@ -2218,7 +2059,7 @@ INNER JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field_ ); } $this->assign('totalAmount', $params['total_amount'] ?? $totalAmount); - $this->_id = $participants[$num]->id; + $this->_id = $participantID; if ($this->_isPaidEvent) { // fix amount for each of participants ( for bulk mode ) @@ -2268,21 +2109,17 @@ INNER JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field_ 'isTest' => !empty($this->_defaultValues['is_test']), 'PDFFilename' => ts('confirmation') . '.pdf', 'modelProps' => [ - 'participantID' => $this->_id, + 'participantID' => $participantID, 'eventID' => $params['event_id'], 'contributionID' => $contributionID, ], ]; - // try to send emails only if email id is present - // and the do-not-email option is not checked for that contact - if ($this->_contributorEmail and !$this->_toDoNotEmail) { - $sendTemplateParams['from'] = $params['from_email_address']; - $sendTemplateParams['toName'] = $this->getContactValue('display_name'); - $sendTemplateParams['toEmail'] = $this->_contributorEmail; - $sendTemplateParams['cc'] = $this->_fromEmails['cc'] ?? NULL; - $sendTemplateParams['bcc'] = $this->_fromEmails['bcc'] ?? NULL; - } + $sendTemplateParams['from'] = $params['from_email_address']; + $sendTemplateParams['toName'] = $this->lookup($key, 'display_name'); + $sendTemplateParams['toEmail'] = $this->lookup($key, 'email_primary.email'); + $sendTemplateParams['cc'] = $fromEmails['cc'] ?? NULL; + $sendTemplateParams['bcc'] = $fromEmails['bcc'] ?? NULL; //send email with pdf invoice if (Civi::settings()->get('invoice_is_email_pdf')) { @@ -2292,13 +2129,8 @@ INNER JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field_ [$mailSent] = CRM_Core_BAO_MessageTemplate::sendTemplate($sendTemplateParams); if ($mailSent) { $sent[] = $contactID; - foreach ($participants as $ids => $values) { - if ($values->contact_id == $contactID) { - $values->details = $params['receipt_text'] ?? NULL; - CRM_Activity_BAO_Activity::addActivity($values, 'Email'); - break; - } - } + $participant->details = $this->getSubmittedValue('receipt_text'); + CRM_Activity_BAO_Activity::addActivity($participant, 'Email'); } else { $notSent[] = $contactID; diff --git a/civicrm/CRM/Event/Form/Participant/Delete.php b/civicrm/CRM/Event/Form/Participant/Delete.php new file mode 100644 index 0000000000..e095d80290 --- /dev/null +++ b/civicrm/CRM/Event/Form/Participant/Delete.php @@ -0,0 +1,158 @@ +<?php +/* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ + */ + +/** + * Back office participant form. + * + * @package CRM + * @copyright CiviCRM LLC https://civicrm.org/licensing + */ + +/** + * Back office participant delete form. + */ +class CRM_Event_Form_Participant_Delete extends CRM_Contribute_Form_AbstractEditPayment { + use CRM_Event_Form_EventFormTrait; + use CRM_Contact_Form_ContactFormTrait; + + /** + * @var int + */ + private $participantID; + + /** + * Get id of participant being edited. + * + * @return int|null + * + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. + * + * No exception is thrown as abort is not TRUE. + * @noinspection PhpUnhandledExceptionInspection + * @noinspection PhpDocMissingThrowsInspection + */ + public function getParticipantID(): ?int { + if ($this->participantID === NULL) { + $id = CRM_Utils_Request::retrieve('id', 'Positive', $this); + $this->participantID = $id ? (int) $id : FALSE; + } + return $this->participantID ?: NULL; + } + + /** + * Get the selected Event ID. + * + * @return int|null + * + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. + * + * @noinspection PhpDocMissingThrowsInspection + * @noinspection PhpUnhandledExceptionInspection + */ + public function getEventID(): ?int { + return $this->getParticipantValue('event_id'); + } + + /** + * Get the relevant contact ID. + * + * @return int|null + * + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. + * + * @noinspection PhpDocMissingThrowsInspection + * @noinspection PhpUnhandledExceptionInspection + */ + public function getContactID(): ?int { + return $this->getParticipantValue('contact_id'); + } + + /** + * Set variables up before form is built. + * + * @throws \CRM_Core_Exception + */ + public function preProcess(): void { + $this->setAction(CRM_Core_Action::DELETE); + $this->setTitle(ts('Delete participant record for %1', [1 => $this->getContactValue('display_name')])); + $contributionID = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', + $this->getParticipantID(), 'contribution_id', 'participant_id' + ); + if ($contributionID && !CRM_Core_Permission::checkActionPermission('CiviContribute', CRM_Core_Action::DELETE)) { + CRM_Core_Error::statusBounce(ts("This Participant is linked to a contribution. You must have 'delete in CiviContribute' permission in order to delete this record.")); + } + } + + /** + * Build the form object. + * + * @throws \CRM_Core_Exception + */ + public function buildQuickForm(): void { + $additionalParticipant = (int) CRM_Core_DAO::singleValueQuery( + 'SELECT count(*) FROM civicrm_participant WHERE registered_by_id = %1 AND id <> registered_by_id', + [1 => [$this->getParticipantID(), 'Integer']] + ); + if ($additionalParticipant) { + $deleteParticipants = [ + 1 => ts('Delete this participant record along with associated participant record(s).'), + 2 => ts('Delete only this participant record.'), + ]; + $this->addRadio('delete_participant', NULL, $deleteParticipants, NULL, '<br />'); + $this->setDefaults(['delete_participant' => 1]); + } + $this->assign('additionalParticipant', $additionalParticipant); + $this->addButtons([ + [ + 'type' => 'next', + 'name' => ts('Delete'), + 'spacing' => ' ', + 'isDefault' => TRUE, + ], + [ + 'type' => 'cancel', + 'name' => ts('Cancel'), + ], + ]); + } + + /** + * Process the form submission. + * + * @throws \Civi\Core\Exception\DBQueryException + */ + public function postProcess(): void { + $deleteParticipantOption = (int) $this->getSubmittedValue('delete_participant'); + if ($deleteParticipantOption === 2) { + $additionalID = (CRM_Event_BAO_Participant::getAdditionalParticipantIds($this->getParticipantID())); + $participantLinks = (CRM_Event_BAO_Participant::getAdditionalParticipantUrl($additionalID)); + } + if ($deleteParticipantOption === 1) { + $additionalIDs = CRM_Event_BAO_Participant::getAdditionalParticipantIds($this->getParticipantID()); + foreach ($additionalIDs as $value) { + CRM_Event_BAO_Participant::deleteParticipant($value); + } + } + CRM_Event_BAO_Participant::deleteParticipant($this->getParticipantID()); + CRM_Core_Session::setStatus(ts('Selected participant was deleted successfully.'), ts('Record Deleted'), 'success'); + if (!empty($participantLinks)) { + $status = ts('The following participants no longer have an event fee recorded. You can edit their registration and record a replacement contribution by clicking the links below:') . '<br/>' . $participantLinks; + CRM_Core_Session::setStatus($status, ts('Group Payment Deleted')); + } + } + +} diff --git a/civicrm/CRM/Event/Form/ParticipantFeeSelection.php b/civicrm/CRM/Event/Form/ParticipantFeeSelection.php index 7ad90dcc2a..cbb5c49bc8 100644 --- a/civicrm/CRM/Event/Form/ParticipantFeeSelection.php +++ b/civicrm/CRM/Event/Form/ParticipantFeeSelection.php @@ -21,10 +21,17 @@ * */ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { + use CRM_Event_Form_EventFormTrait; + use CRM_Contact_Form_ContactFormTrait; public $useLivePageJS = TRUE; - protected $_contactId = NULL; + /** + * @var int + * + * @deprecated + */ + protected $_contactId; protected $_contributorDisplayName = NULL; @@ -42,9 +49,12 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { public $_values = NULL; - public $_participantId = NULL; - - protected $_participantStatus = NULL; + /** + * @var int + * + * @deprecated use getParticipantID(). + */ + public $_participantId; protected $_paidAmount = NULL; @@ -53,26 +63,21 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { protected $contributionAmt = NULL; public function preProcess() { - $this->_participantId = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE); - $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE); - $this->_eventId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Participant', $this->_participantId, 'event_id'); - $this->_fromEmails = CRM_Event_BAO_Event::getFromEmailIds($this->_eventId); + $this->_fromEmails = CRM_Event_BAO_Event::getFromEmailIds($this->getEventID()); if ($this->getContributionID()) { $this->_isPaidEvent = TRUE; } $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, TRUE); - [$this->_contributorDisplayName, $this->_contributorEmail] = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_contactId); - $this->assign('displayName', $this->_contributorDisplayName); - $this->assign('email', $this->_contributorEmail); - - $this->_participantStatus = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_Participant', $this->_participantId, 'status_id'); //set the payment mode - _mode property is defined in parent class $this->_mode = CRM_Utils_Request::retrieve('mode', 'String', $this); - $this->assign('contactId', $this->_contactId); - $this->assign('id', $this->_participantId); + [$this->_contributorDisplayName, $this->_contributorEmail] = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->getContactID()); + $this->assign('displayName', $this->getContactValue('display_name')); + $this->assign('email', $this->getContactValue('email_primary.email')); + $this->assign('contactId', $this->getContactID()); + $this->assign('id', $this->getParticipantID()); $paymentInfo = CRM_Contribute_BAO_Contribution::getPaymentInfo($this->_participantId, 'event'); $this->_paidAmount = $paymentInfo['paid']; @@ -103,10 +108,10 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { */ public function getContributionID(): ?int { if ($this->contributionID === NULL) { - $this->contributionID = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', $this->_participantId, 'contribution_id', 'participant_id') ?: FALSE; + $this->contributionID = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', $this->getParticipantID(), 'contribution_id', 'participant_id') ?: FALSE; if (!$this->contributionID) { - $primaryParticipantID = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_Participant', $this->_participantId, 'registered_by_id'); + $primaryParticipantID = $this->getParticipantValue('registered_by_id'); if ($primaryParticipantID) { $this->contributionID = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_ParticipantPayment', $primaryParticipantID, 'contribution_id', 'participant_id') ?: FALSE; } @@ -159,7 +164,7 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { $statuses = CRM_Event_PseudoConstant::participantStatus(); $this->assign('partiallyPaid', array_search('Partially paid', $statuses)); $this->assign('pendingRefund', array_search('Pending refund', $statuses)); - $this->assign('participantStatus', $this->_participantStatus); + $this->assign('participantStatus', $this->getParticipantValue('status_id')); $this->assign('currencySymbol', CRM_Core_BAO_Country::defaultCurrencySymbol()); @@ -171,7 +176,7 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { //retrieve custom information $this->_values = []; - CRM_Event_Form_Registration::initEventFee($this, $event['id'], $this->_action !== CRM_Core_Action::UPDATE, $this->getPriceSetID()); + CRM_Event_Form_Registration::initEventFee($this, $this->_action !== CRM_Core_Action::UPDATE, $this->getPriceSetID()); CRM_Event_Form_Registration_Register::buildAmount($this, TRUE, NULL, $this->getPriceSetID()); if (!CRM_Utils_System::isNull($this->_values['line_items'] ?? NULL)) { @@ -365,11 +370,7 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { $this->assign('totalAmount', $this->contributionAmt); $this->assign('checkNumber', CRM_Utils_Array::value('check_number', $params)); } - // @todo isPrimary no longer used from 5.63 in core templates, remove - // once users have been 'pushed' to update their templates (via - // upgrade message - which we don't always do whenever we change - // a minor variable. - $this->assign('isPrimary', $this->_isPaidEvent); + $this->assign('register_date', $params['register_date']); // Retrieve the name and email of the contact - this will be the TO for receipt email @@ -420,7 +421,7 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { */ public function getEventID(): int { if (!$this->_eventId) { - $this->_eventId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Participant', $this->_participantId, 'event_id'); + $this->_eventId = $this->getParticipantValue('event_id'); } return $this->_eventId; } @@ -451,4 +452,41 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { return $priceSetID; } + /** + * Get id of participant being acted on. + * + * @return int + * + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. + * + * No exception should be thrown... as it should be unreachable/overridden. + * @noinspection PhpUnhandledExceptionInspection + * @noinspection PhpDocMissingThrowsInspection + */ + public function getParticipantID(): int { + if (!$this->_participantId) { + $this->_participantId = (int) CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE); + } + return $this->_participantId; + } + + /** + * Get the contact ID. + * + * Override this for more complex retrieval as required by the form. + * + * @return int|null + * + * @noinspection PhpUnhandledExceptionInspection + * @noinspection PhpDocMissingThrowsInspection + */ + public function getContactID(): ?int { + if (!$this->_contactId) { + $this->_contactId = (int) $this->getParticipantValue('contact_id'); + } + return $this->_contactId; + } + } diff --git a/civicrm/CRM/Event/Form/ParticipantView.php b/civicrm/CRM/Event/Form/ParticipantView.php index 03406163fb..c87906b92f 100644 --- a/civicrm/CRM/Event/Form/ParticipantView.php +++ b/civicrm/CRM/Event/Form/ParticipantView.php @@ -180,8 +180,8 @@ class CRM_Event_Form_ParticipantView extends CRM_Core_Form { ); } if (CRM_Core_Permission::check('delete in CiviEvent')) { - $recentOther['deleteUrl'] = CRM_Utils_System::url('civicrm/contact/view/participant', - "action=delete&reset=1&id={$values[$participantID]['id']}&cid={$values[$participantID]['contact_id']}&context=home" + $recentOther['deleteUrl'] = CRM_Utils_System::url('civicrm/participant/delete', + "reset=1&id={$values[$participantID]['id']}}" ); } diff --git a/civicrm/CRM/Event/Form/Registration.php b/civicrm/CRM/Event/Form/Registration.php index 79dfd821ee..b33f7ee18e 100644 --- a/civicrm/CRM/Event/Form/Registration.php +++ b/civicrm/CRM/Event/Form/Registration.php @@ -20,20 +20,36 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { use CRM_Financial_Form_FrontEndPaymentFormTrait; + use CRM_Event_Form_EventFormTrait; /** * The id of the event we are processing. * * @var int + * + * @deprecated access via `getEventID` */ public $_eventId; /** - * Get the event it. + * Get the selected Event ID. + * + * @return int|null + * + * @throws \CRM_Core_Exception + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. * - * @return int */ - protected function getEventID(): int { + public function getEventID(): int { + if (!$this->_eventId) { + $this->_eventId = (int) CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE); + // this is the first time we are hitting this, so check for permissions here + if (!CRM_Core_Permission::event(CRM_Core_Permission::EDIT, $this->_eventId, 'register for events')) { + CRM_Core_Error::statusBounce(ts('You do not have permission to register for this event'), $this->getInfoPageUrl()); + } + } return $this->_eventId; } @@ -179,9 +195,11 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { /** * Set variables up before form is built. + * + * @throws \CRM_Core_Exception */ public function preProcess() { - $this->_eventId = (int) CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE); + $this->setTitle($this->getEventValue('title')); $this->_action = CRM_Utils_Request::retrieve('action', 'Alphanumeric', $this, FALSE, CRM_Core_Action::ADD); //CRM-4320 $this->_participantId = CRM_Utils_Request::retrieve('participantId', 'Positive', $this); @@ -221,20 +239,16 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { $this->assign('showPaymentOnConfirm', $this->showPaymentOnConfirm); if (!$this->_values) { - // this is the first time we are hitting this, so check for permissions here - if (!CRM_Core_Permission::event(CRM_Core_Permission::EDIT, $this->_eventId, 'register for events')) { - CRM_Core_Error::statusBounce(ts('You do not have permission to register for this event'), $this->getInfoPageUrl()); - } // get all the values from the dao object $this->_values = $this->_fields = []; //retrieve event information - $params = ['id' => $this->_eventId]; + $params = ['id' => $this->getEventID()]; CRM_Event_BAO_Event::retrieve($params, $this->_values['event']); // check for is_monetary status - $isMonetary = $this->_values['event']['is_monetary'] ?? NULL; + $isMonetary = $this->getEventValue('is_monetary'); // check for ability to add contributions of type if ($isMonetary && CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus() @@ -260,7 +274,7 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { $this->set('additionalParticipantIds', $this->_additionalParticipantIds); } - $eventFull = CRM_Event_BAO_Participant::eventFull($this->_eventId, FALSE, + $eventFull = CRM_Event_BAO_Participant::eventFull($this->getEventID(), FALSE, $this->_values['event']['has_waitlist'] ?? NULL ); @@ -287,7 +301,7 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { $participant_role = CRM_Core_OptionGroup::values('participant_role'); $this->_values['event']['participant_role'] = $participant_role["{$this->_values['event']['default_role_id']}"]; } - $isPayLater = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $this->_eventId, 'is_pay_later'); + $isPayLater = $this->getEventValue('is_pay_later'); $this->setPayLaterLabel($isPayLater ? $this->_values['event']['pay_later_text'] : ''); //check for various combinations for paylater, payment //process with paid event. @@ -300,7 +314,8 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { $priceSetID = $this->getPriceSetID(); if ($priceSetID) { - self::initEventFee($this, $this->_eventId, TRUE, $priceSetID); + self::initEventFee($this, TRUE, $priceSetID); + $this->assign('quickConfig', $this->isQuickConfig()); } // get the profile ids @@ -368,8 +383,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { $this->_contributeMode = $this->get('contributeMode'); $this->assign('contributeMode', $this->_contributeMode); - $this->setTitle($this->_values['event']['title']); - $this->assign('paidEvent', $this->_values['event']['is_monetary']); // we do not want to display recently viewed items on Registration pages @@ -492,6 +505,7 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { */ public function buildCustom($id, $name) { if (!$id) { + $this->assign($name, []); return; } @@ -570,84 +584,68 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { * Initiate event fee. * * @param \CRM_Event_Form_Participant|\CRM_Event_Form_Registration|\CRM_Event_Form_ParticipantFeeSelection|\CRM_Event_Form_Task_Register $form - * @param int $eventID * @param bool $doNotIncludeExpiredFields * See CRM-16456. * @param int|null $priceSetId * ID of the price set in use. * - * @throws \CRM_Core_Exception + * @internal function has had several recent signature changes & is expected to be eventually removed. */ - public static function initEventFee(&$form, $eventID, $doNotIncludeExpiredFields, $priceSetId): void { + public static function initEventFee($form, $doNotIncludeExpiredFields, $priceSetId): void { if (!$priceSetId) { CRM_Core_Error::deprecatedWarning('this should not be reachable'); return; } - //check if price set is is_config - if (is_numeric($priceSetId)) { - if (CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $priceSetId, 'is_quick_config') && $form->getVar('_name') != 'Participant') { - $form->assign('quickConfig', 1); - } - else { - $form->assign('quickConfig', 0); - } - } + // get price info - if ($priceSetId) { - if ($form->_action & CRM_Core_Action::UPDATE) { - if (in_array(CRM_Utils_System::getClassName($form), ['CRM_Event_Form_Participant', 'CRM_Event_Form_Task_Register'])) { - $form->_values['line_items'] = CRM_Price_BAO_LineItem::getLineItems($form->_id, 'participant'); - } - else { - $form->_values['line_items'] = CRM_Price_BAO_LineItem::getLineItems($form->_participantId, 'participant'); - } - $required = FALSE; + if ($form->_action & CRM_Core_Action::UPDATE) { + if (in_array(CRM_Utils_System::getClassName($form), ['CRM_Event_Form_Participant', 'CRM_Event_Form_Task_Register'])) { + $form->_values['line_items'] = CRM_Price_BAO_LineItem::getLineItems($form->_id, 'participant'); } else { - $required = TRUE; + $form->_values['line_items'] = CRM_Price_BAO_LineItem::getLineItems($form->_participantId, 'participant'); } + } + $priceSet = CRM_Price_BAO_PriceSet::getSetDetail($priceSetId, NULL, $doNotIncludeExpiredFields); + $form->_priceSet = $priceSet[$priceSetId] ?? NULL; + $form->_values['fee'] = $form->_priceSet['fields'] ?? NULL; - $priceSet = CRM_Price_BAO_PriceSet::getSetDetail($priceSetId, $required, $doNotIncludeExpiredFields); - $form->_priceSet = $priceSet[$priceSetId] ?? NULL; - $form->_values['fee'] = $form->_priceSet['fields'] ?? NULL; - - //get the price set fields participant count. - //get option count info. - $form->_priceSet['optionsCountTotal'] = CRM_Price_BAO_PriceSet::getPricesetCount($priceSetId); - if ($form->_priceSet['optionsCountTotal']) { - $optionsCountDetails = []; - if (!empty($form->_priceSet['fields'])) { - foreach ($form->_priceSet['fields'] as $field) { - foreach ($field['options'] as $option) { - $count = CRM_Utils_Array::value('count', $option, 0); - $optionsCountDetails['fields'][$field['id']]['options'][$option['id']] = $count; - } - } - } - $form->_priceSet['optionsCountDetails'] = $optionsCountDetails; - } - - //get option max value info. - $optionsMaxValueTotal = 0; - $optionsMaxValueDetails = []; - + //get the price set fields participant count. + //get option count info. + $form->_priceSet['optionsCountTotal'] = CRM_Price_BAO_PriceSet::getPricesetCount($priceSetId); + if ($form->_priceSet['optionsCountTotal']) { + $optionsCountDetails = []; if (!empty($form->_priceSet['fields'])) { foreach ($form->_priceSet['fields'] as $field) { foreach ($field['options'] as $option) { - $maxVal = CRM_Utils_Array::value('max_value', $option, 0); - $optionsMaxValueDetails['fields'][$field['id']]['options'][$option['id']] = $maxVal; - $optionsMaxValueTotal += $maxVal; + $count = CRM_Utils_Array::value('count', $option, 0); + $optionsCountDetails['fields'][$field['id']]['options'][$option['id']] = $count; } } } + $form->_priceSet['optionsCountDetails'] = $optionsCountDetails; + } + + //get option max value info. + $optionsMaxValueTotal = 0; + $optionsMaxValueDetails = []; - $form->_priceSet['optionsMaxValueTotal'] = $optionsMaxValueTotal; - if ($optionsMaxValueTotal) { - $form->_priceSet['optionsMaxValueDetails'] = $optionsMaxValueDetails; + if (!empty($form->_priceSet['fields'])) { + foreach ($form->_priceSet['fields'] as $field) { + foreach ($field['options'] as $option) { + $maxVal = CRM_Utils_Array::value('max_value', $option, 0); + $optionsMaxValueDetails['fields'][$field['id']]['options'][$option['id']] = $maxVal; + $optionsMaxValueTotal += $maxVal; + } } - $form->set('priceSet', $form->_priceSet); } + $form->_priceSet['optionsMaxValueTotal'] = $optionsMaxValueTotal; + if ($optionsMaxValueTotal) { + $form->_priceSet['optionsMaxValueDetails'] = $optionsMaxValueDetails; + } + $form->set('priceSet', $form->_priceSet); + $eventFee = $form->_values['fee'] ?? NULL; if (!is_array($eventFee) || empty($eventFee)) { $form->_values['fee'] = []; @@ -1643,9 +1641,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { foreach ($additionalIDs as $participantID => $contactId) { if ($participantID == $registerByID) { - //set as Primary Participant - $this->assign('isPrimary', 1); - $customProfile = CRM_Event_BAO_Event::buildCustomProfile($participantID, $this->_values, NULL, $isTest); if (count($customProfile)) { @@ -1654,7 +1649,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { } } else { - $this->assign('isPrimary', 0); $this->assign('customProfile', NULL); } @@ -1716,4 +1710,13 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { return $this->_priceSetId ?: NULL; } + /** + * Is the price set quick config. + * + * @return bool + */ + public function isQuickConfig(): bool { + return $this->getPriceSetID() && CRM_Price_BAO_PriceSet::isQuickConfig($this->getPriceSetID()); + } + } diff --git a/civicrm/CRM/Event/Form/Registration/Confirm.php b/civicrm/CRM/Event/Form/Registration/Confirm.php index 3c616b329b..d23e700252 100644 --- a/civicrm/CRM/Event/Form/Registration/Confirm.php +++ b/civicrm/CRM/Event/Form/Registration/Confirm.php @@ -130,7 +130,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { $params = []; // rfp == redirect from paypal // @fixme rfp is probably not required - the getPreApprovalDetails should deal with any payment-processor specific 'stuff' - $rfp = CRM_Utils_Request::retrieve('rfp', 'Boolean', CRM_Core_DAO::$_nullObject, FALSE, NULL, 'GET'); + $rfp = CRM_Utils_Request::retrieve('rfp', 'Boolean', NULL, FALSE, NULL, 'GET'); //we lost rfp in case of additional participant. So set it explicitly. if ($rfp || ($this->_params[0]['additional_participants'] ?? FALSE)) { @@ -168,7 +168,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { if (!in_array($name, $skipFields)) { $params[$name] = $value; } - if (substr($name, 0, 6) == 'price_') { + if (str_starts_with($name, 'price_')) { $params[$name] = $this->_params[0][$name]; } } @@ -207,7 +207,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { $taxAmount = 0; foreach ($this->_params as $k => $v) { - if ($v == 'skip') { + if ($v === 'skip') { continue; } $individualTaxAmount = 0; @@ -233,7 +233,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { else { //use an email if we have one foreach ($v as $v_key => $v_val) { - if (substr($v_key, 0, 6) == 'email-') { + if (str_starts_with($v_key, 'email-')) { $append = $v[$v_key]; } } @@ -329,7 +329,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { foreach ($fields as $name => $dontCare) { if (isset($this->_params[0][$name])) { $defaults[$name] = $this->_params[0][$name]; - if (substr($name, 0, 7) == 'custom_') { + if (str_starts_with($name, 'custom_')) { $timeField = "{$name}_time"; if (isset($this->_params[0][$timeField])) { $defaults[$timeField] = $this->_params[0][$timeField]; @@ -459,7 +459,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { //build the $participantCount array. //maintain record for all participants. foreach ($params as $participantNum => $record) { - if ($record == 'skip') { + if ($record === 'skip') { unset($params[$participantNum]); $participantCount[$participantNum] = 'skip'; } @@ -570,17 +570,22 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { $value['email'] = CRM_Utils_Array::valueByRegexKey('/^email-/', $value); } - // If registering from waitlist participant_id is set but contact_id is not. - // We need a contact ID to process the payment so set the "primary" contact ID. - if (empty($value['contact_id'])) { - $value['contact_id'] = $contactID; - } - if (is_object($payment)) { // Not quite sure why we don't just user $value since it contains the data // from result // @todo ditch $result & retest. - list($result, $value) = $this->processPayment($payment, $value); + // If registering from waitlist participant_id is set but contact_id is not. + // We need a contact ID to process the payment so set the "primary" contact ID. + $value['contactID'] = empty($value['contact_id']) ? (int) $contactID : (int) $value['contact_id']; + // contactID is the correct parameter to pass to the processor. + // However, we still pass contact_id as the same value as was previously being assigned, + // in case some processors are expecting that. + // (especially since this was recently not passing the correct value). + // https://docs.civicrm.org/dev/en/latest/extensions/payment-processors/create/#getpaymentformfields + if (empty($value['contact_id'])) { + $value['contact_id'] = $value['contactID']; + } + [$result, $value] = $this->processPayment($payment, $value); } else { throw new CRM_Core_Exception($paymentObjError); @@ -861,8 +866,6 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { foreach ($additionalIDs as $participantID => $contactId) { $participantNum = 0; if ($participantID == $registerByID) { - //set as Primary Participant - $this->assign('isPrimary', 1); //build an array of custom profile and assigning it to template. $customProfile = CRM_Event_BAO_Event::buildCustomProfile($participantID, $this->_values, NULL, $isTest); @@ -882,8 +885,6 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { $participantParams = ['id' => $participantID]; CRM_Event_BAO_Participant::getValues($participantParams, $participantValues, $ids); $this->_values['participant'] = $participantValues[$participantID]; - - $this->assign('isPrimary', 0); $this->assign('customProfile', NULL); //Additional Participant should get only it's payment information if (!empty($this->_amount)) { @@ -891,6 +892,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { $params = $this->get('params'); $amount[$participantNum]['label'] = preg_replace('//', '', $params[$participantNum]['amount_level']); $amount[$participantNum]['amount'] = $params[$participantNum]['amount']; + // @todo - unused in core offline receipt template from 5.67. Remove at somepoint $this->assign('amounts', $amount); } if ($this->_lineItem) { @@ -1289,6 +1291,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { * @param $params */ public static function testSubmit($params) { + CRM_Core_Error::deprecatedFunctionWarning('use the Civi\Test\FormTrait'); $form = new CRM_Event_Form_Registration_Confirm(); // This way the mocked up controller ignores the session stuff. $_SERVER['REQUEST_METHOD'] = 'GET'; @@ -1301,7 +1304,6 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { $form->_values['custom_pre_id'] = $params['custom_pre_id'] ?? NULL; $form->_values['custom_post_id'] = $params['custom_post_id'] ?? NULL; $form->_values['event'] = $params['event'] ?? NULL; - $form->_contributeMode = $params['contributeMode']; $eventParams = ['id' => $params['id']]; CRM_Event_BAO_Event::retrieve($eventParams, $form->_values['event']); $form->set('registerByID', $params['registerByID']); diff --git a/civicrm/CRM/Event/Form/Registration/Register.php b/civicrm/CRM/Event/Form/Registration/Register.php index 82321a0cde..faec4b6131 100644 --- a/civicrm/CRM/Event/Form/Registration/Register.php +++ b/civicrm/CRM/Event/Form/Registration/Register.php @@ -430,8 +430,9 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $this->addPaymentProcessorFieldsToForm(); } } - - if ($contactID === 0 && !$this->_values['event']['is_multiple_registrations']) { + $isSelectContactID = ($contactID === 0 && !$this->_values['event']['is_multiple_registrations']); + $this->assign('nocid', $isSelectContactID); + if ($isSelectContactID) { //@todo we are blocking for multiple registrations because we haven't tested $this->addCIDZeroOptions(); } @@ -536,6 +537,10 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { /** * Build the radio/text form elements for the amount field * + * @internal function is not currently called by any extentions in our civi + * 'universe' and is not supported for such use. Signature has changed & will + * change again. + * * @param CRM_Event_Form_Registration_Register $form * Form object. * @param bool $required @@ -546,7 +551,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { * * @throws \CRM_Core_Exception */ - public static function buildAmount(&$form, $required = TRUE, $discountId = NULL, $priceSetID = NULL) { + public static function buildAmount($form, $required, $discountId, $priceSetID) { $feeFields = $form->_values['fee'] ?? NULL; if (is_array($feeFields)) { @@ -587,15 +592,8 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $form->add('hidden', 'priceSetId', $priceSetID); // CRM-14492 Admin price fields should show up on event registration if user has 'administer CiviCRM' permissions - $adminFieldVisible = FALSE; - if (CRM_Core_Permission::check('administer CiviCRM data')) { - $adminFieldVisible = TRUE; - } - - $hideAdminValues = TRUE; - if (CRM_Core_Permission::check('edit event participants')) { - $hideAdminValues = FALSE; - } + $adminFieldVisible = CRM_Core_Permission::check('administer CiviCRM data'); + $hideAdminValues = !CRM_Core_Permission::check('edit event participants'); foreach ($form->_feeBlock as $field) { // public AND admin visibility fields are included for back-office registration and back-office change selections @@ -657,6 +655,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { } else { // Is this reachable? + CRM_Core_Error::deprecatedWarning('code believed to be unreachable'); $eventFeeBlockValues = $elements = $elementJS = []; foreach ($form->_feeBlock as $fee) { if (is_array($fee)) { diff --git a/civicrm/CRM/Event/Form/SelfSvcTransfer.php b/civicrm/CRM/Event/Form/SelfSvcTransfer.php index c9a6ccacbc..50e43054e9 100644 --- a/civicrm/CRM/Event/Form/SelfSvcTransfer.php +++ b/civicrm/CRM/Event/Form/SelfSvcTransfer.php @@ -16,11 +16,16 @@ * @copyright CiviCRM LLC https://civicrm.org/licensing */ +use Civi\API\EntityLookupTrait; +use Civi\Api4\Participant; + /** * This class generates form components to transfer an Event to another participant * */ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { + use EntityLookupTrait; + /** * from participant id * @@ -28,13 +33,7 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { * */ protected $_from_participant_id; - /** - * from contact id - * - * @var string - * - */ - protected $_from_contact_id; + /** * last name of the participant to transfer to * @@ -49,13 +48,7 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { * */ protected $_to_contact_first_name; - /** - * email of participant - * - * - * @var string - */ - protected $_to_contact_email; + /** * _to_contact_id * @@ -68,18 +61,7 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { * @var string */ protected $_event_id; - /** - * event title - * - * @var string - */ - protected $_event_title; - /** - * event title - * - * @var string - */ - protected $_event_start_date; + /** * action * @@ -132,11 +114,8 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { * * @throws \CRM_Core_Exception */ - public function preProcess() { - $session = CRM_Core_Session::singleton(); - $this->_userContext = $session->readUserContext(); + public function preProcess(): void { $this->_from_participant_id = CRM_Utils_Request::retrieve('pid', 'Positive', $this, FALSE, NULL, 'REQUEST'); - $this->_userChecksum = CRM_Utils_Request::retrieve('cs', 'String', $this, FALSE, NULL, 'REQUEST'); $this->isBackoffice = (CRM_Utils_Request::retrieve('is_backoffice', 'String', $this, FALSE, FALSE, 'REQUEST') && CRM_Core_Permission::check('edit event participants')) ?? FALSE; $params = ['id' => $this->_from_participant_id]; $participant = $values = []; @@ -145,23 +124,12 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { $this->set('values', $this->_part_values); $this->_event_id = $this->_part_values['event_id']; $url = CRM_Utils_System::url('civicrm/event/info', "reset=1&id={$this->_event_id}"); - $this->_from_contact_id = $this->_part_values['participant_contact_id']; - $validUser = CRM_Contact_BAO_Contact_Utils::validChecksum($this->_from_contact_id, $this->_userChecksum); - if (!$validUser && !CRM_Core_Permission::check('edit all events')) { + $this->define('Contact', 'ContactFrom', ['id' => (int) $this->_part_values['participant_contact_id']]); + if (!$this->getAuthenticatedCheckSumContactID() && !CRM_Core_Permission::check('edit all events')) { CRM_Core_Error::statusBounce(ts('You do not have sufficient permission to transfer/cancel this participant.'), $url); } $this->assign('action', $this->_action); - if ($this->_from_participant_id) { - $this->assign('participantId', $this->_from_participant_id); - } - - $daoName = 'title'; - $this->_event_title = CRM_Event_BAO_Event::getFieldValue('CRM_Event_DAO_Event', $this->_event_id, $daoName); - $daoName = 'start_date'; - $this->_event_start_date = CRM_Event_BAO_Event::getFieldValue('CRM_Event_DAO_Event', $this->_event_id, $daoName); - [$displayName, $email] = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_from_contact_id); - $this->_contact_name = $displayName; - $this->_contact_email = $email; + $this->assign('participantId', $this->_from_participant_id); $details = CRM_Event_BAO_Participant::participantDetails($this->_from_participant_id); $selfServiceDetails = CRM_Event_BAO_Participant::getSelfServiceEligibility($this->_from_participant_id, $url, $this->isBackoffice); @@ -170,26 +138,23 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { } $details = array_merge($details, $selfServiceDetails); $this->assign('details', $details); - //This participant row will be cancelled. Get line item(s) to cancel - $this->selfsvctransferUrl = CRM_Utils_System::url('civicrm/event/selfsvcupdate', - "reset=1&id={$this->_from_participant_id}&id=0"); - $this->selfsvctransferText = ts('Update'); - $this->selfsvctransferButtonText = ts('Update'); } /** * Build form for input of transferree email, name * * return @void + * + * @throws \CRM_Core_Exception */ - public function buildQuickForm() { + public function buildQuickForm(): void { // use entityRef select field for contact when this form is used by staff/admin user if ($this->isBackoffice) { - $this->addEntityRef("contact_id", ts('Select Contact'), ['create' => TRUE], TRUE); + $this->addEntityRef('contact_id', ts('Select Contact'), ['create' => TRUE], TRUE); } // for front-end user show and use the basic three fields used to create a contact else { - $this->add('text', 'email', ts('To Email'), $this->_contact_email, TRUE); + $this->add('text', 'email', ts('To Email'), $this->lookup('ContactFrom', 'email_primary.email'), TRUE); $this->add('text', 'last_name', ts('To Last Name'), $this->_to_contact_last_name, TRUE); $this->add('text', 'first_name', ts('To First Name'), $this->_to_contact_first_name, TRUE); } @@ -209,7 +174,7 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { * * return @array _defaults */ - public function setDefaultValues() { + public function setDefaultValues(): array { $this->_defaults = []; return $this->_defaults; } @@ -226,7 +191,7 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { } else { //check that either an email or firstname+lastname is included in the form(CRM-9587) - $to_contact_id = self::checkProfileComplete($fields, $errors, $self); + $to_contact_id = self::checkProfileComplete($fields, $errors); } //To check if the user is already registered for the event(CRM-2426) if (!empty($to_contact_id)) { @@ -239,21 +204,24 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { /** * Check whether profile (name, email) is complete * - * return $contact_id + * @params array $fields + * @params array $errors + * + * return int $contact_id */ - public static function checkProfileComplete($fields, &$errors, $self) { + public static function checkProfileComplete($fields, &$errors): ?int { $email = ''; foreach ($fields as $fieldname => $fieldvalue) { - if (substr($fieldname, 0, 5) == 'email' && $fieldvalue) { + if (strpos($fieldname, 'email') === 0 && $fieldvalue) { $email = $fieldvalue; } } if (empty($email) && (empty($fields['first_name']) || empty($fields['last_name']))) { - $message = ts("Mandatory fields (first name and last name, OR email address) are missing from this form."); + $message = ts('Mandatory fields (first name and last name, OR email address) are missing from this form.'); $errors['_qf_default'] = $message; } - $contact = CRM_Contact_BAO_Contact::matchContactOnEmail($email, ""); - $contact_id = empty($contact->contact_id) ? NULL : $contact->contact_id; + $contact = CRM_Contact_BAO_Contact::matchContactOnEmail($email, ''); + $contact_id = empty($contact->contact_id) ? NULL : (int) $contact->contact_id; if (!CRM_Utils_Rule::email($fields['email'])) { $errors['email'] = ts('Enter valid email address.'); } @@ -275,10 +243,18 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { * Check contact details * * return @void + * + * @param array $fields + * @param self $self + * @param int $contact_id + * @param array $errors + * + * @throws \CRM_Core_Exception + * @throws \Civi\API\Exception\UnauthorizedException */ - public static function checkRegistration($fields, $self, $contact_id, &$errors) { + public static function checkRegistration($fields, $self, $contact_id, &$errors): void { // verify whether this contact already registered for this event - $participant = \Civi\Api4\Participant::get(FALSE) + $participant = Participant::get(FALSE) ->addSelect('contact_id.display_name') ->addWhere('event_id', '=', $self->_event_id) ->addWhere('contact_id', '=', $contact_id) @@ -300,8 +276,8 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { * * @throws \CRM_Core_Exception */ - public function postProcess() { - //For transfer, process form to allow selection of transferree + public function postProcess(): void { + //For transfer, process form to allow selection of transferred. $params = $this->controller->exportValues($this->_name); if (!empty($params['contact_id'])) { $contact_id = $params['contact_id']; @@ -315,7 +291,7 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { 'options' => ['limit' => 1], ]); $contact_id_result = $contact_id_result['values'][0]; - $contact_id = $contact_id_result['contact_id']; + $contact_id = (int) $contact_id_result['contact_id']; $contact_is_deleted = $contact_id_result['contact_is_deleted']; if ($contact_is_deleted || !is_numeric($contact_id)) { CRM_Core_Error::statusBounce(ts('Contact does not exist.')); @@ -328,7 +304,7 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { $display_name = current($contact_details); $this->assign('to_participant', $display_name); $this->sendCancellation(); - list($displayName, $email) = CRM_Contact_BAO_Contact_Location::getEmailDetails($contact_id); + [$displayName, $email] = CRM_Contact_BAO_Contact_Location::getEmailDetails($contact_id); $statusMsg = ts('Event registration information for %1 has been updated.', [1 => $displayName]); $statusMsg .= ' ' . ts('A confirmation email has been sent to %1.', [1 => $email]); CRM_Core_Session::setStatus($statusMsg, ts('Registration Transferred'), 'success'); @@ -417,6 +393,8 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { * Send confirmation of cancellation to source participant * * return @ void + * + * @throws \CRM_Core_Exception */ public function sendCancellation() { $participantRoles = CRM_Event_PseudoConstant::participantRole(); @@ -451,8 +429,8 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { NULL, 'Transferred' ); - $statusMsg = ts('Event registration information for %1 has been updated.', [1 => $this->_contact_name]); - $statusMsg .= ' ' . ts('A cancellation email has been sent to %1.', [1 => $this->_contact_email]); + $statusMsg = ts('Event registration information for %1 has been updated.', [1 => $this->lookup('ContactFrom', 'display_name')]); + $statusMsg .= ' ' . ts('A cancellation email has been sent to %1.', [1 => $this->lookup('ContactFrom', 'email_primary.email')]); CRM_Core_Session::setStatus($statusMsg, ts('Thanks'), 'success'); } @@ -464,8 +442,8 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { * * @throws \CRM_Core_Exception */ - public function transferParticipantRegistration($toContactID, $fromParticipantID) { - $toParticipantValues = \Civi\Api4\Participant::get(FALSE) + public function transferParticipantRegistration(int $toContactID, $fromParticipantID): void { + $toParticipantValues = Participant::get(FALSE) ->addWhere('id', '=', $fromParticipantID) ->execute() ->first(); @@ -475,7 +453,7 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { ])['values']; unset($toParticipantValues['id']); $toParticipantValues['contact_id'] = $toContactID; - $toParticipantValues['register_date'] = date("Y-m-d"); + $toParticipantValues['register_date'] = date('Y-m-d'); //first create the new participant row -don't set registered_by yet or email won't be sent $participant = CRM_Event_BAO_Participant::create($toParticipantValues); foreach ($participantPayments as $payment) { @@ -489,13 +467,13 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { $item['entity_id'] = $participant->id; $item['id'] = NULL; - $item['entity_table'] = "civicrm_participant"; - $tolineItem = CRM_Price_BAO_LineItem::create($item); + $item['entity_table'] = 'civicrm_participant'; + $toLineItem = CRM_Price_BAO_LineItem::create($item); //Update Financial Item for previous line item row. $prevFinancialItem = CRM_Financial_BAO_FinancialItem::getPreviousFinancialItem($id); $prevFinancialItem['contact_id'] = $toContactID; - $prevFinancialItem['entity_id'] = $tolineItem->id; + $prevFinancialItem['entity_id'] = $toLineItem->id; CRM_Financial_BAO_FinancialItem::create($prevFinancialItem); } //send a confirmation email to the new participant @@ -507,7 +485,7 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form { //now cancel the from participant record, leaving the original line-item(s) $value_from = []; $value_from['id'] = $fromParticipantID; - $tansferId = array_search('Transferred', CRM_Event_PseudoConstant::participantStatus(NULL, "class = 'Negative'")); + $tansferId = array_search('Transferred', CRM_Event_PseudoConstant::participantStatus(NULL, "class = 'Negative'"), TRUE); $value_from['status_id'] = $tansferId; $value_from['transferred_to_contact_id'] = $toContactID; CRM_Event_BAO_Participant::create($value_from); diff --git a/civicrm/CRM/Event/Form/Task/Delete.php b/civicrm/CRM/Event/Form/Task/Delete.php index daac5af98b..4e261750ac 100644 --- a/civicrm/CRM/Event/Form/Task/Delete.php +++ b/civicrm/CRM/Event/Form/Task/Delete.php @@ -35,18 +35,13 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task { * * @return void */ - public function preProcess() { + public function preProcess(): void { //check for delete if (!CRM_Core_Permission::checkActionPermission('CiviEvent', CRM_Core_Action::DELETE)) { CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.')); } parent::preProcess(); - foreach ($this->_participantIds as $participantId) { - if (CRM_Event_BAO_Participant::isPrimaryParticipant($participantId)) { - $this->assign('additionalParticipants', TRUE); - } - } } /** @@ -55,14 +50,17 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task { * * @return void */ - public function buildQuickForm() { - $deleteParticipants = [ - 1 => ts('Delete this participant record along with associated participant record(s).'), - 2 => ts('Delete only this participant record.'), - ]; - - $this->addRadio('delete_participant', NULL, $deleteParticipants, NULL, '<br />'); - $this->setDefaults(['delete_participant' => 1]); + public function buildQuickForm(): void { + foreach ($this->_participantIds as $participantId) { + if (CRM_Event_BAO_Participant::isPrimaryParticipant($participantId)) { + $this->addRadio('delete_participant', NULL, [ + 1 => ts('Delete this participant record along with associated participant record(s).'), + 2 => ts('Delete only this participant record.'), + ], NULL, '<br />'); + $this->setDefaults(['delete_participant' => 1]); + break; + } + } $this->addDefaultButtons(ts('Delete Participations'), 'done'); } @@ -72,13 +70,14 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task { * * * @return void + * @throws \CRM_Core_Exception + * @throws \Civi\Core\Exception\DBQueryException */ - public function postProcess() { + public function postProcess(): void { $params = $this->controller->exportValues($this->_name); $participantLinks = NULL; if (($params['delete_participant'] ?? NULL) == 2) { - $links = []; foreach ($this->_participantIds as $participantId) { $additionalId = (CRM_Event_BAO_Participant::getAdditionalParticipantIds($participantId)); $participantLinks = (CRM_Event_BAO_Participant::getAdditionalParticipantUrl($additionalId)); @@ -87,7 +86,7 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task { $deletedParticipants = $additionalCount = 0; foreach ($this->_participantIds as $participantId) { if (($params['delete_participant'] ?? NULL) == 1) { - $primaryParticipantId = CRM_Core_DAO::getFieldValue("CRM_Event_DAO_Participant", $participantId, 'registered_by_id', 'id'); + $primaryParticipantId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Participant', $participantId, 'registered_by_id', 'id'); if (CRM_Event_BAO_Participant::isPrimaryParticipant($participantId)) { $additionalIds = (CRM_Event_BAO_Participant::getAdditionalParticipantIds($participantId)); $additionalCount += count($additionalIds); diff --git a/civicrm/CRM/Event/Page/EventInfo.php b/civicrm/CRM/Event/Page/EventInfo.php index bb0b940b7c..871e312586 100644 --- a/civicrm/CRM/Event/Page/EventInfo.php +++ b/civicrm/CRM/Event/Page/EventInfo.php @@ -30,12 +30,10 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { * @return void */ public function run() { - //get the event id. - $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE); $config = CRM_Core_Config::singleton(); // ensure that the user has permission to see this page if (!CRM_Core_Permission::event(CRM_Core_Permission::VIEW, - $this->_id, 'view event info' + $this->getEventID(), 'view event info' ) ) { CRM_Utils_System::setUFMessage(ts('You do not have permission to view this event')); @@ -52,11 +50,6 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { // Sometimes we want to suppress the Event Full msg $noFullMsg = CRM_Utils_Request::retrieve('noFullMsg', 'String', $this, FALSE, 'false'); - // set breadcrumb to append to 2nd layer pages - $breadCrumbPath = CRM_Utils_System::url('civicrm/event/info', - "id={$this->_id}&reset=1" - ); - //retrieve event information $params = ['id' => $this->_id]; $values = ['event' => NULL]; @@ -111,7 +104,7 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { $adminFieldVisible = TRUE; } - foreach ($priceSetFields as $fid => $fieldValues) { + foreach ($priceSetFields as $fieldValues) { if (!is_array($fieldValues['options']) || empty($fieldValues['options']) || (($fieldValues['visibility_id'] ?? NULL) != array_search('public', $visibility) && $adminFieldVisible == FALSE) @@ -121,6 +114,7 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { if (count($fieldValues['options']) > 1) { $values['feeBlock']['value'][$fieldCnt] = ''; + $values['feeBlock']['tax_amount'][$fieldCnt] = ''; $values['feeBlock']['label'][$fieldCnt] = $fieldValues['label']; $values['feeBlock']['lClass'][$fieldCnt] = 'price_set_option_group-label'; $values['feeBlock']['isDisplayAmount'][$fieldCnt] = $fieldValues['is_display_amounts'] ?? NULL; @@ -181,8 +175,8 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { $locations = CRM_Event_BAO_Event::getMapInfo($this->_id); $this->assign('locations', $locations); if (!empty($locations) && !empty($values['event']['is_map'])) { - $this->assign('mapProvider', $config->mapProvider); - $this->assign('mapKey', $config->mapAPIKey); + $this->assign('mapProvider', \Civi::settings()->get('mapProvider')); + $this->assign('mapKey', \Civi::settings()->get('mapAPIKey')); $sumLat = $sumLng = 0; $maxLat = $maxLng = -400; $minLat = $minLng = 400; @@ -325,9 +319,7 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { CRM_Utils_System::setTitle($values['event']['title']); $this->assign('event', $values['event']); - if (isset($values['feeBlock'])) { - $this->assign('feeBlock', $values['feeBlock']); - } + $this->assign('feeBlock', $values['feeBlock'] ?? NULL); $this->assign('location', $values['location']); if (CRM_Core_Permission::check(['access CiviEvent', 'edit all events'])) { @@ -337,11 +329,28 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { return parent::run(); } + /** + * Get the selected Event ID. + * + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. + * + * @return int|null + */ + public function getEventID(): int { + if (!isset($this->_id)) { + $id = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE); + $this->_id = $id; + } + return (int) $this->_id; + } + /** * @return string */ public function getTemplateFileName() { - if ($this->_id) { + if ($this->getEventID()) { $templateFile = "CRM/Event/Page/{$this->_id}/EventInfo.tpl"; $template = CRM_Core_Page::getTemplate(); diff --git a/civicrm/CRM/Event/Page/ManageEvent.php b/civicrm/CRM/Event/Page/ManageEvent.php index bee5e2ae2f..aaf51395cd 100644 --- a/civicrm/CRM/Event/Page/ManageEvent.php +++ b/civicrm/CRM/Event/Page/ManageEvent.php @@ -134,11 +134,7 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page { * @throws \CRM_Core_Exception */ public static function &tabs() { - // @todo Move to eventcart extension - // check if we're in shopping cart mode for events - $enableCart = (bool) Civi::settings()->get('enable_cart'); - - $cacheKey = $enableCart ? 1 : 0; + $cacheKey = 0; if (!(self::$_tabLinks)) { self::$_tabLinks = []; } @@ -182,12 +178,6 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page { 'field' => 'reminder', ]; } - self::$_tabLinks[$cacheKey]['conference'] - = [ - 'title' => ts('Conference Slots'), - 'url' => 'civicrm/event/manage/conference', - 'field' => 'slot_label_id', - ]; self::$_tabLinks[$cacheKey]['friend'] = [ 'title' => ts('Tell a Friend'), @@ -208,10 +198,6 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page { ]; } - if (!$enableCart) { - unset(self::$_tabLinks[$cacheKey]['conference']); - } - CRM_Utils_Hook::tabset('civicrm/event/manage', self::$_tabLinks[$cacheKey], []); return self::$_tabLinks[$cacheKey]; } diff --git a/civicrm/CRM/Event/Page/Tab.php b/civicrm/CRM/Event/Page/Tab.php index 7b918028ba..295953a30c 100644 --- a/civicrm/CRM/Event/Page/Tab.php +++ b/civicrm/CRM/Event/Page/Tab.php @@ -101,16 +101,8 @@ class CRM_Event_Page_Tab extends CRM_Core_Page { } public function delete() { - $controller = new CRM_Core_Controller_Simple( - 'CRM_Event_Form_Participant', - ts('Delete Participant'), - $this->_action - ); - - $controller->setEmbedded(TRUE); - $controller->set('id', $this->_id); - $controller->set('cid', $this->_contactId); - $controller->run(); + CRM_Core_Error::deprecatedFunctionWarning('use civicrm/participant/delete / CRM_Event_Form_Participant_Delete'); + CRM_Utils_System::redirect('civicrm/participant/delete', ['id' => CRM_Utils_Request::retrieveValue('id', NULL, TRUE), 'reset' => 1]); } public function preProcess() { diff --git a/civicrm/CRM/Event/Selector/Search.php b/civicrm/CRM/Event/Selector/Search.php index 9000dbbf90..0b7c927360 100644 --- a/civicrm/CRM/Event/Selector/Search.php +++ b/civicrm/CRM/Event/Selector/Search.php @@ -200,7 +200,7 @@ class CRM_Event_Selector_Search extends CRM_Core_Selector_Base implements CRM_Co if ($compContext) { $extraParams .= "&compContext={$compContext}"; } - elseif ($context == 'search') { + elseif ($context === 'search') { $extraParams .= '&compContext=participant'; } @@ -226,8 +226,8 @@ class CRM_Event_Selector_Search extends CRM_Core_Selector_Base implements CRM_Co ], CRM_Core_Action::DELETE => [ 'name' => ts('Delete'), - 'url' => 'civicrm/contact/view/participant', - 'qs' => 'reset=1&action=delete&id=%%id%%&cid=%%cid%%&context=%%cxt%%' . $extraParams, + 'url' => 'civicrm/participant/delete', + 'qs' => 'reset=1&id=%%id%%' . $extraParams, 'title' => ts('Delete Participation'), 'weight' => 100, ], @@ -337,16 +337,6 @@ class CRM_Event_Selector_Search extends CRM_Core_Selector_Base implements CRM_Co $row['campaign'] = $allCampaigns[$result->participant_campaign_id] ?? NULL; $row['campaign_id'] = $result->participant_campaign_id; - // gross hack to show extra information for pending status - $statusClass = NULL; - if ((isset($row['participant_status_id'])) && - ($statusId = array_search($row['participant_status_id'], $statusTypes)) - ) { - $statusClass = $statusClasses[$statusId]; - } - - $row['showConfirmUrl'] = $statusClass == 'Pending'; - if (!empty($row['participant_is_test'])) { $row['participant_status'] = CRM_Core_TestEntity::appendTestText($row['participant_status']); } diff --git a/civicrm/CRM/Event/Tokens.php b/civicrm/CRM/Event/Tokens.php index 286d56cbbf..2a51923ba0 100644 --- a/civicrm/CRM/Event/Tokens.php +++ b/civicrm/CRM/Event/Tokens.php @@ -177,10 +177,9 @@ class CRM_Event_Tokens extends CRM_Core_EntityTokens { if (!Civi::cache('metadata')->has($cacheKey)) { $event = Event::get($this->checkPermissions)->addWhere('id', '=', $eventID) ->setSelect(array_merge([ - 'loc_block_id.address_id.street_address', - 'loc_block_id.address_id.city', + 'loc_block_id.address_id.*', 'loc_block_id.address_id.state_province_id:label', - 'loc_block_id.address_id.postal_code', + 'loc_block_id.address_id.country_id:label', 'loc_block_id.email_id.email', 'loc_block_id.email_2_id.email', 'loc_block_id.phone_id.phone', @@ -191,39 +190,37 @@ class CRM_Event_Tokens extends CRM_Core_EntityTokens { 'loc_block_id.phone_2_id.phone_type_id', 'loc_block_id.phone_2_id.phone_ext', 'loc_block_id.phone_2_id.phone_type_id:label', - 'confirm_email_text', - 'is_show_location', 'is_show_location:label', - 'is_public', 'is_public:label', 'is_share', 'is_share:label', 'requires_approval', 'requires_approval:label', 'is_monetary:label', - 'event_type_id:label', 'event_type_id:name', 'pay_later_text', 'pay_later_receipt', + 'fee_label', 'custom.*', ], $this->getExposedFields())) ->execute()->first(); - $tokens['location']['text/plain'] = \CRM_Utils_Address::format([ - 'street_address' => $event['loc_block_id.address_id.street_address'], - 'city' => $event['loc_block_id.address_id.city'], + $addressValues = [ + 'address_name' => $event['loc_block_id.address_id.name'], 'state_province' => $event['loc_block_id.address_id.state_province_id:label'], - 'postal_code' => $event['loc_block_id.address_id.postal_code'], - ]); - $tokens['location']['text/html'] = nl2br(trim($tokens['location']['text/plain'])); + 'country' => $event['loc_block_id.address_id.country_id:label'], + ]; + foreach ($event as $key => $value) { + if (strpos($key, 'loc_block_id.address_id.') === 0) { + $addressValues[str_replace('loc_block_id.address_id.', '', $key)] = $value; + } + } + $tokens['location']['text/plain'] = \CRM_Utils_Address::format($addressValues); $tokens['info_url']['text/html'] = \CRM_Utils_System::url('civicrm/event/info', 'reset=1&id=' . $eventID, TRUE, NULL, FALSE, TRUE); $tokens['registration_url']['text/html'] = \CRM_Utils_System::url('civicrm/event/register', 'reset=1&id=' . $eventID, TRUE, NULL, FALSE, TRUE); $tokens['start_date']['text/html'] = !empty($event['start_date']) ? new DateTime($event['start_date']) : ''; $tokens['end_date']['text/html'] = !empty($event['end_date']) ? new DateTime($event['end_date']) : ''; $tokens['contact_email']['text/html'] = $event['loc_block_id.email_id.email']; $tokens['contact_phone']['text/html'] = $event['loc_block_id.phone_id.phone']; - // We use text/plain for fields which should be converted to html when used in html content. - $tokens['confirm_email_text']['text/plain'] = $event['confirm_email_text']; - $tokens['pay_later_text']['text/plain'] = $event['pay_later_text']; foreach ($this->getTokenMetadata() as $fieldName => $fieldSpec) { if (!isset($tokens[$fieldName])) { diff --git a/civicrm/CRM/Event/WorkflowMessage/EventExamples.php b/civicrm/CRM/Event/WorkflowMessage/EventExamples.php index dbbdb6f589..e78465af57 100644 --- a/civicrm/CRM/Event/WorkflowMessage/EventExamples.php +++ b/civicrm/CRM/Event/WorkflowMessage/EventExamples.php @@ -1,5 +1,6 @@ <?php +use Civi\API\EntityLookupTrait; use Civi\Api4\Event; use Civi\Api4\PriceSetEntity; use Civi\Api4\WorkflowMessage; @@ -15,6 +16,8 @@ use Civi\Api4\PriceFieldValue; */ class CRM_Event_WorkflowMessage_EventExamples extends WorkflowMessageExample { + use EntityLookupTrait; + /** * IDs of events permitting multiple participants. * @@ -44,6 +47,19 @@ class CRM_Event_WorkflowMessage_EventExamples extends WorkflowMessageExample { 'is_multiple_registrations' => $priceSet['is_multiple_registrations'], 'is_primary' => TRUE, 'price_set_id' => $priceSet['id'], + 'is_partially_paid' => FALSE, + ]; + yield [ + 'name' => 'workflow/' . $workflow . '/' . 'price_set_' . $priceSet['name'] . '_partially_paid', + 'title' => ts('Partially Paid Registration') . ($priceSet['is_multiple_registrations'] ? ' ' . ts('primary participant') : '') . ' : ' . $priceSet['title'], + 'tags' => ['preview'], + 'workflow' => $workflow, + 'is_show_line_items' => !$priceSet['is_quick_config'], + 'event_id' => $priceSet['event_id'], + 'is_multiple_registrations' => $priceSet['is_multiple_registrations'], + 'is_primary' => TRUE, + 'price_set_id' => $priceSet['id'], + 'is_partially_paid' => TRUE, ]; if ($priceSet['is_multiple_registrations']) { yield [ @@ -56,6 +72,7 @@ class CRM_Event_WorkflowMessage_EventExamples extends WorkflowMessageExample { 'is_multiple_registrations' => $priceSet['is_multiple_registrations'], 'is_primary' => FALSE, 'price_set_id' => $priceSet['id'], + 'is_partially_paid' => FALSE, ]; } } @@ -87,6 +104,7 @@ class CRM_Event_WorkflowMessage_EventExamples extends WorkflowMessageExample { * @throws \Civi\API\Exception\UnauthorizedException */ private function addExampleData(GenericWorkflowMessage $messageTemplate, array $example): void { + $this->define('Event', 'event_' . $example['event_id'], ['id' => $example['event_id']]); $messageTemplate->setContact(\Civi\Test::example('entity/Contact/Barb')); $messageTemplate->setEventID($example['event_id']); $isPrimary = $example['is_primary']; @@ -112,10 +130,14 @@ class CRM_Event_WorkflowMessage_EventExamples extends WorkflowMessageExample { $contribution['total_amount'] = $mockOrder->getTotalAmount(); $contribution['tax_amount'] = $mockOrder->getTotalTaxAmount() ? round($mockOrder->getTotalTaxAmount(), 2) : 0; $contribution['tax_exclusive_amount'] = $contribution['total_amount'] - $contribution['tax_amount']; + $contribution['is_pay_later'] = $example['is_partially_paid'] && $this->lookup('event_' . $example['event_id'], 'is_pay_later'); + $contribution['paid_amount'] = $example['is_partially_paid'] ? $contribution['total_amount'] / 2 : 0; + $contribution['balance_amount'] = $contribution['total_amount'] - $contribution['paid_amount']; $messageTemplate->setContribution($contribution); $messageTemplate->setOrder($mockOrder); $messageTemplate->setParticipantContacts($participantContacts); - $messageTemplate->setParticipant(['id' => $isPrimary ? $primaryParticipantID : $otherParticipantID, 'registered_by_id' => $isPrimary ? NULL : $primaryParticipantID, 'register_date' => date('Y-m-d')]); + $roleID = Event::get(FALSE)->addWhere('id', '=', $example['event_id'])->addSelect('default_role_id')->execute()->first()['default_role_id']; + $messageTemplate->setParticipant(['id' => $isPrimary ? $primaryParticipantID : $otherParticipantID, 'registered_by_id' => $isPrimary ? NULL : $primaryParticipantID, 'register_date' => date('Y-m-d'), 'role_id' => $roleID]); } /** diff --git a/civicrm/CRM/Event/WorkflowMessage/ParticipantTrait.php b/civicrm/CRM/Event/WorkflowMessage/ParticipantTrait.php index 92d5409c3a..a25d5ac045 100644 --- a/civicrm/CRM/Event/WorkflowMessage/ParticipantTrait.php +++ b/civicrm/CRM/Event/WorkflowMessage/ParticipantTrait.php @@ -37,6 +37,19 @@ trait CRM_Event_WorkflowMessage_ParticipantTrait { */ public $isPrimary; + /** + * Should a participant count column be shown. + * + * This would be true if there is a line item on the receipt + * with more than one participant in it. Otherwise it's confusing to + * show. + * + * @var bool + * + * @scope tplParams as isShowParticipantCount + */ + public $isShowParticipantCount; + /** * @var int * @@ -152,7 +165,26 @@ trait CRM_Event_WorkflowMessage_ParticipantTrait { } /** - * Set contribution object. + * It is a good idea to show the participant count column. + * + * This would be true if there is a line item on the receipt + * with more than one participant in it. Otherwise it's confusing to + * show. + * + * @return bool + * @throws \CRM_Core_Exception + */ + public function getIsShowParticipantCount(): bool { + foreach ($this->getLineItems() as $lineItem) { + if ((int) $lineItem['participant_count'] > 1) { + return TRUE; + } + } + return FALSE; + } + + /** + * Set participant object. * * @param array $participant * diff --git a/civicrm/CRM/Event/xml/Menu/Event.xml b/civicrm/CRM/Event/xml/Menu/Event.xml index 105ef9c087..032212ffd8 100644 --- a/civicrm/CRM/Event/xml/Menu/Event.xml +++ b/civicrm/CRM/Event/xml/Menu/Event.xml @@ -127,15 +127,6 @@ <adminGroup>CiviEvent</adminGroup> <weight>399</weight> </item> - <item> - <path>civicrm/admin/options/conference_slot</path> - <title>Conference Slot Labels</title> - <page_callback>CRM_Admin_Page_Options</page_callback> - <desc>Define conference slots and labels.</desc> - <access_arguments>administer CiviCRM,access CiviEvent</access_arguments> - <adminGroup>CiviEvent</adminGroup> - <weight>415</weight> - </item> <item> <path>civicrm/admin/setting/preferences/event</path> <title>CiviEvent Component Settings</title> @@ -224,14 +215,6 @@ <is_ssl>true</is_ssl> <weight>960</weight> </item> - <item> - <path>civicrm/event/manage/conference</path> - <title>Conference Slots</title> - <page_callback>CRM_Event_Form_ManageEvent_Conference</page_callback> - <access_arguments>access CiviEvent</access_arguments> - <is_ssl>true</is_ssl> - <weight>950</weight> - </item> <item> <path>civicrm/event/add</path> <path_arguments>action=add</path_arguments> @@ -287,6 +270,12 @@ <page_callback>CRM_Event_Page_Tab</page_callback> <weight>4</weight> </item> + <item> + <path>civicrm/participant/delete</path> + <page_callback>CRM_Event_Form_Participant_Delete</page_callback> + <access_arguments>delete in CiviEvent</access_arguments> + <weight>4</weight> + </item> <item> <path>civicrm/ajax/eventFee</path> <page_callback>CRM_Event_Page_AJAX::eventFee</page_callback> diff --git a/civicrm/CRM/Extension/Info.php b/civicrm/CRM/Extension/Info.php index 2546da5c5c..6edd859057 100644 --- a/civicrm/CRM/Extension/Info.php +++ b/civicrm/CRM/Extension/Info.php @@ -261,8 +261,11 @@ class CRM_Extension_Info { // and deeper into arrays. An exception for URLS section, since // we want them in special format. foreach ($info as $attr => $val) { - if (count($val->children()) == 0) { - $this->$attr = trim((string) $val); + if (!property_exists($this, $attr)) { + continue; + } + if (!count($val->children())) { + $this->$attr = is_array($this->$attr) ? [] : trim((string) $val); } elseif ($attr === 'urls') { $this->urls = []; @@ -335,7 +338,7 @@ class CRM_Extension_Info { public function filterRequirements($requirements) { $filtered = []; $compatInfo = CRM_Extension_System::getCompatibilityInfo(); - foreach ($requirements->ext as $ext) { + foreach ($requirements->ext ?? [] as $ext) { $ext = (string) $ext; if (empty($compatInfo[$ext]['obsolete'])) { $filtered[] = $ext; diff --git a/civicrm/CRM/Extension/Mapper.php b/civicrm/CRM/Extension/Mapper.php index 53bca81722..62fdd94ede 100644 --- a/civicrm/CRM/Extension/Mapper.php +++ b/civicrm/CRM/Extension/Mapper.php @@ -383,7 +383,7 @@ class CRM_Extension_Mapper { public function getKeysByPath($pattern) { $keys = []; - if (CRM_Utils_String::endsWith($pattern, '*')) { + if (str_ends_with($pattern, '*')) { $prefix = rtrim($pattern, '*'); foreach ($this->container->getKeys() as $key) { $path = CRM_Utils_File::addTrailingSlash($this->container->getPath($key)); @@ -489,7 +489,7 @@ class CRM_Extension_Mapper { $dao->type = 'module'; $dao->find(); while ($dao->fetch()) { - $result[] = new CRM_Core_Module($dao->full_name, $dao->is_active); + $result[] = new CRM_Core_Module($dao->full_name, $dao->is_active, $dao->label); } return $result; } diff --git a/civicrm/CRM/Financial/BAO/EntityFinancialAccount.php b/civicrm/CRM/Financial/BAO/EntityFinancialAccount.php index 80363d1844..41f4f5b069 100644 --- a/civicrm/CRM/Financial/BAO/EntityFinancialAccount.php +++ b/civicrm/CRM/Financial/BAO/EntityFinancialAccount.php @@ -278,8 +278,8 @@ class CRM_Financial_BAO_EntityFinancialAccount extends CRM_Financial_DAO_EntityF */ public static function entityTables(): array { return [ - 'civicrm_financial_type' => ts('Financial Type'), 'civicrm_option_value' => ts('Payment Instrument'), + 'civicrm_financial_type' => ts('Financial Type'), 'civicrm_payment_processor' => ts('Payment Processor'), ]; } diff --git a/civicrm/CRM/Financial/BAO/FinancialItem.php b/civicrm/CRM/Financial/BAO/FinancialItem.php index 4350de8e73..ef7fd5b35f 100644 --- a/civicrm/CRM/Financial/BAO/FinancialItem.php +++ b/civicrm/CRM/Financial/BAO/FinancialItem.php @@ -281,6 +281,7 @@ WHERE cc.id IN (' . implode(',', $contactIds) . ') AND con.is_test = 0'; return [ 'civicrm_line_item' => ts('Line Item'), 'civicrm_financial_trxn' => ts('Financial Trxn'), + 'civicrm_campaign' => ts('Campaign'), ]; } diff --git a/civicrm/CRM/Financial/BAO/Order.php b/civicrm/CRM/Financial/BAO/Order.php index b2d0931b7f..ecc528c18f 100644 --- a/civicrm/CRM/Financial/BAO/Order.php +++ b/civicrm/CRM/Financial/BAO/Order.php @@ -913,6 +913,7 @@ class CRM_Financial_BAO_Order { $lineItem['tax_amount'] = ($taxRate / 100) * $lineItem['line_total']; } $lineItem['title'] = $this->getLineItemTitle($lineItem); + $lineItem['line_total_inclusive'] = $lineItem['line_total'] + $lineItem['tax_amount']; } return $lineItems; } @@ -1040,6 +1041,7 @@ class CRM_Financial_BAO_Order { } $lineItem['tax_rate'] = $this->getTaxRate($lineItem['financial_type_id']); $lineItem['tax_amount'] = ($lineItem['tax_rate'] / 100) * $lineItem['line_total']; + $lineItem['line_total_inclusive'] = $lineItem['tax_amount'] + $lineItem['line_total']; } if (!empty($lineItem['membership_type_id'])) { $lineItem['entity_table'] = 'civicrm_membership'; diff --git a/civicrm/CRM/Financial/BAO/Payment.php b/civicrm/CRM/Financial/BAO/Payment.php index b9643f8243..0f8cffbc51 100644 --- a/civicrm/CRM/Financial/BAO/Payment.php +++ b/civicrm/CRM/Financial/BAO/Payment.php @@ -463,7 +463,6 @@ class CRM_Financial_BAO_Payment { // and assign. Note we should update the tpl to use {if $billingName} // and ditch contributeMode - although it might need to be deprecated rather than removed. $todoParams = [ - 'contributeMode', 'billingName', 'address', 'credit_card_type', diff --git a/civicrm/CRM/Financial/DAO/EntityFinancialAccount.php b/civicrm/CRM/Financial/DAO/EntityFinancialAccount.php index 9e7d4dfe6d..c64ef32a05 100644 --- a/civicrm/CRM/Financial/DAO/EntityFinancialAccount.php +++ b/civicrm/CRM/Financial/DAO/EntityFinancialAccount.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Financial/EntityFinancialAccount.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:56a06273eec47f43f5671cb6152b7747) + * (GenCodeChecksum:73bd55d66da916d2b27113d0cd8ca6f7) */ /** @@ -31,6 +31,17 @@ class CRM_Financial_DAO_EntityFinancialAccount extends CRM_Core_DAO { */ public static $_log = TRUE; + /** + * Paths for accessing this entity in the UI. + * + * @var string[] + */ + protected static $_paths = [ + 'add' => 'civicrm/admin/financial/financialType/accounts?action=add&reset=1&aid=[entity_id]', + 'update' => 'civicrm/admin/financial/financialType/accounts?action=update&id=[id]&aid=[entity_id]&reset=1', + 'delete' => 'civicrm/admin/financial/financialType/accounts?action=delete&id=[id]&aid=[entity_id]&reset=1', + ]; + /** * ID * diff --git a/civicrm/CRM/Financial/Form/FinancialBatch.php b/civicrm/CRM/Financial/Form/FinancialBatch.php index 7ab2c65082..fbcf4bb3c7 100644 --- a/civicrm/CRM/Financial/Form/FinancialBatch.php +++ b/civicrm/CRM/Financial/Form/FinancialBatch.php @@ -77,11 +77,6 @@ class CRM_Financial_Form_FinancialBatch extends CRM_Contribute_Form { 'name' => ts('Save'), 'isDefault' => TRUE, ], - [ - 'type' => 'next', - 'name' => ts('Save and New'), - 'subName' => 'new', - ], [ 'type' => 'cancel', 'name' => ts('Cancel'), diff --git a/civicrm/CRM/Import/ImportProcessor.php b/civicrm/CRM/Import/ImportProcessor.php index fbbe9d85ee..4938dff9b7 100644 --- a/civicrm/CRM/Import/ImportProcessor.php +++ b/civicrm/CRM/Import/ImportProcessor.php @@ -583,11 +583,6 @@ class CRM_Import_ImportProcessor { public function getSavedQuickformDefaultsForColumn($column) { $fieldMapping = []; - // $sel1 is either unmapped, a relationship or a target field. - if ($this->getFieldName($column) === 'do_not_import') { - return $fieldMapping; - } - if ($this->getValidRelationshipKey($column)) { $fieldMapping[] = $this->getValidRelationshipKey($column); } diff --git a/civicrm/CRM/Mailing/BAO/Mailing.php b/civicrm/CRM/Mailing/BAO/Mailing.php index 816beb02f9..5d984633c5 100644 --- a/civicrm/CRM/Mailing/BAO/Mailing.php +++ b/civicrm/CRM/Mailing/BAO/Mailing.php @@ -816,10 +816,11 @@ class CRM_Mailing_BAO_Mailing extends CRM_Mailing_DAO_Mailing implements \Civi\C * * @param array $testParams * Contains form values. + * @param int $mailingID * - * @return void + * @throws \Civi\Core\Exception\DBQueryException */ - public function getTestRecipients($testParams) { + public static function getTestRecipients(array $testParams, int $mailingID): void { if (!empty($testParams['test_group']) && array_key_exists($testParams['test_group'], CRM_Core_PseudoConstant::group())) { $contacts = civicrm_api('contact', 'get', [ 'version' => 3, @@ -852,6 +853,8 @@ ORDER BY civicrm_email.is_bulkmail DESC 'job_id' => $testParams['job_id'], 'email_id' => $dao->email_id, 'contact_id' => $groupContact, + 'mailing_id' => $mailingID, + 'is_test' => TRUE, ]; CRM_Mailing_Event_BAO_MailingEventQueue::create($params); } @@ -908,7 +911,7 @@ ORDER BY civicrm_email.is_bulkmail DESC $fields = []; $fields[] = 'Message-ID'; // CRM-17754 check if Resent-Message-id is set also if not add it in when re-laying reply email - if ($prefix == 'r') { + if ($prefix === 'r') { $fields[] = 'Resent-Message-ID'; } foreach ($fields as $field) { @@ -916,7 +919,6 @@ ORDER BY civicrm_email.is_bulkmail DESC $headers[$field] = '<' . implode($config->verpSeparator, [ $localpart . $prefix, - $job_id, $event_queue_id, $hash, ] @@ -2752,7 +2754,7 @@ WHERE civicrm_mailing_job.id = %1 } // Split up the parent jobs into multiple child jobs - $mailerJobSize = Civi::settings()->get('mailerJobSize'); + $mailerJobSize = (int) Civi::settings()->get('mailerJobSize'); CRM_Mailing_BAO_MailingJob::runJobs_pre($mailerJobSize, $mode); CRM_Mailing_BAO_MailingJob::runJobs(NULL, $mode); CRM_Mailing_BAO_MailingJob::runJobs_post($mode); diff --git a/civicrm/CRM/Mailing/BAO/MailingJob.php b/civicrm/CRM/Mailing/BAO/MailingJob.php index 86252a9cf9..ed18b5ca37 100644 --- a/civicrm/CRM/Mailing/BAO/MailingJob.php +++ b/civicrm/CRM/Mailing/BAO/MailingJob.php @@ -283,25 +283,21 @@ class CRM_Mailing_BAO_MailingJob extends CRM_Mailing_DAO_MailingJob { /** * before we run jobs, we need to split the jobs + * * @param int $offset * @param string|null $mode * Either 'sms' or null + * + * @throws \CRM_Core_Exception */ - public static function runJobs_pre($offset = 200, $mode = NULL) { - $job = new CRM_Mailing_BAO_MailingJob(); - - $jobTable = CRM_Mailing_DAO_MailingJob::getTableName(); - $mailingTable = CRM_Mailing_DAO_Mailing::getTableName(); - + public static function runJobs_pre(int $offset = 200, $mode = NULL): void { $currentTime = date('YmdHis'); - $mailingACL = CRM_Mailing_BAO_Mailing::mailingACL('m'); - $workflowClause = CRM_Mailing_BAO_MailingJob::workflowClause(); $domainID = CRM_Core_Config::domainID(); $modeClause = 'AND m.sms_provider_id IS NULL'; - if ($mode == 'sms') { + if ($mode === 'sms') { $modeClause = 'AND m.sms_provider_id IS NOT NULL'; } @@ -309,8 +305,8 @@ class CRM_Mailing_BAO_MailingJob extends CRM_Mailing_DAO_MailingJob { // when the mailing is submitted or scheduled. $query = " SELECT j.* - FROM $jobTable j, - $mailingTable m + FROM civicrm_mailing_job j, + civicrm_mailing m WHERE m.id = j.mailing_id AND m.domain_id = {$domainID} $workflowClause $modeClause @@ -323,7 +319,7 @@ class CRM_Mailing_BAO_MailingJob extends CRM_Mailing_DAO_MailingJob { ORDER BY j.scheduled_date, j.start_date"; - $job->query($query); + $job = CRM_Core_DAO::executeQuery($query); // For each of the "Parent Jobs" we find, we split them into // X Number of child jobs @@ -344,14 +340,14 @@ class CRM_Mailing_BAO_MailingJob extends CRM_Mailing_DAO_MailingJob { 'id', TRUE ); - if ($job->status != 'Scheduled') { + if ($job->status !== 'Scheduled') { $lock->release(); continue; } $transaction = new CRM_Core_Transaction(); - $job->split_job((int) $offset, (int) $job->id, (int) $job->mailing_id, $job->scheduled_date); + self::split_job((int) $offset, (int) $job->id, (int) $job->mailing_id, $job->scheduled_date); // Update the status of the parent job self::create(['id' => $job->id, 'start_date' => date('YmdHis'), 'status' => 'Running']); @@ -411,23 +407,17 @@ VALUES (%1, %2, %3, %4, %5, %6, %7) } /** - * @param array $testParams + * @param ?array $testParams */ - public function queue($testParams = NULL) { - $mailing = new CRM_Mailing_BAO_Mailing(); - $mailing->id = $this->mailing_id; + public function queue(?array $testParams = NULL) { if (!empty($testParams)) { - $mailing->getTestRecipients($testParams); + CRM_Mailing_BAO_Mailing::getTestRecipients($testParams, (int) $this->mailing_id); } else { // We are still getting all the recipients from the parent job // so we don't mess with the include/exclude logic. $recipients = CRM_Mailing_BAO_MailingRecipients::mailingQuery($this->mailing_id, $this->job_offset, $this->job_limit); - // FIXME: this is not very smart, we should move this to one DB call - // INSERT INTO ... SELECT FROM .. - // the thing we need to figure out is how to generate the hash automatically - $now = time(); $params = []; $count = 0; // dev/core#1768 Get the mail sync interval. @@ -438,31 +428,40 @@ VALUES (%1, %2, %3, %4, %5, %6, %7) if (empty($recipients->email_id) && empty($recipients->phone_id)) { continue; } - - if ($recipients->phone_id) { - $recipients->email_id = "null"; - } - else { - $recipients->phone_id = "null"; - } - $params[] = [ - $this->id, - $recipients->email_id, - $recipients->contact_id, - $recipients->phone_id, + 'job_id' => $this->id, + 'email_id' => $recipients->email_id ? (int) $recipients->email_id : NULL, + 'phone_id' => $recipients->phone_id ? (int) $recipients->phone_id : NULL, + 'contact_id' => $recipients->contact_id ? (int) $recipients->contact_id : NULL, + 'mailing_id' => (int) $this->mailing_id, + 'is_test' => !empty($testParams), ]; $count++; - // dev/core#1768 Mail sync interval is now configurable. - if ($count % $mail_sync_interval == 0) { - CRM_Mailing_Event_BAO_MailingEventQueue::bulkCreate($params, $now); + /* + The mail sync interval is used here to determine how + many rows to insert in each insert statement. + The discussion & name of the setting implies that the intent of the + setting is the frequency with which the mailing tables are updated + with information about actions taken on the mailings (ie if you send + an email & quickly update the delivered table that impacts information + availability. + + However, here it is used to manage the size of each individual + insert statement. It is unclear why as the trade offs are out of sync + ie. you want you insert statements here to be 'big, but not so big they + stall out' but in the delivery context it's a trade off between + information availability & performance. + https://github.com/civicrm/civicrm-core/pull/17367 */ + + if ($count % $mail_sync_interval === 0) { + CRM_Mailing_Event_BAO_MailingEventQueue::writeRecords($params); $count = 0; $params = []; } } if (!empty($params)) { - CRM_Mailing_Event_BAO_MailingEventQueue::bulkCreate($params, $now); + CRM_Mailing_Event_BAO_MailingEventQueue::writeRecords($params); } } } diff --git a/civicrm/CRM/Mailing/DAO/Mailing.php b/civicrm/CRM/Mailing/DAO/Mailing.php index 894028116b..53d6268386 100644 --- a/civicrm/CRM/Mailing/DAO/Mailing.php +++ b/civicrm/CRM/Mailing/DAO/Mailing.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Mailing.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:7370dea62ce328244525bac141d7fb62) + * (GenCodeChecksum:813f125fcf0c0253d96f6a0cf158bc15) */ /** @@ -830,7 +830,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO { 'pseudoconstant' => [ 'callback' => 'CRM_Mailing_BAO_Mailing::getTemplateTypeNames', ], - 'add' => '4.7.16', + 'add' => '4.7', ], 'template_options' => [ 'name' => 'template_options', @@ -849,7 +849,7 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO { 'bao' => 'CRM_Mailing_BAO_Mailing', 'localizable' => 0, 'serialize' => self::SERIALIZE_JSON, - 'add' => '4.7.16', + 'add' => '4.7', ], 'subject' => [ 'name' => 'subject', diff --git a/civicrm/CRM/Mailing/Event/BAO/MailingEventBounce.php b/civicrm/CRM/Mailing/Event/BAO/MailingEventBounce.php index 38fecb9b30..e0f05512b0 100644 --- a/civicrm/CRM/Mailing/Event/BAO/MailingEventBounce.php +++ b/civicrm/CRM/Mailing/Event/BAO/MailingEventBounce.php @@ -24,7 +24,7 @@ class CRM_Mailing_Event_BAO_MailingEventBounce extends CRM_Mailing_Event_DAO_Mai * @return bool|null */ public static function recordBounce(&$params) { - $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($params['job_id'] ?? NULL, + $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $params['event_queue_id'] ?? NULL, $params['hash'] ?? NULL ); diff --git a/civicrm/CRM/Mailing/Event/BAO/MailingEventDelivered.php b/civicrm/CRM/Mailing/Event/BAO/MailingEventDelivered.php index 0d651c1fe7..1634396995 100644 --- a/civicrm/CRM/Mailing/Event/BAO/MailingEventDelivered.php +++ b/civicrm/CRM/Mailing/Event/BAO/MailingEventDelivered.php @@ -25,7 +25,7 @@ class CRM_Mailing_Event_BAO_MailingEventDelivered extends CRM_Mailing_Event_DAO_ * @return \CRM_Mailing_Event_BAO_MailingEventDelivered */ public static function recordDelivery(&$params) { - $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($params['job_id'], + $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $params['event_queue_id'], $params['hash'] ); diff --git a/civicrm/CRM/Mailing/Event/BAO/MailingEventForward.php b/civicrm/CRM/Mailing/Event/BAO/MailingEventForward.php index 6c45cb1645..ad4fd2bcd2 100644 --- a/civicrm/CRM/Mailing/Event/BAO/MailingEventForward.php +++ b/civicrm/CRM/Mailing/Event/BAO/MailingEventForward.php @@ -29,7 +29,7 @@ class CRM_Mailing_Event_BAO_MailingEventForward extends CRM_Mailing_Event_DAO_Ma * @return bool */ public static function &forward($job_id, $queue_id, $hash, $forward_email, $fromEmail = NULL, $comment = NULL) { - $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($job_id, $queue_id, $hash); + $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $queue_id, $hash); $successfulForward = FALSE; $contact_id = NULL; diff --git a/civicrm/CRM/Mailing/Event/BAO/MailingEventQueue.php b/civicrm/CRM/Mailing/Event/BAO/MailingEventQueue.php index 6b1d8b20d6..6a5c624024 100644 --- a/civicrm/CRM/Mailing/Event/BAO/MailingEventQueue.php +++ b/civicrm/CRM/Mailing/Event/BAO/MailingEventQueue.php @@ -29,34 +29,49 @@ class CRM_Mailing_Event_BAO_MailingEventQueue extends CRM_Mailing_Event_DAO_Mail $eq = new CRM_Mailing_Event_BAO_MailingEventQueue(); $eq->copyValues($params); if (empty($params['id']) && empty($params['hash'])) { - $eq->hash = self::hash($params); + $eq->hash = self::hash(); + } + if (empty($params['id']) && !empty($params['job_id']) && empty($params['mailing_id'])) { + // mailing_id is a new field in 5.67. Calling code should pass it in going forwards + // but temporary handling will set it. (We should make the field required + // when we remove this in future) + CRM_Core_Error::deprecatedWarning('mailing_id should be passed into EventQueue create calls. Temporary handling has set it for now'); + $query = CRM_Core_DAO::executeQuery('SELECT mailing_id, is_test + FROM civicrm_mailing_job job LEFT JOIN civicrm_mailing m ON m.id = mailing_id WHERE job.id = %1', [1 => [$params['job_id'], 'Integer']]); + $eq->mailing_id = $query->mailing_id; + $eq->is_test = $query->is_test; } $eq->save(); return $eq; } /** - * Create a security hash from the job, email and contact ids. + * Create a unique-ish string to stare in the hash table. * - * @param array $params + * This is included in verp emails such that bounces go to a unique + * address (e.g. b.123456.456ABC456ABC.my-email-address@example.com). In this case + * b is the action (bounce), 123456 is the queue_id and the last part is the + * random string from this function. Note that the local part of the email + * can have a max of 64 characters + * + * https://issues.civicrm.org/jira/browse/CRM-2574 + * + * The hash combined with the queue id provides a fairly unguessable combo for the emails + * (enough that a sysadmin should notice if someone tried to brute force it!) * * @return string * The hash */ - public static function hash($params) { - $jobId = $params['job_id']; - $emailId = CRM_Utils_Array::value('email_id', $params, ''); - $contactId = $params['contact_id']; - - return substr(sha1("{$jobId}:{$emailId}:{$contactId}:" . time()), - 0, 16 - ); + public static function hash() { + // Case-insensitive. Some b64 chars are awkward in VERP+URL contexts. Over-generate (24 bytes) and then cut-back (16 alphanums). + $random = random_bytes(24); + return strtolower(substr(str_replace(['+', '/', '='], ['', '', ''], base64_encode($random)), 0, 16)); } /** * Verify that a queue event exists with the specified id/job id/hash. * - * @param int $job_id + * @param int|int $job_id * The job ID of the event to find. * @param int $queue_id * The Queue Event ID to find. @@ -66,12 +81,11 @@ class CRM_Mailing_Event_BAO_MailingEventQueue extends CRM_Mailing_Event_DAO_Mail * @return object|null * The queue event if verified, or null */ - public static function &verify($job_id, $queue_id, $hash) { + public static function verify($job_id, $queue_id, $hash) { $success = NULL; $q = new CRM_Mailing_Event_BAO_MailingEventQueue(); - if (!empty($job_id) && !empty($queue_id) && !empty($hash)) { + if ($queue_id && $hash) { $q->id = $queue_id; - $q->job_id = $job_id; $q->hash = $hash; if ($q->find(TRUE)) { $success = $q; @@ -283,10 +297,39 @@ SELECT DISTINCT(civicrm_mailing_event_queue.contact_id) as contact_id, } /** + * Bulk save multiple records. + * + * For performance reasons hooks are not called here. + * + * @param array[] $records + * + * @return array + */ + public static function writeRecords(array $records): array { + $rows = []; + foreach ($records as $record) { + $record['hash'] = self::hash(); + $rows[] = $record; + if (count($rows) >= CRM_Core_DAO::BULK_INSERT_COUNT) { + CRM_Utils_SQL_Insert::into('civicrm_mailing_event_queue')->rows($rows)->execute(); + $rows = []; + } + } + if ($rows) { + CRM_Utils_SQL_Insert::into('civicrm_mailing_event_queue')->rows($rows)->execute(); + } + // No point returning a big array but the standard function signature is to return an array + // records + return []; + } + + /** + * @deprecated * @param array $params * @param null $now */ public static function bulkCreate($params, $now = NULL) { + CRM_Core_Error::deprecatedFunctionWarning('writeRecords'); if (!$now) { $now = time(); } @@ -294,9 +337,9 @@ SELECT DISTINCT(civicrm_mailing_event_queue.contact_id) as contact_id, // construct a bulk insert statement $values = []; foreach ($params as $param) { - $values[] = "( {$param[0]}, {$param[1]}, {$param[2]}, {$param[3]}, '" . substr(sha1("{$param[0]}:{$param[1]}:{$param[2]}:{$param[3]}:{$now}"), - 0, 16 - ) . "' )"; + $hash = static::hash(); + $values[] = "( {$param[0]}, {$param[1]}, {$param[2]}, {$param[3]}, '" . $hash . "' )"; + // FIXME: This (non)escaping is valid as currently used but is not robust to change. This should use CRM_Utils_SQL_Insert... } while (!empty($values)) { diff --git a/civicrm/CRM/Mailing/Event/BAO/MailingEventReply.php b/civicrm/CRM/Mailing/Event/BAO/MailingEventReply.php index 15cf74d63f..a21165f725 100644 --- a/civicrm/CRM/Mailing/Event/BAO/MailingEventReply.php +++ b/civicrm/CRM/Mailing/Event/BAO/MailingEventReply.php @@ -39,7 +39,7 @@ class CRM_Mailing_Event_BAO_MailingEventReply extends CRM_Mailing_Event_DAO_Mail */ public static function &reply($job_id, $queue_id, $hash, $replyto = NULL) { // First make sure there's a matching queue event. - $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($job_id, $queue_id, $hash); + $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $queue_id, $hash); $success = NULL; diff --git a/civicrm/CRM/Mailing/Event/BAO/MailingEventResubscribe.php b/civicrm/CRM/Mailing/Event/BAO/MailingEventResubscribe.php index 0e6db580ac..2c1192a71c 100644 --- a/civicrm/CRM/Mailing/Event/BAO/MailingEventResubscribe.php +++ b/civicrm/CRM/Mailing/Event/BAO/MailingEventResubscribe.php @@ -40,7 +40,7 @@ class CRM_Mailing_Event_BAO_MailingEventResubscribe { public static function &resub_to_mailing($job_id, $queue_id, $hash) { // First make sure there's a matching queue event. - $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($job_id, $queue_id, $hash); + $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $queue_id, $hash); $success = NULL; if (!$q) { return $success; diff --git a/civicrm/CRM/Mailing/Event/BAO/MailingEventUnsubscribe.php b/civicrm/CRM/Mailing/Event/BAO/MailingEventUnsubscribe.php index 498f7df936..d25a0caea0 100644 --- a/civicrm/CRM/Mailing/Event/BAO/MailingEventUnsubscribe.php +++ b/civicrm/CRM/Mailing/Event/BAO/MailingEventUnsubscribe.php @@ -38,7 +38,7 @@ class CRM_Mailing_Event_BAO_MailingEventUnsubscribe extends CRM_Mailing_Event_DA * Was the contact successfully unsubscribed? */ public static function unsub_from_domain($job_id, $queue_id, $hash) { - $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($job_id, $queue_id, $hash); + $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $queue_id, $hash); if (!$q) { return FALSE; } @@ -110,7 +110,7 @@ WHERE email = %2 public static function unsub_from_mailing($job_id, $queue_id, $hash, $return = FALSE): ?array { // First make sure there's a matching queue event. - $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($job_id, $queue_id, $hash); + $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $queue_id, $hash); if (!$q) { return NULL; } diff --git a/civicrm/CRM/Mailing/Event/DAO/MailingEventQueue.php b/civicrm/CRM/Mailing/Event/DAO/MailingEventQueue.php index 3e167d44a9..54fe38fffd 100644 --- a/civicrm/CRM/Mailing/Event/DAO/MailingEventQueue.php +++ b/civicrm/CRM/Mailing/Event/DAO/MailingEventQueue.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/Event/MailingEventQueue.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3c06e884d0685ead323cbef1cf143706) + * (GenCodeChecksum:afc9bb708b2cdc3fe9cc389059b0b58f) */ /** @@ -47,6 +47,22 @@ class CRM_Mailing_Event_DAO_MailingEventQueue extends CRM_Core_DAO { */ public $job_id; + /** + * Related mailing. Used for reporting on mailing success, if present. + * + * @var int|string + * (SQL type: int unsigned) + * Note that values will be retrieved from the database as a string. + */ + public $mailing_id; + + /** + * @var bool|string + * (SQL type: tinyint) + * Note that values will be retrieved from the database as a string. + */ + public $is_test; + /** * FK to Email * @@ -120,6 +136,7 @@ class CRM_Mailing_Event_DAO_MailingEventQueue extends CRM_Core_DAO { if (!isset(Civi::$statics[__CLASS__]['links'])) { Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'job_id', 'civicrm_mailing_job', 'id'); + Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'mailing_id', 'civicrm_mailing', 'id'); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'email_id', 'civicrm_email', 'id'); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id'); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'phone_id', 'civicrm_phone', 'id'); @@ -164,7 +181,7 @@ class CRM_Mailing_Event_DAO_MailingEventQueue extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Job ID'), 'description' => ts('Mailing Job'), - 'required' => TRUE, + 'required' => FALSE, 'usage' => [ 'import' => FALSE, 'export' => FALSE, @@ -182,6 +199,52 @@ class CRM_Mailing_Event_DAO_MailingEventQueue extends CRM_Core_DAO { ], 'add' => NULL, ], + 'mailing_id' => [ + 'name' => 'mailing_id', + 'type' => CRM_Utils_Type::T_INT, + 'title' => ts('Mailing ID'), + 'description' => ts('Related mailing. Used for reporting on mailing success, if present.'), + 'required' => FALSE, + 'usage' => [ + 'import' => FALSE, + 'export' => FALSE, + 'duplicate_matching' => FALSE, + 'token' => FALSE, + ], + 'where' => 'civicrm_mailing_event_queue.mailing_id', + 'table_name' => 'civicrm_mailing_event_queue', + 'entity' => 'MailingEventQueue', + 'bao' => 'CRM_Mailing_Event_BAO_MailingEventQueue', + 'localizable' => 0, + 'FKClassName' => 'CRM_Mailing_DAO_Mailing', + 'html' => [ + 'label' => ts("Mailing"), + ], + 'add' => '5.67', + ], + 'is_test' => [ + 'name' => 'is_test', + 'type' => CRM_Utils_Type::T_BOOLEAN, + 'title' => ts('Test'), + 'required' => TRUE, + 'usage' => [ + 'import' => FALSE, + 'export' => FALSE, + 'duplicate_matching' => FALSE, + 'token' => FALSE, + ], + 'where' => 'civicrm_mailing_event_queue.is_test', + 'default' => '0', + 'table_name' => 'civicrm_mailing_event_queue', + 'entity' => 'MailingEventQueue', + 'bao' => 'CRM_Mailing_Event_BAO_MailingEventQueue', + 'localizable' => 0, + 'html' => [ + 'type' => 'CheckBox', + ], + 'readonly' => TRUE, + 'add' => '5.67', + ], 'email_id' => [ 'name' => 'email_id', 'type' => CRM_Utils_Type::T_INT, diff --git a/civicrm/CRM/Mailing/Form/ForwardMailing.php b/civicrm/CRM/Mailing/Form/ForwardMailing.php index f13243dbd1..e838710b5e 100644 --- a/civicrm/CRM/Mailing/Form/ForwardMailing.php +++ b/civicrm/CRM/Mailing/Form/ForwardMailing.php @@ -27,7 +27,7 @@ class CRM_Mailing_Form_ForwardMailing extends CRM_Core_Form { $this, NULL ); - $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($job_id, $queue_id, $hash); + $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $queue_id, $hash); if ($q == NULL) { diff --git a/civicrm/CRM/Mailing/Form/Optout.php b/civicrm/CRM/Mailing/Form/Optout.php index da2930c8af..de8855b0bc 100644 --- a/civicrm/CRM/Mailing/Form/Optout.php +++ b/civicrm/CRM/Mailing/Form/Optout.php @@ -56,7 +56,7 @@ class CRM_Mailing_Form_Optout extends CRM_Core_Form { } // verify that the three numbers above match - $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($job_id, $queue_id, $hash); + $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $queue_id, $hash); if (!$q) { CRM_Utils_System::sendResponse( new \GuzzleHttp\Psr7\Response(400, [], ts("Invalid request: bad parameters")) diff --git a/civicrm/CRM/Mailing/Form/Unsubscribe.php b/civicrm/CRM/Mailing/Form/Unsubscribe.php index cf17a06f0a..f0a8e0d1f9 100644 --- a/civicrm/CRM/Mailing/Form/Unsubscribe.php +++ b/civicrm/CRM/Mailing/Form/Unsubscribe.php @@ -57,7 +57,7 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form { } // verify that the three numbers above match - $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($job_id, $queue_id, $hash); + $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $queue_id, $hash); if (!$q) { CRM_Utils_System::sendResponse( new \GuzzleHttp\Psr7\Response(400, [], ts("Invalid request: bad parameters")) @@ -78,9 +78,10 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form { $this->_email = $email; $groups = CRM_Mailing_Event_BAO_MailingEventUnsubscribe::unsub_from_mailing($job_id, $queue_id, $hash, TRUE); - $this->assign('groups', $groups); + $this->assign('groups', $groups ?? []); $groupExist = NULL; foreach ($groups as $value) { + // How about we just array_filter - only question is before or after the assign? if ($value) { $groupExist = TRUE; } @@ -89,6 +90,7 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form { $statusMsg = ts('%1 has already been unsubscribed.', [1 => $email]); CRM_Core_Session::setStatus($statusMsg, '', 'error'); } + // @todo - can we just check if groups is empty here & in the template? $this->assign('groupExist', $groupExist); } @@ -119,7 +121,7 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form { // Email address verified $groups = CRM_Mailing_Event_BAO_MailingEventUnsubscribe::unsub_from_mailing($this->_job_id, $this->_queue_id, $this->_hash); - if (count($groups)) { + if (!empty($groups)) { CRM_Mailing_Event_BAO_MailingEventUnsubscribe::send_unsub_response($this->_queue_id, $groups, FALSE, $this->_job_id); } diff --git a/civicrm/CRM/Mailing/Page/Common.php b/civicrm/CRM/Mailing/Page/Common.php index 70ccd7f6cd..680777753a 100644 --- a/civicrm/CRM/Mailing/Page/Common.php +++ b/civicrm/CRM/Mailing/Page/Common.php @@ -38,7 +38,7 @@ class CRM_Mailing_Page_Common extends CRM_Core_Page { } // verify that the three numbers above match - $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify($job_id, $queue_id, $hash); + $q = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $queue_id, $hash); if (!$q) { throw new CRM_Core_Exception(ts("There was an error in your request")); } @@ -57,28 +57,30 @@ class CRM_Mailing_Page_Common extends CRM_Core_Page { $this->assign('confirm', $confirm); $groups = CRM_Mailing_Event_BAO_MailingEventUnsubscribe::unsub_from_mailing($job_id, $queue_id, $hash, TRUE); - $this->assign('groups', $groups); + $this->assign('groups', $groups ?? []); $groupExist = NULL; - foreach ($groups as $key => $value) { + foreach ($groups as $value) { + // How about we just array_filter - only question is before or after the assign? if ($value) { $groupExist = TRUE; } } + // @todo - can we just check if groups is empty here & in the template? $this->assign('groupExist', $groupExist); if ($confirm) { - if ($this->_type == 'unsubscribe') { + if ($this->_type === 'unsubscribe') { $groups = CRM_Mailing_Event_BAO_MailingEventUnsubscribe::unsub_from_mailing($job_id, $queue_id, $hash); - if (count($groups)) { + if (!empty($groups)) { CRM_Mailing_Event_BAO_MailingEventUnsubscribe::send_unsub_response($queue_id, $groups, FALSE, $job_id); } else { // should we indicate an error, or just ignore? } } - elseif ($this->_type == 'resubscribe') { + elseif ($this->_type === 'resubscribe') { $groups = CRM_Mailing_Event_BAO_MailingEventResubscribe::resub_to_mailing($job_id, $queue_id, $hash); - if (count($groups)) { + if (!empty($groups)) { CRM_Mailing_Event_BAO_MailingEventResubscribe::send_resub_response($queue_id, $groups, $job_id); } else { diff --git a/civicrm/CRM/Member/Form.php b/civicrm/CRM/Member/Form.php index f3835b5897..f0a2ecba21 100644 --- a/civicrm/CRM/Member/Form.php +++ b/civicrm/CRM/Member/Form.php @@ -346,22 +346,25 @@ class CRM_Member_Form extends CRM_Contribute_Form_AbstractEditPayment { ]); } else { - $this->addButtons([ + $buttons = [ [ 'type' => 'upload', 'name' => ts('Save'), 'isDefault' => TRUE, ], - [ + ]; + if (!$this->_id) { + $buttons[] = [ 'type' => 'upload', 'name' => ts('Save and New'), 'subName' => 'new', - ], - [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ], - ]); + ]; + }; + $buttons[] = [ + 'type' => 'cancel', + 'name' => ts('Cancel'), + ]; + $this->addButtons($buttons); } } @@ -426,6 +429,21 @@ class CRM_Member_Form extends CRM_Contribute_Form_AbstractEditPayment { return (int) ($this->getSubmittedValue('contact_id') ?: $this->_contactID); } + /** + * Get the membership ID. + * + * For new memberships this may initially be NULL. + * + * @return int + * + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. + */ + public function getMembershipID(): ?int { + return $this->_id; + } + /** * Set variables in a way that can be accessed from different places. * diff --git a/civicrm/CRM/Member/Form/Membership.php b/civicrm/CRM/Member/Form/Membership.php index c3e1daea7a..e6e1debc70 100644 --- a/civicrm/CRM/Member/Form/Membership.php +++ b/civicrm/CRM/Member/Form/Membership.php @@ -377,8 +377,8 @@ DESC limit 1"); NULL, ['onchange' => "buildAmount( this.value );"] ); } - $this->assign('hasPriceSets', $buildPriceSet); } + $this->assign('hasPriceSets', $buildPriceSet ?? NULL); if ($this->_action & CRM_Core_Action::DELETE) { $this->addButtons([ @@ -933,7 +933,7 @@ DESC limit 1"); $params = $softParams = []; - $this->processBillingAddress(); + $this->processBillingAddress($this->getContributionContactID(), (string) $this->_contributorEmail); $formValues = $this->_params; $formValues = $this->setPriceSetParameters($formValues); @@ -1822,10 +1822,10 @@ DESC limit 1"); /** * Get the created or edited membership ID. * - * @return false|mixed + * @return int|null */ - protected function getMembershipID() { - return reset($this->_membershipIDs); + public function getMembershipID(): ?int { + return $this->_membershipIDs[0] ?? NULL; } /** @@ -1848,7 +1848,7 @@ DESC limit 1"); */ protected function setMembership(array $membership): void { if (!in_array($membership['id'], $this->_membershipIDs, TRUE)) { - $this->_membershipIDs[] = $membership['id']; + $this->_membershipIDs[] = (int) $membership['id']; } $this->membership = $membership; } @@ -1894,7 +1894,7 @@ DESC limit 1"); $ids = []; foreach ($contribution['values'][$contribution['id']]['line_item'] as $line) { if ($line['entity_table'] ?? '' === 'civicrm_membership') { - $ids[] = $line['entity_id']; + $ids[] = (int) $line['entity_id']; } } $this->setMembershipIDs($ids); diff --git a/civicrm/CRM/Member/Form/MembershipRenewal.php b/civicrm/CRM/Member/Form/MembershipRenewal.php index de109e6b73..aa002c5f6a 100644 --- a/civicrm/CRM/Member/Form/MembershipRenewal.php +++ b/civicrm/CRM/Member/Form/MembershipRenewal.php @@ -485,14 +485,13 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form { $this->beginPostProcess(); $now = CRM_Utils_Date::getToday(NULL, 'YmdHis'); $this->assign('receive_date', CRM_Utils_Array::value('receive_date', $this->_params, CRM_Utils_Time::date('Y-m-d H:i:s'))); - $this->processBillingAddress(); + $this->processBillingAddress($this->getContributionContactID(), (string) $this->_contributorEmail); $this->_params['total_amount'] = CRM_Utils_Array::value('total_amount', $this->_params, CRM_Core_DAO::getFieldValue('CRM_Member_DAO_MembershipType', $this->_memType, 'minimum_fee') ); - $this->_membershipId = $this->_id; $customFieldsFormatted = CRM_Core_BAO_CustomField::postProcess($this->_params, - $this->_id, + $this->getMembershipID(), 'Membership' ); if (empty($this->_params['financial_type_id'])) { @@ -580,7 +579,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form { $pending = ($this->_params['contribution_status_id'] == CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Pending')); $membershipParams = [ - 'id' => $this->_membershipId, + 'id' => $this->getMembershipID(), 'membership_type_id' => $this->_params['membership_type_id'][1], 'modified_id' => $this->_contactID, 'custom' => $customFieldsFormatted, @@ -660,7 +659,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form { $customFields["custom_{$k}"] = $field; } } - $members = [['member_id', '=', $this->_membershipId, 0, 0]]; + $members = [['member_id', '=', $this->getMembershipID(), 0, 0]]; // check whether its a test drive if ($this->_mode === 'test') { $members[] = ['member_test', '=', 1, 0, 0]; @@ -705,7 +704,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form { 'receiptText' => $this->getSubmittedValue('receipt_text'), 'contactID' => $this->_receiptContactId, 'contributionID' => $this->getContributionID(), - 'membershipID' => $this->_membershipId, + 'membershipID' => $this->getMembershipID(), ], ] ); diff --git a/civicrm/CRM/Member/Form/MembershipType.php b/civicrm/CRM/Member/Form/MembershipType.php index 9dc8251cc0..9781f19319 100644 --- a/civicrm/CRM/Member/Form/MembershipType.php +++ b/civicrm/CRM/Member/Form/MembershipType.php @@ -53,7 +53,8 @@ class CRM_Member_Form_MembershipType extends CRM_Member_Form_MembershipConfig { 'auto_renew' => [ 'name' => 'auto_renew', 'options' => CRM_Core_SelectValues::memberAutoRenew(), - 'place_holder' => ts('You will need to select and configure a supported payment processor (currently Authorize.Net, PayPal Pro, or PayPal Website Standard) in order to offer automatically renewing memberships.'), + // Note this doesn't get used currently because the template has its own code for this field. Note also the documentation link that you see in the template is added later here down below. + 'description' => ts('You will need to select and configure a supported payment processor (currently Authorize.Net, PayPal Pro, or PayPal Website Standard) in order to offer automatically renewing memberships.'), ], 'duration_interval' => [ 'name' => 'duration_interval', @@ -99,7 +100,7 @@ class CRM_Member_Form_MembershipType extends CRM_Member_Form_MembershipConfig { if (!CRM_Financial_BAO_PaymentProcessor::hasPaymentProcessorSupporting(['Recurring'])) { $this->entityFields['auto_renew']['not-auto-addable'] = TRUE; - $this->entityFields['auto_renew']['documentation_link'] = ['page' => 'user/contributions/payment-processors']; + $this->entityFields['auto_renew']['documentation_link'] = ['page' => 'user/contributions/payment-processors', 'resource' => '']; } } diff --git a/civicrm/CRM/Member/Page/Tab.php b/civicrm/CRM/Member/Page/Tab.php index 2433005403..e6c543f1cd 100644 --- a/civicrm/CRM/Member/Page/Tab.php +++ b/civicrm/CRM/Member/Page/Tab.php @@ -240,7 +240,6 @@ class CRM_Member_Page_Tab extends CRM_Core_Page { // Refresh other tabs with related data $this->ajaxResponse['updateTabs'] = [ '#tab_activity' => CRM_Contact_BAO_Contact::getCountComponent('activity', $this->_contactId), - '#tab_rel' => CRM_Contact_BAO_Contact::getCountComponent('rel', $this->_contactId), ]; if (CRM_Core_Permission::access('CiviContribute')) { $this->ajaxResponse['updateTabs']['#tab_contribute'] = CRM_Contact_BAO_Contact::getCountComponent('contribution', $this->_contactId); diff --git a/civicrm/CRM/Note/Form/Note.php b/civicrm/CRM/Note/Form/Note.php index 33addb0e37..b243a2719a 100644 --- a/civicrm/CRM/Note/Form/Note.php +++ b/civicrm/CRM/Note/Form/Note.php @@ -41,26 +41,15 @@ class CRM_Note_Form_Note extends CRM_Core_Form { */ protected $_entityId; - /** - * The parent note id, used when adding a comment to a note - * - * @var int - */ - protected $_parentId; - public function preProcess() { - $this->_entityTable = $this->get('entityTable'); - $this->_entityId = $this->get('entityId'); - $this->_id = $this->get('id'); - $this->_parentId = CRM_Utils_Array::value('parentId', $_GET, 0); - if ($this->_parentId) { - $this->assign('parentId', $this->_parentId); - } + $this->_id = CRM_Utils_Request::retrieve('id', 'Integer', $this); + $this->_entityTable = CRM_Utils_Request::retrieve('entity_table', 'String', $this); + $this->_entityId = CRM_Utils_Request::retrieve('entity_id', 'Integer', $this); if ($this->_id && CRM_Core_BAO_Note::getNotePrivacyHidden($this->_id)) { CRM_Core_Error::statusBounce(ts('You do not have access to this note.')); } - $this->setPageTitle($this->_parentId ? ts('Comment') : ts('Note')); + $this->setPageTitle($this->_entityTable === 'civicrm_note' ? ts('Comment') : ts('Note')); } /** @@ -78,15 +67,12 @@ class CRM_Note_Form_Note extends CRM_Core_Form { $params['id'] = $this->_id; CRM_Core_DAO::commonRetrieve('CRM_Core_DAO_Note', $params, $defaults); } - if ($defaults['entity_table'] == 'civicrm_note') { - $defaults['parent_id'] = $defaults['entity_id']; - } } elseif ($this->_action & CRM_Core_Action::ADD) { + $defaults['privacy'] = '0'; $defaults['note_date'] = date('Y-m-d H:i:s'); - if ($this->_parentId) { - $defaults['parent_id'] = $this->_parentId; - $defaults['subject'] = 'Re: ' . CRM_Core_BAO_Note::getNoteSubject($this->_parentId); + if ($this->_entityTable === 'civicrm_note') { + $defaults['subject'] = ts('Re: %1', [1 => CRM_Core_BAO_Note::getNoteSubject($this->_entityId)]); } } return $defaults; @@ -130,8 +116,10 @@ class CRM_Note_Form_Note extends CRM_Core_Form { $this->addField('subject'); $this->addField('note_date', [], TRUE, FALSE); $this->addField('note', [], TRUE); - $this->addField('privacy'); - $this->add('hidden', 'parent_id'); + $this->addField('privacy', [ + 'placeholder' => NULL, + 'option_url' => NULL, + ]); // add attachments part CRM_Core_BAO_File::buildAttachment($this, 'civicrm_note', $this->_id, NULL, TRUE); @@ -161,11 +149,7 @@ class CRM_Note_Form_Note extends CRM_Core_Form { $session = CRM_Core_Session::singleton(); $params['contact_id'] = $session->get('userID'); - if (!empty($params['parent_id'])) { - $params['entity_table'] = 'civicrm_note'; - $params['entity_id'] = $params['parent_id']; - } - else { + if ($this->_action & CRM_Core_Action::ADD) { $params['entity_table'] = $this->_entityTable; $params['entity_id'] = $this->_entityId; } @@ -185,8 +169,7 @@ class CRM_Note_Form_Note extends CRM_Core_Form { // add attachments as needed CRM_Core_BAO_File::formatAttachment($params, $params, 'civicrm_note', $params['id']); - $ids = []; - $note = CRM_Core_BAO_Note::add($params, $ids); + $note = CRM_Core_BAO_Note::add($params); // Required for postProcess hooks $this->setEntityId($note->id); diff --git a/civicrm/CRM/PCP/BAO/PCP.php b/civicrm/CRM/PCP/BAO/PCP.php index 72a059a708..5c504f8441 100644 --- a/civicrm/CRM/PCP/BAO/PCP.php +++ b/civicrm/CRM/PCP/BAO/PCP.php @@ -73,12 +73,13 @@ WHERE civicrm_pcp.contact_id = civicrm_contact.id /** * Return PCP Block info for dashboard. * - * @param int $contactId + * @param int $contactID * * @return array * array of Pcp if found + * @throws \Civi\Core\Exception\DBQueryException */ - public static function getPcpDashboardInfo($contactId) { + public static function getPcpDashboardInfo(int $contactID): array { $query = ' SELECT pcp.*, block.is_tellfriend_enabled, COALESCE(cp.end_date, event.end_date) as end_date @@ -90,16 +91,15 @@ WHERE pcp.is_active = 1 AND pcp.contact_id = %1 ORDER BY page_type, page_id'; - $params = [1 => [$contactId, 'Integer']]; - $pcpInfoDao = CRM_Core_DAO::executeQuery($query, $params); + $pcpInfoDao = CRM_Core_DAO::executeQuery($query, [1 => [$contactID, 'Integer']]); $approved = CRM_Core_PseudoConstant::getKey('CRM_PCP_BAO_PCP', 'status_id', 'Approved'); $contactPCPPages = []; $pcpInfo = []; - + $links = []; while ($pcpInfoDao->fetch()) { $links = self::pcpLinks($pcpInfoDao->id); - $hide = $mask = array_sum(array_keys($links['all'])); + $hide = array_sum(array_keys($links['all'])); $mask = $hide; if ($links) { $replace = [ @@ -180,8 +180,8 @@ ORDER BY target_entity_type, target_entity_id 'pageComponent' => $pcpBlockDao->target_entity_type, ]; } - $pcpLink = $links['add']; - $action = CRM_Core_Action::formLink($pcpLink, $mask, $replace, ts('more'), + $pcpLink = $links['add'] ?? NULL; + $action = CRM_Core_Action::formLink($pcpLink, $mask, $replace ?? [], ts('more'), FALSE, 'pcp.dashboard.other', "{$pcpBlockDao->target_entity_type}_PCP", $pcpBlockDao->target_entity_id); $pageTitle = self::getPcpTitle($pcpBlockDao->target_entity_type, (int) $pcpBlockDao->target_entity_id); if ($pageTitle) { @@ -344,7 +344,11 @@ WHERE pcp.id = %1 AND cc.contribution_status_id = %2 AND cc.is_test = 0"; ], ]; + // pcp.user.actions emits a malformed set of $links. But it is locked-in via unit-test, so we'll grandfather + // the bad one and fire new variants that are well-formed. CRM_Utils_Hook::links('pcp.user.actions', 'Pcp', $pcpId, self::$_pcpLinks); + CRM_Utils_Hook::links('pcp.user.actions.add', 'Pcp', $pcpId, self::$_pcpLinks['add']); + CRM_Utils_Hook::links('pcp.user.actions.all', 'Pcp', $pcpId, self::$_pcpLinks['all']); } return self::$_pcpLinks; } @@ -666,7 +670,7 @@ WHERE pcp.id = %1 AND cc.contribution_status_id = %2 AND cc.is_test = 0"; ]; //get the default domain email address. - list($domainEmailName, $domainEmailAddress) = CRM_Core_BAO_Domain::getNameAndEmail(); + [$domainEmailName, $domainEmailAddress] = CRM_Core_BAO_Domain::getNameAndEmail(); if (!$domainEmailAddress || $domainEmailAddress == 'info@EXAMPLE.ORG') { $fixUrl = CRM_Utils_System::url('civicrm/admin/options/from_email_address', 'reset=1'); @@ -678,10 +682,10 @@ WHERE pcp.id = %1 AND cc.contribution_status_id = %2 AND cc.is_test = 0"; // get recipient (supporter) name and email $params = ['id' => $pcpId]; CRM_Core_DAO::commonRetrieve('CRM_PCP_DAO_PCP', $params, $pcpInfo); - list($name, $address) = CRM_Contact_BAO_Contact_Location::getEmailDetails($pcpInfo['contact_id']); + [$name, $address] = CRM_Contact_BAO_Contact_Location::getEmailDetails($pcpInfo['contact_id']); // get pcp block info - list($blockId, $eid) = self::getPcpBlockEntityId($pcpId, $component); + [$blockId, $eid] = self::getPcpBlockEntityId($pcpId, $component); $params = ['id' => $blockId]; CRM_Core_DAO::commonRetrieve('CRM_PCP_DAO_PCPBlock', $params, $pcpBlockInfo); @@ -712,7 +716,7 @@ WHERE pcp.id = %1 AND cc.contribution_status_id = %2 AND cc.is_test = 0"; $tplName = $isInitial ? 'pcp_supporter_notify' : 'pcp_status_change'; - list($sent, $subject, $message, $html) = CRM_Core_BAO_MessageTemplate::sendTemplate( + [$sent, $subject, $message, $html] = CRM_Core_BAO_MessageTemplate::sendTemplate( [ 'groupName' => 'msg_tpl_workflow_contribution', 'workflow' => $tplName, diff --git a/civicrm/CRM/PCP/Form/Contribute.php b/civicrm/CRM/PCP/Form/Contribute.php index 19f4840996..890ffeb13e 100644 --- a/civicrm/CRM/PCP/Form/Contribute.php +++ b/civicrm/CRM/PCP/Form/Contribute.php @@ -72,11 +72,8 @@ class CRM_PCP_Form_Contribute extends CRM_Contribute_Form_ContributionPage { * @return void */ public function buildQuickForm() { - $this->_last = TRUE; CRM_PCP_BAO_PCP::buildPCPForm($this); - $this->addElement('checkbox', 'pcp_active', ts('Enable Personal Campaign Pages? (for this contribution page)'), NULL, ['onclick' => "return showHideByValue('pcp_active',true,'pcpFields','table-row','radio',false);"]); - parent::buildQuickForm(); $this->addFormRule(['CRM_PCP_Form_Contribute', 'formRule'], $this); } diff --git a/civicrm/CRM/Pledge/BAO/PledgeBlock.php b/civicrm/CRM/Pledge/BAO/PledgeBlock.php index c26bccc3e6..052a23fbbd 100644 --- a/civicrm/CRM/Pledge/BAO/PledgeBlock.php +++ b/civicrm/CRM/Pledge/BAO/PledgeBlock.php @@ -116,6 +116,8 @@ class CRM_Pledge_BAO_PledgeBlock extends CRM_Pledge_DAO_PledgeBlock { * Build Pledge Block in Contribution Pages. * * @param CRM_Core_Form $form + * + * @throws \CRM_Core_Exception */ public static function buildPledgeBlock($form) { //build pledge payment fields. @@ -189,10 +191,7 @@ class CRM_Pledge_BAO_PledgeBlock extends CRM_Pledge_DAO_PledgeBlock { if (empty($payments)) { throw new CRM_Core_Exception(ts('Oops. It looks like there is no valid payment status for online payment.')); } - else { - $form->assign('is_pledge_payment', TRUE); - $form->addGroup($payments, 'pledge_amount', ts('Make Pledge Payment(s):'), '<br />'); - } + $form->addGroup($payments, 'pledge_amount', ts('Make Pledge Payment(s):'), '<br />'); } else { @@ -209,7 +208,6 @@ class CRM_Pledge_BAO_PledgeBlock extends CRM_Pledge_DAO_PledgeBlock { $form->addElement('text', 'pledge_installments', ts('Installments'), ['size' => 3, 'aria-label' => ts('Installments')]); if (!empty($pledgeBlock['is_pledge_interval'])) { - $form->assign('is_pledge_interval', CRM_Utils_Array::value('is_pledge_interval', $pledgeBlock)); $form->addElement('text', 'pledge_frequency_interval', NULL, ['size' => 3, 'aria-label' => ts('Frequency Intervals')]); } else { diff --git a/civicrm/CRM/Pledge/Form/Pledge.php b/civicrm/CRM/Pledge/Form/Pledge.php index 0cdaa8453e..471faa805d 100644 --- a/civicrm/CRM/Pledge/Form/Pledge.php +++ b/civicrm/CRM/Pledge/Form/Pledge.php @@ -21,6 +21,8 @@ use Civi\Api4\PledgePayment; * This class generates form components for processing a pledge */ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { + use CRM_Contact_Form_ContactFormTrait; + public $_action; /** @@ -61,29 +63,23 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { * @throws \CRM_Core_Exception */ public function preProcess(): void { - $this->_contactID = CRM_Utils_Request::retrieve('cid', 'Positive', $this); + $this->_contactID = $this->getContactID(); $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'add' ); $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this); - $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this); - + $this->setContext(); // check for action permissions. if (!CRM_Core_Permission::checkActionPermission('CiviPledge', $this->_action)) { CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.')); } $this->assign('action', $this->_action); - $this->assign('context', $this->_context); + $this->assign('context', $this->getContext()); if ($this->_action & CRM_Core_Action::DELETE) { return; } - $displayName = $this->userEmail = NULL; - if ($this->_contactID) { - [$displayName, $this->userEmail] = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_contactID); - } - $this->setPageTitle(ts('Pledge')); // build custom data @@ -91,25 +87,21 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { $this->_values = []; // current pledge id if ($this->_id) { - // get the contribution id - $this->_contributionID = CRM_Core_DAO::getFieldValue('CRM_Pledge_DAO_PledgePayment', - $this->_id, 'contribution_id', 'pledge_id' - ); $params = ['id' => $this->_id]; CRM_Pledge_BAO_Pledge::getValues($params, $this->_values); - $this->_isPending = (CRM_Pledge_BAO_Pledge::pledgeHasFinancialTransactions($this->_id, CRM_Utils_Array::value('status_id', $this->_values))) ? FALSE : TRUE; + $this->_isPending = !CRM_Pledge_BAO_Pledge::pledgeHasFinancialTransactions($this->_id, CRM_Utils_Array::value('status_id', $this->_values)); } // get the pledge frequency units. $this->_freqUnits = CRM_Core_OptionGroup::values('recur_frequency_units'); - - $this->_fromEmails = CRM_Core_BAO_Email::getFromEmail(); } /** * Set default values for the form. * The default values are retrieved from the database. + * + * @throws \CRM_Core_Exception */ public function setDefaultValues(): array { $defaults = $this->_values; @@ -169,10 +161,7 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { $defaultPledgeStatus )); - if (isset($this->userEmail)) { - $this->assign('email', $this->userEmail); - } - + $this->assign('email', $this->getContactValue('email_primary.email')); // custom data set defaults $defaults += CRM_Custom_Form_CustomData::setDefaultValues($this); @@ -202,13 +191,12 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { } $contactField = $this->addEntityRef('contact_id', ts('Pledge by'), ['create' => TRUE, 'api' => ['extra' => ['email']]], TRUE); - if ($this->_context !== 'standalone') { + if ($this->getContext() !== 'standalone') { $contactField->freeze(); } $showAdditionalInfo = FALSE; - $this->_formType = $_GET['formType'] ?? NULL; - + $formType = CRM_Utils_Request::retrieveValue('form_type', 'String'); $defaults = []; $paneNames = [ @@ -222,7 +210,7 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { 'id' => $type, ]; // see if we need to include this paneName in the current form - if ($this->_formType == $type || !empty($_POST["hidden_{$type}"]) || + if ($formType == $type || !empty($_POST["hidden_{$type}"]) || !empty($defaults["hidden_{$type}"]) ) { $showAdditionalInfo = TRUE; @@ -235,8 +223,8 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { $this->assign('allPanes', $allPanes); $this->assign('showAdditionalInfo', $showAdditionalInfo); - $this->assign('formType', $this->_formType); - if ($this->_formType) { + $this->assign('formType', $formType); + if ($formType) { return; } @@ -319,8 +307,7 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { $this->addElement('checkbox', 'is_acknowledge', ts('Send Acknowledgment?'), NULL, ['onclick' => "showHideByValue( 'is_acknowledge', '', 'acknowledgeDate', 'table-row', 'radio', true); showHideByValue( 'is_acknowledge', '', 'fromEmail', 'table-row', 'radio', false );"] ); - - $this->add('select', 'from_email_address', ts('Receipt From'), $this->_fromEmails, FALSE, ['class' => 'crm-select2 huge']); + $this->add('select', 'from_email_address', ts('Receipt From'), CRM_Core_BAO_Email::getFromEmail(), FALSE, ['class' => 'crm-select2 huge']); } $this->add('datepicker', 'acknowledge_date', ts('Acknowledgment Date'), [], FALSE, ['time' => FALSE]); @@ -358,25 +345,28 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { // make this form an upload since we dont know if the custom data injected dynamically // is of type file etc $uploadNames = $this->get( 'uploadNames' ); - $this->addButtons([ - [ - 'type' => 'upload', - 'name' => ts('Save'), - 'js' => ['onclick' => 'return verify( );'], - 'isDefault' => TRUE, - ], - [ - 'type' => 'upload', - 'name' => ts('Save and New'), - 'js' => ['onclick' => 'return verify( );'], - 'subName' => 'new', - ], - [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ], - ]); + $buttons = [ + [ + 'type' => 'upload', + 'name' => ts('Save'), + 'js' => ['onclick' => 'return verify();'], + 'isDefault' => TRUE, + ], + ]; + if (!$this->_id) { + $buttons[] = [ + 'type' => 'upload', + 'name' => ts('Save and New'), + 'js' => ['onclick' => 'return verify();'], + 'subName' => 'new', + ]; + } + $buttons[] = [ + 'type' => 'cancel', + 'name' => ts('Cancel'), + ]; + $this->addButtons($buttons); $this->addFormRule(['CRM_Pledge_Form_Pledge', 'formRule'], $this); if ($this->_action & CRM_Core_Action::VIEW) { @@ -538,7 +528,7 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { // send Acknowledgment mail. CRM_Pledge_BAO_Pledge::sendAcknowledgment($this, $params); - $statusMsg .= ' ' . ts('An acknowledgment email has been sent to %1.<br />', [1 => $this->userEmail]); + $statusMsg .= ' ' . ts('An acknowledgment email has been sent to %1.<br />', [1 => $this->getContactValue('email_primary.email')]); // get the first valid payment id. $nextPaymentID = PledgePayment::get() ->addWhere('pledge_id', '=', $pledgeID) @@ -569,7 +559,7 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { CRM_Core_Session::setStatus($statusMsg, ts('Payment Due'), 'info'); $buttonName = $this->controller->getButtonName(); - if ($this->_context === 'standalone') { + if ($this->getContext() === 'standalone') { if ($buttonName === $this->getButtonName('upload', 'new')) { $session->replaceUserContext(CRM_Utils_System::url('civicrm/pledge/add', 'reset=1&action=add&context=standalone' diff --git a/civicrm/CRM/Price/BAO/LineItem.php b/civicrm/CRM/Price/BAO/LineItem.php index 4bfbaebdfd..4d4069054a 100644 --- a/civicrm/CRM/Price/BAO/LineItem.php +++ b/civicrm/CRM/Price/BAO/LineItem.php @@ -1279,11 +1279,14 @@ WHERE li.contribution_id = %1"; * clauses being added. Additional filters joining on the participant * and membership tables just seem too non-performant. * + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @inheritDoc */ - public function addSelectWhereClause(): array { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { $clauses['contribution_id'] = CRM_Utils_SQL::mergeSubquery('Contribution'); - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } diff --git a/civicrm/CRM/Price/BAO/PriceSet.php b/civicrm/CRM/Price/BAO/PriceSet.php index f7ca200819..874fcd2085 100644 --- a/civicrm/CRM/Price/BAO/PriceSet.php +++ b/civicrm/CRM/Price/BAO/PriceSet.php @@ -548,12 +548,7 @@ WHERE id = %1"; */ public static function initSet(&$form, $entityTable = 'civicrm_event', $doNotIncludeExpiredFields = FALSE, $priceSetId = NULL) { CRM_Core_Error::deprecatedFunctionWarning('no alternative'); - //check if price set is is_config - if (is_numeric($priceSetId)) { - if (CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $priceSetId, 'is_quick_config') && $form->getVar('_name') != 'Participant') { - $form->assign('quickConfig', 1); - } - } + // get price info if ($priceSetId) { if ($form->_action & CRM_Core_Action::UPDATE) { @@ -809,7 +804,6 @@ WHERE id = %1"; $priceSet = self::getSetDetail($priceSetId, TRUE, $validFieldsOnly); $form->_priceSet = $priceSet[$priceSetId] ?? NULL; $validPriceFieldIds = array_keys($form->_priceSet['fields']); - $form->assign('quickConfig', (int) CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $priceSetId, 'is_quick_config')); // Mark which field should have the auto-renew checkbox, if any. CRM-18305 if (!empty($form->_membershipTypeValues) && is_array($form->_membershipTypeValues)) { diff --git a/civicrm/CRM/Price/Page/Field.php b/civicrm/CRM/Price/Page/Field.php index b519c129d6..fb46119796 100644 --- a/civicrm/CRM/Price/Page/Field.php +++ b/civicrm/CRM/Price/Page/Field.php @@ -62,28 +62,33 @@ class CRM_Price_Page_Field extends CRM_Core_Page { 'url' => 'civicrm/admin/price/field/edit', 'qs' => 'action=update&reset=1&sid=%%sid%%&fid=%%fid%%', 'title' => ts('Edit Price'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::UPDATE), ], CRM_Core_Action::PREVIEW => [ 'name' => ts('Preview Field'), 'url' => 'civicrm/admin/price/field/edit', 'qs' => 'action=preview&reset=1&sid=%%sid%%&fid=%%fid%%', 'title' => ts('Preview Price'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::PREVIEW), ], CRM_Core_Action::DISABLE => [ 'name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Price'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DISABLE), ], CRM_Core_Action::ENABLE => [ 'name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Price'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::ENABLE), ], CRM_Core_Action::DELETE => [ 'name' => ts('Delete'), 'url' => 'civicrm/admin/price/field/edit', 'qs' => 'action=delete&reset=1&sid=%%sid%%&fid=%%fid%%', 'title' => ts('Delete Price'), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::DELETE), ], ]; } diff --git a/civicrm/CRM/Price/Page/Option.php b/civicrm/CRM/Price/Page/Option.php index ee633afe64..c2a6ad7763 100644 --- a/civicrm/CRM/Price/Page/Option.php +++ b/civicrm/CRM/Price/Page/Option.php @@ -71,28 +71,33 @@ class CRM_Price_Page_Option extends CRM_Core_Page { 'url' => 'civicrm/admin/price/field/option/edit', 'qs' => 'reset=1&action=update&oid=%%oid%%&fid=%%fid%%&sid=%%sid%%', 'title' => ts('Edit Price Option'), + 'weight' => -50, ], CRM_Core_Action::VIEW => [ 'name' => ts('View'), 'url' => 'civicrm/admin/price/field/option/edit', 'qs' => 'action=view&oid=%%oid%%', 'title' => ts('View Price Option'), + 'weight' => CRM_Core_Action::getLabel(CRM_Core_Action::VIEW), ], CRM_Core_Action::DISABLE => [ 'name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Price Option'), + 'weight' => CRM_Core_Action::getLabel(CRM_Core_Action::DISABLE), ], CRM_Core_Action::ENABLE => [ 'name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Price Option'), + 'weight' => CRM_Core_Action::getLabel(CRM_Core_Action::ENABLE), ], CRM_Core_Action::DELETE => [ 'name' => ts('Delete'), 'url' => 'civicrm/admin/price/field/option/edit', 'qs' => 'action=delete&oid=%%oid%%', 'title' => ts('Disable Price Option'), + 'weight' => CRM_Core_Action::getLabel(CRM_Core_Action::DELETE), ], ]; } diff --git a/civicrm/CRM/Profile/Form.php b/civicrm/CRM/Profile/Form.php index 247f41705b..80605866ec 100644 --- a/civicrm/CRM/Profile/Form.php +++ b/civicrm/CRM/Profile/Form.php @@ -795,6 +795,7 @@ class CRM_Profile_Form extends CRM_Core_Form { $this->assign('id', $this->_id); $this->assign('mode', $this->_mode); + $this->assign('isHideFieldSet', ($this->_mode === self::MODE_CREATE || $this->_mode === self::MODE_EDIT)); $this->assign('action', $this->_action); $this->assign('fields', $this->_fields); $this->assign('fieldset', (isset($this->_fieldset)) ? $this->_fieldset : ""); diff --git a/civicrm/CRM/Profile/Form/Edit.php b/civicrm/CRM/Profile/Form/Edit.php index 88c2198607..09d05d9c0e 100644 --- a/civicrm/CRM/Profile/Form/Edit.php +++ b/civicrm/CRM/Profile/Form/Edit.php @@ -54,6 +54,7 @@ class CRM_Profile_Form_Edit extends CRM_Profile_Form { $this->assign('context', $this->_context); if ($this->_blockNo) { + CRM_Core_Error::deprecatedWarning('code believed to be unreachable'); $this->assign('blockNo', $this->_blockNo); $this->assign('prefix', $this->_prefix); } diff --git a/civicrm/CRM/Queue/BAO/Queue.php b/civicrm/CRM/Queue/BAO/Queue.php index 665c9908eb..d608767ceb 100644 --- a/civicrm/CRM/Queue/BAO/Queue.php +++ b/civicrm/CRM/Queue/BAO/Queue.php @@ -20,13 +20,13 @@ */ class CRM_Queue_BAO_Queue extends CRM_Queue_DAO_Queue implements \Civi\Core\HookInterface { - public function addSelectWhereClause(): array { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { $clauses = []; if (!\CRM_Core_Permission::check('administer queues')) { $cid = (int) CRM_Core_Session::getLoggedInContactID(); $clauses['id'] = "IN (SELECT queue_id FROM `civicrm_user_job` WHERE created_id = $cid)"; } - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } diff --git a/civicrm/CRM/Queue/ErrorPolicy.php b/civicrm/CRM/Queue/ErrorPolicy.php index 178591bbd2..9246036f9b 100644 --- a/civicrm/CRM/Queue/ErrorPolicy.php +++ b/civicrm/CRM/Queue/ErrorPolicy.php @@ -26,7 +26,21 @@ * will be necessary to get reuse from the other parts of this class. */ class CRM_Queue_ErrorPolicy { - public $active; + + /** + * @var bool + */ + protected $active; + + /** + * @var int + */ + protected $level; + + /** + * @var array + */ + protected $backup; /** * @param null|int $level @@ -43,7 +57,7 @@ class CRM_Queue_ErrorPolicy { /** * Enable the error policy. */ - public function activate() { + protected function activate() { $this->active = TRUE; $this->backup = []; foreach ([ @@ -55,14 +69,12 @@ class CRM_Queue_ErrorPolicy { ini_set($key, 0); } set_error_handler([$this, 'onError'], $this->level); - // FIXME make this temporary/reversible } /** * Disable the error policy. */ - public function deactivate() { - $this->errorScope = NULL; + protected function deactivate() { restore_error_handler(); foreach ([ 'display_errors', @@ -137,7 +149,7 @@ class CRM_Queue_ErrorPolicy { * @param array $error * The PHP error (with "type", "message", etc). */ - public function reportError($error) { + protected function reportError($error) { $response = [ 'is_error' => 1, 'is_continue' => 0, @@ -158,7 +170,7 @@ class CRM_Queue_ErrorPolicy { * @param Exception $e * The unhandled exception. */ - public function reportException(Exception $e) { + protected function reportException(Exception $e) { CRM_Core_Error::debug_var('CRM_Queue_ErrorPolicy_reportException', CRM_Core_Error::formatTextException($e)); $response = [ diff --git a/civicrm/CRM/Queue/Queue.php b/civicrm/CRM/Queue/Queue.php index 9ad305a928..a7774f20d9 100644 --- a/civicrm/CRM/Queue/Queue.php +++ b/civicrm/CRM/Queue/Queue.php @@ -59,9 +59,29 @@ abstract class CRM_Queue_Queue { * @throws \CRM_Core_Exception */ public function isActive(): bool { + return ($this->getStatus() === 'active'); + } + + /** + * @return string|null + * @throws \CRM_Core_Exception + * @see \CRM_Queue_BAO_Queue::getStatuses() + */ + public function getStatus() { + // Queues work with concurrent processes. We want to make sure status info is up-to-date (never cached). $status = CRM_Core_DAO::getFieldValue('CRM_Queue_DAO_Queue', $this->_name, 'status', 'name', TRUE); - // Note: In the future, we may want to incorporate other data (like maintenance-mode or upgrade-status) in deciding active queues. - return ($status === 'active'); + if ($status === 'active') { + $suspend = CRM_Core_DAO::singleValueQuery('SELECT value FROM civicrm_setting WHERE name = "queue_paused" AND domain_id = %1', [ + 1 => [CRM_Core_BAO_Domain::getDomain()->id, 'Positive'], + ]); + if (!empty(CRM_Utils_String::unserialize($suspend))) { + $status = 'paused'; + } + } + CRM_Utils_Hook::queueActive($status, $this->getName(), $this->queueSpec); + // Note in future we might want to consider whether an upgrade is in progress. + // Should we set the setting at that point? + return $status; } /** diff --git a/civicrm/CRM/Report/Form/Activity.php b/civicrm/CRM/Report/Form/Activity.php index 395a9e863c..536d6695f9 100644 --- a/civicrm/CRM/Report/Form/Activity.php +++ b/civicrm/CRM/Report/Form/Activity.php @@ -36,17 +36,23 @@ class CRM_Report_Form_Activity extends CRM_Report_Form { */ protected $groupFilterNotOptimised = TRUE; + /** + * @var array|int + */ + private $engagementLevels; + + /** + * @var array + */ + private $activityTypes; + /** * Class constructor. - * - * @throws \CRM_Core_Exception */ public function __construct() { // There could be multiple contacts. We not clear on which contact id to display. // Lets hide it for now. $this->_exposeContactID = FALSE; - // if navigated from count link of activity summary reports. - $this->_resetDateFilter = CRM_Utils_Request::retrieve('resetDateFilter', 'Boolean'); $components = CRM_Core_Component::getEnabledComponents(); $campaignEnabled = !empty($components['CiviCampaign']); @@ -87,21 +93,21 @@ class CRM_Report_Form_Activity extends CRM_Report_Form { 'name' => 'sort_name', 'title' => ts('Assignee Name'), 'alias' => 'civicrm_contact_assignee', - 'dbAlias' => "civicrm_contact_assignee.sort_name", + 'dbAlias' => 'civicrm_contact_assignee.sort_name', 'default' => TRUE, ], 'contact_target' => [ 'name' => 'sort_name', 'title' => ts('Target Name'), 'alias' => 'civicrm_contact_target', - 'dbAlias' => "civicrm_contact_target.sort_name", + 'dbAlias' => 'civicrm_contact_target.sort_name', 'default' => TRUE, ], 'contact_target_birth' => [ 'name' => 'birth_date', 'title' => ts('Target Birth Date'), 'alias' => 'civicrm_contact_target', - 'dbAlias' => "civicrm_contact_target.birth_date", + 'dbAlias' => 'civicrm_contact_target.birth_date', ], 'contact_target_gender' => [ 'name' => 'gender_id', @@ -470,7 +476,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form { } } } - elseif ($recordType == 'final') { + elseif ($recordType === 'final') { $this->_selectClauses = $this->_selectAliasesTotal; foreach ($this->_selectClauses as $key => $clause) { // @todo - fix up the way the tables are declared in construct & remove this. @@ -495,7 +501,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form { unset($this->_selectAliases[$key]); } - if ($recordType == 'target') { + if ($recordType === 'target') { foreach ($this->_columns['civicrm_address']['order_bys'] as $fieldName => $field) { $orderByFld = $this->_columns['civicrm_address']['order_bys'][$fieldName]; $fldInfo = $this->_columns['civicrm_address']['fields'][$fieldName]; @@ -722,7 +728,7 @@ GROUP BY civicrm_activity_id $having {$this->_orderBy}"; * * @return string */ - public function buildQuery($applyLimit = TRUE) { + public function buildQuery($applyLimit = TRUE): string { $activityContacts = CRM_Activity_BAO_ActivityContact::buildOptions('record_type_id', 'validate'); $sourceID = CRM_Utils_Array::key('Activity Source', $activityContacts); @@ -816,7 +822,7 @@ GROUP BY civicrm_activity_id $having {$this->_orderBy}"; $groupByFromSelect = CRM_Contact_BAO_Query::getGroupByFromSelectColumns($this->_selectClauses, 'civicrm_activity_id'); - $this->_where = " WHERE (1)"; + $this->_where = ' WHERE (1)'; $this->buildPermissionClause(); if ($this->_aclWhere) { $this->_where .= " AND {$this->_aclWhere} "; @@ -846,7 +852,8 @@ GROUP BY civicrm_activity_id $having {$this->_orderBy}"; * Override parent to reset value of activity_date. */ public function beginPostProcessCommon() { - if (!empty($this->_resetDateFilter)) { + if (CRM_Utils_Request::retrieve('resetDateFilter', 'Boolean')) { + // if navigated from count link of activity summary reports. $this->_formValues['activity_date_time_relative'] = NULL; } } @@ -930,7 +937,7 @@ GROUP BY civicrm_activity_id $having {$this->_orderBy}"; if (array_key_exists('civicrm_contact_contact_source', $row)) { if ($value = $row['civicrm_contact_contact_source_id']) { if ($viewLinks) { - $url = CRM_Utils_System::url("civicrm/contact/view", + $url = CRM_Utils_System::url('civicrm/contact/view', 'reset=1&cid=' . $value, $this->_absoluteUrl ); @@ -949,7 +956,7 @@ GROUP BY civicrm_activity_id $having {$this->_orderBy}"; if ($viewLinks) { foreach ($assigneeContactIds as $id => $value) { if (isset($value) && isset($assigneeNames[$id])) { - $url = CRM_Utils_System::url("civicrm/contact/view", + $url = CRM_Utils_System::url('civicrm/contact/view', 'reset=1&cid=' . $value, $this->_absoluteUrl ); @@ -1039,9 +1046,9 @@ GROUP BY civicrm_activity_id $having {$this->_orderBy}"; array_key_exists('civicrm_activity_status_id', $row) ) { if (CRM_Utils_Date::overdue($rows[$rowNum]['civicrm_activity_activity_date_time']) && - $activityStatus[$row['civicrm_activity_status_id']] != 'Completed' + $activityStatus[$row['civicrm_activity_status_id']] !== 'Completed' ) { - $rows[$rowNum]['class'] = "status-overdue"; + $rows[$rowNum]['class'] = 'status-overdue'; $entryFound = TRUE; } } @@ -1075,7 +1082,6 @@ GROUP BY civicrm_activity_id $having {$this->_orderBy}"; foreach (array_merge($sectionAliases, $this->_selectAliases) as $alias) { $ifnulls[] = "ifnull($alias, '') as $alias"; } - $this->_select = "SELECT " . implode(", ", $ifnulls); $this->_select = CRM_Contact_BAO_Query::appendAnyValueToSelect($ifnulls, $sectionAliases); $query = $this->_select . diff --git a/civicrm/CRM/UF/Form/AbstractPreview.php b/civicrm/CRM/UF/Form/AbstractPreview.php index a1e6c0414b..87bd1eaa0b 100644 --- a/civicrm/CRM/UF/Form/AbstractPreview.php +++ b/civicrm/CRM/UF/Form/AbstractPreview.php @@ -37,20 +37,11 @@ class CRM_UF_Form_AbstractPreview extends CRM_Core_Form { * @param bool $isSingleField * @param bool $flag */ - public function setProfile($fields, $isSingleField = FALSE, $flag = FALSE) { - if ($isSingleField) { - $this->assign('previewField', $isSingleField); - } - - if ($flag) { - $this->assign('viewOnly', FALSE); - } - else { - $this->assign('viewOnly', TRUE); - } - + public function setProfile(array $fields, bool $isSingleField = FALSE, bool $flag = FALSE): void { + $this->assign('previewField', $isSingleField); + $this->assign('viewOnly', !$flag); $this->set('fieldId', NULL); - $this->assign("fields", $fields); + $this->assign('fields', $fields); $this->_fields = $fields; } diff --git a/civicrm/CRM/UF/Form/Preview.php b/civicrm/CRM/UF/Form/Preview.php index c1788f5be1..b3575af62f 100644 --- a/civicrm/CRM/UF/Form/Preview.php +++ b/civicrm/CRM/UF/Form/Preview.php @@ -48,7 +48,7 @@ class CRM_UF_Form_Preview extends CRM_UF_Form_AbstractPreview { } $name = $fieldDAO->field_name; - if ($fieldDAO->field_name == 'phone_and_ext') { + if ($fieldDAO->field_name === 'phone_and_ext') { $name = 'phone'; } @@ -85,7 +85,7 @@ class CRM_UF_Form_Preview extends CRM_UF_Form_AbstractPreview { $fieldArray[$name] = $fields[$name]; - if ($fieldDAO->field_name == 'phone_and_ext') { + if ($fieldDAO->field_name === 'phone_and_ext') { $phoneExtField = str_replace('phone', 'phone_ext', $name); $fieldArray[$phoneExtField] = $fields[$phoneExtField]; } diff --git a/civicrm/CRM/Upgrade/Form.php b/civicrm/CRM/Upgrade/Form.php index 87ad4c5cc3..27cfa35e24 100644 --- a/civicrm/CRM/Upgrade/Form.php +++ b/civicrm/CRM/Upgrade/Form.php @@ -141,34 +141,6 @@ class CRM_Upgrade_Form extends CRM_Core_Form { return ($versionParts[2] == $release); } - /** - * @param $constraints - * - * @return array - */ - public function checkSQLConstraints(&$constraints) { - $pass = $fail = 0; - foreach ($constraints as $constraint) { - if ($this->checkSQLConstraint($constraint)) { - $pass++; - } - else { - $fail++; - } - return [$pass, $fail]; - } - } - - /** - * @param $constraint - * - * @return bool - */ - public function checkSQLConstraint($constraint) { - // check constraint here - return TRUE; - } - /** * @param string $fileName * @param bool $isQueryString diff --git a/civicrm/CRM/Upgrade/Incremental/php/FiveSixtySeven.php b/civicrm/CRM/Upgrade/Incremental/php/FiveSixtySeven.php new file mode 100644 index 0000000000..1f4941cf77 --- /dev/null +++ b/civicrm/CRM/Upgrade/Incremental/php/FiveSixtySeven.php @@ -0,0 +1,176 @@ +<?php +/* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ + */ + +/** + * Upgrade logic for the 5.67.x series. + * + * Each minor version in the series is handled by either a `5.67.x.mysql.tpl` file, + * or a function in this class named `upgrade_5_67_x`. + * If only a .tpl file exists for a version, it will be run automatically. + * If the function exists, it must explicitly add the 'runSql' task if there is a corresponding .mysql.tpl. + * + * This class may also implement `setPreUpgradeMessage()` and `setPostUpgradeMessage()` functions. + */ +class CRM_Upgrade_Incremental_php_FiveSixtySeven extends CRM_Upgrade_Incremental_Base { + + const MAILING_BATCH_SIZE = 500000; + + public function setPreUpgradeMessage(&$preUpgradeMessage, $rev, $currentVer = NULL) { + parent::setPreUpgradeMessage($preUpgradeMessage, $rev, $currentVer); + if ($rev === '5.67.alpha1') { + $customPrivacy = CRM_Core_DAO::executeQuery(' + SELECT value, label + FROM civicrm_option_value + WHERE is_active = 1 AND value NOT IN ("0", "1") + AND option_group_id = (SELECT id FROM civicrm_option_group WHERE name = "note_privacy")') + ->fetchMap('value', 'label'); + if ($customPrivacy) { + $preUpgradeMessage .= '<p>' + . ts('This site has custom note privacy options (%1) which may not work correctly after the upgrade, due to the deprecation of hook_civicrm_notePrivacy. If you are using this hook, see <a %2>developer documentation on updating your code</a>.', [1 => '"' . implode('", "', $customPrivacy) . '"', 2 => 'href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_notePrivacy/" target="_blank"']) . + '</p>'; + } + } + } + + /** + * Upgrade step; adds tasks including 'runSql'. + * + * @param string $rev + * The version number matching this function name + */ + public function upgrade_5_67_alpha1($rev): void { + $this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev); + $this->addTask('Make Note.privacy required', 'alterColumn', 'civicrm_note', 'privacy', "varchar(255) NOT NULL DEFAULT 0 COMMENT 'Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)'"); + $this->addTask('Make EntityFile.entity_table required', 'alterColumn', 'civicrm_entity_file', 'entity_table', "varchar(64) NOT NULL COMMENT 'physical tablename for entity being joined to file, e.g. civicrm_contact'"); + $this->addExtensionTask('Enable Authx extension', ['authx'], 1101); + $this->addExtensionTask('Enable Afform extension', ['org.civicrm.afform'], 1102); + $this->addTask('Add "civicrm_note" to "note_used_for" option group', 'addNoteNote'); + $this->addTask('Add cache_fill_took column to Group table', 'addColumn', 'civicrm_group', 'cache_fill_took', + 'DOUBLE DEFAULT NULL COMMENT "Seconds taken to fill smart group cache, not always related to cache_date"', + FALSE); + $this->addTask('Update civicrm_mailing_event_queue to permit deleting records from civicrm_mailing_job', 'updateMailingEventQueueTable'); + $this->addTask('Update CiviMail menus labels', 'updateMailingMenuLabels'); + } + + /** + * Upgrade step; adds tasks including 'runSql'. + * + * @param string $rev + * The version number matching this function name + */ + public function upgrade_5_67_beta2($rev): void { + // Repeat step from 5.66 because it was added late in the release-cycle + $this->addTask('Make ActionSchedule.name required', 'alterColumn', 'civicrm_action_schedule', 'name', "varchar(128) NOT NULL COMMENT 'Name of the scheduled action'"); + $this->addTask('Make Discount.entity_table required', 'alterColumn', 'civicrm_discount', 'entity_table', "varchar(64) NOT NULL COMMENT 'physical tablename for entity being joined to discount, e.g. civicrm_event'"); + } + + /** + * Some time ago, the labels for Mailing menu items were simplified for new + * installs. Now that the old strings have been removed from Transifex, it + * breaks translations, so we force the update, but only if the label was not + * customized (if name=label). + */ + public static function updateMailingMenuLabels(CRM_Queue_TaskContext $ctx): bool { + $changes = [ + 'Draft and Unscheduled Mailings' => 'Draft Mailings', + 'Scheduled and Sent Mailings' => 'Sent Mailings', + ]; + foreach ($changes as $old => $new) { + CRM_Core_DAO::executeQuery('UPDATE civicrm_navigation SET label = %1 WHERE name = %2 AND label = %3', [ + 1 => [$new, 'String'], + 2 => [$old, 'String'], + 3 => [$old, 'String'], + ]); + } + return TRUE; + } + + /** + * We want to add 2 columns & fix one index. This function allows us to + * do it in less sql statements (given they might be slow). + */ + public static function updateMailingEventQueueTable(CRM_Queue_TaskContext $ctx): bool { + $sql = ["MODIFY job_id int unsigned null comment 'Mailing Job'"]; + if (!CRM_Core_BAO_SchemaHandler::checkIfFieldExists('civicrm_mailing_event_queue', 'mailing_id')) { + $sql[] = "ADD COLUMN mailing_id int(10) unsigned DEFAULT NULL COMMENT 'Related mailing. Used for reporting on mailing success, if present.'"; + $sql[] = 'ADD CONSTRAINT FOREIGN KEY (`mailing_id`) REFERENCES `civicrm_mailing` (`id`) ON DELETE SET NULL'; + } + if (!CRM_Core_BAO_SchemaHandler::checkIfFieldExists('civicrm_mailing_event_queue', 'is_test')) { + $sql[] = 'ADD COLUMN is_test tinyint(4) NOT NULL DEFAULT 0'; + } + if (CRM_Core_BAO_SchemaHandler::checkFKExists('civicrm_mailing_event_queue', 'FK_civicrm_mailing_event_queue_job_id')) { + $sql[] = 'DROP FOREIGN KEY FK_civicrm_mailing_event_queue_job_id'; + } + if (empty($sql)) { + // If someone pre-upgraded to better manage a potentially slow query. + return TRUE; + } + try { + CRM_Core_DAO::executeQuery('ALTER TABLE civicrm_mailing_event_queue ' . implode(', ', $sql), [], FALSE, FALSE, FALSE, FALSE); + CRM_Core_DAO::executeQuery(' + ALTER TABLE `civicrm_mailing_event_queue` + ADD CONSTRAINT `FK_civicrm_mailing_event_queue_job_id` + FOREIGN KEY (`job_id`) + REFERENCES `civicrm_mailing_job`(`id`) ON DELETE SET NULL + ', [], FALSE, FALSE, FALSE, FALSE); + + [$minId, $maxId] = CRM_Core_DAO::executeQuery("SELECT coalesce(min(id),0), coalesce(max(id),0) + FROM civicrm_mailing_event_queue ")->getDatabaseResult()->fetchRow(); + for ($startId = $minId; $startId <= $maxId; $startId += self::MAILING_BATCH_SIZE) { + $endId = min($maxId, $startId + self::MAILING_BATCH_SIZE - 1); + $task = new CRM_Queue_Task([static::class, 'fillMailingEvents'], + [$startId, $endId], + sprintf('Backfill civicrm_mailing_event_queue (%d => %d)', $startId, $endId)); + $ctx->queue->createItem($task, ['weight' => -1]); + } + } + catch (\Civi\Core\Exception\DBQueryException $e) { + throw new CRM_Core_Exception( + 'db error message' . $e->getDBErrorMessage() + . 'message ' . $e->getMessage() + . "\n" + . 'sql ' . $e->getSQL() + . "\n" + . 'user info ' . $e->getUserInfo() + . "\n" + . 'debug info ' . $e->getCause() + . "\n" + . 'debug info ' . $e->getDebugInfo() + . "\n"); + } + return TRUE; + } + + public static function fillMailingEvents(CRM_Queue_TaskContext $ctx, int $startId, int $endId): bool { + CRM_Core_DAO::executeQuery(' +UPDATE civicrm_mailing_event_queue q +INNER JOIN civicrm_mailing_job job ON job.id = q.job_id +SET q.mailing_id = job.mailing_id, q.is_test=job.is_test +WHERE q.id >= %1 AND q.id <= %2 AND q.mailing_id IS NULL', + [ + 1 => [$startId, 'Int'], + 2 => [$endId, 'Int'], + ] + ); + return TRUE; + } + + public static function addNoteNote(CRM_Queue_TaskContext $ctx): bool { + CRM_Core_BAO_OptionValue::ensureOptionValueExists([ + 'option_group_id' => 'note_used_for', + 'label' => ts('Notes'), + 'name' => 'Note', + 'value' => 'civicrm_note', + ]); + return TRUE; + } + +} diff --git a/civicrm/CRM/Upgrade/Incremental/php/FiveSixtySix.php b/civicrm/CRM/Upgrade/Incremental/php/FiveSixtySix.php index b9213c1136..cc0bdd2853 100644 --- a/civicrm/CRM/Upgrade/Incremental/php/FiveSixtySix.php +++ b/civicrm/CRM/Upgrade/Incremental/php/FiveSixtySix.php @@ -83,17 +83,6 @@ class CRM_Upgrade_Incremental_php_FiveSixtySix extends CRM_Upgrade_Incremental_B } } - /** - * Upgrade step; adds tasks including 'runSql'. - * - * @param string $rev - * The version number matching this function name - */ - public function upgrade_5_66_1($rev): void { - $this->addTask('Make ActionSchedule.name required', 'alterColumn', 'civicrm_action_schedule', 'name', "varchar(128) NOT NULL COMMENT 'Name of the scheduled action'"); - $this->addTask('Make Discount.entity_table required', 'alterColumn', 'civicrm_discount', 'entity_table', "varchar(64) NOT NULL COMMENT 'physical tablename for entity being joined to discount, e.g. civicrm_event'"); - } - /** * Add fields to civicrm_mail_settings to allow more flexibility for email to activity * diff --git a/civicrm/CRM/Upgrade/Incremental/sql/5.67.alpha1.mysql.tpl b/civicrm/CRM/Upgrade/Incremental/sql/5.67.alpha1.mysql.tpl new file mode 100644 index 0000000000..54afcfc924 --- /dev/null +++ b/civicrm/CRM/Upgrade/Incremental/sql/5.67.alpha1.mysql.tpl @@ -0,0 +1,13 @@ +{* file to handle db changes in 5.67.alpha1 during upgrade *} + +UPDATE civicrm_note SET privacy = 0 WHERE privacy IS NULL; + +{* NULL values would be nonsensical and useless - no reason to keep them *} +DELETE FROM civicrm_entity_file WHERE entity_table IS NULL; + +{* Delete navigation links to old campaign dashboard *} +DELETE FROM `civicrm_navigation` WHERE `url` LIKE 'civicrm/campaign?reset=1%'; + +SELECT @country_id := id from civicrm_country where name = 'India' AND iso_code = 'IN'; +UPDATE `civicrm_state_province` SET abbreviation = 'MH' WHERE name = 'Maharashtra' AND country_id = @country_id; +UPDATE `civicrm_state_province` SET abbreviation = 'CG' WHERE name = 'Chhattisgarh' AND country_id = @country_id; diff --git a/civicrm/CRM/Utils/Address.php b/civicrm/CRM/Utils/Address.php index 62c5b2a88f..3e9b4fe0de 100644 --- a/civicrm/CRM/Utils/Address.php +++ b/civicrm/CRM/Utils/Address.php @@ -32,7 +32,7 @@ class CRM_Utils_Address { * The desired address format. * @param bool $microformat * If true indicates, the address to be built in hcard-microformat standard. - * @param bool $mailing + * @param bool $unused * Should ALWAYS be false. * @param string[] $tokenFields * @@ -44,24 +44,18 @@ class CRM_Utils_Address { $fields, $format = NULL, $microformat = FALSE, - $mailing = FALSE, + $unused = FALSE, $tokenFields = NULL ) { - $mailing = FALSE; if (!$format) { $format = Civi::settings()->get('address_format'); } - - if ($mailing) { - $format = Civi::settings()->get('mailing_format'); - } - $formatted = $format; $fullPostalCode = $fields['postal_code'] ?? NULL; if (!empty($fields['postal_code_suffix'])) { - $fullPostalCode .= "-$fields[postal_code_suffix]"; + $fullPostalCode .= '-' . $fields['postal_code_suffix']; } // make sure that some of the fields do have values @@ -78,36 +72,18 @@ class CRM_Utils_Address { } } - //CRM-16876 Display countries in all caps when in mailing mode. - if ($mailing && !empty($fields['country'])) { - if (Civi::settings()->get('hideCountryMailingLabels')) { - $domain = CRM_Core_BAO_Domain::getDomain(); - $domainLocation = CRM_Core_BAO_Location::getValues(['contact_id' => $domain->contact_id]); - $domainAddress = $domainLocation['address'][1]; - $domainCountryId = $domainAddress['country_id']; - if ($fields['country'] == CRM_Core_PseudoConstant::country($domainCountryId)) { - $fields['country'] = NULL; - } - else { - //Capitalization display on uppercase to contries with special characters - $fields['country'] = mb_convert_case($fields['country'], MB_CASE_UPPER, "UTF-8"); - } - } - else { - $fields['country'] = mb_convert_case($fields['country'], MB_CASE_UPPER, "UTF-8"); - } - } - if (!$microformat) { // replacements in case of Individual Name Format $replacements = [ 'contact.display_name' => $fields['display_name'] ?? NULL, - 'contact.individual_prefix' => $fields['individual_prefix'] ?? NULL, 'contact.formal_title' => $fields['formal_title'] ?? NULL, 'contact.first_name' => $fields['first_name'] ?? NULL, 'contact.middle_name' => $fields['middle_name'] ?? NULL, 'contact.last_name' => $fields['last_name'] ?? NULL, - 'contact.individual_suffix' => $fields['individual_suffix'] ?? NULL, + 'contact.individual_prefix' => $fields['prefix_id:label'] ?? ($fields['individual_prefix'] ?? NULL), + 'contact.prefix_id:label' => $fields['prefix_id:label'] ?? ($fields['individual_prefix'] ?? NULL), + 'contact.individual_suffix' => $fields['suffix_id:label'] ?? ($fields['individual_suffix'] ?? NULL), + 'contact.suffix_id:label' => $fields['suffix_id:label'] ?? ($fields['individual_suffix'] ?? NULL), 'contact.address_name' => $fields['address_name'] ?? NULL, 'contact.street_address' => $fields['street_address'] ?? NULL, 'contact.supplemental_address_1' => $fields['supplemental_address_1'] ?? NULL, diff --git a/civicrm/CRM/Utils/Array.php b/civicrm/CRM/Utils/Array.php index da71c11971..f1e2fd0ada 100644 --- a/civicrm/CRM/Utils/Array.php +++ b/civicrm/CRM/Utils/Array.php @@ -1413,4 +1413,28 @@ class CRM_Utils_Array { return $filtered; } + /** + * Changes array keys to meet the expectations of select2.js + * + * @param array $options + * @param string $label + * @param string $id + * @return array + */ + public static function formatForSelect2(array $options, string $label = 'label', string $id = 'id'): array { + foreach ($options as &$option) { + if (isset($option[$label])) { + $option['text'] = (string) $option[$label]; + } + if (isset($option[$id])) { + $option['id'] = (string) $option[$id]; + } + if (!empty($option['children'])) { + $option['children'] = self::formatForSelect2($option['children'], $label, $id); + } + $option = array_intersect_key($option, array_flip(['id', 'text', 'children', 'color', 'icon', 'description'])); + } + return $options; + } + } diff --git a/civicrm/CRM/Utils/EnglishNumber.php b/civicrm/CRM/Utils/EnglishNumber.php index c95bb6af21..37a8663cce 100644 --- a/civicrm/CRM/Utils/EnglishNumber.php +++ b/civicrm/CRM/Utils/EnglishNumber.php @@ -136,14 +136,14 @@ class CRM_Utils_EnglishNumber { $strBuf = strtolower(str_replace('-', '', $english)); foreach (self::$intervalsOfTen as $num => $name) { - if (CRM_Utils_String::startsWith($strBuf, strtolower($name))) { + if (str_starts_with($strBuf, strtolower($name))) { $intBuf += 10 * $num; $strBuf = substr($strBuf, strlen($name)); break; } } foreach (array_reverse(self::$lowNumbers, TRUE) as $num => $name) { - if (CRM_Utils_String::startsWith($strBuf, strtolower($name))) { + if (str_starts_with($strBuf, strtolower($name))) { $intBuf += $num; $strBuf = substr($strBuf, strlen($name)); break; diff --git a/civicrm/CRM/Utils/File.php b/civicrm/CRM/Utils/File.php index 37f2522a43..833204adbf 100644 --- a/civicrm/CRM/Utils/File.php +++ b/civicrm/CRM/Utils/File.php @@ -20,6 +20,11 @@ */ class CRM_Utils_File { + /** + * Used to remove md5 hash that was injected into uploaded file names. + */ + const HASH_REMOVAL_PATTERN = '/_[a-f0-9]{32}\./'; + /** * Given a file name, determine if the file contents make it an ascii file * @@ -394,7 +399,10 @@ class CRM_Utils_File { } /** - * Remove the 32 bit md5 we add to the fileName also remove the unknown tag if we added it. + * Remove 32 bit md5 hash prepended to the file suffix. + * + * Note: if the filename was munged with an `.unknown` suffix, this removes + * the md5 but doesn't undo the munging or remove the `.unknown` suffix. * * @param $name * @@ -402,7 +410,7 @@ class CRM_Utils_File { */ public static function cleanFileName($name) { // replace the last 33 character before the '.' with null - $name = preg_replace('/(_[\w]{32})\./', '.', $name); + $name = preg_replace(self::HASH_REMOVAL_PATTERN, '.', $name); return $name; } diff --git a/civicrm/CRM/Utils/Geocode/Google.php b/civicrm/CRM/Utils/Geocode/Google.php index 247a541096..abab6b313a 100644 --- a/civicrm/CRM/Utils/Geocode/Google.php +++ b/civicrm/CRM/Utils/Geocode/Google.php @@ -66,7 +66,7 @@ class CRM_Utils_Geocode_Google { if (!empty($values['state_province']) || (!empty($values['state_province_id']) && $values['state_province_id'] != 'null')) { if (!empty($values['state_province_id'])) { - $stateProvince = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_StateProvince', $values['state_province_id']); + $stateProvince = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_StateProvince', $values['state_province_id']) ?? ''; } else { if (!$stateName) { @@ -74,10 +74,10 @@ class CRM_Utils_Geocode_Google { $values['state_province'], 'name', 'abbreviation' - ); + ) ?? ''; } else { - $stateProvince = $values['state_province']; + $stateProvince = $values['state_province'] ?? ''; } } diff --git a/civicrm/CRM/Utils/Hook.php b/civicrm/CRM/Utils/Hook.php index a7ab628d48..a4599f2ad4 100644 --- a/civicrm/CRM/Utils/Hook.php +++ b/civicrm/CRM/Utils/Hook.php @@ -409,11 +409,27 @@ abstract class CRM_Utils_Hook { * @param string $op * The type of operation being performed. * @param string $objectName - * The name of the object. + * The name of the object. This is generally a CamelCase entity (eg `Contact` or `Activity`). + * Historical exceptions: 'CRM_Core_BAO_LocationType', 'CRM_Core_BAO_MessageTemplate' * @param int $objectId * The unique identifier for the object. * @param array $links * (optional) the links array (introduced in v3.2). + * Each of the links may have properties: + * - 'name' (string): the link text + * - 'url' (string): the link URL base path (like civicrm/contact/view, and fillable from $values) + * - 'qs' (string|array): the link URL query parameters to be used by sprintf() with $values (like reset=1&cid=%%id%% when $values['id'] is the contact ID) + * - 'title' (string) (optional): the text that appears when hovering over the link + * - 'extra' (optional): additional attributes for the <a> tag (fillable from $values) + * - 'bit' (optional): a binary number that will be filtered by $mask (sending nothing as $links['bit'] means the link will always display) + * - 'ref' (optional, recommended): a CSS class to apply to the <a> tag. + * - 'class' (string): Optional list of CSS classes + * - 'weight' (int): Weight is used to order the links. If not set 0 will be used but e-notices could occur. This was introduced in CiviCRM 5.63 so it will not have any impact on earlier versions of CiviCRM. + * - 'accessKey' (string) (optional): HTML access key. Single letter or empty string. + * - 'icon' (string) (optional): FontAwesome class name + * + * Depending on the specific screen, some fields (e.g. `icon`) may be ignored. + * If you have any idea of a clearer rule, then please update the docs. * @param int|null $mask * (optional) the bitmask to show/hide links. * @param array $values @@ -627,13 +643,18 @@ abstract class CRM_Utils_Hook { /** * @param string|CRM_Core_DAO $entity * @param array $clauses - * @return mixed + * @param int|null $userId + * User contact id. NULL == current user. + * @param array $conditions + * Values from WHERE or ON clause */ - public static function selectWhereClause($entity, &$clauses) { - $entityName = is_object($entity) ? _civicrm_api_get_entity_name_from_dao($entity) : $entity; + public static function selectWhereClause($entity, array &$clauses, int $userId = NULL, array $conditions = []): void { + $entityName = is_object($entity) ? CRM_Core_DAO_AllCoreTables::getBriefName(get_class($entity)) : $entity; $null = NULL; - return self::singleton()->invoke(['entity', 'clauses'], $entityName, $clauses, - $null, $null, $null, $null, + $userId = $userId ?? (int) CRM_Core_Session::getLoggedInContactID(); + self::singleton()->invoke(['entity', 'clauses', 'userId', 'conditions'], + $entityName, $clauses, $userId, $conditions, + $null, $null, 'civicrm_selectWhereClause' ); } @@ -771,7 +792,7 @@ abstract class CRM_Utils_Hook { * @return null * the return value is ignored */ - public static function managed(&$entities, ?array $modules = NULL) { + public static function managed(array &$entities, ?array $modules = NULL) { $null = NULL; self::singleton()->invoke(['entities', 'modules'], $entities, $modules, $null, $null, $null, $null, @@ -1425,18 +1446,48 @@ abstract class CRM_Utils_Hook { } /** - * This hook is called soon after the CRM_Core_Config object has ben initialized. * You can use this hook to modify the config object and hence behavior of CiviCRM dynamically. * - * @param CRM_Core_Config|array $config + * In *typical* page-loads, this hook fires one time. However, the hook may fire multiple times if... + * + * - the process is executing test-suites, or + * - the process involves some special configuration-changes, or + * - the process begins with the "extern" bootstrap process (aka `loadBootStrap()`) + * N.B. For "extern", CiviCRM initially boots without having access to the UF APIs. + * When the UF eventually boots, it may re-fire the event (for the benefit UF add-ons). + * + * The possibility of multiple invocations means that most consumers should be guarded. + * When registering resources, consult the `$flags`. + * + * function hook_civicrm_config($config, $flags = NULL) { + * if ($flags['...']) { + * Civi::dispatcher()->addListener(...); + * CRM_Core_Smarty::singleton()->addTemplateDir(...); + * } + * } + * + * @param CRM_Core_Config $config * The config object + * @param array|NULL $flags + * Mix of flags: + * - civicrm: TRUE if this invocation is intended for CiviCRM extensions + * - uf: TRUE if this invocation is intended for UF modules (Drupal/Joomla/etc) + * - instances: The number of distinct copies of `CRM_Core_Config` which have been initialized. + * + * The value of `$flags` is NULL when executing on an older CiviCRM environments (<=5.65). * * @return mixed */ - public static function config(&$config) { + public static function config(&$config, ?array $flags = NULL) { + static $count = 0; + if (!empty($flags['civicrm'])) { + $count++; + } + $defaultFlags = ['civicrm' => FALSE, 'uf' => FALSE, 'instances' => $count]; + $flags = array_merge($defaultFlags, $flags); $null = NULL; - return self::singleton()->invoke(['config'], $config, - $null, $null, $null, $null, $null, + return self::singleton()->invoke(['config', 'flags'], $config, + $flags, $null, $null, $null, $null, 'civicrm_config' ); } @@ -1518,19 +1569,20 @@ abstract class CRM_Utils_Hook { } /** - * This hook provides a way to override the default privacy behavior for notes. - * + * Deprecated: use hook_civicrm_selectWhereClause instead. + * @deprecated since 5.67 will be removed around 5.85 + * . * @param array &$noteValues - * Associative array of values for this note - * - * @return mixed */ public static function notePrivacy(&$noteValues) { $null = NULL; - return self::singleton()->invoke(['noteValues'], $noteValues, + self::singleton()->invoke(['noteValues'], $noteValues, $null, $null, $null, $null, $null, 'civicrm_notePrivacy' ); + if (isset($noteValues['notePrivacy_hidden'])) { + CRM_Core_Error::deprecatedFunctionWarning('hook_civicrm_selectWhereClause', 'hook_civicrm_notePrivacy'); + } } /** @@ -2964,6 +3016,33 @@ abstract class CRM_Utils_Hook { ); } + /** + * Should queue processing proceed. + * + * This hook is called when a background process attempts to claim an item from + * the queue to process. A hook could alter the status from 'active' to denote + * that the server is busy & hence no item should be claimed and processed at + * this time. + * + * @param string $status + * This will be set to active. It is recommended hooks change it to 'paused' + * to prevent queue processing (although currently any value other than active + * is treated as inactive 'paused') + * @param string $queueName + * The name of the queue. Equivalent to civicrm_queue.name + * @param array $queueSpecification + * Array of information about the queue loaded from civicrm_queue. + * + * @see https://docs.civicrm.org/dev/en/latest/framework/queues/ + */ + public static function queueActive(string &$status, string $queueName, array $queueSpecification): void { + $null = NULL; + self::singleton()->invoke(['status', 'queueName', 'queueSpecification'], $status, + $queueName, $queueSpecification, $null, $null, $null, + 'civicrm_queueActive' + ); + } + /** * Fire `hook_civicrm_queueRun_{$runner}`. * diff --git a/civicrm/CRM/Utils/Mail/IncomingMail.php b/civicrm/CRM/Utils/Mail/IncomingMail.php index 04eeb841b9..4bd444bb35 100644 --- a/civicrm/CRM/Utils/Mail/IncomingMail.php +++ b/civicrm/CRM/Utils/Mail/IncomingMail.php @@ -209,7 +209,7 @@ class CRM_Utils_Mail_IncomingMail { [, $this->action, $this->jobID, $this->queueID, $this->hash] = $matches; } if ($this->isVerp()) { - $queue = CRM_Mailing_Event_BAO_MailingEventQueue::verify($this->getJobID(), $this->getQueueID(), $this->getHash()); + $queue = CRM_Mailing_Event_BAO_MailingEventQueue::verify(NULL, $this->getQueueID(), $this->getHash()); if (!$queue) { throw new CRM_Core_Exception('Contact could not be found from civimail response'); } diff --git a/civicrm/CRM/Utils/Mail/Logger.php b/civicrm/CRM/Utils/Mail/Logger.php index 66e75b704b..80f51b6b69 100644 --- a/civicrm/CRM/Utils/Mail/Logger.php +++ b/civicrm/CRM/Utils/Mail/Logger.php @@ -33,7 +33,7 @@ class CRM_Utils_Mail_Logger { public static function filter($mailer, &$recipients, &$headers, &$body) { if (defined('CIVICRM_MAIL_LOG')) { static::log($recipients, $headers, $body); - if (!defined('CIVICRM_MAIL_LOG_AND_SEND') && !defined('CIVICRM_MAIL_LOG_AND SEND')) { + if (!defined('CIVICRM_MAIL_LOG_AND_SEND')) { return TRUE; } } diff --git a/civicrm/CRM/Utils/SQL.php b/civicrm/CRM/Utils/SQL.php index 981d7cb6e5..2f5e078432 100644 --- a/civicrm/CRM/Utils/SQL.php +++ b/civicrm/CRM/Utils/SQL.php @@ -52,27 +52,62 @@ class CRM_Utils_SQL { /** * Helper function for adding the permissioned subquery from one entity onto another * - * @param string $entity + * @param string $entityName * @param string $joinColumn * @return array */ - public static function mergeSubquery($entity, $joinColumn = 'id') { - require_once 'api/v3/utils.php'; - $baoName = _civicrm_api3_get_BAO($entity); + public static function mergeSubquery($entityName, $joinColumn = 'id') { + $baoName = CRM_Core_DAO_AllCoreTables::getBAOClassName(CRM_Core_DAO_AllCoreTables::getFullName($entityName)); $bao = new $baoName(); - $clauses = $subclauses = []; - foreach ((array) $bao->addSelectWhereClause() as $field => $vals) { - if ($vals && $field == $joinColumn) { - $clauses = array_merge($clauses, (array) $vals); + $fields = $bao::getSupportedFields(); + $mergeClauses = $subClauses = []; + foreach ((array) $bao->addSelectWhereClause($entityName) as $fieldName => $fieldClauses) { + if ($fieldClauses) { + foreach ((array) $fieldClauses as $fieldClause) { + $formattedClause = CRM_Utils_SQL::prefixFieldNames($fieldClause, array_keys($fields), $bao->tableName()); + // Same as join column with no additional fields - can be added directly + if ($fieldName === $joinColumn && $fieldClause === $formattedClause) { + $mergeClauses[] = $formattedClause; + } + // Arrays of arrays get joined with OR (similar to CRM_Core_Permission::check) + elseif (is_array($formattedClause)) { + $subClauses[] = "(($fieldName " . implode(") OR ($fieldName ", $formattedClause) . '))'; + } + else { + $subClauses[] = "$fieldName $formattedClause"; + } + } } - elseif ($vals) { - $subclauses[] = "$field " . implode(" AND $field ", (array) $vals); + } + if ($subClauses) { + $mergeClauses[] = "IN (SELECT `$joinColumn` FROM `" . $bao->tableName() . "` WHERE " . implode(' AND ', $subClauses) . ")"; + } + return $mergeClauses; + } + + /** + * Walk a nested array and replace "{field_name}" with "`tableAlias`.`field_name`" + * + * @param string|array $clause + * @param array $fieldNames + * @param string $tableAlias + * @return string|array + */ + public static function prefixFieldNames(&$clause, array $fieldNames, string $tableAlias) { + if (is_array($clause)) { + foreach ($clause as $index => $subclause) { + $clause[$index] = self::prefixFieldNames($subclause, $fieldNames, $tableAlias); } } - if ($subclauses) { - $clauses[] = "IN (SELECT `$joinColumn` FROM `" . $bao->tableName() . "` WHERE " . implode(' AND ', $subclauses) . ")"; + if (is_string($clause) && str_contains($clause, '{')) { + $find = $replace = []; + foreach ($fieldNames as $fieldName) { + $find[] = '{' . $fieldName . '}'; + $replace[] = '`' . $tableAlias . '`.`' . $fieldName . '`'; + } + $clause = str_replace($find, $replace, $clause); } - return $clauses; + return $clause; } /** diff --git a/civicrm/CRM/Utils/SQL/Insert.php b/civicrm/CRM/Utils/SQL/Insert.php index 0a3c509866..dc256fc95c 100644 --- a/civicrm/CRM/Utils/SQL/Insert.php +++ b/civicrm/CRM/Utils/SQL/Insert.php @@ -145,7 +145,12 @@ class CRM_Utils_SQL_Insert { $escapedRow = []; foreach ($this->columns as $column) { - $escapedRow[$column] = $this->escapeString($row[$column]); + if (is_bool($row[$column])) { + $escapedRow[$column] = (int) $row[$column]; + } + else { + $escapedRow[$column] = $this->escapeString($row[$column]); + } } $this->rows[] = $escapedRow; @@ -186,4 +191,19 @@ class CRM_Utils_SQL_Insert { return $sql; } + /** + * Execute the query. + * + * @param bool $i18nRewrite + * If the system has multilingual features, should the field/table + * names be rewritten? + * @return CRM_Core_DAO + * @see CRM_Core_DAO::executeQuery + * @see CRM_Core_I18n_Schema::rewriteQuery + */ + public function execute($i18nRewrite = TRUE) { + return CRM_Core_DAO::executeQuery($this->toSQL(), [], TRUE, NULL, + FALSE, $i18nRewrite); + } + } diff --git a/civicrm/CRM/Utils/SQL/Select.php b/civicrm/CRM/Utils/SQL/Select.php index 2e93386531..3ffcb18a43 100644 --- a/civicrm/CRM/Utils/SQL/Select.php +++ b/civicrm/CRM/Utils/SQL/Select.php @@ -581,13 +581,13 @@ class CRM_Utils_SQL_Select extends CRM_Utils_SQL_BaseParamQuery { $sql .= $join . "\n"; } if ($this->wheres) { - $sql .= 'WHERE (' . implode(') AND (', $this->wheres) . ")\n"; + $sql .= 'WHERE (' . implode(")\n AND (", $this->wheres) . ")\n"; } if ($this->groupBys) { $sql .= 'GROUP BY ' . implode(', ', $this->groupBys) . "\n"; } if ($this->havings) { - $sql .= 'HAVING (' . implode(') AND (', $this->havings) . ")\n"; + $sql .= 'HAVING (' . implode(")\n AND (", $this->havings) . ")\n"; } if ($this->orderBys) { $orderBys = CRM_Utils_Array::crmArraySortByField($this->orderBys, diff --git a/civicrm/CRM/Utils/String.php b/civicrm/CRM/Utils/String.php index 920edf7a84..a00905b238 100644 --- a/civicrm/CRM/Utils/String.php +++ b/civicrm/CRM/Utils/String.php @@ -876,7 +876,7 @@ class CRM_Utils_String { } /** - * Determine if $string starts with $fragment. + * @deprecated * * @param string $string * The long string. @@ -885,15 +885,12 @@ class CRM_Utils_String { * @return bool */ public static function startsWith($string, $fragment) { - if ($fragment === '') { - return TRUE; - } - $len = strlen($fragment ?? ''); - return substr(($string ?? ''), 0, $len) === $fragment; + CRM_Core_Error::deprecatedFunctionWarning('str_starts_with'); + return str_starts_with((string) $string, (string) $fragment); } /** - * Determine if $string ends with $fragment. + * @deprecated * * @param string $string * The long string. @@ -902,11 +899,8 @@ class CRM_Utils_String { * @return bool */ public static function endsWith($string, $fragment) { - if ($fragment === '') { - return TRUE; - } - $len = strlen($fragment ?? ''); - return substr(($string ?? ''), -1 * $len) === $fragment; + CRM_Core_Error::deprecatedFunctionWarning('str_ends_with'); + return str_ends_with((string) $string, (string) $fragment); } /** @@ -920,7 +914,7 @@ class CRM_Utils_String { $patterns = (array) $patterns; $result = []; foreach ($patterns as $pattern) { - if (!\CRM_Utils_String::endsWith($pattern, '*')) { + if (!str_ends_with($pattern, '*')) { if ($allowNew || in_array($pattern, $allStrings)) { $result[] = $pattern; } @@ -928,7 +922,7 @@ class CRM_Utils_String { else { $prefix = rtrim($pattern, '*'); foreach ($allStrings as $key) { - if (\CRM_Utils_String::startsWith($key, $prefix)) { + if (str_starts_with($key, $prefix)) { $result[] = $key; } } diff --git a/civicrm/CRM/Utils/System.php b/civicrm/CRM/Utils/System.php index c70d83af3a..03c260f8cc 100644 --- a/civicrm/CRM/Utils/System.php +++ b/civicrm/CRM/Utils/System.php @@ -26,7 +26,7 @@ * @method static mixed permissionDenied() Show access denied screen. * @method static mixed logout() Log out the current user. * @method static mixed updateCategories() Clear CMS caches related to the user registration/profile forms. - * @method static void appendBreadCrumb(array $breadCrumbs) Append an additional breadcrumb tag to the existing breadcrumbs. + * @method static void appendBreadCrumb(array $breadCrumbs) Append an additional breadcrumb link to the existing breadcrumbs. * @method static void resetBreadCrumb() Reset an additional breadcrumb tag to the existing breadcrumb. * @method static void addHTMLHead(string $head) Append a string to the head of the HTML file. * @method static string postURL(int $action) Determine the post URL for a form. diff --git a/civicrm/CRM/Utils/System/Backdrop.php b/civicrm/CRM/Utils/System/Backdrop.php index 98b6a601bc..7376977849 100644 --- a/civicrm/CRM/Utils/System/Backdrop.php +++ b/civicrm/CRM/Utils/System/Backdrop.php @@ -596,7 +596,7 @@ AND u.status = 1 // all the modules that are listening on it, does not apply // to J! and WP as yet // CRM-8655 - CRM_Utils_Hook::config($config); + CRM_Utils_Hook::config($config, ['uf' => TRUE]); if (!$loadUser) { return TRUE; @@ -642,6 +642,7 @@ AND u.status = 1 // CRM-8655: Backdrop wasn't available during bootstrap, so // hook_civicrm_config() never executes. + // FIXME: This call looks redundant with the earlier call in the same function. Consider removing it. CRM_Utils_Hook::config($config); return FALSE; diff --git a/civicrm/CRM/Utils/System/Base.php b/civicrm/CRM/Utils/System/Base.php index 83490874f9..4f21308146 100644 --- a/civicrm/CRM/Utils/System/Base.php +++ b/civicrm/CRM/Utils/System/Base.php @@ -56,6 +56,16 @@ abstract class CRM_Utils_System_Base { } } + /** + * Determine if the UF/CMS has been loaded already. + * + * This is generally TRUE. If using the "extern" boot protocol, then this may initially be false (until loadBootStrap runs). + * + * @internal + * @return bool + */ + abstract public function isLoaded(): bool; + abstract public function loadBootStrap($params = [], $loadUser = TRUE, $throwError = TRUE, $realPath = NULL); /** diff --git a/civicrm/CRM/Utils/System/Drupal.php b/civicrm/CRM/Utils/System/Drupal.php index 756b78ec29..c2ee73e305 100644 --- a/civicrm/CRM/Utils/System/Drupal.php +++ b/civicrm/CRM/Utils/System/Drupal.php @@ -513,7 +513,7 @@ AND u.status = 1 // all the modules that are listening on it, does not apply // to J! and WP as yet // CRM-8655 - CRM_Utils_Hook::config($config); + CRM_Utils_Hook::config($config, ['uf' => TRUE]); if (!$loadUser) { return TRUE; @@ -556,6 +556,7 @@ AND u.status = 1 $config->cleanURL = (int) variable_get('clean_url', '0'); // CRM-8655: Drupal wasn't available during bootstrap, so hook_civicrm_config never executes + // FIXME: This call looks redundant with the earlier call in the same function. Consider removing it. CRM_Utils_Hook::config($config); return FALSE; diff --git a/civicrm/CRM/Utils/System/Drupal8.php b/civicrm/CRM/Utils/System/Drupal8.php index af6821e182..2ddb21bb50 100644 --- a/civicrm/CRM/Utils/System/Drupal8.php +++ b/civicrm/CRM/Utils/System/Drupal8.php @@ -433,7 +433,7 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase { // We need to call the config hook again, since we now know // all the modules that are listening on it (CRM-8655). $config = CRM_Core_Config::singleton(); - CRM_Utils_Hook::config($config); + CRM_Utils_Hook::config($config, ['uf' => TRUE]); if ($loadUser) { if (!empty($params['uid']) && $username = \Drupal\user\Entity\User::load($params['uid'])->getAccountName()) { @@ -571,7 +571,9 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase { $module_data = \Drupal::service('extension.list.module')->reset()->getList(); foreach ($module_data as $module_name => $extension) { if (!isset($extension->info['hidden']) && $extension->origin != 'core' && $extension->status == 1) { - $modules[] = new CRM_Core_Module('drupal.' . $module_name, TRUE); + $modules[] = new CRM_Core_Module('drupal.' . $module_name, TRUE, + _ts('%1 (%2)', [1 => $extension->info['name'] ?? $module_name, _ts('Drupal')]) + ); } } return $modules; diff --git a/civicrm/CRM/Utils/System/DrupalBase.php b/civicrm/CRM/Utils/System/DrupalBase.php index c68a5c01f5..f32c33a009 100644 --- a/civicrm/CRM/Utils/System/DrupalBase.php +++ b/civicrm/CRM/Utils/System/DrupalBase.php @@ -40,6 +40,14 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { $this->supports_form_extensions = TRUE; } + /** + * @internal + * @return bool + */ + public function isLoaded(): bool { + return function_exists('t'); + } + /** * @inheritdoc */ @@ -293,9 +301,11 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { */ public function getModules() { $result = []; - $q = db_query('SELECT name, status FROM {system} WHERE type = \'module\' AND schema_version <> -1'); + $q = db_query('SELECT name, status, info FROM {system} WHERE type = \'module\' AND schema_version <> -1'); foreach ($q as $row) { - $result[] = new CRM_Core_Module('drupal.' . $row->name, $row->status == 1); + $info = $row->info ? \CRM_Utils_String::unserialize($row->info) : []; + $label = _ts('%1 (%2)', [1 => $info['name'] ?? $row->name, 2 => _ts(CIVICRM_UF)]); + $result[] = new CRM_Core_Module('drupal.' . $row->name, $row->status == 1, $label); } return $result; } diff --git a/civicrm/CRM/Utils/System/Joomla.php b/civicrm/CRM/Utils/System/Joomla.php index 1f215d2a4b..b7f92257fc 100644 --- a/civicrm/CRM/Utils/System/Joomla.php +++ b/civicrm/CRM/Utils/System/Joomla.php @@ -33,6 +33,14 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base { $this->is_drupal = FALSE; } + /** + * @internal + * @return bool + */ + public function isLoaded(): bool { + return class_exists('JFactory'); + } + /** * @inheritDoc */ @@ -672,7 +680,7 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base { // CRM-14281 Joomla wasn't available during bootstrap, so hook_civicrm_config never executes. $config = CRM_Core_Config::singleton(); - CRM_Utils_Hook::config($config); + CRM_Utils_Hook::config($config, ['uf' => TRUE]); return TRUE; } diff --git a/civicrm/CRM/Utils/System/Standalone.php b/civicrm/CRM/Utils/System/Standalone.php index 6c18d7b4d6..92f5404f64 100644 --- a/civicrm/CRM/Utils/System/Standalone.php +++ b/civicrm/CRM/Utils/System/Standalone.php @@ -22,6 +22,14 @@ use Civi\Standalone\Security; */ class CRM_Utils_System_Standalone extends CRM_Utils_System_Base { + /** + * @internal + * @return bool + */ + public function isLoaded(): bool { + return TRUE; + } + public function missingStandaloneExtension() { // error_log("sessionStart, " . (class_exists(\Civi\Standalone\Security::class) ? 'exists' : 'no ext')); return !class_exists(\Civi\Standalone\Security::class); diff --git a/civicrm/CRM/Utils/System/UnitTests.php b/civicrm/CRM/Utils/System/UnitTests.php index 8aea53af58..adc3ca9bf1 100644 --- a/civicrm/CRM/Utils/System/UnitTests.php +++ b/civicrm/CRM/Utils/System/UnitTests.php @@ -37,6 +37,14 @@ class CRM_Utils_System_UnitTests extends CRM_Utils_System_Base { \Civi\Test::eventChecker()->addListeners(); } + /** + * @internal + * @return bool + */ + public function isLoaded(): bool { + return TRUE; + } + /** * @param string $name * @param string $value diff --git a/civicrm/CRM/Utils/System/WordPress.php b/civicrm/CRM/Utils/System/WordPress.php index d4da15e4ad..55cb29f4dc 100644 --- a/civicrm/CRM/Utils/System/WordPress.php +++ b/civicrm/CRM/Utils/System/WordPress.php @@ -678,6 +678,14 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { return TRUE; } + /** + * @internal + * @return bool + */ + public function isLoaded(): bool { + return function_exists('__'); + } + /** * Tries to bootstrap WordPress. * diff --git a/civicrm/CRM/Utils/Token.php b/civicrm/CRM/Utils/Token.php index f2ef5ce995..898f0aae13 100644 --- a/civicrm/CRM/Utils/Token.php +++ b/civicrm/CRM/Utils/Token.php @@ -1585,7 +1585,7 @@ class CRM_Utils_Token { default: if (in_array($token, $supportedTokens)) { $value = $membership[$token]; - if (CRM_Utils_String::endsWith($token, '_date')) { + if (str_ends_with($token, '_date')) { $value = CRM_Utils_Date::customFormat($value); } } @@ -1746,7 +1746,7 @@ class CRM_Utils_Token { $value = CRM_Core_PseudoConstant::getLabel('CRM_Contact_BAO_Contact', $token, $value); } } - elseif ($value && CRM_Utils_String::endsWith($token, '_date')) { + elseif ($value && str_ends_with($token, '_date')) { $value = CRM_Utils_Date::customFormat($value); } return $value; diff --git a/civicrm/CRM/Utils/Type.php b/civicrm/CRM/Utils/Type.php index 510718060b..ea610939de 100644 --- a/civicrm/CRM/Utils/Type.php +++ b/civicrm/CRM/Utils/Type.php @@ -70,7 +70,7 @@ class CRM_Utils_Type { * @return string * String identifying the data type, e.g. 'Int' or 'String'. */ - public static function typeToString($type) { + public static function typeToString($type): string { // @todo Use constants in the case statements, e.g. "case T_INT:". // @todo return directly, instead of assigning a value. // @todo Use a lookup array, as a property or as a local variable. @@ -134,7 +134,7 @@ class CRM_Utils_Type { break; } - return (isset($string)) ? $string : ""; + return $string ?? ''; } /** diff --git a/civicrm/CRM/Utils/VersionCheck.php b/civicrm/CRM/Utils/VersionCheck.php index 9d0781a7a4..80491b7c28 100644 --- a/civicrm/CRM/Utils/VersionCheck.php +++ b/civicrm/CRM/Utils/VersionCheck.php @@ -139,8 +139,11 @@ class CRM_Utils_VersionCheck { // Non-alpha versions get the full treatment if ($this->localVersion && !strpos($this->localVersion, 'alpha')) { $this->stats += [ + // Remove the hash after 2024-09-01 to allow the transition to sid 'hash' => md5($siteKey . $config->userFrameworkBaseURL), + 'sid' => Civi::settings()->get('site_id'), 'uf' => $config->userFramework, + 'environment' => CRM_Core_Config::environment(), 'lang' => $config->lcMessages, 'co' => $config->defaultContactCountry, 'ufv' => $config->userSystem->getVersion(), diff --git a/civicrm/Civi/Angular/Manager.php b/civicrm/Civi/Angular/Manager.php index 9daf7ca622..1a382743cb 100644 --- a/civicrm/Civi/Angular/Manager.php +++ b/civicrm/Civi/Angular/Manager.php @@ -135,6 +135,9 @@ class Manager { foreach ($angularModules as $module => $info) { // Merge in defaults $angularModules[$module] += ['basePages' => ['civicrm/a']]; + if (!empty($info['settings'])) { + \CRM_Core_Error::deprecatedWarning('Angular "settings" is not supported. See https://github.com/civicrm/civicrm-core/pull/19052'); + } // Validate settingsFactory callables if (isset($info['settingsFactory'])) { // To keep the cache small, we want `settingsFactory` to contain the string names of class & function, not an object diff --git a/civicrm/Civi/Api4/Action/Contact/GetDuplicates.php b/civicrm/Civi/Api4/Action/Contact/GetDuplicates.php index 9829af3b03..3ac73b7819 100644 --- a/civicrm/Civi/Api4/Action/Contact/GetDuplicates.php +++ b/civicrm/Civi/Api4/Action/Contact/GetDuplicates.php @@ -42,7 +42,8 @@ class GetDuplicates extends \Civi\Api4\Generic\DAOCreateAction { */ protected function getRuleGroupNames() { $rules = []; - foreach (\CRM_Contact_BAO_ContactType::basicTypes() as $contactType) { + $contactTypes = $this->getEntityName() === 'Contact' ? \CRM_Contact_BAO_ContactType::basicTypes() : [$this->getEntityName()]; + foreach ($contactTypes as $contactType) { $rules[] = $contactType . '.Unsupervised'; $rules[] = $contactType . '.Supervised'; } @@ -142,14 +143,14 @@ class GetDuplicates extends \Civi\Api4\Generic\DAOCreateAction { public static function fields(BasicGetFieldsAction $action) { $fields = []; $ignore = ['id', 'contact_id', 'is_primary', 'on_hold', 'location_type_id', 'phone_type_id']; - foreach (['Contact', 'Email', 'Phone', 'Address', 'IM'] as $entity) { + foreach ([$action->getEntityName(), 'Email', 'Phone', 'Address', 'IM'] as $entity) { $entityFields = (array) civicrm_api4($entity, 'getFields', [ 'checkPermissions' => FALSE, 'action' => 'create', 'loadOptions' => $action->getLoadOptions(), 'where' => [['name', 'NOT IN', $ignore], ['type', 'IN', ['Field', 'Custom']]], ]); - if ($entity !== 'Contact') { + if ($entity !== $action->getEntityName()) { $prefix = strtolower($entity) . '_primary.'; foreach ($entityFields as &$field) { $field['name'] = $prefix . $field['name']; diff --git a/civicrm/Civi/Api4/Action/Note/Get.php b/civicrm/Civi/Api4/Action/Note/Get.php new file mode 100644 index 0000000000..cf4a3a70d8 --- /dev/null +++ b/civicrm/Civi/Api4/Action/Note/Get.php @@ -0,0 +1,47 @@ +<?php + +/* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ + */ + +namespace Civi\Api4\Action\Note; + +use Civi\Api4\Generic\Result; + +/** + * @inheritDoc + */ +class Get extends \Civi\Api4\Generic\DAOGetAction { + + /** + * @inheritDoc + */ + protected function getObjects(Result $result) { + // Terrible hacky support for deprecated hook_civicrm_notePrivacy + // This entire file can be deleted as soon as we kill that hook. + $onlyCount = $this->getSelect() === ['row_count']; + if (!$onlyCount && $this->getCheckPermissions() && !$this->getGroupBy() && $this->getSelect()) { + // Hack in some extra selects for fields needed by the deprecated hook + $this->addSelect('privacy', 'entity_table', 'entity_id', 'contact_id'); + } + parent::getObjects($result); + // Here comes the really bad part... + // Silver lining, this will emit a noisy deprecation notice if the hook gets used + if ($this->getCheckPermissions() && !$onlyCount) { + $allowedRows = []; + foreach ($result as $row) { + if (!\CRM_Core_BAO_Note::getNotePrivacyHidden($row)) { + $allowedRows[] = $row; + } + } + $result->exchangeArray($allowedRows); + } + } + +} diff --git a/civicrm/Civi/Api4/Action/Queue/Run.php b/civicrm/Civi/Api4/Action/Queue/Run.php new file mode 100644 index 0000000000..80e230e26f --- /dev/null +++ b/civicrm/Civi/Api4/Action/Queue/Run.php @@ -0,0 +1,136 @@ +<?php + +namespace Civi\Api4\Action\Queue; + +use Civi\Api4\Generic\Result; +use Civi\Api4\Queue; + +/** + * Run a series of items from a queue. + * + * This is a lightweight main-loop for development/testing. It repeatedly runs tasks, until: + * + * - The queue is empty, or... + * - The queue encounters an abortive error, or... + * - The queue is externally paused/disabled, or... + * - The runner reaches an execution limit (such as `$maxDuration` or `$maxRequests`). + * + * This main-loop is similar to the older helpers, `CRM_Queue_Runner::runAll()` and + * `civicrm_api_job_runspecificqueue` (devdocs-template) -- except this implementation supports + * newer hooks and configuration flags, and it requires persistent `civicrm_queue` metadata. + * + * This main-loop may have some utility for sysadmins who want to fine-tune runners on a + * specific queue, but it is not a full/system-level agent. It lacks support for + * multi-queue, privilege-separation (`runAs`), process-pooling, PHP-fatal recovery, etc. + * (For a full/system-level agent, see `coworker`.) + * + * @method ?string getQueue + * @method $this setQueue(?string $queue) + * @method ?int getMaxRequests() + * @method $this setMaxRequests(?int $maxRequests) + * @method ?int getMaxDuration() + * @method $this setMaxDuration(?int $maxDuration) + */ +class Run extends \Civi\Api4\Generic\AbstractAction { + + /** + * Name of the target queue. + * + * @var string + * @required + */ + protected $queue; + + /** + * Maximum number of tasks to execute. + * + * After reaching this limit, the loop will stop taking new tasks. + * + * @var int|null + * Special values `null` and `-1` indicate infinite execution. + * @see \Civi\Coworker\Configuration::$maxWorkerRequests + */ + public $maxRequests = 10; + + /** + * Maximum amount of time (seconds) for which a single worker should execute. + * + * After reaching this limit, no more tasks will be given to the worker. + * + * @var int|null + * Special values `null` and `-1` indicate infinite execution. + * @see \Civi\Coworker\Configuration::$maxWorkerDuration + */ + public $maxDuration = 120; + + public function _run(Result $result) { + $queue = \Civi::queue($this->queue); + $startTime = microtime(TRUE); + $requests = 0; + $errors = 0; + $successes = 0; + $message = NULL; + $perm = $this->getCheckPermissions(); + + while (TRUE) { + if (!$queue->isActive()) { + $message = sprintf('Queue is not active (status => %s)', $queue->getStatus()); + break; + } + + if (static::isFinite($this->maxRequests) && $requests >= $this->maxRequests) { + $message = sprintf('Reached request limit (%d)', $this->maxRequests); + break; + } + if (static::isFinite($this->maxDuration) && (microtime(TRUE) - $startTime) >= $this->maxDuration) { + $message = sprintf('Reached duration limit (%d)', $this->maxDuration); + break; + } + + try { + $requests++; + + $claims = Queue::claimItems($perm)->setQueue($this->queue)->execute()->getArrayCopy(); + if (empty($claims)) { + $message = 'No claimable items'; + break; + } + + $batchResults = Queue::runItems($perm)->setQueue($this->queue)->setItems($claims)->execute(); + } + catch (\Throwable $t) { + $errors++; + $message = sprintf('Queue-item raised unhandled exception (%s: %s)', get_class($t), $t->getMessage()); + break; + } + + foreach ($batchResults as $batchResult) { + if ($batchResult['outcome'] === 'ok') { + $successes++; + } + else { + $errors++; + // Should we stop? No, we're just reporting stats. + // What about queues with policy "error=>abort"? They must update ("status=>aborted") under the aegis of runItems(). + // Stopping here would obscure problems that affect all main-loops. + } + } + } + + $result[] = [ + 'loop_duration' => sprintf('%.3f', microtime(TRUE) - $startTime), + 'loop_requests' => $requests, + 'item_successes' => $successes, + 'item_errors' => $errors, + 'queue_ready' => $queue->getStatistic('ready'), + 'queue_blocked' => $queue->getStatistic('blocked'), + 'queue_total' => $queue->getStatistic('total'), + 'exit_message' => $message, + ]; + } + + private static function isFinite($value): bool { + return $value !== NULL && $value >= 0; + } + +} diff --git a/civicrm/Civi/Api4/Action/Queue/RunItems.php b/civicrm/Civi/Api4/Action/Queue/RunItems.php index d711062e6c..e7e8bdbff7 100644 --- a/civicrm/Civi/Api4/Action/Queue/RunItems.php +++ b/civicrm/Civi/Api4/Action/Queue/RunItems.php @@ -30,8 +30,8 @@ use Civi\Core\Event\GenericHookEvent; * - 'retry': Task encountered an error. Will try again later. * - 'fail': Task encountered an error. Will not try again later. Removed from queue. * - * @method $this setItem(?array $item) - * @method ?array getItem() + * @method $this setItems(?array $items) + * @method ?array getItems() * @method ?string setQueue * @method $this setQueue(?string $queue) */ diff --git a/civicrm/Civi/Api4/Contact.php b/civicrm/Civi/Api4/Contact.php index eeb05eb9a1..c71aabd357 100644 --- a/civicrm/Civi/Api4/Contact.php +++ b/civicrm/Civi/Api4/Contact.php @@ -33,7 +33,7 @@ class Contact extends Generic\DAOEntity { * @return Action\Contact\Create */ public static function create($checkPermissions = TRUE) { - return (new Action\Contact\Create(__CLASS__, __FUNCTION__)) + return (new Action\Contact\Create(self::getEntityName(), __FUNCTION__)) ->setCheckPermissions($checkPermissions); } @@ -42,7 +42,7 @@ class Contact extends Generic\DAOEntity { * @return Action\Contact\Update */ public static function update($checkPermissions = TRUE) { - return (new Action\Contact\Update(__CLASS__, __FUNCTION__)) + return (new Action\Contact\Update(self::getEntityName(), __FUNCTION__)) ->setCheckPermissions($checkPermissions); } @@ -51,7 +51,7 @@ class Contact extends Generic\DAOEntity { * @return Action\Contact\Save */ public static function save($checkPermissions = TRUE) { - return (new Action\Contact\Save(__CLASS__, __FUNCTION__)) + return (new Action\Contact\Save(self::getEntityName(), __FUNCTION__)) ->setCheckPermissions($checkPermissions); } @@ -60,7 +60,7 @@ class Contact extends Generic\DAOEntity { * @return Action\Contact\Delete */ public static function delete($checkPermissions = TRUE) { - return (new Action\Contact\Delete(__CLASS__, __FUNCTION__)) + return (new Action\Contact\Delete(self::getEntityName(), __FUNCTION__)) ->setCheckPermissions($checkPermissions); } @@ -69,7 +69,7 @@ class Contact extends Generic\DAOEntity { * @return Action\Contact\GetChecksum */ public static function getChecksum($checkPermissions = TRUE) { - return (new Action\Contact\GetChecksum(__CLASS__, __FUNCTION__)) + return (new Action\Contact\GetChecksum(self::getEntityName(), __FUNCTION__)) ->setCheckPermissions($checkPermissions); } @@ -78,7 +78,7 @@ class Contact extends Generic\DAOEntity { * @return Action\Contact\ValidateChecksum */ public static function validateChecksum($checkPermissions = TRUE) { - return (new Action\Contact\ValidateChecksum(__CLASS__, __FUNCTION__)) + return (new Action\Contact\ValidateChecksum(self::getEntityName(), __FUNCTION__)) ->setCheckPermissions($checkPermissions); } @@ -87,7 +87,7 @@ class Contact extends Generic\DAOEntity { * @return Action\Contact\GetDuplicates */ public static function getDuplicates($checkPermissions = TRUE) { - return (new Action\Contact\GetDuplicates(__CLASS__, __FUNCTION__)) + return (new Action\Contact\GetDuplicates(self::getEntityName(), __FUNCTION__)) ->setCheckPermissions($checkPermissions); } @@ -96,8 +96,39 @@ class Contact extends Generic\DAOEntity { * @return Action\Contact\MergeDuplicates */ public static function mergeDuplicates($checkPermissions = TRUE) { - return (new Action\Contact\MergeDuplicates(__CLASS__, __FUNCTION__)) + return (new Action\Contact\MergeDuplicates(self::getEntityName(), __FUNCTION__)) ->setCheckPermissions($checkPermissions); } + protected static function getDaoName(): string { + // Child classes (Individual, Organization, Household) need this. + return 'CRM_Contact_DAO_Contact'; + } + + /** + * @inheritDoc + */ + public static function getInfo(): array { + $info = parent::getInfo(); + $contactType = static::getEntityName(); + // Adjust info for child classes (Individual, Organization, Household) + if ($contactType !== 'Contact') { + $contactTypeInfo = \CRM_Contact_BAO_ContactType::getContactType($contactType); + $info['icon'] = $contactTypeInfo['icon'] ?? $info['icon']; + $info['type'] = ['DAOEntity', 'ContactType']; + $info['description'] = ts('Contacts of type %1.', [1 => $contactTypeInfo['label']]); + // This forces the value into get and create api actions + $info['where'] = ['contact_type' => $contactType]; + } + return $info; + } + + /** + * @inheritDoc + */ + public static function permissions() { + $permissions = \CRM_Core_Permission::getEntityActionPermissions(); + return ($permissions['contact'] ?? []) + $permissions['default']; + } + } diff --git a/civicrm/Civi/Api4/CustomValue.php b/civicrm/Civi/Api4/CustomValue.php index 2ea7a3274a..4201d3397a 100644 --- a/civicrm/Civi/Api4/CustomValue.php +++ b/civicrm/Civi/Api4/CustomValue.php @@ -135,6 +135,13 @@ class CustomValue { ]; } + /** + * @return \CRM_Core_DAO|string|null + */ + protected static function getDaoName(): ?string { + return 'CRM_Core_BAO_CustomValue'; + } + /** * @see \Civi\Api4\Generic\AbstractEntity::getInfo() * @return array @@ -145,7 +152,7 @@ class CustomValue { 'type' => ['CustomValue', 'DAOEntity'], 'searchable' => 'secondary', 'primary_key' => ['id'], - 'dao' => 'CRM_Core_BAO_CustomValue', + 'dao' => self::getDaoName(), 'see' => [ 'https://docs.civicrm.org/user/en/latest/organising-your-data/creating-custom-fields/#multiple-record-fieldsets', '\Civi\Api4\CustomGroup', diff --git a/civicrm/Civi/Api4/Entity.php b/civicrm/Civi/Api4/Entity.php index fb2b4780e9..0ceac96d6b 100644 --- a/civicrm/Civi/Api4/Entity.php +++ b/civicrm/Civi/Api4/Entity.php @@ -118,6 +118,11 @@ class Entity extends Generic\AbstractEntity { 'data_type' => 'Array', 'description' => 'Arguments needed by php action factory functions (used when multiple entities share a class, e.g. CustomValue).', ], + [ + 'name' => 'where', + 'data_type' => 'Array', + 'description' => 'Constant values which will be force-set when reading/writing this entity (e.g. [contact_type => Individual])', + ], [ 'name' => 'bridge', 'data_type' => 'Array', diff --git a/civicrm/Civi/Api4/EntityBatch.php b/civicrm/Civi/Api4/EntityBatch.php index b85e64d0e5..fc0ea18722 100644 --- a/civicrm/Civi/Api4/EntityBatch.php +++ b/civicrm/Civi/Api4/EntityBatch.php @@ -23,7 +23,7 @@ namespace Civi\Api4; * EntityBatch entity. * * @since 5.41 - * @searchable none + * @searchable secondary * @package Civi\Api4 */ class EntityBatch extends Generic\DAOEntity { diff --git a/civicrm/templates/CRM/Campaign/Page/DashBoard.tpl b/civicrm/Civi/Api4/EntityFile.php similarity index 66% rename from civicrm/templates/CRM/Campaign/Page/DashBoard.tpl rename to civicrm/Civi/Api4/EntityFile.php index 18d26d1e83..bb05421e18 100644 --- a/civicrm/templates/CRM/Campaign/Page/DashBoard.tpl +++ b/civicrm/Civi/Api4/EntityFile.php @@ -1,4 +1,5 @@ -{* +<?php +/* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | @@ -6,18 +7,17 @@ | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ -*} -{* CiviCampaign DashBoard (launch page) *} - - -{if $subPageType} - {* load campaign/survey/petition tab *} - {include file="CRM/Campaign/Form/Search/$subPageType.tpl"} -{else} - {include file="CRM/common/TabHeader.tpl"} - <div class="clear"></div> -{/if} - - + */ +namespace Civi\Api4; +/** + * EntityFile Bridge. + * + * @searchable bridge + * @since 5.67 + * @package Civi\Api4 + */ +class EntityFile extends Generic\DAOEntity { + use Generic\Traits\EntityBridge; +} diff --git a/civicrm/Civi/Api4/EntitySet.php b/civicrm/Civi/Api4/EntitySet.php index f25208137c..867a3f5fa3 100644 --- a/civicrm/Civi/Api4/EntitySet.php +++ b/civicrm/Civi/Api4/EntitySet.php @@ -58,7 +58,7 @@ class EntitySet extends Generic\AbstractEntity { * @param bool $plural * @return string */ - protected static function getEntityTitle($plural = FALSE) { + protected static function getEntityTitle(bool $plural = FALSE): string { return $plural ? ts('Entity Sets') : ts('Entity Set'); } diff --git a/civicrm/Civi/Api4/Event/AuthorizeRecordEvent.php b/civicrm/Civi/Api4/Event/AuthorizeRecordEvent.php index 5fc1db1c4e..dd0e4c55e2 100644 --- a/civicrm/Civi/Api4/Event/AuthorizeRecordEvent.php +++ b/civicrm/Civi/Api4/Event/AuthorizeRecordEvent.php @@ -16,7 +16,8 @@ use Civi\API\Event\RequestTrait; use Civi\Core\Event\GenericHookEvent; /** - * Determine if the a user has access to a given record. + * Determine if the a user has WRITE access to a given record. + * This event does not impact READ access for `get` actions. * * Event name: 'civi.api4.authorizeRecord' */ diff --git a/civicrm/Civi/Api4/File.php b/civicrm/Civi/Api4/File.php index 7d635e6588..43ee2b07fe 100644 --- a/civicrm/Civi/Api4/File.php +++ b/civicrm/Civi/Api4/File.php @@ -13,7 +13,7 @@ namespace Civi\Api4; /** * File entity. * - * @searchable none + * @searchable secondary * @since 5.41 * @package Civi\Api4 */ diff --git a/civicrm/Civi/Api4/Generic/AbstractAction.php b/civicrm/Civi/Api4/Generic/AbstractAction.php index 6e2d48ace8..ade0f637b7 100644 --- a/civicrm/Civi/Api4/Generic/AbstractAction.php +++ b/civicrm/Civi/Api4/Generic/AbstractAction.php @@ -28,7 +28,7 @@ use Civi\Api4\Utils\ReflectionUtils; * - Require a value for the param if you add the "@required" annotation. * * @method bool getCheckPermissions() - * @method $this setDebug(bool $value) Enable/disable debug output + * @method $this setDebug(bool $debug) Enable/disable debug output * @method bool getDebug() * @method $this setChain(array $chain) * @method array getChain() @@ -153,12 +153,19 @@ abstract class AbstractAction implements \ArrayAccess { * @param string $actionName */ public function __construct($entityName, $actionName) { - // If a namespaced class name is passed in - if (strpos($entityName, '\\') !== FALSE) { - $entityName = substr($entityName, strrpos($entityName, '\\') + 1); + // If a namespaced class name is passed in, convert to entityName + $this->_entityName = CoreUtil::stripNamespace($entityName); + // Normalize action name case (because PHP is case-insensitive, we have to do an extra check) + $thisClassName = CoreUtil::stripNamespace(get_class($this)); + // If this was called via magic method, $actionName won't necessarily have the + // correct case because PHP doesn't care about case when calling methods. + if (strtolower($thisClassName) === strtolower($actionName)) { + $this->_actionName = lcfirst($thisClassName); + } + // If called via static method, case should already be correct. + else { + $this->_actionName = $actionName; } - $this->_entityName = $entityName; - $this->_actionName = $actionName; $this->_id = \Civi\API\Request::getNextId(); } diff --git a/civicrm/Civi/Api4/Generic/AbstractEntity.php b/civicrm/Civi/Api4/Generic/AbstractEntity.php index cf5066410b..b1373bd813 100644 --- a/civicrm/Civi/Api4/Generic/AbstractEntity.php +++ b/civicrm/Civi/Api4/Generic/AbstractEntity.php @@ -12,6 +12,7 @@ namespace Civi\Api4\Generic; use Civi\API\Exception\NotImplementedException; +use Civi\Api4\Utils\CoreUtil; use Civi\Api4\Utils\ReflectionUtils; /** @@ -75,7 +76,7 @@ abstract class AbstractEntity { * @return string */ public static function getEntityName(): string { - return self::stripNamespace(static::class); + return CoreUtil::stripNamespace(static::class); } /** @@ -85,21 +86,12 @@ abstract class AbstractEntity { * Whether to return a plural title. * @return string */ - protected static function getEntityTitle($plural = FALSE) { + protected static function getEntityTitle(bool $plural = FALSE): string { $name = static::getEntityName(); - $dao = \CRM_Core_DAO_AllCoreTables::getFullName($name); + $dao = self::getDaoName(); return $dao ? $dao::getEntityTitle($plural) : ($plural ? \CRM_Utils_String::pluralize($name) : $name); } - /** - * Overridable function to return menu paths related to this entity. - * - * @return array - */ - protected static function getEntityPaths() { - return []; - } - /** * Magic method to return the action object for an api. * @@ -125,6 +117,13 @@ abstract class AbstractEntity { return $actionObject; } + /** + * @return \CRM_Core_DAO|string|null + */ + protected static function getDaoName(): ?string { + return \CRM_Core_DAO_AllCoreTables::getFullName(static::getEntityName()); + } + /** * Reflection function called by Entity::get() * @@ -137,8 +136,8 @@ abstract class AbstractEntity { 'name' => $entityName, 'title' => static::getEntityTitle(), 'title_plural' => static::getEntityTitle(TRUE), - 'type' => [self::stripNamespace(get_parent_class(static::class))], - 'paths' => static::getEntityPaths(), + 'type' => [CoreUtil::stripNamespace(get_parent_class(static::class))], + 'paths' => [], 'class' => static::class, 'primary_key' => ['id'], // Entities without a @searchable annotation will default to secondary, @@ -146,7 +145,7 @@ abstract class AbstractEntity { 'searchable' => 'secondary', ]; // Add info for entities with a corresponding DAO - $dao = \CRM_Core_DAO_AllCoreTables::getFullName($info['name']); + $dao = static::getDaoName(); if ($dao) { $info['paths'] = $dao::getEntityPaths(); $info['primary_key'] = $dao::$_primaryKey; @@ -157,7 +156,7 @@ abstract class AbstractEntity { $info['icon_field'] = (array) ($dao::fields()['icon']['name'] ?? NULL); } foreach (ReflectionUtils::getTraits(static::class) as $trait) { - $info['type'][] = self::stripNamespace($trait); + $info['type'][] = CoreUtil::stripNamespace($trait); } // Get DocBlock from APIv4 Entity class $reflection = new \ReflectionClass(static::class); @@ -188,14 +187,4 @@ abstract class AbstractEntity { return $info; } - /** - * Remove namespace prefix from a class name - * - * @param string $className - * @return string - */ - private static function stripNamespace($className) { - return substr($className, strrpos($className, '\\') + 1); - } - } diff --git a/civicrm/Civi/Api4/Generic/AutocompleteAction.php b/civicrm/Civi/Api4/Generic/AutocompleteAction.php index 73ce6e9d4d..fe87afe8d2 100644 --- a/civicrm/Civi/Api4/Generic/AutocompleteAction.php +++ b/civicrm/Civi/Api4/Generic/AutocompleteAction.php @@ -192,7 +192,7 @@ class AutocompleteAction extends AbstractAction { $item = [ 'id' => $row['data'][$keyField], 'label' => $row['columns'][0]['val'], - 'icon' => $row['columns'][0]['icons'][0]['class'] ?? NULL, + 'icon' => $row['columns'][0]['icons']['left'][0] ?? NULL, 'description' => [], ]; foreach (array_slice($row['columns'], 1) as $col) { diff --git a/civicrm/Civi/Api4/Generic/DAOGetFieldsAction.php b/civicrm/Civi/Api4/Generic/DAOGetFieldsAction.php index af58d1fc06..8b4a5655ff 100644 --- a/civicrm/Civi/Api4/Generic/DAOGetFieldsAction.php +++ b/civicrm/Civi/Api4/Generic/DAOGetFieldsAction.php @@ -29,6 +29,14 @@ class DAOGetFieldsAction extends BasicGetFieldsAction { protected function getRecords() { $fieldsToGet = $this->_itemsToGet('name'); $typesToGet = $this->_itemsToGet('type'); + // Force-set values supplied by entity definition + // e.g. if this is a ContactType pseudo-entity, set `contact_type` value which is used by the following: + // @see \Civi\Api4\Service\Spec\Provider\ContactGetSpecProvider + // @see \Civi\Api4\Service\Spec\SpecGatherer::addDAOFields + $presetValues = CoreUtil::getInfoItem($this->getEntityName(), 'where') ?? []; + foreach ($presetValues as $presetField => $presetValue) { + $this->addValue($presetField, $presetValue); + } /** @var \Civi\Api4\Service\Spec\SpecGatherer $gatherer */ $gatherer = \Civi::container()->get('spec_gatherer'); $includeCustom = TRUE; @@ -122,6 +130,11 @@ class DAOGetFieldsAction extends BasicGetFieldsAction { public function fields() { $fields = parent::fields(); + $fields[] = [ + 'name' => 'dfk_entities', + 'description' => 'List of possible entity types this field could be referencing.', + 'data_type' => 'Array', + ]; $fields[] = [ 'name' => 'help_pre', 'data_type' => 'String', diff --git a/civicrm/Civi/Api4/Generic/ExportAction.php b/civicrm/Civi/Api4/Generic/ExportAction.php index d7903a70e6..13b660ec77 100644 --- a/civicrm/Civi/Api4/Generic/ExportAction.php +++ b/civicrm/Civi/Api4/Generic/ExportAction.php @@ -161,6 +161,12 @@ class ExportAction extends AbstractAction { unset($record[$fieldName]); } } + // Unset values that match the default + foreach ($allFields as $fieldName => $field) { + if (($record[$fieldName] ?? NULL) === $field['default_value']) { + unset($record[$fieldName]); + } + } $export = [ 'name' => $name, 'entity' => $entityType, diff --git a/civicrm/Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php b/civicrm/Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php index e1763f4c02..d0e943a975 100644 --- a/civicrm/Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php +++ b/civicrm/Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php @@ -107,16 +107,18 @@ trait ArrayQueryActionTrait { /** * @param array $row * @param array $condition + * @param int $index * @return bool * @throws \Civi\API\Exception\NotImplementedException */ - public static function filterCompare($row, $condition) { - if (!is_array($condition)) { - throw new NotImplementedException('Unexpected where syntax; expecting array.'); - } + public static function filterCompare(array $row, array $condition, int $index = NULL): bool { $value = $row[$condition[0]] ?? NULL; $operator = $condition[1]; $expected = $condition[2] ?? NULL; + // Comparison for aggregated values + if (isset($index) && is_array($value) && $operator !== 'IN' && $operator !== 'NOT IN') { + $value = $value[$index] ?? NULL; + } switch ($operator) { case '=': case '!=': @@ -180,7 +182,7 @@ trait ArrayQueryActionTrait { } elseif (is_string($value) || is_numeric($value)) { // Lowercase check if string contains string - return (strpos(strtolower((string) $value), strtolower((string) $expected)) !== FALSE) == ($operator == 'CONTAINS'); + return (str_contains(strtolower((string) $value), strtolower((string) $expected))) == ($operator == 'CONTAINS'); } return ($value == $expected) == ($operator == 'CONTAINS'); diff --git a/civicrm/Civi/Api4/Generic/Traits/DAOActionTrait.php b/civicrm/Civi/Api4/Generic/Traits/DAOActionTrait.php index 3de18daa7c..feabd9bc49 100644 --- a/civicrm/Civi/Api4/Generic/Traits/DAOActionTrait.php +++ b/civicrm/Civi/Api4/Generic/Traits/DAOActionTrait.php @@ -13,7 +13,6 @@ namespace Civi\Api4\Generic\Traits; use Civi\Api4\CustomField; -use Civi\Api4\Service\Schema\Joinable\CustomGroupJoinable; use Civi\Api4\Utils\FormattingUtil; use Civi\Api4\Utils\CoreUtil; use Civi\Api4\Utils\ReflectionUtils; @@ -112,6 +111,9 @@ trait DAOActionTrait { } } + // Values specified by entity definition (e.g. 'Individual', 'Organization', 'Household' pseudo-entities specify `contact_type`) + $presetValues = CoreUtil::getInfoItem($this->getEntityName(), 'where') ?? []; + $result = []; $idField = CoreUtil::getIdFieldName($this->getEntityName()); @@ -120,6 +122,10 @@ trait DAOActionTrait { FormattingUtil::formatWriteParams($item, $this->entityFields()); $this->formatCustomParams($item, $entityId); + if (!$entityId) { + $item = $presetValues + $item; + } + // Adjust weights for sortable entities if ($updateWeights) { $this->updateWeight($item); @@ -311,7 +317,7 @@ trait DAOActionTrait { $field['table_name'] = $field['custom_group_id.table_name']; unset($field['custom_group_id.table_name']); $field['name'] = $groupName . '.' . $name; - $field['entity'] = CustomGroupJoinable::getEntityFromExtends($field['custom_group_id.extends']); + $field['entity'] = \CRM_Core_BAO_CustomGroup::getEntityFromExtends($field['custom_group_id.extends']); $info[$name] = $field; } \Civi::cache('metadata')->set($cacheKey, $info); diff --git a/civicrm/Civi/Api4/Generic/Traits/ManagedEntity.php b/civicrm/Civi/Api4/Generic/Traits/ManagedEntity.php index f014bc76a6..1e0ebe4b2e 100644 --- a/civicrm/Civi/Api4/Generic/Traits/ManagedEntity.php +++ b/civicrm/Civi/Api4/Generic/Traits/ManagedEntity.php @@ -27,8 +27,7 @@ trait ManagedEntity { */ public static function revert($checkPermissions = TRUE) { return (new BasicBatchAction(static::getEntityName(), __FUNCTION__, function($item, BasicBatchAction $action) { - $params = ['entity_type' => $action->getEntityName(), 'entity_id' => $item['id']]; - if (\CRM_Core_ManagedEntities::singleton()->revert($params)) { + if (\CRM_Core_ManagedEntities::singleton()->revert($action->getEntityName(), $item['id'])) { return $item; } else { diff --git a/civicrm/Civi/Api4/Generic/Traits/SavedSearchInspectorTrait.php b/civicrm/Civi/Api4/Generic/Traits/SavedSearchInspectorTrait.php index f42d77a15e..92487d91ba 100644 --- a/civicrm/Civi/Api4/Generic/Traits/SavedSearchInspectorTrait.php +++ b/civicrm/Civi/Api4/Generic/Traits/SavedSearchInspectorTrait.php @@ -234,6 +234,17 @@ trait SavedSearchInspectorTrait { return !in_array($idField, $apiParams['groupBy']); } + private function renameIfAggregate(string $fieldPath, bool $asSelect = FALSE): string { + $renamed = $fieldPath; + if ($this->canAggregate($fieldPath)) { + $renamed = 'GROUP_CONCAT_' . str_replace(['.', ':'], '_', $fieldPath); + if ($asSelect) { + $renamed = "GROUP_CONCAT(UNIQUE $fieldPath) AS $renamed"; + } + } + return $renamed; + } + /** * @param string|array $fieldName * If multiple field names are given they will be combined in an OR clause @@ -271,7 +282,7 @@ trait SavedSearchInspectorTrait { foreach ($fieldNames as $fieldName) { $field = $this->getField($fieldName); $dataType = $field['data_type'] ?? NULL; - $operators = ($field['operators'] ?? []) ?: CoreUtil::getOperators(); + $operators = array_values($field['operators'] ?? []) ?: CoreUtil::getOperators(); // Array is either associative `OP => VAL` or sequential `IN (...)` if (is_array($value)) { $value = array_filter($value, [$this, 'hasValue']); @@ -279,13 +290,15 @@ trait SavedSearchInspectorTrait { if (array_diff_key($value, array_flip(CoreUtil::getOperators()))) { // Use IN for regular fields if (empty($field['serialize'])) { - $filterClauses[] = [$fieldName, 'IN', $value]; + $op = in_array('IN', $operators, TRUE) ? 'IN' : $operators[0]; + $filterClauses[] = [$fieldName, $op, $value]; } // Use an OR group of CONTAINS for array fields else { + $op = in_array('CONTAINS', $operators, TRUE) ? 'CONTAINS' : $operators[0]; $orGroup = []; foreach ($value as $val) { - $orGroup[] = [$fieldName, 'CONTAINS', $val]; + $orGroup[] = [$fieldName, $op, $val]; } $filterClauses[] = ['OR', $orGroup]; } @@ -315,7 +328,8 @@ trait SavedSearchInspectorTrait { $filterClauses[] = [$fieldName, 'IN', (array) $value]; } else { - $filterClauses[] = [$fieldName, '=', $value]; + $op = in_array('=', $operators, TRUE) ? '=' : $operators[0]; + $filterClauses[] = [$fieldName, $op, $value]; } } // Single field diff --git a/civicrm/Civi/Api4/Household.php b/civicrm/Civi/Api4/Household.php new file mode 100644 index 0000000000..260cc8852d --- /dev/null +++ b/civicrm/Civi/Api4/Household.php @@ -0,0 +1,33 @@ +<?php +/* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ + */ +namespace Civi\Api4; + +/** + * Contacts of type Household. + * + * This api is a facade for the Contact entity. + * In most ways it acts exactly like the Contact entity, plus it injects [contact_type => Household] + * into get, create, and batch actions (however, when updating or deleting a single Contact by id, + * this will transparently pass-through to the Contact entity, so don't rely on this facade to enforce + * contact type for single-record-by-id write operations). + * + * @inheritDoc + * @searchable secondary + * @since 5.67 + * @package Civi\Api4 + */ +class Household extends Contact { + + protected static function getEntityTitle(bool $plural = FALSE): string { + return $plural ? ts('Households') : ts('Household'); + } + +} diff --git a/civicrm/Civi/Api4/Individual.php b/civicrm/Civi/Api4/Individual.php new file mode 100644 index 0000000000..9b701ef936 --- /dev/null +++ b/civicrm/Civi/Api4/Individual.php @@ -0,0 +1,32 @@ +<?php +/* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ + */ +namespace Civi\Api4; + +/** + * Contacts of type Individual. + * + * This api is a facade for the Contact entity. + * In most ways it acts exactly like the Contact entity, plus it injects [contact_type => Individual] + * into get, create, and batch actions (however, when updating or deleting a single Contact by id, + * this will transparently pass-through to the Contact entity, so don't rely on this facade to enforce + * contact type for single-record-by-id write operations). + * + * @inheritDoc + * @since 5.67 + * @package Civi\Api4 + */ +class Individual extends Contact { + + protected static function getEntityTitle(bool $plural = FALSE): string { + return $plural ? ts('Individuals') : ts('Individual'); + } + +} diff --git a/civicrm/Civi/Api4/Note.php b/civicrm/Civi/Api4/Note.php index 7437bafc02..31e3f56b81 100644 --- a/civicrm/Civi/Api4/Note.php +++ b/civicrm/Civi/Api4/Note.php @@ -19,4 +19,13 @@ namespace Civi\Api4; */ class Note extends Generic\DAOEntity { + /** + * @param bool $checkPermissions + * @return Action\Note\Get + */ + public static function get($checkPermissions = TRUE) { + return (new Action\Note\Get(__CLASS__, __FUNCTION__)) + ->setCheckPermissions($checkPermissions); + } + } diff --git a/civicrm/Civi/Api4/Organization.php b/civicrm/Civi/Api4/Organization.php new file mode 100644 index 0000000000..76c664e73b --- /dev/null +++ b/civicrm/Civi/Api4/Organization.php @@ -0,0 +1,32 @@ +<?php +/* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ + */ +namespace Civi\Api4; + +/** + * Contacts of type Organization. + * + * This api is a facade for the Contact entity. + * In most ways it acts exactly like the Contact entity, plus it injects [contact_type => Organization] + * into get, create, and batch actions (however, when updating or deleting a single Contact by id, + * this will transparently pass-through to the Contact entity, so don't rely on this facade to enforce + * contact type for single-record-by-id write operations). + * + * @inheritDoc + * @since 5.67 + * @package Civi\Api4 + */ +class Organization extends Contact { + + protected static function getEntityTitle(bool $plural = FALSE): string { + return $plural ? ts('Organizations') : ts('Organization'); + } + +} diff --git a/civicrm/Civi/Api4/Provider/CustomEntityProvider.php b/civicrm/Civi/Api4/Provider/CustomEntityProvider.php index b454a55eed..41f4097159 100644 --- a/civicrm/Civi/Api4/Provider/CustomEntityProvider.php +++ b/civicrm/Civi/Api4/Provider/CustomEntityProvider.php @@ -12,9 +12,9 @@ namespace Civi\Api4\Provider; use Civi\Api4\CustomValue; -use Civi\Api4\Service\Schema\Joinable\CustomGroupJoinable; use Civi\Core\Event\GenericHookEvent; use Civi\Core\Service\AutoService; +use CRM_Core_BAO_CustomGroup; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** @@ -44,7 +44,7 @@ class CustomEntityProvider extends AutoService implements EventSubscriberInterfa $group = \CRM_Core_DAO::executeQuery($select); while ($group->fetch()) { $entityName = 'Custom_' . $group->name; - $baseEntity = CustomGroupJoinable::getEntityFromExtends($group->extends); + $baseEntity = CRM_Core_BAO_CustomGroup::getEntityFromExtends($group->extends); // Lookup base entity info using DAO methods not CoreUtil to avoid early-bootstrap issues $baseEntityDao = \CRM_Core_DAO_AllCoreTables::getFullName($baseEntity); $baseEntityTitle = $baseEntityDao ? $baseEntityDao::getEntityTitle(TRUE) : $baseEntity; diff --git a/civicrm/Civi/Api4/Query/Api4Query.php b/civicrm/Civi/Api4/Query/Api4Query.php index 15f7050cf3..a40cfd4a67 100644 --- a/civicrm/Civi/Api4/Query/Api4Query.php +++ b/civicrm/Civi/Api4/Query/Api4Query.php @@ -147,6 +147,7 @@ abstract class Api4Query { } $this->apiFieldSpec[$path] = $field + [ 'name' => $path, + 'path' => $path, 'type' => 'Extra', 'entity' => NULL, 'implicit_join' => NULL, diff --git a/civicrm/Civi/Api4/Query/Api4SelectQuery.php b/civicrm/Civi/Api4/Query/Api4SelectQuery.php index 95de27e36e..44833e9c6d 100644 --- a/civicrm/Civi/Api4/Query/Api4SelectQuery.php +++ b/civicrm/Civi/Api4/Query/Api4SelectQuery.php @@ -85,8 +85,13 @@ class Api4SelectQuery extends Api4Query { $this->entityAccess[$this->getEntity()] = TRUE; // Add ACLs first to avoid redundant subclauses - $baoName = CoreUtil::getBAOFromApiName($this->getEntity()); - $this->query->where($this->getAclClause(self::MAIN_TABLE_ALIAS, $baoName)); + $this->query->where($this->getAclClause(self::MAIN_TABLE_ALIAS, $this->getEntity(), [], $this->getWhere())); + + // Add required conditions if specified by entity + $requiredConditions = CoreUtil::getInfoItem($this->getEntity(), 'where') ?? []; + foreach ($requiredConditions as $requiredField => $requiredValue) { + $this->api->addWhere($requiredField, '=', $requiredValue); + } // Add explicit joins. Other joins implied by dot notation may be added later $this->addExplicitJoins(); @@ -323,11 +328,12 @@ class Api4SelectQuery extends Api4Query { * Get acl clause for an entity * * @param string $tableAlias - * @param \CRM_Core_DAO|string $baoName + * @param string $entityName * @param array $stack + * @param array[] $conditions * @return array */ - public function getAclClause($tableAlias, $baoName, $stack = []) { + public function getAclClause($tableAlias, $entityName, $stack = [], $conditions = []) { if (!$this->getCheckPermissions()) { return []; } @@ -337,7 +343,28 @@ class Api4SelectQuery extends Api4Query { if (count($stack) === 1 && in_array(reset($stack), $this->aclFields, TRUE)) { return []; } - $clauses = $baoName::getSelectWhereClause($tableAlias); + // Glean entity values from the WHERE or ON clause conditions + $entityValues = []; + foreach ($conditions as $condition) { + [$fieldExpr, $operator, $valueExpr, $isExpr] = array_pad((array) $condition, 4, NULL); + if (in_array($operator, ['=', 'IN'], TRUE)) { + // If flag is set then value must be parsed as an expression + if ($isExpr) { + $expr = SqlExpression::convert($valueExpr); + $valueExpr = in_array($expr->getType(), ['SqlString', 'SqlNumber'], TRUE) ? $expr->getExpr() : NULL; + } + if (isset($valueExpr)) { + [$fieldPath] = explode(':', $fieldExpr); + $fieldSpec = $this->getField($fieldPath); + $entityValues[$fieldPath] = $valueExpr; + if ($fieldSpec) { + FormattingUtil::formatInputValue($entityValues[$fieldPath], $fieldExpr, $fieldSpec, $entityValues, $operator); + } + } + } + } + $baoName = CoreUtil::getBAOFromApiName($entityName); + $clauses = $baoName::getSelectWhereClause($tableAlias, $entityName, $entityValues); if (!$stack) { // Track field clauses added to the main entity $this->aclFields = array_keys($clauses); @@ -352,8 +379,9 @@ class Api4SelectQuery extends Api4Query { * @param bool $strict * In strict mode, this will throw an exception if the field doesn't exist * - * @return array|null + * @return array|bool|null * @throws \CRM_Core_Exception + * @throws UnauthorizedException */ public function getField($expr, $strict = FALSE) { // If the expression contains a pseudoconstant filter like activity_type_id:label, @@ -380,6 +408,11 @@ class Api4SelectQuery extends Api4Query { return $field; } + public function getFieldSibling(array $field, string $siblingFieldName) { + $prefix = ($field['explicit_join'] ? $field['explicit_join'] . '.' : '') . ($field['implicit_join'] ? $field['implicit_join'] . '.' : ''); + return $this->getField($prefix . $siblingFieldName); + } + /** * Check the "gatekeeper" permissions for performing "get" on a given entity. * @@ -388,7 +421,7 @@ class Api4SelectQuery extends Api4Query { */ public function checkEntityAccess($entity) { if (!$this->getCheckPermissions()) { - return TRUE; + return CoreUtil::entityExists($entity); } if (!isset($this->entityAccess[$entity])) { try { @@ -398,7 +431,8 @@ class Api4SelectQuery extends Api4Query { ])->first(); } // Anonymous users might not even be allowed to use 'getActions' - catch (UnauthorizedException $e) { + // Or tne entity might not exist + catch (\CRM_Core_Exception $e) { $this->entityAccess[$entity] = FALSE; } } @@ -440,6 +474,11 @@ class Api4SelectQuery extends Api4Query { $side = 'LEFT'; $this->api->addWhere("$alias.id", 'IS NULL'); } + // Add required conditions if specified by entity + $requiredConditions = CoreUtil::getInfoItem($entity, 'where') ?? []; + foreach ($requiredConditions as $requiredField => $requiredValue) { + $join[] = [$alias . '.' . $requiredField, '=', "'$requiredValue'"]; + } // Add all fields from joined entity to spec $joinEntityGet = \Civi\API\Request::create($entity, 'get', ['version' => 4, 'checkPermissions' => $this->getCheckPermissions()]); $joinEntityFields = $joinEntityGet->entityFields(); @@ -487,26 +526,36 @@ class Api4SelectQuery extends Api4Query { // getAclClause() expects a stack of 1-to-1 join fields to help it dedupe, but this is more flexible, // so unless this is a direct 1-to-1 join with the main entity, we'll just hack it // with a padded empty stack to bypass its deduping. - $stack = [NULL, NULL]; + $aclStack = [NULL, NULL]; // See if the ON clause already contains an FK reference to joinEntity - $explicitFK = array_filter($joinTree, function($clause) use ($alias, $joinEntityFields) { + $explicitFK = array_filter($joinTree, function($clause) use ($alias, $joinEntityFields, &$aclStack) { [$sideA, $op, $sideB] = array_pad((array) $clause, 3, NULL); if ($op !== '=' || !$sideB) { return FALSE; } - foreach ([$sideA, $sideB] as $expr) { - // Check for explicit link to FK entity - if ($expr === "$alias.id" || !empty($joinEntityFields[str_replace("$alias.", '', $expr)]['fk_entity'])) { - return TRUE; + foreach ([2 => $sideA, 0 => $sideB] as $otherSide => $expr) { + if (!str_starts_with($expr, "$alias.")) { + continue; } - // Check for dynamic FK - if ($expr === "$alias.entity_id") { + $joinField = str_replace("$alias.", '', $expr); + // Check for explicit link to FK entity (include entity_id for dynamic FKs) + // FIXME: This is just guessing. We ought to check the schema for all unique fields and foreign keys. + if ( + // Unique field - might be a link FROM the other entity + in_array($joinField, ['id', 'name'], TRUE) || + // FK field - might be a link TO the other entity + $joinField === 'entity_id' || !empty($joinEntityFields[$joinField]['fk_entity'])) { + // If the join links to a field on the main entity, ACL clauses can be deduped + if (preg_match('/^[_a-z0-9]+$/i', $clause[$otherSide])) { + $aclStack = [$clause[$otherSide]]; + } return TRUE; } } return FALSE; }); // If we're not explicitly referencing the ID (or some other FK field) of the joinEntity, search for a default + // FIXME: This guesswork ought to emit a deprecation notice. SearchKit doesn't use it. if (!$explicitFK) { foreach ($this->apiFieldSpec as $name => $field) { if (!is_array($field) || $field['type'] !== 'Field') { @@ -517,17 +566,24 @@ class Api4SelectQuery extends Api4Query { } elseif (strpos($name, "$alias.") === 0 && substr_count($name, '.') === 1 && $field['fk_entity'] === $this->getEntity()) { $conditions[] = $this->treeWalkClauses([$name, '=', 'id'], 'ON'); - $stack = ['id']; + $aclStack = ['id']; } } // Hmm, if we came up with > 1 condition, then it's ambiguous how it should be joined so we won't return anything but the generic ACLs if (count($conditions) > 1) { - $stack = [NULL, NULL]; + $aclStack = [NULL, NULL]; $conditions = []; } } - $baoName = CoreUtil::getBAOFromApiName($joinEntity); - $acls = array_values($this->getAclClause($alias, $baoName, $stack)); + // Gather join conditions to help optimize aclClause + $joinOn = []; + foreach ($joinTree as $clause) { + if (is_array($clause) && isset($clause[2])) { + // Set 4th param ($isExpr) default to TRUE because this is an ON clause + $joinOn[] = array_pad($clause, 4, TRUE); + } + } + $acls = array_values($this->getAclClause($alias, $joinEntity, $aclStack, $joinOn)); return array_merge($acls, $conditions); } @@ -552,11 +608,14 @@ class Api4SelectQuery extends Api4Query { $this->registerBridgeJoinFields($bridgeEntity, $joinRef, $baseRef, $alias, $bridgeAlias); + // Used to dedupe acl clauses + $aclStack = [NULL, NULL]; + $linkConditions = $this->getBridgeLinkConditions($bridgeAlias, $alias, $joinTable, $joinRef); - $bridgeConditions = $this->getBridgeJoinConditions($joinTree, $baseRef, $alias, $bridgeAlias, $bridgeEntity); + $bridgeConditions = $this->getBridgeJoinConditions($joinTree, $baseRef, $alias, $bridgeAlias, $bridgeEntity, $aclStack); - $acls = array_values($this->getAclClause($alias, CoreUtil::getBAOFromApiName($joinEntity), [NULL, NULL])); + $acls = array_values($this->getAclClause($alias, $joinEntity, $aclStack)); $outerConditions = []; foreach (array_filter($joinTree) as $clause) { @@ -660,13 +719,14 @@ class Api4SelectQuery extends Api4Query { * @param string $alias * @param string $bridgeAlias * @param string $bridgeEntity + * @param array $aclStack * @return string[] * @throws \CRM_Core_Exception */ - private function getBridgeJoinConditions(array &$joinTree, $baseRef, string $alias, string $bridgeAlias, string $bridgeEntity): array { + private function getBridgeJoinConditions(array &$joinTree, $baseRef, string $alias, string $bridgeAlias, string $bridgeEntity, array &$aclStack): array { $bridgeConditions = []; // Find explicit bridge join conditions and move them out of the joinTree - $joinTree = array_filter($joinTree, function ($clause) use ($baseRef, $alias, $bridgeAlias, &$bridgeConditions) { + $joinTree = array_filter($joinTree, function ($clause) use ($baseRef, $alias, $bridgeAlias, &$bridgeConditions, &$aclStack) { [$sideA, $op, $sideB] = array_pad((array) $clause, 3, NULL); // Skip AND/OR/NOT branches if (!$sideB) { @@ -676,6 +736,7 @@ class Api4SelectQuery extends Api4Query { if ($op === '=' && $sideB && ($sideA === "$alias.{$baseRef->getReferenceKey()}" || $sideB === "$alias.{$baseRef->getReferenceKey()}")) { $expr = $sideA === "$alias.{$baseRef->getReferenceKey()}" ? $sideB : $sideA; $bridgeConditions[] = "`$bridgeAlias`.`{$baseRef->getReferenceKey()}` = " . $this->getExpression($expr)->render($this); + $aclStack = [$expr]; return FALSE; } // Explicit link with dynamic "entity_table" column @@ -692,6 +753,7 @@ class Api4SelectQuery extends Api4Query { throw new \CRM_Core_Exception("Unable to join $bridgeEntity to " . $this->getEntity()); } $bridgeConditions[] = "`$bridgeAlias`.`{$baseRef->getReferenceKey()}` = a.`{$baseRef->getTargetKey()}`"; + $aclStack = [$baseRef->getTargetKey()]; if ($baseRef->getTypeColumn()) { $bridgeConditions[] = "`$bridgeAlias`.`{$baseRef->getTypeColumn()}` = '" . $this->getFrom() . "'"; } @@ -803,10 +865,9 @@ class Api4SelectQuery extends Api4Query { // Serialized joins are rendered by this::renderSerializedJoin. Don't add their tables. if (!$virtualField) { - $bao = $joinEntity ? CoreUtil::getBAOFromApiName($joinEntity) : NULL; $conditions = $link->getConditionsForJoin($baseTableAlias, $tableAlias); - if ($bao) { - $conditions = array_merge($conditions, $this->getAclClause($tableAlias, $bao, $joinPath)); + if ($joinEntity) { + $conditions = array_merge($conditions, $this->getAclClause($tableAlias, $joinEntity, $joinPath)); } $this->addJoin('LEFT', $target, $tableAlias, $baseTableAlias, $conditions); } diff --git a/civicrm/Civi/Api4/Query/SqlExpression.php b/civicrm/Civi/Api4/Query/SqlExpression.php index 9555152db6..de05876e48 100644 --- a/civicrm/Civi/Api4/Query/SqlExpression.php +++ b/civicrm/Civi/Api4/Query/SqlExpression.php @@ -11,6 +11,8 @@ namespace Civi\Api4\Query; +use Civi\Api4\Utils\CoreUtil; + /** * Base class for SqlColumn, SqlString, SqlBool, and SqlFunction classes. * @@ -174,8 +176,7 @@ abstract class SqlExpression { * @return string */ public function getType(): string { - $className = get_class($this); - return substr($className, strrpos($className, '\\') + 1); + return CoreUtil::stripNamespace(get_class($this)); } /** diff --git a/civicrm/Civi/Api4/Query/SqlFunctionGROUP_CONCAT.php b/civicrm/Civi/Api4/Query/SqlFunctionGROUP_CONCAT.php index 7af9a2f64d..a4254ae72a 100644 --- a/civicrm/Civi/Api4/Query/SqlFunctionGROUP_CONCAT.php +++ b/civicrm/Civi/Api4/Query/SqlFunctionGROUP_CONCAT.php @@ -108,10 +108,11 @@ class SqlFunctionGROUP_CONCAT extends SqlFunction { if ($this->args[0]['prefix'] === ['UNIQUE']) { $this->args[0]['prefix'] = []; $expr = $this->args[0]['expr'][0]; + [$fieldPath] = explode(':', $expr->getFields()[0]); $field = $query->getField($expr->getFields()[0]); if ($field) { $idField = CoreUtil::getIdFieldName($field['entity']); - $idFieldKey = substr($expr->getFields()[0], 0, 0 - strlen($field['name'])) . $idField; + $idFieldKey = substr($fieldPath, 0, 0 - strlen($field['name'])) . $idField; // Keep the ordering consistent if (empty($this->args[1]['prefix'])) { $this->args[1] = [ diff --git a/civicrm/Civi/Api4/Queue.php b/civicrm/Civi/Api4/Queue.php index f504862457..3339d06629 100644 --- a/civicrm/Civi/Api4/Queue.php +++ b/civicrm/Civi/Api4/Queue.php @@ -12,6 +12,7 @@ namespace Civi\Api4; use Civi\Api4\Action\Queue\ClaimItems; use Civi\Api4\Action\Queue\RunItems; +use Civi\Api4\Action\Queue\Run; /** * Track a list of durable/scannable queues. @@ -40,10 +41,14 @@ class Queue extends \Civi\Api4\Generic\DAOEntity { } /** - * Claim an item from the queue. Returns zero or one items. + * Claim some items from the queue. Returns zero or more items. * * Note: This is appropriate for persistent, auto-run queues. * + * The number of items depends on the specific queue. Most notably, batch sizes are + * influenced by queue-driver support (`BatchQueueInterface`) and queue-configuration + * (`civicrm_queue.batch_limit`). + * * @param bool $checkPermissions * @return \Civi\Api4\Action\Queue\ClaimItems */ @@ -53,10 +58,14 @@ class Queue extends \Civi\Api4\Generic\DAOEntity { } /** - * Run an item from the queue. + * Run some items from the queue. * * Note: This is appropriate for persistent, auto-run queues. * + * The number of items depends on the specific queue. Most notably, batch sizes are + * influenced by queue-driver support (`BatchQueueInterface`) and queue-configuration + * (`civicrm_queue.batch_limit`). + * * @param bool $checkPermissions * @return \Civi\Api4\Action\Queue\RunItems */ @@ -65,4 +74,19 @@ class Queue extends \Civi\Api4\Generic\DAOEntity { ->setCheckPermissions($checkPermissions); } + /** + * Run a series of items from a queue. + * + * This is a lightweight main-loop for development/testing. It may have some limited utility for + * sysadmins who want to fine-tune runners on a specific queue. See the class docblock for + * more information. + * + * @param bool $checkPermissions + * @return \Civi\Api4\Action\Queue\Run + */ + public static function run($checkPermissions = TRUE) { + return (new Run(static::getEntityName(), __FUNCTION__)) + ->setCheckPermissions($checkPermissions); + } + } diff --git a/civicrm/Civi/Api4/Service/Autocomplete/ActivityAutocompleteProvider.php b/civicrm/Civi/Api4/Service/Autocomplete/ActivityAutocompleteProvider.php index 843ef5fea3..70d305e359 100644 --- a/civicrm/Civi/Api4/Service/Autocomplete/ActivityAutocompleteProvider.php +++ b/civicrm/Civi/Api4/Service/Autocomplete/ActivityAutocompleteProvider.php @@ -12,6 +12,7 @@ namespace Civi\Api4\Service\Autocomplete; +use Civi\Api4\Utils\CoreUtil; use Civi\Core\Event\GenericHookEvent; use Civi\Core\HookInterface; @@ -95,7 +96,7 @@ class ActivityAutocompleteProvider extends \Civi\Core\Service\AutoService implem // If the savedSearch includes a contact join, add it to the output and the sort. foreach ($e->savedSearch['api_params']['join'] ?? [] as $join) { [$entity, $contactAlias] = explode(' AS ', $join[0]); - if ($entity === 'Contact') { + if (CoreUtil::isContact($entity)) { array_unshift($e->display['settings']['sort'], ["$contactAlias.sort_name", 'ASC']); $e->display['settings']['columns'][0]['rewrite'] = "[$contactAlias.sort_name] - [subject]"; $e->display['settings']['columns'][0]['empty_value'] = "[$contactAlias.sort_name] (" . ts('no subject') . ')'; diff --git a/civicrm/Civi/Api4/Service/Autocomplete/CaseAutocompleteProvider.php b/civicrm/Civi/Api4/Service/Autocomplete/CaseAutocompleteProvider.php index e28e6fbaf9..e3a4c7c956 100644 --- a/civicrm/Civi/Api4/Service/Autocomplete/CaseAutocompleteProvider.php +++ b/civicrm/Civi/Api4/Service/Autocomplete/CaseAutocompleteProvider.php @@ -12,6 +12,7 @@ namespace Civi\Api4\Service\Autocomplete; +use Civi\Api4\Utils\CoreUtil; use Civi\Core\Event\GenericHookEvent; use Civi\Core\HookInterface; @@ -92,7 +93,7 @@ class CaseAutocompleteProvider extends \Civi\Core\Service\AutoService implements // If the savedSearch includes a contact join, add it to the output and the sort. foreach ($e->savedSearch['api_params']['join'] ?? [] as $join) { [$entity, $contactAlias] = explode(' AS ', $join[0]); - if ($entity === 'Contact') { + if (CoreUtil::isContact($entity)) { array_unshift($e->display['settings']['sort'], ["$contactAlias.sort_name", 'ASC']); $e->display['settings']['columns'][0]['rewrite'] = "[$contactAlias.sort_name] - [subject]"; $e->display['settings']['columns'][0]['empty_value'] = "[$contactAlias.sort_name] (" . ts('no subject') . ')'; diff --git a/civicrm/Civi/Api4/Service/Autocomplete/ContactAutocompleteProvider.php b/civicrm/Civi/Api4/Service/Autocomplete/ContactAutocompleteProvider.php index b676baa692..27440a7824 100644 --- a/civicrm/Civi/Api4/Service/Autocomplete/ContactAutocompleteProvider.php +++ b/civicrm/Civi/Api4/Service/Autocomplete/ContactAutocompleteProvider.php @@ -13,6 +13,7 @@ namespace Civi\Api4\Service\Autocomplete; use Civi\API\Event\PrepareEvent; +use Civi\Api4\Utils\CoreUtil; use Civi\Core\Event\GenericHookEvent; use Civi\Core\HookInterface; @@ -49,7 +50,7 @@ class ContactAutocompleteProvider extends \Civi\Core\Service\AutoService impleme * @param \Civi\Core\Event\GenericHookEvent $e */ public static function on_civi_search_defaultDisplay(GenericHookEvent $e) { - if ($e->display['settings'] || $e->display['type'] !== 'autocomplete' || $e->savedSearch['api_entity'] !== 'Contact') { + if ($e->display['settings'] || $e->display['type'] !== 'autocomplete' || !CoreUtil::isContact($e->savedSearch['api_entity'])) { return; } $e->display['settings'] = [ diff --git a/civicrm/Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php b/civicrm/Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php index 4ca50f0795..1a10075f76 100644 --- a/civicrm/Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php +++ b/civicrm/Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php @@ -89,25 +89,4 @@ class CustomGroupJoinable extends Joinable { return $this->columns[$fieldName]; } - /** - * Translate custom_group.extends to entity name. - * - * Custom_group.extends pretty much maps 1-1 with entity names, except for a couple oddballs. - * @see \CRM_Core_SelectValues::customGroupExtends - * - * @param $extends - * @return string - * @throws \CRM_Core_Exception - * @throws \Civi\API\Exception\UnauthorizedException - */ - public static function getEntityFromExtends($extends) { - if (strpos($extends, 'Participant') === 0) { - return 'Participant'; - } - if ($extends === 'Contact' || in_array($extends, \CRM_Contact_BAO_ContactType::basicTypes(TRUE))) { - return 'Contact'; - } - return $extends; - } - } diff --git a/civicrm/Civi/Api4/Service/Schema/Joiner.php b/civicrm/Civi/Api4/Service/Schema/Joiner.php index d42caa1708..9908d3a566 100644 --- a/civicrm/Civi/Api4/Service/Schema/Joiner.php +++ b/civicrm/Civi/Api4/Service/Schema/Joiner.php @@ -80,7 +80,8 @@ class Joiner { $prefix = empty($field['explicit_join']) ? '' : $field['explicit_join'] . '.'; $prefix .= (empty($field['implicit_join']) ? '' : $field['implicit_join'] . '.'); $idField = $query->getField($prefix . $field['name'] . '.id'); - return $idField['sql_name']; + // If permission denied to join, SELECT NULL + return $idField['sql_name'] ?? 'NULL'; } } diff --git a/civicrm/Civi/Api4/Service/Schema/SchemaMapBuilder.php b/civicrm/Civi/Api4/Service/Schema/SchemaMapBuilder.php index dc388ae4e8..576b96ec6e 100644 --- a/civicrm/Civi/Api4/Service/Schema/SchemaMapBuilder.php +++ b/civicrm/Civi/Api4/Service/Schema/SchemaMapBuilder.php @@ -16,6 +16,7 @@ use Civi\Api4\Entity; use Civi\Api4\Event\SchemaMapBuildEvent; use Civi\Api4\Service\Schema\Joinable\CustomGroupJoinable; use Civi\Api4\Service\Schema\Joinable\Joinable; +use Civi\Api4\Utils\CoreUtil; use Civi\Core\Service\AutoService; use Civi\Core\CiviEventDispatcherInterface; use CRM_Core_DAO_AllCoreTables as AllCoreTables; @@ -142,7 +143,7 @@ class SchemaMapBuilder extends AutoService { } if ($fieldData->data_type === 'EntityReference' && isset($fieldData->fk_entity)) { - $targetTable = AllCoreTables::getTableForEntityName($fieldData->fk_entity); + $targetTable = self::getTableName($fieldData->fk_entity); $joinable = new Joinable($targetTable, 'id', $fieldData->name); $customTable->addTableLink($fieldData->column_name, $joinable); } @@ -162,4 +163,15 @@ class SchemaMapBuilder extends AutoService { } } + /** + * @param string $entityName + * @return string + */ + private static function getTableName(string $entityName) { + if (CoreUtil::isContact($entityName)) { + return 'civicrm_contact'; + } + return AllCoreTables::getTableForEntityName($entityName); + } + } diff --git a/civicrm/Civi/Api4/Service/Spec/Provider/ContactGetSpecProvider.php b/civicrm/Civi/Api4/Service/Spec/Provider/ContactGetSpecProvider.php index 3e664c9c18..9d630092b9 100644 --- a/civicrm/Civi/Api4/Service/Spec/Provider/ContactGetSpecProvider.php +++ b/civicrm/Civi/Api4/Service/Spec/Provider/ContactGetSpecProvider.php @@ -15,6 +15,7 @@ namespace Civi\Api4\Service\Spec\Provider; use Civi\Api4\Query\Api4SelectQuery; use Civi\Api4\Service\Spec\FieldSpec; use Civi\Api4\Service\Spec\RequestSpec; +use Civi\Api4\Utils\CoreUtil; /** * @service @@ -27,7 +28,7 @@ class ContactGetSpecProvider extends \Civi\Core\Service\AutoService implements G */ public function modifySpec(RequestSpec $spec) { // Groups field - $field = new FieldSpec('groups', 'Contact', 'Array'); + $field = new FieldSpec('groups', $spec->getEntity(), 'Array'); $field->setLabel(ts('In Groups')) ->setTitle(ts('Groups')) ->setColumnName('id') @@ -40,11 +41,10 @@ class ContactGetSpecProvider extends \Civi\Core\Service\AutoService implements G ->setOptionsCallback([__CLASS__, 'getGroupList']); $spec->addFieldSpec($field); - // The following fields are specific to Individuals, so omit them if - // `contact_type` value was passed to `getFields` and is not "Individual" + // The following fields are specific to Individuals if (!$spec->getValue('contact_type') || $spec->getValue('contact_type') === 'Individual') { // Age field - $field = new FieldSpec('age_years', 'Contact', 'Integer'); + $field = new FieldSpec('age_years', $spec->getEntity(), 'Integer'); $field->setLabel(ts('Age (years)')) ->setTitle(ts('Age (years)')) ->setColumnName('birth_date') @@ -56,18 +56,16 @@ class ContactGetSpecProvider extends \Civi\Core\Service\AutoService implements G $spec->addFieldSpec($field); // Birthday field - if (!$spec->getValue('contact_type') || $spec->getValue('contact_type') === 'Individual') { - $field = new FieldSpec('next_birthday', 'Contact', 'Integer'); - $field->setLabel(ts('Next Birthday in (days)')) - ->setTitle(ts('Next Birthday in (days)')) - ->setColumnName('birth_date') - ->setInputType('Number') - ->setDescription(ts('Number of days until next birthday')) - ->setType('Extra') - ->setReadonly(TRUE) - ->setSqlRenderer([__CLASS__, 'calculateBirthday']); - $spec->addFieldSpec($field); - } + $field = new FieldSpec('next_birthday', $spec->getEntity(), 'Integer'); + $field->setLabel(ts('Next Birthday in (days)')) + ->setTitle(ts('Next Birthday in (days)')) + ->setColumnName('birth_date') + ->setInputType('Number') + ->setDescription(ts('Number of days until next birthday')) + ->setType('Extra') + ->setReadonly(TRUE) + ->setSqlRenderer([__CLASS__, 'calculateBirthday']); + $spec->addFieldSpec($field); } // Address, Email, Phone, IM primary/billing virtual fields @@ -118,7 +116,7 @@ class ContactGetSpecProvider extends \Civi\Core\Service\AutoService implements G foreach ($entities as $entity => $types) { foreach ($types as $type => $info) { $name = strtolower($entity) . '_' . $type; - $field = new FieldSpec($name, 'Contact', 'Integer'); + $field = new FieldSpec($name, $spec->getEntity(), 'Integer'); $field->setLabel($info['label']) ->setTitle($info['title']) ->setColumnName('id') @@ -138,7 +136,8 @@ class ContactGetSpecProvider extends \Civi\Core\Service\AutoService implements G * @return bool */ public function applies($entity, $action) { - return $entity === 'Contact' && $action === 'get'; + // Applies to 'Contact' plus pseudo-entities 'Individual', 'Organization', 'Household' + return CoreUtil::isContact($entity) && $action === 'get'; } /** diff --git a/civicrm/Civi/Api4/Service/Spec/Provider/CustomValueSpecProvider.php b/civicrm/Civi/Api4/Service/Spec/Provider/CustomValueSpecProvider.php index 1da2127af6..5ac7c1e6de 100644 --- a/civicrm/Civi/Api4/Service/Spec/Provider/CustomValueSpecProvider.php +++ b/civicrm/Civi/Api4/Service/Spec/Provider/CustomValueSpecProvider.php @@ -14,6 +14,7 @@ namespace Civi\Api4\Service\Spec\Provider; use Civi\Api4\Service\Spec\FieldSpec; use Civi\Api4\Service\Spec\RequestSpec; +use Civi\Api4\Utils\CoreUtil; /** * @service @@ -31,19 +32,26 @@ class CustomValueSpecProvider extends \Civi\Core\Service\AutoService implements $idField->setType('Field'); $idField->setInputType('Number'); $idField->setColumnName('id'); - $idField->setNullable('false'); + $idField->setNullable(FALSE); $idField->setTitle(ts('Custom Value ID')); $idField->setReadonly(TRUE); $idField->setNullable(FALSE); $spec->addFieldSpec($idField); + // Check which entity this group extends + $groupName = CoreUtil::getCustomGroupName($spec->getEntity()); + $baseEntity = \CRM_Core_BAO_CustomGroup::getEntityForGroup($groupName); + // Lookup base entity info using DAO methods not CoreUtil to avoid early-bootstrap issues + $baseEntityDao = \CRM_Core_DAO_AllCoreTables::getFullName($baseEntity); + $baseEntityTitle = $baseEntityDao ? $baseEntityDao::getEntityTitle() : $baseEntity; + $entityField = new FieldSpec('entity_id', $spec->getEntity(), 'Integer'); $entityField->setType('Field'); $entityField->setColumnName('entity_id'); $entityField->setTitle(ts('Entity ID')); - $entityField->setLabel(ts('Contact')); + $entityField->setLabel($baseEntityTitle); $entityField->setRequired($action === 'create'); - $entityField->setFkEntity('Contact'); + $entityField->setFkEntity($baseEntity); $entityField->setReadonly(TRUE); $entityField->setNullable(FALSE); $entityField->setInputType('EntityRef'); @@ -54,7 +62,7 @@ class CustomValueSpecProvider extends \Civi\Core\Service\AutoService implements * @inheritDoc */ public function applies($entity, $action) { - return strstr($entity, 'Custom_'); + return str_starts_with($entity, 'Custom_'); } } diff --git a/civicrm/Civi/Api4/Service/Spec/Provider/FileGetSpecProvider.php b/civicrm/Civi/Api4/Service/Spec/Provider/FileGetSpecProvider.php new file mode 100644 index 0000000000..517eb61aeb --- /dev/null +++ b/civicrm/Civi/Api4/Service/Spec/Provider/FileGetSpecProvider.php @@ -0,0 +1,139 @@ +<?php + +/* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ + */ + +namespace Civi\Api4\Service\Spec\Provider; + +use Civi\Api4\Query\Api4SelectQuery; +use Civi\Api4\Service\Spec\FieldSpec; +use Civi\Api4\Service\Spec\RequestSpec; + +/** + * @service + * @internal + */ +class FileGetSpecProvider extends \Civi\Core\Service\AutoService implements Generic\SpecProviderInterface { + + public function modifySpec(RequestSpec $spec): void { + $field = new FieldSpec('file_name', $spec->getEntity(), 'String'); + $field->setLabel(ts('Filename')) + ->setTitle(ts('Filename')) + ->setColumnName('uri') + ->setDescription(ts('Name of uploaded file')) + ->setType('Extra') + ->addOutputFormatter([__CLASS__, 'formatFileName']); + // Uncomment this line and delete the function `formatFileName` when bumping min mysql version + // ->setSqlRenderer([__CLASS__, 'renderFileName']); + $spec->addFieldSpec($field); + + $field = new FieldSpec('url', $spec->getEntity(), 'String'); + $field->setLabel(ts('Download Url')) + ->setTitle(ts('File Url')) + ->setColumnName('id') + ->setDescription(ts('Url at which this file can be downloaded')) + ->setType('Extra') + ->setSqlRenderer([__CLASS__, 'renderFileUrl']) + ->addOutputFormatter([__CLASS__, 'formatFileUrl']); + $spec->addFieldSpec($field); + + $field = new FieldSpec('icon', $spec->getEntity(), 'String'); + $field->setLabel(ts('Icon')) + ->setTitle(ts('Filetype Icon')) + ->setColumnName('mime_type') + ->setDescription(ts('Icon associated with this filetype')) + ->setType('Extra') + ->addOutputFormatter([__CLASS__, 'formatFileIcon']); + $spec->addFieldSpec($field); + + $field = new FieldSpec('is_image', $spec->getEntity(), 'Boolean'); + $field->setLabel(ts('Is Image')) + ->setTitle(ts('File is Image')) + ->setColumnName('mime_type') + ->setDescription(ts('Is this a recognized image type file')) + ->setType('Extra') + ->setSqlRenderer([__CLASS__, 'renderFileIsImage']); + $spec->addFieldSpec($field); + } + + public static function formatFileName(&$uri) { + if (version_compare(\CRM_Upgrade_Incremental_General::MIN_INSTALL_MYSQL_VER, 8, '>=')) { + // Warning to make the unit test fail after we bump min sql version to one that supports REGEX_REPLACE + \CRM_Core_Error::deprecatedWarning('Update FileGetSpecProvider to use renderFileName instead of formatFileName.'); + } + if ($uri && is_string($uri)) { + $uri = \CRM_Utils_File::cleanFileName($uri); + } + } + + /** + * Unused until we bump min sql version to 8 + * @see formatFileName + */ + public static function renderFileName(array $field): string { + // MySql doesn't use preg delimiters + $pattern = str_replace('/', "'", \CRM_Utils_File::HASH_REMOVAL_PATTERN); + return "REGEX_REPLACE({$field['sql_name']}, $pattern, '.')"; + } + + public static function renderFileUrl(array $idField, Api4SelectQuery $query): string { + // Getting a link to the file requires the `entity_id` from the `civicrm_entity_file` table + // If the file was implicitly joined, the joined-from-entity has the id we want + if ($idField['implicit_join']) { + $joinField = $query->getField($idField['implicit_join']); + $entityIdField = $query->getFieldSibling($joinField, 'id'); + } + // If it's explicitly joined FROM another entity, get the id of the parent + elseif ($idField['explicit_join']) { + $parent = $query->getJoinParent($idField['explicit_join']); + $joinPrefix = $parent ? "$parent." : ''; + $entityIdField = $query->getField($joinPrefix . 'id'); + } + // If it's explicitly joined TO another entity, use the id of the other + if (!isset($entityIdField)) { + foreach ($query->getExplicitJoins() as $join) { + if ($join['bridge'] === 'EntityFile') { + $entityIdField = $query->getField($join['alias'] . '.id'); + } + } + } + if (isset($entityIdField)) { + return "CONCAT('civicrm/file?reset=1&id=', $idField[sql_name], '&eid=', $entityIdField[sql_name])"; + } + // Guess we couldn't find an `entity_id` in the query. This function could probably be improved. + return "NULL"; + } + + public static function renderFileIsImage(array $mimeTypeField, Api4SelectQuery $query): string { + $uriField = $query->getFieldSibling($mimeTypeField, 'uri'); + return "IF(($mimeTypeField[sql_name] LIKE 'image/%') AND ($uriField[sql_name] NOT LIKE '%.unknown'), 1, 0)"; + } + + public static function formatFileUrl(&$value) { + $args = []; + // renderFileUrl() will have formatted the output in-sql to `civicrm/file?reset=1&id=id&eid=entity_id` + if (is_string($value) && str_contains($value, '?')) { + parse_str(explode('?', $value)[1], $args); + $value .= '&fcs=' . \CRM_Core_BAO_File::generateFileHash($args['eid'], $args['id']); + $value = (string) \Civi::url('frontend://' . $value, 'a'); + } + } + + public static function formatFileIcon(&$value) { + if (is_string($value)) { + $value = \CRM_Utils_File::getIconFromMimeType($value); + } + } + + public function applies($entity, $action): bool { + return $entity === 'File' && $action === 'get'; + } + +} diff --git a/civicrm/Civi/Api4/Service/Spec/Provider/ManagedEntitySpecProvider.php b/civicrm/Civi/Api4/Service/Spec/Provider/ManagedEntitySpecProvider.php index 5a247952e9..28c149d9b3 100644 --- a/civicrm/Civi/Api4/Service/Spec/Provider/ManagedEntitySpecProvider.php +++ b/civicrm/Civi/Api4/Service/Spec/Provider/ManagedEntitySpecProvider.php @@ -52,7 +52,7 @@ class ManagedEntitySpecProvider extends \Civi\Core\Service\AutoService implement ->setDescription(ts('Name of extension which provides this package')) ->setType('Extra') ->setReadonly(TRUE) - ->setOptionsCallback(['CRM_Core_PseudoConstant', 'getExtensions']) + ->setOptionsCallback(['CRM_Core_BAO_Managed', 'getBaseModules']) ->setSqlRenderer([__CLASS__, 'renderBaseModule']); $spec->addFieldSpec($field); diff --git a/civicrm/Civi/Api4/Service/Spec/Provider/ContactCreationSpecProvider.php b/civicrm/Civi/Api4/Service/Spec/Provider/OptionGroupCreationSpecProvider.php similarity index 64% rename from civicrm/Civi/Api4/Service/Spec/Provider/ContactCreationSpecProvider.php rename to civicrm/Civi/Api4/Service/Spec/Provider/OptionGroupCreationSpecProvider.php index 15cb41cafd..738a80b614 100644 --- a/civicrm/Civi/Api4/Service/Spec/Provider/ContactCreationSpecProvider.php +++ b/civicrm/Civi/Api4/Service/Spec/Provider/OptionGroupCreationSpecProvider.php @@ -18,24 +18,21 @@ use Civi\Api4\Service\Spec\RequestSpec; * @service * @internal */ -class ContactCreationSpecProvider extends \Civi\Core\Service\AutoService implements Generic\SpecProviderInterface { +class OptionGroupCreationSpecProvider extends \Civi\Core\Service\AutoService implements Generic\SpecProviderInterface { /** - * @param \Civi\Api4\Service\Spec\RequestSpec $spec + * @inheritDoc */ public function modifySpec(RequestSpec $spec) { - $spec->getFieldByName('is_opt_out')->setRequired(FALSE); - $spec->getFieldByName('is_deleted')->setRequired(FALSE); + $spec->getFieldByName('name')->setRequired(FALSE); + $spec->getFieldByName('title')->setRequiredIf('empty($values.name)'); } /** - * @param string $entity - * @param string $action - * - * @return bool + * @inheritDoc */ public function applies($entity, $action) { - return $entity === 'Contact' && $action === 'create'; + return $entity === 'OptionGroup' && $action === 'create'; } } diff --git a/civicrm/Civi/Api4/Service/Spec/Provider/RelationshipCacheSpecProvider.php b/civicrm/Civi/Api4/Service/Spec/Provider/RelationshipCacheSpecProvider.php index 051d7d0753..a7468f2c73 100644 --- a/civicrm/Civi/Api4/Service/Spec/Provider/RelationshipCacheSpecProvider.php +++ b/civicrm/Civi/Api4/Service/Spec/Provider/RelationshipCacheSpecProvider.php @@ -61,6 +61,7 @@ class RelationshipCacheSpecProvider extends \Civi\Core\Service\AutoService imple // Fetches the value from the relationship ->setColumnName('relationship_id') ->setDescription($fieldInfo['description']) + ->setSuffixes(['name', 'label', 'icon']) ->setOptionsCallback(['CRM_Core_SelectValues', 'getPermissionedRelationshipOptions']) ->setSqlRenderer([__CLASS__, 'directionalRelationshipField']); $spec->addFieldSpec($field); diff --git a/civicrm/Civi/Api4/Service/Spec/SpecFormatter.php b/civicrm/Civi/Api4/Service/Spec/SpecFormatter.php index 1b21b781e2..622a11178b 100644 --- a/civicrm/Civi/Api4/Service/Spec/SpecFormatter.php +++ b/civicrm/Civi/Api4/Service/Spec/SpecFormatter.php @@ -19,18 +19,18 @@ class SpecFormatter { /** * @param array $data - * @param string $entity + * @param string $entityName * * @return FieldSpec */ - public static function arrayToField(array $data, $entity) { + public static function arrayToField(array $data, string $entityName): FieldSpec { $dataTypeName = self::getDataType($data); $hasDefault = isset($data['default']) && $data['default'] !== ''; // Custom field if (!empty($data['custom_group_id'])) { - $field = new CustomFieldSpec($data['name'], $entity, $dataTypeName); - if (strpos($entity, 'Custom_') !== 0) { + $field = new CustomFieldSpec($data['name'], $entityName, $dataTypeName); + if (strpos($entityName, 'Custom_') !== 0) { $field->setName($data['custom_group_id.name'] . '.' . $data['name']); } else { @@ -62,7 +62,7 @@ class SpecFormatter { // Core field else { $name = $data['name'] ?? NULL; - $field = new FieldSpec($name, $entity, $dataTypeName); + $field = new FieldSpec($name, $entityName, $dataTypeName); $field->setType('Field'); $field->setColumnName($name); $field->setNullable(empty($data['required'])); @@ -70,6 +70,9 @@ class SpecFormatter { $field->setTitle($data['title'] ?? NULL); $field->setLabel($data['html']['label'] ?? NULL); $field->setLocalizable($data['localizable'] ?? FALSE); + if (!empty($data['DFKEntities'])) { + $field->setDfkEntities(array_values($data['DFKEntities'])); + } if (!empty($data['pseudoconstant'])) { // Do not load options if 'prefetch' is disabled if (($data['pseudoconstant']['prefetch'] ?? NULL) !== 'disabled') { @@ -127,14 +130,15 @@ class SpecFormatter { * @return string */ private static function getDataType(array $data) { - if (isset($data['data_type'])) { - return !empty($data['time_format']) ? 'Timestamp' : $data['data_type']; + $dataType = $data['data_type'] ?? $data['dataType'] ?? NULL; + if (isset($dataType)) { + return !empty($data['time_format']) ? 'Timestamp' : $dataType; } $dataTypeInt = $data['type'] ?? NULL; $dataTypeName = \CRM_Utils_Type::typeToString($dataTypeInt); - return $dataTypeName; + return $dataTypeName === 'Int' ? 'Integer' : $dataTypeName; } /** @@ -300,10 +304,10 @@ class SpecFormatter { self::setLegacyDateFormat($inputAttrs); } // Number input for numeric fields - if ($inputType === 'Text' && in_array($dataTypeName, ['Int', 'Float'], TRUE)) { + if ($inputType === 'Text' && in_array($dataTypeName, ['Integer', 'Float'], TRUE)) { $inputType = 'Number'; // Todo: make 'step' configurable for the custom field - $inputAttrs['step'] = $dataTypeName === 'Int' ? 1 : .01; + $inputAttrs['step'] = $dataTypeName === 'Integer' ? 1 : .01; } // Date/time settings from custom fields if ($inputType == 'Date' && !empty($data['custom_group_id'])) { diff --git a/civicrm/Civi/Api4/Service/Spec/SpecGatherer.php b/civicrm/Civi/Api4/Service/Spec/SpecGatherer.php index 80ce71555a..0e5225723d 100644 --- a/civicrm/Civi/Api4/Service/Spec/SpecGatherer.php +++ b/civicrm/Civi/Api4/Service/Spec/SpecGatherer.php @@ -47,7 +47,7 @@ class SpecGatherer extends AutoService { $specification = new RequestSpec($entity, $action, $values); // Real entities - if (strpos($entity, 'Custom_') !== 0) { + if (!str_starts_with($entity, 'Custom_')) { $this->addDAOFields($entity, $action, $specification, $values); if ($includeCustom) { $this->addCustomFields($entity, $specification, $checkPermissions); @@ -77,21 +77,21 @@ class SpecGatherer extends AutoService { /** * @param \Civi\Api4\Service\Spec\Provider\Generic\SpecProviderInterface $provider */ - public function addSpecProvider(SpecProviderInterface $provider) { + public function addSpecProvider(SpecProviderInterface $provider): void { $this->specProviders[] = $provider; } /** - * @param string $entity + * @param string $entityName * @param string $action * @param \Civi\Api4\Service\Spec\RequestSpec $spec * @param array $values */ - private function addDAOFields($entity, $action, RequestSpec $spec, array $values) { - $DAOFields = $this->getDAOFields($entity); + private function addDAOFields(string $entityName, string $action, RequestSpec $spec, array $values) { + $DAOFields = $this->getDAOFields($entityName); foreach ($DAOFields as $DAOField) { - if (array_key_exists('contactType', $DAOField) && $spec->getValue('contact_type') && $DAOField['contactType'] != $spec->getValue('contact_type')) { + if (isset($DAOField['contactType']) && $spec->getValue('contact_type') && $DAOField['contactType'] !== $spec->getValue('contact_type')) { continue; } if (!empty($DAOField['component']) && !\CRM_Core_Component::isEnabled($DAOField['component'])) { @@ -100,32 +100,36 @@ class SpecGatherer extends AutoService { if ($DAOField['name'] == 'is_active' && empty($DAOField['default'])) { $DAOField['default'] = '1'; } - $this->setDynamicFk($DAOField, $entity, $values); - $field = SpecFormatter::arrayToField($DAOField, $entity); + $this->setDynamicFk($DAOField, $values); + $field = SpecFormatter::arrayToField($DAOField, $entityName); $spec->addFieldSpec($field); } } /** - * Cleverly enables getFields to report dynamic FKs if a value is supplied for the entity type. + * Adds metadata about dynamic foreign key fields. * - * E.g. many tables have a DFK with a pair of `entity_table` and `entity_id` columns. - * If you supply a value for `entity_table`, then getFields will output the correct `fk_entity` for the `entity_id` field. + * E.g. some tables have a DFK with a pair of columns named `entity_table` and `entity_id`. + * This will gather the list of 'dfk_entities' to add as metadata to the e.g. `entity_id` column. + * + * Additionally, if $values contains a value for e.g. `entity_table`, + * then getFields will also output the corresponding `fk_entity` for the `entity_id` field. * * @param array $DAOField - * @param string $entityName * @param array $values */ - private function setDynamicFk(array &$DAOField, string $entityName, array $values): void { - if (empty($field['FKClassName']) && $values) { - $bao = CoreUtil::getBAOFromApiName($entityName); - // Check all dynamic FKs for entity for a match with this field and a supplied value - foreach ($bao::getReferenceColumns() ?? [] as $reference) { - if ($reference instanceof \CRM_Core_Reference_Dynamic - && $reference->getReferenceKey() === $DAOField['name'] - && array_key_exists($reference->getTypeColumn(), $values) - ) { - $DAOField['FKClassName'] = \CRM_Core_DAO_AllCoreTables::getClassForTable($values[$reference->getTypeColumn()]); + private function setDynamicFk(array &$DAOField, array $values): void { + if (empty($DAOField['FKClassName']) && !empty($DAOField['bao']) && $DAOField['type'] == \CRM_Utils_Type::T_INT) { + // Check if this field is a key for a dynamic FK + foreach ($DAOField['bao']::getReferenceColumns() ?? [] as $reference) { + if ($reference instanceof \CRM_Core_Reference_Dynamic && $reference->getReferenceKey() === $DAOField['name']) { + $entityTableColumn = $reference->getTypeColumn(); + $DAOField['DFKEntities'] = $reference->getTargetEntities(); + $DAOField['html']['controlField'] = $entityTableColumn; + // If we have a value for entity_table then this field can pretend to be a single FK too. + if (array_key_exists($entityTableColumn, $values)) { + $DAOField['FKClassName'] = \CRM_Core_DAO_AllCoreTables::getClassForTable($values[$entityTableColumn]); + } break; } } @@ -142,13 +146,24 @@ class SpecGatherer extends AutoService { * @see \CRM_Core_SelectValues::customGroupExtends */ private function addCustomFields(string $entity, RequestSpec $spec, bool $checkPermissions) { + $values = $spec->getValues(); + + // Handle contact type pseudo-entities + $contactTypes = \CRM_Contact_BAO_ContactType::basicTypes(); + // If contact type is given + if ($entity === 'Contact' && !empty($values['contact_type'])) { + $entity = $values['contact_type']; + } + $customInfo = \Civi\Api4\Utils\CoreUtil::getCustomGroupExtends($entity); if (!$customInfo) { return; } - $values = $spec->getValues(); $extends = $customInfo['extends']; $grouping = $customInfo['grouping']; + if ($entity === 'Contact' || in_array($entity, $contactTypes, TRUE)) { + $grouping = 'contact_sub_type'; + } $query = CustomField::get(FALSE) ->setSelect(['custom_group_id.name', 'custom_group_id.title', '*']) @@ -165,17 +180,6 @@ class SpecGatherer extends AutoService { $query->addWhere('custom_group_id', 'IN', $allowedGroups); } - // Contact custom groups are extra complicated because contact_type can be a value for extends - if ($entity === 'Contact') { - if (array_key_exists('contact_type', $values)) { - $extends = ['Contact']; - if ($values['contact_type']) { - $extends[] = $values['contact_type']; - } - } - // Now grouping can be treated normally - $grouping = 'contact_sub_type'; - } if (is_string($grouping) && array_key_exists($grouping, $values)) { if (empty($values[$grouping])) { $query->addWhere('custom_group_id.extends_entity_column_value', 'IS EMPTY'); diff --git a/civicrm/Civi/Api4/Utils/CoreUtil.php b/civicrm/Civi/Api4/Utils/CoreUtil.php index 473c6ff803..75dc24b5fb 100644 --- a/civicrm/Civi/Api4/Utils/CoreUtil.php +++ b/civicrm/Civi/Api4/Utils/CoreUtil.php @@ -20,6 +20,10 @@ use CRM_Core_DAO_AllCoreTables as AllCoreTables; class CoreUtil { + public static function entityExists(string $entityName): bool { + return (bool) self::getInfoItem($entityName, 'name'); + } + /** * @param $entityName * @@ -28,10 +32,17 @@ class CoreUtil { * auto-completion of static methods */ public static function getBAOFromApiName($entityName) { + // TODO: It would be nice to just call self::getInfoItem($entityName, 'dao') + // but that currently causes test failures, probably due to early-bootstrap issues. if ($entityName === 'CustomValue' || strpos($entityName, 'Custom_') === 0) { - return 'CRM_Core_BAO_CustomValue'; + $dao = \Civi\Api4\CustomValue::getInfo()['dao']; + } + else { + $dao = AllCoreTables::getFullName($entityName); + } + if (!$dao && self::isContact($entityName)) { + $dao = 'CRM_Contact_DAO_Contact'; } - $dao = AllCoreTables::getFullName($entityName); return $dao ? AllCoreTables::getBAOClassName($dao) : NULL; } @@ -49,7 +60,7 @@ class CoreUtil { } /** - * @param $entityName + * @param string $entityName * @return string|\Civi\Api4\Generic\AbstractEntity */ public static function getApiClass($entityName) { @@ -60,6 +71,13 @@ class CoreUtil { return self::getInfoItem($entityName, 'class'); } + /** + * Returns TRUE if `entityName` is 'Contact', 'Individual', 'Organization' or 'Household' + */ + public static function isContact(string $entityName): bool { + return $entityName === 'Contact' || in_array($entityName, \CRM_Contact_BAO_ContactType::basicTypes(TRUE), TRUE); + } + /** * Get a piece of metadata about an entity * @@ -117,6 +135,10 @@ class CoreUtil { return NULL; } + public static function getCustomGroupName(string $entityName): ?string { + return str_starts_with($entityName, 'Custom_') ? substr($entityName, 7) : NULL; + } + /** * @return string[] */ @@ -134,15 +156,26 @@ class CoreUtil { /** * For a given API Entity, return the types of custom fields it supports and the column they join to. * + * Sort of the inverse of this function: + * @see \CRM_Core_BAO_CustomGroup::getEntityForGroup + * * @param string $entityName * @return array{extends: array, column: string, grouping: mixed}|null */ public static function getCustomGroupExtends(string $entityName) { + $contactTypes = \CRM_Contact_BAO_ContactType::basicTypes(); // Custom_group.extends pretty much maps 1-1 with entity names, except for Contact. + if (in_array($entityName, $contactTypes, TRUE)) { + return [ + 'extends' => ['Contact', $entityName], + 'column' => 'id', + 'grouping' => ['contact_type', 'contact_sub_type'], + ]; + } switch ($entityName) { case 'Contact': return [ - 'extends' => array_merge(['Contact'], array_keys(\CRM_Core_SelectValues::contactType())), + 'extends' => array_merge(['Contact'], $contactTypes), 'column' => 'id', 'grouping' => ['contact_type', 'contact_sub_type'], ]; @@ -430,4 +463,14 @@ class CoreUtil { } } + /** + * Strips leading namespace from a classname + * @param string $className + * @return string + */ + public static function stripNamespace(string $className): string { + $slashPos = strrpos($className, '\\'); + return $slashPos === FALSE ? $className : substr($className, $slashPos + 1); + } + } diff --git a/civicrm/Civi/Api4/Utils/FormattingUtil.php b/civicrm/Civi/Api4/Utils/FormattingUtil.php index 4a63e4db41..ba93b4a278 100644 --- a/civicrm/Civi/Api4/Utils/FormattingUtil.php +++ b/civicrm/Civi/Api4/Utils/FormattingUtil.php @@ -80,16 +80,16 @@ class FormattingUtil { * This is used by read AND write actions (Get, Create, Update, Replace) * * @param $value - * @param string|null $fieldName + * @param string|null $fieldPath * @param array $fieldSpec * @param array $params * @param string|null $operator (only for 'get' actions) * @param null $index (for recursive loops) * @throws \CRM_Core_Exception */ - public static function formatInputValue(&$value, ?string $fieldName, array $fieldSpec, array $params = [], &$operator = NULL, $index = NULL) { + public static function formatInputValue(&$value, ?string $fieldPath, array $fieldSpec, array $params = [], &$operator = NULL, $index = NULL) { // Evaluate pseudoconstant suffix - $suffix = str_replace(':', '', strstr(($fieldName ?? ''), ':')); + $suffix = str_replace(':', '', strstr(($fieldPath ?? ''), ':')); $fk = $fieldSpec['name'] == 'id' ? $fieldSpec['entity'] : $fieldSpec['fk_entity'] ?? NULL; // Handle special 'current_domain' option. See SpecFormatter::getOptions @@ -113,14 +113,14 @@ class FormattingUtil { // Convert option list suffix to value if ($suffix) { - $options = self::getPseudoconstantList($fieldSpec, $fieldName, $params, $operator ? 'get' : 'create'); + $options = self::getPseudoconstantList($fieldSpec, $fieldPath, $params, $operator ? 'get' : 'create'); $value = self::replacePseudoconstant($options, $value, TRUE); return; } elseif (is_array($value)) { $i = 0; foreach ($value as &$val) { - self::formatInputValue($val, $fieldName, $fieldSpec, $params, $operator, $i++); + self::formatInputValue($val, $fieldPath, $fieldSpec, $params, $operator, $i++); } return; } @@ -144,7 +144,7 @@ class FormattingUtil { } $hic = \CRM_Utils_API_HTMLInputCoder::singleton(); - if (is_string($value) && $fieldName && !$hic->isSkippedField($fieldSpec['name'])) { + if (is_string($value) && $fieldPath && !$hic->isSkippedField($fieldSpec['name'])) { $value = $hic->encodeValue($value); } } @@ -237,17 +237,17 @@ class FormattingUtil { continue; } $fieldExpr = SqlExpression::convert($selectAliases[$key] ?? $key); - $fieldName = \CRM_Utils_Array::first($fieldExpr->getFields() ?? ''); + $fieldName = \CRM_Utils_Array::first($fieldExpr->getFields()); $baseName = $fieldName ? \CRM_Utils_Array::first(explode(':', $fieldName)) : NULL; $field = $fields[$fieldName] ?? $fields[$baseName] ?? NULL; $dataType = $field['data_type'] ?? ($fieldName == 'id' ? 'Integer' : NULL); - // Allow Sql Functions to do alter the value and/or $dataType + // Allow Sql Functions to alter the value and/or $dataType if (method_exists($fieldExpr, 'formatOutputValue') && is_string($value)) { $fieldExpr->formatOutputValue($dataType, $result, $key); $value = $result[$key]; } if (!empty($field['output_formatters'])) { - self::applyFormatters($result, $fieldName, $field, $value); + self::applyFormatters($result, $fieldExpr, $field, $value); $dataType = NULL; } // Evaluate pseudoconstant suffixes @@ -345,15 +345,34 @@ class FormattingUtil { * Apply a field's output_formatters callback functions * * @param array $result - * @param string $fieldPath - * @param array $field + * @param \Civi\Api4\Query\SqlExpression $fieldExpr + * @param array $fieldDefn * @param mixed $value */ - private static function applyFormatters(array $result, string $fieldPath, array $field, &$value) { - $row = self::filterByPath($result, $fieldPath, $field['name']); + private static function applyFormatters(array $result, SqlExpression $fieldExpr, array $fieldDefn, &$value): void { + $fieldPath = \CRM_Utils_Array::first($fieldExpr->getFields()); + $row = self::filterByPath($result, $fieldPath, $fieldDefn['name']); + + // For aggregated array data, apply the formatter to each item + if (is_array($value) && $fieldExpr->getType() === 'SqlFunction' && $fieldExpr::getCategory() === 'aggregate') { + foreach ($value as $index => &$val) { + $subRow = $row; + foreach ($row as $rowKey => $rowValue) { + if (is_array($rowValue) && array_key_exists($index, $rowValue)) { + $subRow[$rowKey] = $rowValue[$index]; + } + } + self::applyFormatter($fieldDefn, $subRow, $val); + } + } + else { + self::applyFormatter($fieldDefn, $row, $value); + } + } - foreach ($field['output_formatters'] as $formatter) { - $formatter($value, $row, $field); + private static function applyFormatter(array $fieldDefn, array $row, &$value): void { + foreach ($fieldDefn['output_formatters'] as $formatter) { + $formatter($value, $row, $fieldDefn); } } @@ -382,9 +401,16 @@ class FormattingUtil { case 'Float': return (float) $value; + case 'Timestamp': case 'Date': + // Convert mysql-style default to api-style default + if (str_contains($value, 'CURRENT_TIMESTAMP')) { + return 'now'; + } // Strip time from date-only fields - return substr($value, 0, 10); + if ($dataType === 'Date' && $value) { + return substr($value, 0, 10); + } } } return $value; diff --git a/civicrm/Civi/Api4/Utils/ReflectionUtils.php b/civicrm/Civi/Api4/Utils/ReflectionUtils.php index 409c87db04..446d064621 100644 --- a/civicrm/Civi/Api4/Utils/ReflectionUtils.php +++ b/civicrm/Civi/Api4/Utils/ReflectionUtils.php @@ -142,9 +142,9 @@ class ReflectionUtils { * List all traits used by a class and its parents. * * @param object|string $class - * @return array + * @return string[] */ - public static function getTraits($class) { + public static function getTraits($class): array { $traits = []; // Get traits of this class + parent classes do { @@ -206,7 +206,7 @@ class ReflectionUtils { yield from []; foreach ($clazz->getMethods(\ReflectionMethod::IS_PUBLIC | \ReflectionMethod::IS_PROTECTED) as $m) { - if (\CRM_Utils_String::startsWith($m->getName(), $prefix)) { + if (str_starts_with($m->getName(), $prefix)) { yield $m; } } diff --git a/civicrm/Civi/Schema/Traits/DataTypeSpecTrait.php b/civicrm/Civi/Schema/Traits/DataTypeSpecTrait.php index 06b38dd82b..1c4b9bef1c 100644 --- a/civicrm/Civi/Schema/Traits/DataTypeSpecTrait.php +++ b/civicrm/Civi/Schema/Traits/DataTypeSpecTrait.php @@ -41,6 +41,11 @@ trait DataTypeSpecTrait { */ public $fkEntity; + /** + * @var string + */ + public $dfkEntities; + /** * Aliases for the valid data types * @@ -97,6 +102,23 @@ trait DataTypeSpecTrait { return $this; } + /** + * @return string + */ + public function getDfkEntities() { + return $this->dfkEntities; + } + + /** + * @param string $dfkEntities + * + * @return $this + */ + public function setDfkEntities($dfkEntities) { + $this->dfkEntities = $dfkEntities; + return $this; + } + /** * @return int */ diff --git a/civicrm/Civi/Test/Api4TestTrait.php b/civicrm/Civi/Test/Api4TestTrait.php index 0bfe6bc9d1..b78e81c7b2 100644 --- a/civicrm/Civi/Test/Api4TestTrait.php +++ b/civicrm/Civi/Test/Api4TestTrait.php @@ -4,7 +4,6 @@ namespace Civi\Test; use Civi\Api4\Generic\AbstractAction; use Civi\Api4\Generic\Result; -use Civi\Api4\Service\Spec\Provider\FinancialItemCreationSpecProvider; use Civi\Api4\Utils\CoreUtil; /** @@ -133,7 +132,7 @@ trait Api4TestTrait { !isset($values[$fieldName]) && ($field['required'] || AbstractAction::evaluateCondition($field['required_if'], $values + $extraValues)) ) { - $extraValues[$fieldName] = $this->getRequiredValue($field); + $extraValues[$fieldName] = $this->getRequiredValue($field, $requiredFields); } } @@ -227,27 +226,37 @@ trait Api4TestTrait { * @throws \CRM_Core_Exception */ private function getRequiredValue(array $field) { + // Hack that shouldn't exist except that these entities were added with bad fk metadata + // and existing tests at the time didn't catch it. + // TODO: Fix these entities and delete this list + // NOT TODO: Add to this list! + $fixmeDfkMissing = [ + 'EntityBatch' => 'Contact', + 'FinancialTrxn' => 'Contact', + 'Log' => 'Contact', + 'Managed' => 'Contact', + 'PCPBlock' => 'Contact', + 'PriceSetEntity' => 'Contact', + 'RecentItem' => 'Contact', + ]; if (!empty($field['options'])) { return key($field['options']); } if (!empty($field['fk_entity'])) { return $this->getFkID($field['fk_entity']); } + if (!empty($field['dfk_entities'])) { + return $this->getFkID($field['dfk_entities'][0]); + } if (isset($field['default_value'])) { return $field['default_value']; } - if ($field['name'] === 'contact_id') { - return $this->getFkID('Contact'); - } - if ($field['name'] === 'entity_id') { - // What could possibly go wrong with this? - switch ($field['table_name'] ?? NULL) { - case 'civicrm_financial_item': - return $this->getFkID(FinancialItemCreationSpecProvider::DEFAULT_ENTITY); - - default: - return $this->getFkID('Contact'); + // Obviously an FK field, but if we get here it's missing FK metadata :( + if ($field['name'] === 'contact_id' || $field['name'] === 'entity_id') { + if (isset($fixmeDfkMissing[$field['entity']])) { + return $this->getFkID($fixmeDfkMissing[$field['entity']]); } + throw new \CRM_Core_Exception($field['name'] . ' should have foreign key information defined.'); } // If there are no options but the field is supposed to have them, we may need to // create a new option diff --git a/civicrm/Civi/Test/HttpTestTrait.php b/civicrm/Civi/Test/HttpTestTrait.php index e3384ecbec..e74ccd4241 100644 --- a/civicrm/Civi/Test/HttpTestTrait.php +++ b/civicrm/Civi/Test/HttpTestTrait.php @@ -75,7 +75,7 @@ trait HttpTestTrait { * @return mixed */ protected function callApi4AjaxSuccess(string $entity, string $action, $params = []) { - $method = \CRM_Utils_String::startsWith($action, 'get') ? 'GET' : 'POST'; + $method = str_starts_with($action, 'get') ? 'GET' : 'POST'; $response = $this->createGuzzle()->request($method, "civicrm/ajax/api4/$entity/$action", [ 'headers' => ['X-Requested-With' => 'XMLHttpRequest'], // This should probably be 'form_params', but 'query' is more representative of frontend. @@ -99,7 +99,7 @@ trait HttpTestTrait { * @return mixed */ protected function callApi4AjaxError(string $entity, string $action, $params = []) { - $method = \CRM_Utils_String::startsWith($action, 'get') ? 'GET' : 'POST'; + $method = str_starts_with($action, 'get') ? 'GET' : 'POST'; $response = $this->createGuzzle()->request($method, "civicrm/ajax/api4/$entity/$action", [ 'headers' => ['X-Requested-With' => 'XMLHttpRequest'], // This should probably be 'form_params', but 'query' is more representative of frontend. diff --git a/civicrm/Civi/Token/TokenRow.php b/civicrm/Civi/Token/TokenRow.php index abaedda56e..0379febff2 100644 --- a/civicrm/Civi/Token/TokenRow.php +++ b/civicrm/Civi/Token/TokenRow.php @@ -286,7 +286,7 @@ class TokenRow { $htmlTokens[$entity][$field] = \CRM_Utils_String::purifyHTML($value); } else { - $htmlTokens[$entity][$field] = is_object($value) ? $value : nl2br(htmlentities($value, ENT_QUOTES)); + $htmlTokens[$entity][$field] = is_object($value) ? $value : rtrim(nl2br(htmlentities($value, ENT_QUOTES)), "\r\n"); } } } diff --git a/civicrm/ang/afform/afsearchNoteComments.aff.html b/civicrm/ang/afform/afsearchNoteComments.aff.html new file mode 100644 index 0000000000..69d333efca --- /dev/null +++ b/civicrm/ang/afform/afsearchNoteComments.aff.html @@ -0,0 +1,3 @@ +<div af-fieldset=""> + <crm-search-display-table search-name="Contact_Summary_Notes" display-name="Note_Comments" filters="{entity_table: 'civicrm_note', entity_id: routeParams.parent_id}"></crm-search-display-table> +</div> diff --git a/civicrm/ang/afform/afsearchNoteComments.aff.php b/civicrm/ang/afform/afsearchNoteComments.aff.php new file mode 100644 index 0000000000..eb4788c32c --- /dev/null +++ b/civicrm/ang/afform/afsearchNoteComments.aff.php @@ -0,0 +1,13 @@ +<?php + +return [ + 'type' => 'search', + 'title' => ts('Comments'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/contact/view/note/comments', + 'permission' => [ + 'access CiviCRM', + 'view all notes', + ], + 'permission_operator' => 'OR', +]; diff --git a/civicrm/ang/afform/afsearchTabNote.aff.html b/civicrm/ang/afform/afsearchTabNote.aff.html new file mode 100644 index 0000000000..626cea7f6b --- /dev/null +++ b/civicrm/ang/afform/afsearchTabNote.aff.html @@ -0,0 +1,3 @@ +<div af-fieldset=""> + <crm-search-display-table search-name="Contact_Summary_Notes" display-name="Contact_Summary_Notes_Tab" filters="{entity_id: options.contact_id, entity_table: 'civicrm_contact'}"></crm-search-display-table> +</div> diff --git a/civicrm/ang/afform/afsearchTabNote.aff.php b/civicrm/ang/afform/afsearchTabNote.aff.php new file mode 100644 index 0000000000..c22bf3a049 --- /dev/null +++ b/civicrm/ang/afform/afsearchTabNote.aff.php @@ -0,0 +1,16 @@ +<?php + +return [ + 'type' => 'search', + 'title' => ts('Notes'), + 'description' => '', + 'contact_summary' => 'tab', + 'summary_weight' => 100, + 'icon' => 'fa-sticky-note-o', + 'summary_contact_type' => NULL, + 'permission' => [ + 'access CiviCRM', + ], + 'permission_operator' => 'AND', + 'navigation' => NULL, +]; diff --git a/civicrm/ang/afform/afsearchTabRel.aff.html b/civicrm/ang/afform/afsearchTabRel.aff.html new file mode 100644 index 0000000000..07fb4f4622 --- /dev/null +++ b/civicrm/ang/afform/afsearchTabRel.aff.html @@ -0,0 +1,9 @@ +<div af-fieldset=""> + <div class="alert alert-warning"> + <strong>{{:: ts('Permissioned Relationships:') }}</strong> + <i class="crm-i fa-eye"></i> {{:: ts('This contact can be viewed by the other.') }} + <i class="crm-i fa-pencil-square"></i> {{:: ts('This contact can be viewed and edited by the other.') }} + </div> + <crm-search-display-table search-name="Contact_Summary_Relationships" display-name="Contact_Summary_Relationships_Active" filters="{near_contact_id: options.contact_id, is_current: true}"></crm-search-display-table> + <crm-search-display-table search-name="Contact_Summary_Relationships" display-name="Contact_Summary_Relationships_Inactive" filters="{near_contact_id: options.contact_id, is_current: false}"></crm-search-display-table> +</div> diff --git a/civicrm/ang/afform/afsearchTabRel.aff.php b/civicrm/ang/afform/afsearchTabRel.aff.php new file mode 100644 index 0000000000..3eb3cb03ae --- /dev/null +++ b/civicrm/ang/afform/afsearchTabRel.aff.php @@ -0,0 +1,13 @@ +<?php + +return [ + 'type' => 'search', + 'title' => ts('Relationships'), + 'permission' => [ + 'access CiviCRM', + ], + 'contact_summary' => 'tab', + 'icon' => 'fa-handshake-o', + 'summary_weight' => 80, + 'permission_operator' => 'AND', +]; diff --git a/civicrm/ang/api4Explorer/Explorer.js b/civicrm/ang/api4Explorer/Explorer.js index 48180a0f1d..12c922db26 100644 --- a/civicrm/ang/api4Explorer/Explorer.js +++ b/civicrm/ang/api4Explorer/Explorer.js @@ -1245,12 +1245,16 @@ if ($el.is('.crm-form-date-wrapper .crm-hidden-date')) { $el.crmDatepicker('destroy'); } - if ($el.is('.select2-container + input')) { + if (isSelect2()) { $el.crmAutocomplete('destroy'); } $(element).removeData().removeAttr('type').removeAttr('placeholder').show(); } + function isSelect2() { + return $(element).is('.select2-container + input'); + } + function makeWidget(field, op) { var $el = $(element), inputType = field.input_type, @@ -1312,7 +1316,7 @@ // If the viewValue is invalid (say required but empty) it will be `undefined` if (_.isUndefined(viewValue)) return; - if (!multi) { + if (!multi || !isSelect2()) { return viewValue; } diff --git a/civicrm/api/v3/Attachment.php b/civicrm/api/v3/Attachment.php index aa408d1bf5..5e16486707 100644 --- a/civicrm/api/v3/Attachment.php +++ b/civicrm/api/v3/Attachment.php @@ -205,6 +205,8 @@ function _civicrm_api3_attachment_delete_spec(&$spec) { unset($spec['id']['api.required']); $entityFileFields = CRM_Core_DAO_EntityFile::fields(); $spec['entity_table'] = $entityFileFields['entity_table']; + // Historically this field had no pseudoconstant and APIv3 can't handle it + $spec['entity_table']['pseudoconstant'] = NULL; $spec['entity_table']['title'] = CRM_Utils_Array::value('title', $spec['entity_table'], 'Entity Table') . ' (write-once)'; $spec['entity_id'] = $entityFileFields['entity_id']; $spec['entity_id']['title'] = CRM_Utils_Array::value('title', $spec['entity_id'], 'Entity ID') . ' (write-once)'; @@ -464,6 +466,8 @@ function _civicrm_api3_attachment_getfields() { $spec['description'] = $fileFields['description']; $spec['upload_date'] = $fileFields['upload_date']; $spec['entity_table'] = $entityFileFields['entity_table']; + // Historically this field had no pseudoconstant and APIv3 can't handle it + $spec['entity_table']['pseudoconstant'] = NULL; // Would be hard to securely handle changes. $spec['entity_table']['title'] = CRM_Utils_Array::value('title', $spec['entity_table'], 'Entity Table') . ' (write-once)'; $spec['entity_id'] = $entityFileFields['entity_id']; diff --git a/civicrm/api/v3/CustomGroup.php b/civicrm/api/v3/CustomGroup.php index 55d5f51774..6eaf8f6018 100644 --- a/civicrm/api/v3/CustomGroup.php +++ b/civicrm/api/v3/CustomGroup.php @@ -16,19 +16,17 @@ */ /** - * Create or modify a custom field group. + * This entire function consists of legacy handling, probably for a form that no longer exists. + * APIv3 is where code like this goes to die... * * @param array $params * For legacy reasons, 'extends' can be passed as an array (for setting Participant column_value) * * @return array - * @todo $params['extends'] is array format - is that std compatible */ function civicrm_api3_custom_group_create($params) { if (isset($params['extends']) && is_string($params['extends'])) { - $extends = explode(",", $params['extends']); - unset($params['extends']); - $params['extends'] = $extends; + $params['extends'] = explode(',', $params['extends']); } if (!isset($params['id']) && (!isset($params['extends'][0]) || !trim($params['extends'][0]))) { diff --git a/civicrm/api/v3/CustomValue.php b/civicrm/api/v3/CustomValue.php index 252adeb0f6..f2b7fb3194 100644 --- a/civicrm/api/v3/CustomValue.php +++ b/civicrm/api/v3/CustomValue.php @@ -360,7 +360,7 @@ function civicrm_api3_custom_value_gettree($params) { if (!empty($fieldInfo['customValue'])) { $field['value'] = CRM_Utils_Array::first($fieldInfo['customValue']); if (!$toReturn['custom_value'] || in_array('display', $toReturn['custom_value'])) { - $field['value']['display'] = CRM_Core_BAO_CustomField::displayValue($field['value']['data'], $fieldInfo); + $field['value']['display'] = CRM_Core_BAO_CustomField::displayValue($field['value']['data'], $fieldInfo['id']); } foreach (array_keys($field['value']) as $key) { if ($toReturn['custom_value'] && !in_array($key, $toReturn['custom_value'])) { diff --git a/civicrm/api/v3/Mailing.php b/civicrm/api/v3/Mailing.php index 73f4172aee..bdc80f126c 100644 --- a/civicrm/api/v3/Mailing.php +++ b/civicrm/api/v3/Mailing.php @@ -663,8 +663,10 @@ function civicrm_api3_mailing_send_test($params) { civicrm_api3('MailingEventQueue', 'create', [ 'job_id' => $job['id'], + 'is_test' => TRUE, 'email_id' => $emailId, 'contact_id' => $contactId, + 'mailing_id' => $params['mailing_id'], ] ); } diff --git a/civicrm/api/v3/MailingEventResubscribe.php b/civicrm/api/v3/MailingEventResubscribe.php index 1749b13156..fc8280fb51 100644 --- a/civicrm/api/v3/MailingEventResubscribe.php +++ b/civicrm/api/v3/MailingEventResubscribe.php @@ -32,7 +32,7 @@ function civicrm_api3_mailing_event_resubscribe_create($params) { $params['hash'] ); - if (count($groups)) { + if (!empty($groups)) { CRM_Mailing_Event_BAO_MailingEventResubscribe::send_resub_response( $params['event_queue_id'], $groups, diff --git a/civicrm/api/v3/MailingEventUnsubscribe.php b/civicrm/api/v3/MailingEventUnsubscribe.php index 56ac663ba1..644499c1c8 100644 --- a/civicrm/api/v3/MailingEventUnsubscribe.php +++ b/civicrm/api/v3/MailingEventUnsubscribe.php @@ -43,7 +43,7 @@ function civicrm_api3_mailing_event_unsubscribe_create($params) { $hash = $params['hash']; if (empty($params['org_unsubscribe'])) { $groups = CRM_Mailing_Event_BAO_MailingEventUnsubscribe::unsub_from_mailing($job, $queue, $hash); - if (count($groups)) { + if (!empty($groups)) { CRM_Mailing_Event_BAO_MailingEventUnsubscribe::send_unsub_response($queue, $groups, FALSE, $job); return civicrm_api3_create_success($params); } diff --git a/civicrm/api/v3/Note.php b/civicrm/api/v3/Note.php index e1866d1196..c8e1493e88 100644 --- a/civicrm/api/v3/Note.php +++ b/civicrm/api/v3/Note.php @@ -92,7 +92,7 @@ function _civicrm_api3_note_get_spec(&$params) { * * @param array $params * array; only required 'id' parameter is used. - * + * @deprecated * @return array * Nested associative array beginning with direct children of given note. */ @@ -111,3 +111,12 @@ function civicrm_api3_note_tree_get($params) { $noteTree = CRM_Core_BAO_Note::getNoteTree($params['id'], $params['max_depth'], $params['snippet']); return civicrm_api3_create_success($noteTree, $params); } + +/** + * Declare deprecated api functions. + * + * @return array + */ +function _civicrm_api3_note_deprecation() { + return ['tree_get' => 'Unused api action.']; +} diff --git a/civicrm/bin/regen.sh b/civicrm/bin/regen.sh index 1542d2a146..cb7203ef7f 100755 --- a/civicrm/bin/regen.sh +++ b/civicrm/bin/regen.sh @@ -47,7 +47,7 @@ php GenerateData.php ## Prune local data $MYSQLCMD -e "DROP TABLE IF EXISTS civicrm_install_canary; DELETE FROM civicrm_cache; DELETE FROM civicrm_setting;" -$MYSQLCMD -e "DELETE FROM civicrm_extension WHERE full_name NOT IN ('sequentialcreditnotes', 'eventcart', 'greenwich', 'org.civicrm.search_kit', 'org.civicrm.flexmailer', 'financialacls', 'contributioncancelactions', 'recaptcha', 'ckeditor4', 'legacycustomsearches', 'civiimport') and full_name NOT LIKE 'civi_%';" +$MYSQLCMD -e "DELETE FROM civicrm_extension WHERE full_name NOT IN ('sequentialcreditnotes', 'eventcart', 'greenwich', 'org.civicrm.search_kit', 'org.civicrm.afform', 'authx', 'org.civicrm.flexmailer', 'financialacls', 'contributioncancelactions', 'recaptcha', 'ckeditor4', 'legacycustomsearches', 'civiimport') and full_name NOT LIKE 'civi_%';" TABLENAMES=$( echo "show tables like 'civicrm_%'" | $MYSQLCMD | grep ^civicrm_ | xargs ) cd $CIVISOURCEDIR/sql diff --git a/civicrm/civicrm-version.php b/civicrm/civicrm-version.php index 1fd480702c..dffd28a8a9 100644 --- a/civicrm/civicrm-version.php +++ b/civicrm/civicrm-version.php @@ -1,7 +1,7 @@ <?php /** @deprecated */ function civicrmVersion( ) { - return array( 'version' => '5.66.2', + return array( 'version' => '5.67.0', 'cms' => 'Wordpress', 'revision' => '' ); } diff --git a/civicrm/composer.json b/civicrm/composer.json index 3e3eb89829..6c7c18a522 100644 --- a/civicrm/composer.json +++ b/civicrm/composer.json @@ -284,7 +284,7 @@ "Apply CiviCRM Customisations for the pear:db package": "https://raw.githubusercontent.com/civicrm/civicrm-core/2ad420c394/tools/scripts/composer/pear_db_civicrm_changes.patch" }, "pear/log": { - "Apply patch for php8.1": "https://patch-diff.githubusercontent.com/raw/pear/Log/pull/23.patch" + "Apply patch for php8.1": "https://gist.githubusercontent.com/totten/d99d47dd9d19a5cb02858954a5577609/raw/0e5e4628a475219c2aec6af76e69894cdec42a55/pear-log-locale.patch" }, "pear/mail": { "Apply CiviCRM Customisations for CRM-1367 and CRM-5946": "https://raw.githubusercontent.com/civicrm/civicrm-core/36319938a5bf26c1e7e2110a26a65db6a5979268/tools/scripts/composer/patches/pear-mail.patch" diff --git a/civicrm/composer.lock b/civicrm/composer.lock index b4288d6318..9e499313af 100644 --- a/civicrm/composer.lock +++ b/civicrm/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "377176179275d0aa4262d031e5bc4559", + "content-hash": "11bd73682ccf3e9de1d825ce08bbf371", "packages": [ { "name": "adrienrn/php-mimetyper", diff --git a/civicrm/ext/afform/admin/Civi/AfformAdmin/AfformAdminInjector.php b/civicrm/ext/afform/admin/Civi/AfformAdmin/AfformAdminInjector.php new file mode 100644 index 0000000000..6248442082 --- /dev/null +++ b/civicrm/ext/afform/admin/Civi/AfformAdmin/AfformAdminInjector.php @@ -0,0 +1,55 @@ +<?php +/* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ + */ + +namespace Civi\AfformAdmin; + +use Civi\Core\Service\AutoSubscriber; +use CRM_Afform_ExtensionUtil as E; + +/** + * @package Civi\AfformAdmin + */ +class AfformAdminInjector extends AutoSubscriber { + + /** + * @inheritDoc + */ + public static function getSubscribedEvents(): array { + return [ + 'hook_civicrm_alterAngular' => 'preprocess', + ]; + } + + /** + * @param \Civi\Core\Event\GenericHookEvent $e + * @see CRM_Utils_Hook::alterAngular() + */ + public static function preprocess($e) { + $changeSet = \Civi\Angular\ChangeSet::create('afformAdmin') + ->alterHtml(';\\.aff\\.html$;', function($doc, $path) { + try { + $moduleName = basename($path, '.aff.html'); + // If the user has "administer CiviCRM", inject edit link + if (\CRM_Core_Permission::check('administer CiviCRM')) { + $url = \CRM_Utils_System::url('civicrm/admin/afform', NULL, FALSE, '/edit/' . $moduleName, TRUE); + // Append link to afform directive element (using loop but there should be only one) + foreach (pq('af-form[ctrl]', $doc) as $afForm) { + pq($afForm)->append('<a href="' . $url . '" target="_blank" class="af-admin-edit-form-link"><i class="crm-i fa-gear"></i> ' . E::ts('Edit Form') . '</a>'); + } + } + } + catch (\Exception $e) { + } + }); + $e->angular->add($changeSet); + } + +} diff --git a/civicrm/ext/afform/admin/afformEntities/Household.php b/civicrm/ext/afform/admin/afformEntities/Household.php index 808565deab..3e120a7fef 100644 --- a/civicrm/ext/afform/admin/afformEntities/Household.php +++ b/civicrm/ext/afform/admin/afformEntities/Household.php @@ -11,5 +11,4 @@ return [ 'boilerplate' => [ ['#tag' => 'afblock-name-household'], ], - 'admin_tpl' => '~/afGuiEditor/entityConfig/Contact.html', ]; diff --git a/civicrm/ext/afform/admin/afformEntities/Individual.php b/civicrm/ext/afform/admin/afformEntities/Individual.php index 3d124377d8..3a51fdc9b7 100644 --- a/civicrm/ext/afform/admin/afformEntities/Individual.php +++ b/civicrm/ext/afform/admin/afformEntities/Individual.php @@ -11,5 +11,4 @@ return [ 'boilerplate' => [ ['#tag' => 'afblock-name-individual'], ], - 'admin_tpl' => '~/afGuiEditor/entityConfig/Contact.html', ]; diff --git a/civicrm/ext/afform/admin/afformEntities/Organization.php b/civicrm/ext/afform/admin/afformEntities/Organization.php index b36455be1b..eaf258446d 100644 --- a/civicrm/ext/afform/admin/afformEntities/Organization.php +++ b/civicrm/ext/afform/admin/afformEntities/Organization.php @@ -11,5 +11,4 @@ return [ 'boilerplate' => [ ['#tag' => 'afblock-name-organization'], ], - 'admin_tpl' => '~/afGuiEditor/entityConfig/Contact.html', ]; diff --git a/civicrm/ext/afform/admin/afform_admin.civix.php b/civicrm/ext/afform/admin/afform_admin.civix.php index 52866d86b8..eb9df12ea5 100644 --- a/civicrm/ext/afform/admin/afform_admin.civix.php +++ b/civicrm/ext/afform/admin/afform_admin.civix.php @@ -133,8 +133,8 @@ function _afform_admin_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/afform/admin/ang/afAdminFormSubmissionList.aff.json b/civicrm/ext/afform/admin/ang/afAdminFormSubmissionList.aff.json deleted file mode 100644 index 3584ff5948..0000000000 --- a/civicrm/ext/afform/admin/ang/afAdminFormSubmissionList.aff.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type": "system", - "title": "Submissions", - "server_route": "civicrm/admin/afform/submissions", - "permission": ["administer CiviCRM", "administer afform"], - "permission_operator": "OR" -} diff --git a/civicrm/ext/afform/admin/ang/afAdminFormSubmissionList.aff.php b/civicrm/ext/afform/admin/ang/afAdminFormSubmissionList.aff.php new file mode 100644 index 0000000000..8eda1f70cc --- /dev/null +++ b/civicrm/ext/afform/admin/ang/afAdminFormSubmissionList.aff.php @@ -0,0 +1,10 @@ +<?php +use CRM_AfformAdmin_ExtensionUtil as E; + +return [ + 'type' => 'system', + 'title' => E::ts('Submissions'), + 'server_route' => 'civicrm/admin/afform/submissions', + 'permission' => ["administer CiviCRM", "administer afform"], + 'permission_operator' => 'OR', +]; diff --git a/civicrm/ext/afform/admin/ang/afGuiEditor.css b/civicrm/ext/afform/admin/ang/afGuiEditor.css index b15d5892c7..3081736bd4 100644 --- a/civicrm/ext/afform/admin/ang/afGuiEditor.css +++ b/civicrm/ext/afform/admin/ang/afGuiEditor.css @@ -353,6 +353,10 @@ body.af-gui-dragging { width: 45px; } +#afGuiEditor #afGuiEditor-palette input[type=number] { + width: 6em; +} + #afGuiEditor .af-gui-layout-icon { width: 12px; height: 11px; diff --git a/civicrm/ext/afform/admin/ang/afGuiEditor/afGuiFieldValue.directive.js b/civicrm/ext/afform/admin/ang/afGuiEditor/afGuiFieldValue.directive.js index 661eb4b6a3..3f3d0c7282 100644 --- a/civicrm/ext/afform/admin/ang/afGuiEditor/afGuiFieldValue.directive.js +++ b/civicrm/ext/afform/admin/ang/afGuiEditor/afGuiFieldValue.directive.js @@ -75,12 +75,20 @@ } } + function isSelect2() { + return $element.is('.select2-container + input'); + } + // Copied from ng-list but applied conditionally if field is multi-valued - var parseList = function(viewValue) { + var parseFieldInput = function(viewValue) { // If the viewValue is invalid (say required but empty) it will be `undefined` if (_.isUndefined(viewValue)) return; - if (!multi) { + if ((viewValue === '1' || viewValue === '0') && ctrl.field.data_type === 'Boolean') { + return viewValue === '1'; + } + + if (!multi || !isSelect2()) { return viewValue; } @@ -95,12 +103,20 @@ return list; }; + var formatViewValue = function(value) { + if (Array.isArray(value)) { + return value.join(','); + } + if (typeof value === 'boolean') { + return value ? '1' : '0'; + } + return value; + }; + this.$onInit = function() { // Copied from ng-list - ctrl.ngModel.$parsers.push(parseList); - ctrl.ngModel.$formatters.push(function(value) { - return _.isArray(value) ? value.join(',') : value; - }); + ctrl.ngModel.$parsers.push(parseFieldInput); + ctrl.ngModel.$formatters.push(formatViewValue); // Copied from ng-list ctrl.ngModel.$isEmpty = function(value) { diff --git a/civicrm/ext/afform/admin/ang/afGuiEditor/config-form.html b/civicrm/ext/afform/admin/ang/afGuiEditor/config-form.html index 43f9225e85..d18e23cfdc 100644 --- a/civicrm/ext/afform/admin/ang/afGuiEditor/config-form.html +++ b/civicrm/ext/afform/admin/ang/afGuiEditor/config-form.html @@ -103,8 +103,10 @@ </select> </div> <div class="form-inline" ng-if="editor.afform.contact_summary"> - <label>{{:: ts('For') }}</label> - <input class="form-control" crm-autocomplete="'ContactType'" ng-model="editor.afform.summary_contact_type" auto-open="true" multi="true" crm-autocomplete-params="{key: 'name'}" placeholder="{{:: ts('Any contact type') }}"> + <label for="afform_summary_weight">{{:: ts('Position') }}</label> + <input class="form-control" type="number" id="afform_summary_weight" ng-model="editor.afform.summary_weight" placeholder="{{:: ts('Auto') }}"> + <label for="afform_summary_contact_type">{{:: ts('For') }}</label> + <input class="form-control" crm-autocomplete="'ContactType'" id="afform_summary_contact_type" ng-model="editor.afform.summary_contact_type" auto-open="true" multi="true" crm-autocomplete-params="{key: 'name'}" placeholder="{{:: ts('Any contact type') }}"> </div> <p class="help-block" ng-show="editor.afform.contact_summary"> {{:: ts('Placement can be configured using the Contact Layout Editor.') }} diff --git a/civicrm/ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js b/civicrm/ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js index 69c304e5ab..8772532e28 100644 --- a/civicrm/ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js +++ b/civicrm/ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js @@ -124,7 +124,7 @@ $scope.hasOptions = function() { var inputType = $scope.getProp('input_type'); - return _.contains(['CheckBox', 'Radio', 'Select'], inputType) && !(inputType === 'CheckBox' && !ctrl.getDefn().options); + return _.contains(['CheckBox', 'Radio', 'Select'], inputType) && !(inputType === 'CheckBox' && ctrl.getDefn().data_type === 'Boolean'); }; this.getOptions = function() { @@ -142,7 +142,7 @@ } return entityRefOptions; } - return ctrl.getDefn().options || ($scope.getProp('input_type') === 'CheckBox' ? null : yesNo); + return ctrl.getDefn().options || (ctrl.getDefn().data_type === 'Boolean' ? yesNo : null); }; $scope.resetOptions = function() { @@ -276,6 +276,7 @@ val = '' + val; if (defaultValueShouldBeArray()) { if (!_.isArray(getSet('afform_default'))) { + ctrl.node.defn = ctrl.node.defn || {}; ctrl.node.defn.afform_default = []; } if (_.includes(ctrl.node.defn.afform_default, val)) { @@ -341,6 +342,10 @@ delete ctrl.node.defn.input_attrs.multiple; clearOut(ctrl.node, ['defn', 'input_attrs']); } + // Boolean checkbox has no options + if (val === 'CheckBox' && ctrl.getDefn().data_type === 'Boolean' && ctrl.node.defn) { + delete ctrl.node.defn.options; + } } setFieldDefn(); diff --git a/civicrm/ext/afform/admin/ang/afGuiEditor/entityConfig/Options.html b/civicrm/ext/afform/admin/ang/afGuiEditor/entityConfig/Options.html index 15878ad8a9..3e5ff44bb9 100644 --- a/civicrm/ext/afform/admin/ang/afGuiEditor/entityConfig/Options.html +++ b/civicrm/ext/afform/admin/ang/afGuiEditor/entityConfig/Options.html @@ -27,9 +27,17 @@ {{:: ts('Without Role-Based access, users of the form will be able to view and update any %1 by changing the id in the URL.', {1: getMeta().label}) }} </div> <div class="description" ng-if="$ctrl.entity['url-autofill'] === '1'"> - {{:: ts('Update %1 by including the id in the link to this form:', {1: getMeta().label}) }} - <code> - {{ ($ctrl.editor.getLink() || '') + '#?' + $ctrl.entity.name + '=123' }} - </code> + <p> + {{:: ts('Update %1 by including the id in the link to this form:', {1: $ctrl.entity.name}) }} + <code> + {{ ($ctrl.editor.getLink() || '') + '#?' + $ctrl.entity.name + '=123' }} + </code> + </p> + <p> + {{:: ts('If you have made a repeating container for %1, you may update multiple %2s using comma-separated ids:', {1: $ctrl.entity.name, 2: getMeta().label}) }} + <code> + {{ ($ctrl.editor.getLink() || '') + '#?' + $ctrl.entity.name + '=123,456' }} + </code> + </p> </div> </div> diff --git a/civicrm/ext/afform/admin/ang/afGuiEditor/inputType/CheckBox.html b/civicrm/ext/afform/admin/ang/afGuiEditor/inputType/CheckBox.html index 2f7935f7b5..d5d704b2a9 100644 --- a/civicrm/ext/afform/admin/ang/afGuiEditor/inputType/CheckBox.html +++ b/civicrm/ext/afform/admin/ang/afGuiEditor/inputType/CheckBox.html @@ -1,7 +1,7 @@ -<ul class="crm-checkbox-list" ng-if="$ctrl.getOptions()" title="{{:: ts('Set default value') }}"> +<ul class="crm-checkbox-list" ng-if="$ctrl.getDefn().data_type !== 'Boolean'" title="{{:: ts('Set default value') }}"> <li ng-repeat="opt in $ctrl.getOptions()" > <input type="checkbox" ng-checked="defaultValueContains(opt.id)" ng-click="toggleDefaultValueItem(opt.id)" > <label>{{ opt.label }}</label> </li> </ul> -<input type="checkbox" disabled ng-if="!$ctrl.getOptions()" > +<input type="checkbox" ng-if="$ctrl.getDefn().data_type === 'Boolean'" ng-checked="defaultValueContains('1')" ng-click="toggleDefaultValueItem('1') "> diff --git a/civicrm/ext/afform/admin/info.xml b/civicrm/ext/afform/admin/info.xml index 2ae1a5c8a9..ca6c9fb8e5 100644 --- a/civicrm/ext/afform/admin/info.xml +++ b/civicrm/ext/afform/admin/info.xml @@ -13,10 +13,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-01-09</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>beta</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>FormBuilder provides a UI to administer and edit forms. It is an optional admin tool and not required for the forms to function.</comments> <requires> @@ -25,18 +25,19 @@ </requires> <civix> <namespace>CRM/AfformAdmin</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> <classloader> <psr4 prefix="Civi\" path="Civi"/> <psr0 prefix="CRM_" path="."/> </classloader> <mixins> + <mixin>scan-classes@1.0.0</mixin> <mixin>ang-php@1.0.0</mixin> <mixin>menu-xml@1.0.0</mixin> <mixin>mgd-php@1.0.0</mixin> <mixin>afform-entity-php@1.0.0</mixin> - <mixin>smarty-v2@1.0.0</mixin> + <mixin>smarty-v2@1.0.1</mixin> </mixins> <upgrader>CRM_AfformAdmin_Upgrader</upgrader> </extension> diff --git a/civicrm/ext/afform/core/CRM/Afform/AfformScanner.php b/civicrm/ext/afform/core/CRM/Afform/AfformScanner.php index ae136c30c5..766b66c1b3 100644 --- a/civicrm/ext/afform/core/CRM/Afform/AfformScanner.php +++ b/civicrm/ext/afform/core/CRM/Afform/AfformScanner.php @@ -10,11 +10,13 @@ */ class CRM_Afform_AfformScanner { - const METADATA_FILE = 'aff.json'; + const METADATA_JSON = 'aff.json'; + + const METADATA_PHP = 'aff.php'; const LAYOUT_FILE = 'aff.html'; - const FILE_REGEXP = '/\.aff\.(json|html)$/'; + const FILE_REGEXP = '/\.aff\.(json|html|php)$/'; const DEFAULT_REQUIRES = 'afCore'; @@ -58,6 +60,9 @@ class CRM_Afform_AfformScanner { } } + // Scan core ang/afform directory + $this->appendFilePaths($paths, Civi::paths()->getPath('[civicrm.root]/ang/afform'), 'civicrm'); + // Scan uploads/files directory $this->appendFilePaths($paths, $this->getSiteLocalPath(), ''); if ($this->isUseCachedPaths()) { @@ -138,11 +143,10 @@ class CRM_Afform_AfformScanner { * 'requires' => ['afform'], * ] */ - public function getMeta($name) { + public function getMeta(string $name): ?array { // FIXME error checking $defaults = [ - 'name' => $name, 'requires' => [], 'title' => '', 'description' => '', @@ -152,22 +156,30 @@ class CRM_Afform_AfformScanner { 'permission' => ['access CiviCRM'], 'type' => 'system', ]; + $defn = []; - $metaFile = $this->findFilePath($name, self::METADATA_FILE); - if ($metaFile !== NULL) { - $r = array_merge($defaults, json_decode(file_get_contents($metaFile), 1)); - // Previous revisions of GUI allowed permission==''. array_merge() doesn't catch all forms of missing-ness. - if (empty($r['permission'])) { - $r['permission'] = $defaults['permission']; - } - return $r; - } - elseif ($this->findFilePath($name, self::LAYOUT_FILE)) { - return $defaults; + // If there is a local file it will be json - read from that first + $jsonFile = $this->findFilePath($name, self::METADATA_JSON); + if ($jsonFile !== NULL) { + $defn = json_decode(file_get_contents($jsonFile), 1); } + // Extensions may provide afform definitions in php files else { + $phpFile = $this->findFilePath($name, self::METADATA_PHP); + if ($phpFile !== NULL) { + $defn = include $phpFile; + } + } + // A form must have at least a layout file (if no metadata file, just use defaults) + if (!$defn && !$this->findFilePath($name, self::LAYOUT_FILE)) { return NULL; } + $defn = array_merge($defaults, $defn, ['name' => $name]); + // Previous revisions of GUI allowed permission==''. array_merge() doesn't catch all forms of missing-ness. + if (empty($defn['permission'])) { + $defn['permission'] = $defaults['permission']; + } + return $defn; } /** @@ -248,15 +260,4 @@ class CRM_Afform_AfformScanner { return Civi::paths()->getPath('[civicrm.files]/ang'); } - /** - * @return string - */ - private function getMarkerRegexp() { - static $v; - if ($v === NULL) { - $v = '/\.(' . preg_quote(self::LAYOUT_FILE, '/') . '|' . preg_quote(self::METADATA_FILE, '/') . ')$/'; - } - return $v; - } - } diff --git a/civicrm/ext/afform/core/CRM/Afform/ArrayHtml.php b/civicrm/ext/afform/core/CRM/Afform/ArrayHtml.php index 92a2caca84..307e16b098 100644 --- a/civicrm/ext/afform/core/CRM/Afform/ArrayHtml.php +++ b/civicrm/ext/afform/core/CRM/Afform/ArrayHtml.php @@ -371,7 +371,7 @@ class CRM_Afform_ArrayHtml { * @return string */ public function replaceUnicodeChars($markup) { - return mb_convert_encoding($markup, 'HTML-ENTITIES', 'UTF-8'); + return htmlspecialchars_decode(htmlentities($markup, ENT_COMPAT, 'utf-8', FALSE)); } /** diff --git a/civicrm/ext/afform/core/CRM/Afform/Page/AfformBase.php b/civicrm/ext/afform/core/CRM/Afform/Page/AfformBase.php index d01b9d7814..8f310390bd 100644 --- a/civicrm/ext/afform/core/CRM/Afform/Page/AfformBase.php +++ b/civicrm/ext/afform/core/CRM/Afform/Page/AfformBase.php @@ -1,4 +1,6 @@ <?php + +use Civi\Api4\Navigation; use CRM_Afform_ExtensionUtil as E; class CRM_Afform_Page_AfformBase extends CRM_Core_Page { @@ -10,7 +12,7 @@ class CRM_Afform_Page_AfformBase extends CRM_Core_Page { // The api will throw an exception if afform is not found (because of the index 0 param) $afform = civicrm_api4('Afform', 'get', [ 'where' => [['name', '=', $pageArgs['afform']]], - 'select' => ['title', 'module_name', 'directive_name', 'type', 'is_public'], + 'select' => ['title', 'module_name', 'directive_name', 'navigation', 'server_route', 'is_public'], ], 0); $this->assign('directive', $afform['directive_name']); @@ -18,25 +20,30 @@ class CRM_Afform_Page_AfformBase extends CRM_Core_Page { Civi::service('angularjs.loader') ->addModules([$afform['module_name'], 'afformStandalone']); + // Title will be supplied by AfformBase.tpl. + // @see crmUi.directive(crmPageTitle) + CRM_Utils_System::setTitle(''); + $isFrontEndPage = !empty($afform['is_public']); - // If not being shown on the front-end website, append breadcrumb for CiviCRM users + // If not being shown on the front-end website, calculate breadcrumbs if (!$isFrontEndPage && CRM_Core_Permission::check('access CiviCRM')) { - CRM_Utils_System::appendBreadCrumb([['title' => E::ts('CiviCRM'), 'url' => CRM_Utils_System::url('civicrm')]]); - // If the user has "admin civicrm" & the admin extension is enabled - if (CRM_Core_Permission::check('administer CiviCRM')) { - if (($pagePath[1] ?? NULL) === 'admin') { - CRM_Utils_System::appendBreadCrumb([['title' => E::ts('Administer'), 'url' => CRM_Utils_System::url('civicrm/admin')]]); - } - if ($afform['type'] !== 'system' && - \CRM_Extension_System::singleton()->getMapper()->isActiveModule('afform_admin') - ) { - CRM_Utils_System::appendBreadCrumb([['title' => E::ts('FormBuilder'), 'url' => CRM_Utils_System::url('civicrm/admin/afform')]]); - CRM_Utils_System::appendBreadCrumb([['title' => E::ts('Edit Form'), 'url' => CRM_Utils_System::url('civicrm/admin/afform', NULL, FALSE, '/edit/' . $pageArgs['afform'])]]); + // CiviCRM has already constructed a breadcrumb based on the server_route (see CRM_Core_Menu::buildBreadcrumb) + // But if this afform is in the navigation menu, reset breadcrumb and build on that instead + if (!empty($afform['navigation']['parent'])) { + $navParent = Navigation::get(FALSE) + ->addWhere('name', '=', $afform['navigation']['parent']) + ->addWhere('domain_id', '=', 'current_domain') + ->execute()->first(); + if (!empty($navParent['url'])) { + CRM_Utils_System::resetBreadCrumb(); + CRM_Utils_System::appendBreadCrumb([['title' => E::ts('CiviCRM'), 'url' => Civi::url('civicrm')]]); + CRM_Utils_System::appendBreadCrumb([['title' => $navParent['label'], 'url' => Civi::url($navParent['url'])]]); } } } + // Add current afform page to breadcrumb if (!empty($afform['title'])) { $title = strip_tags($afform['title']); if (!$isFrontEndPage) { diff --git a/civicrm/ext/afform/core/CRM/Afform/Upgrader.php b/civicrm/ext/afform/core/CRM/Afform/Upgrader.php index 3f4011555b..953cb659ac 100644 --- a/civicrm/ext/afform/core/CRM/Afform/Upgrader.php +++ b/civicrm/ext/afform/core/CRM/Afform/Upgrader.php @@ -45,7 +45,7 @@ class CRM_Afform_Upgrader extends CRM_Extension_Upgrader_Base { 'join' => 'join_entity', 'block' => 'entity_type', ]; - foreach (glob("$localDir/*." . $scanner::METADATA_FILE) as $fileName) { + foreach (glob("$localDir/*." . $scanner::METADATA_JSON) as $fileName) { $meta = json_decode(file_get_contents($fileName), TRUE); foreach ($replacements as $oldKey => $newKey) { if (isset($meta[$oldKey])) { diff --git a/civicrm/ext/afform/core/Civi/Afform/AfformMetadataInjector.php b/civicrm/ext/afform/core/Civi/Afform/AfformMetadataInjector.php index 2aa4dbac14..e92c638006 100644 --- a/civicrm/ext/afform/core/Civi/Afform/AfformMetadataInjector.php +++ b/civicrm/ext/afform/core/Civi/Afform/AfformMetadataInjector.php @@ -14,7 +14,6 @@ namespace Civi\Afform; use CRM_Afform_ExtensionUtil as E; /** - * Class AfformMetadataInjector * @package Civi\Afform */ class AfformMetadataInjector { @@ -30,8 +29,8 @@ class AfformMetadataInjector { $module = \Civi::service('angular')->getModule(basename($path, '.aff.html')); $meta = \Civi\Api4\Afform::get(FALSE)->addWhere('name', '=', $module['_afform'])->setSelect(['join_entity', 'entity_type'])->execute()->first(); - // Add ngForm directive to afForm controllers - foreach (pq('af-form[ctrl]') as $afForm) { + // Add ngForm directive to afForm controller (using loop but there should be only one) + foreach (pq('af-form[ctrl]', $doc) as $afForm) { pq($afForm)->attr('ng-form', $module['_afform']); } } @@ -161,6 +160,11 @@ class AfformMetadataInjector { } } + // Boolean checkbox has no options + if ($fieldInfo['data_type'] === 'Boolean' && $inputType === 'CheckBox') { + unset($fieldInfo['options'], $fieldDefn['options']); + } + foreach ($fieldInfo as $name => $prop) { // Merge array props 1 level deep if (in_array($name, $deep) && !empty($fieldDefn[$name])) { diff --git a/civicrm/ext/afform/core/Civi/Api4/Action/Afform/Revert.php b/civicrm/ext/afform/core/Civi/Api4/Action/Afform/Revert.php index 070ecc9ad3..a30c2d76b1 100644 --- a/civicrm/ext/afform/core/Civi/Api4/Action/Afform/Revert.php +++ b/civicrm/ext/afform/core/Civi/Api4/Action/Afform/Revert.php @@ -49,7 +49,7 @@ class Revert extends \Civi\Api4\Generic\BasicBatchAction { /** @var \CRM_Afform_AfformScanner $scanner */ $scanner = \Civi::service('afform_scanner'); $files = [ - \CRM_Afform_AfformScanner::METADATA_FILE, + \CRM_Afform_AfformScanner::METADATA_JSON, \CRM_Afform_AfformScanner::LAYOUT_FILE, ]; diff --git a/civicrm/ext/afform/core/Civi/Api4/Afform.php b/civicrm/ext/afform/core/Civi/Api4/Afform.php index f21cb4b5e6..83c481a5bf 100644 --- a/civicrm/ext/afform/core/Civi/Api4/Afform.php +++ b/civicrm/ext/afform/core/Civi/Api4/Afform.php @@ -21,6 +21,7 @@ use CRM_Afform_ExtensionUtil as E; * @labelField title * @iconField type:icon * @searchable none + * @since 5.31 * @package Civi\Api4 */ class Afform extends Generic\AbstractEntity { @@ -194,6 +195,11 @@ class Afform extends Generic\AbstractEntity { 'data_type' => 'Array', 'options' => \CRM_Contact_BAO_ContactType::contactTypePairs(), ], + [ + 'name' => 'summary_weight', + 'title' => E::ts('Order'), + 'data_type' => 'Integer', + ], [ 'name' => 'icon', 'title' => E::ts('Icon'), @@ -305,7 +311,7 @@ class Afform extends Generic\AbstractEntity { 'data_type' => 'String', 'description' => 'Name of extension which provides this form', 'readonly' => TRUE, - 'pseudoconstant' => ['callback' => ['CRM_Core_PseudoConstant', 'getExtensions']], + 'pseudoconstant' => ['callback' => ['CRM_Core_BAO_Managed', 'getBaseModules']], ]; $fields[] = [ 'name' => 'search_displays', diff --git a/civicrm/ext/afform/core/Civi/Api4/AfformBehavior.php b/civicrm/ext/afform/core/Civi/Api4/AfformBehavior.php index b0ee312386..6f1742b9f6 100644 --- a/civicrm/ext/afform/core/Civi/Api4/AfformBehavior.php +++ b/civicrm/ext/afform/core/Civi/Api4/AfformBehavior.php @@ -8,6 +8,7 @@ namespace Civi\Api4; * Provided by the Afform: Core Runtime extension. * * @searchable secondary + * @since 5.56 * @package Civi\Api4 */ class AfformBehavior extends Generic\AbstractEntity { diff --git a/civicrm/ext/afform/core/Civi/Api4/AfformSubmission.php b/civicrm/ext/afform/core/Civi/Api4/AfformSubmission.php index 49bb1e3b6c..59c3ba3f13 100644 --- a/civicrm/ext/afform/core/Civi/Api4/AfformSubmission.php +++ b/civicrm/ext/afform/core/Civi/Api4/AfformSubmission.php @@ -7,6 +7,7 @@ namespace Civi\Api4; * Provided by the Afform: Core Runtime extension. * * @searchable secondary + * @since 5.42 * @package Civi\Api4 */ class AfformSubmission extends Generic\DAOEntity { diff --git a/civicrm/ext/afform/core/Civi/Api4/Utils/AfformSaveTrait.php b/civicrm/ext/afform/core/Civi/Api4/Utils/AfformSaveTrait.php index 42416f11e2..699f3b6498 100644 --- a/civicrm/ext/afform/core/Civi/Api4/Utils/AfformSaveTrait.php +++ b/civicrm/ext/afform/core/Civi/Api4/Utils/AfformSaveTrait.php @@ -22,8 +22,8 @@ trait AfformSaveTrait { $item['name'] = _afform_angular_module_name($prefix . '-' . \CRM_Utils_String::munge($item['title'], '-')); $suffix = ''; while ( - file_exists($scanner->createSiteLocalPath($item['name'] . $suffix, \CRM_Afform_AfformScanner::METADATA_FILE)) - || file_exists($scanner->createSiteLocalPath($item['name'] . $suffix, 'aff.html')) + file_exists($scanner->createSiteLocalPath($item['name'] . $suffix, \CRM_Afform_AfformScanner::METADATA_JSON)) + || file_exists($scanner->createSiteLocalPath($item['name'] . $suffix, \CRM_Afform_AfformScanner::LAYOUT_FILE)) ) { $suffix++; } @@ -57,7 +57,7 @@ trait AfformSaveTrait { $meta['permission'] = explode(',', $meta['permission']); } if (!empty($meta)) { - $metaPath = $scanner->createSiteLocalPath($item['name'], \CRM_Afform_AfformScanner::METADATA_FILE); + $metaPath = $scanner->createSiteLocalPath($item['name'], \CRM_Afform_AfformScanner::METADATA_JSON); \CRM_Utils_File::createDir(dirname($metaPath)); // Add eof newline to make files git-friendly file_put_contents($metaPath, json_encode($meta, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n"); diff --git a/civicrm/ext/afform/core/afform.php b/civicrm/ext/afform/core/afform.php index 007e52088a..674f44be72 100644 --- a/civicrm/ext/afform/core/afform.php +++ b/civicrm/ext/afform/core/afform.php @@ -173,7 +173,7 @@ function afform_civicrm_tabset($tabsetName, &$tabs, $context) { } $contactTypes = array_merge((array) ($context['contact_type'] ?? []), $context['contact_sub_type'] ?? []); $afforms = Civi\Api4\Afform::get(FALSE) - ->addSelect('name', 'title', 'icon', 'module_name', 'directive_name', 'summary_contact_type') + ->addSelect('name', 'title', 'icon', 'module_name', 'directive_name', 'summary_contact_type', 'summary_weight') ->addWhere('contact_summary', '=', 'tab') ->addOrderBy('title') ->execute(); @@ -186,7 +186,7 @@ function afform_civicrm_tabset($tabsetName, &$tabs, $context) { $tabs[] = [ 'id' => $tabId, 'title' => $afform['title'], - 'weight' => $weight++, + 'weight' => $afform['summary_weight'] ?? $weight++, 'icon' => 'crm-i ' . ($afform['icon'] ?: 'fa-list-alt'), 'is_active' => TRUE, 'contact_type' => _afform_get_contact_types($summaryContactType) ?: NULL, @@ -214,6 +214,7 @@ function afform_civicrm_pageRun(&$page) { $afforms = Civi\Api4\Afform::get(FALSE) ->addSelect('name', 'title', 'icon', 'module_name', 'directive_name', 'summary_contact_type') ->addWhere('contact_summary', '=', 'block') + ->addOrderBy('summary_weight') ->addOrderBy('title') ->execute(); $cid = $page->get('cid'); @@ -390,7 +391,7 @@ function afform_civicrm_alterMenu(&$items) { try { $afforms = \Civi\Api4\Afform::get(FALSE) ->addWhere('server_route', 'IS NOT EMPTY') - ->addSelect('name', 'server_route', 'is_public') + ->addSelect('name', 'server_route', 'is_public', 'title') ->execute()->indexBy('name'); } catch (Exception $e) { @@ -401,6 +402,7 @@ function afform_civicrm_alterMenu(&$items) { foreach ($afforms as $name => $meta) { if (!empty($meta['server_route'])) { $items[$meta['server_route']] = [ + 'title' => $meta['title'], 'page_callback' => 'CRM_Afform_Page_AfformBase', 'page_arguments' => 'afform=' . urlencode($name), 'access_arguments' => [["@afform:$name"], 'and'], diff --git a/civicrm/ext/afform/core/ang/af/afField.component.js b/civicrm/ext/afform/core/ang/af/afField.component.js index 38f9c66af6..8f8c6e3a09 100644 --- a/civicrm/ext/afform/core/ang/af/afField.component.js +++ b/civicrm/ext/afform/core/ang/af/afField.component.js @@ -41,6 +41,11 @@ this.search_operator = this.defn.search_operator; } + // Ensure boolean options are truly boolean + if (this.defn.data_type === 'Boolean' && this.defn.options) { + this.defn.options.forEach((option) => option.id = !!option.id); + } + // is_primary field - watch others in this afRepeat block to ensure only one is selected if (ctrl.fieldName === 'is_primary' && 'repeatIndex' in $scope.dataProvider) { $scope.$watch('dataProvider.afRepeat.getEntityController().getData()', function (items, prev) { @@ -108,15 +113,15 @@ uniquePrefix = entityName + (index ? index + 1 : '') + (joinEntity ? '.' + joinEntity : '') + '.'; } // Set default value from url with uniquePrefix + fieldName - if (urlArgs && urlArgs[uniquePrefix + ctrl.fieldName]) { + if (urlArgs && ((uniquePrefix + ctrl.fieldName) in urlArgs)) { setValue(urlArgs[uniquePrefix + ctrl.fieldName]); } // Set default value from url with fieldName only - else if (urlArgs && urlArgs[ctrl.fieldName]) { + else if (urlArgs && (ctrl.fieldName in urlArgs)) { setValue(urlArgs[ctrl.fieldName]); } // Set default value based on field defn - else if (ctrl.defn.afform_default) { + else if ('afform_default' in ctrl.defn) { setValue(ctrl.defn.afform_default); } @@ -155,15 +160,22 @@ value.forEach((v, index) => { newValue[index] = correctValueType(v); }); - value = newValue; - } else if (dataType == 'Integer') { - value = +value; - } else if (dataType == 'Boolean') { - value = (value == 1); + return newValue; + } else if (dataType === 'Integer') { + return +value; + } else if (dataType === 'Boolean') { + return (value == 1); } return value; } + this.isMultiple = function() { + return ( + (['Select', 'EntityRef', 'ChainSelect'].includes(ctrl.defn.input_type) && ctrl.defn.input_attrs.multiple) || + (ctrl.defn.input_type === 'CheckBox' && ctrl.defn.data_type !== 'Boolean') + ); + }; + // Set default value; ensure data type matches input type function setValue(value) { // correct the value type @@ -189,10 +201,8 @@ '<=': ('' + value).split('-')[1] || '', }; } - else if (!_.isArray(value) && - ((['Select', 'EntityRef'].includes(ctrl.defn.input_type) && ctrl.defn.input_attrs.multiple) || ctrl.defn.input_type === 'CheckBox') - ) { - value = value.split(','); + else if (_.isString(value) && ctrl.isMultiple()) { + value = value.split(','); } $scope.getSetValue(value); } @@ -282,7 +292,7 @@ // Getter/Setter function for fields of type select or entityRef. $scope.getSetSelect = function(val) { var currentVal = $scope.dataProvider.getFieldData()[ctrl.fieldName]; - // Setter + // Setter - transform raw string/array from Select2 into correct data type if (arguments.length) { if (ctrl.defn.is_date) { // The '{}' string is a placeholder for "choose date range" @@ -300,9 +310,15 @@ } return ($scope.dataProvider.getFieldData()[ctrl.fieldName][ctrl.search_operator] = val); } + if (ctrl.defn.data_type === 'Boolean') { + return ($scope.dataProvider.getFieldData()[ctrl.fieldName] = (val === 'true')); + } + if (ctrl.defn.data_type === 'Integer' && typeof val === 'string') { + return ($scope.dataProvider.getFieldData()[ctrl.fieldName] = val.length ? +val : null); + } return ($scope.dataProvider.getFieldData()[ctrl.fieldName] = val); } - // Getter + // Getter - transform data into a simple string or array for Select2 if (ctrl.defn.is_date) { return _.isPlainObject(currentVal) ? '{}' : currentVal; } @@ -313,6 +329,10 @@ else if (ctrl.search_operator) { return (currentVal || {})[ctrl.search_operator]; } + // Convert false to "false" and 0 to "0" + else if (!ctrl.isMultiple() && typeof currentVal !== 'string') { + return JSON.stringify(currentVal); + } return currentVal; }; diff --git a/civicrm/ext/afform/core/ang/af/fields/CheckBox.html b/civicrm/ext/afform/core/ang/af/fields/CheckBox.html index 14c9249ffd..8b2ac0ee02 100644 --- a/civicrm/ext/afform/core/ang/af/fields/CheckBox.html +++ b/civicrm/ext/afform/core/ang/af/fields/CheckBox.html @@ -1,7 +1,7 @@ -<ul class="crm-checkbox-list" id="{{ fieldId }}" ng-if="$ctrl.defn.options"> +<ul class="crm-checkbox-list" id="{{ fieldId }}" ng-if="$ctrl.isMultiple()"> <li ng-repeat="opt in $ctrl.defn.options track by opt.id" > <input type="checkbox" checklist-model="dataProvider.getFieldData()[$ctrl.fieldName]" ng-required="$ctrl.defn.required && !dataProvider.getFieldData()[$ctrl.fieldName].length" id="{{ fieldId + opt.id }}" checklist-value="opt.id" /> <label for="{{ fieldId + opt.id }}">{{:: opt.label }}</label> </li> </ul> -<input type="checkbox" ng-required="$ctrl.defn.required" ng-if="!$ctrl.defn.options" id="{{:: fieldId }}" ng-model="getSetValue" ng-model-options="{getterSetter: true}" /> +<input type="checkbox" ng-required="$ctrl.defn.required" ng-if="!$ctrl.isMultiple()" id="{{:: fieldId }}" ng-model="getSetValue" ng-model-options="{getterSetter: true}" /> diff --git a/civicrm/ext/afform/core/ang/af/fields/Location.html b/civicrm/ext/afform/core/ang/af/fields/Location.html new file mode 100644 index 0000000000..3075089e16 --- /dev/null +++ b/civicrm/ext/afform/core/ang/af/fields/Location.html @@ -0,0 +1,8 @@ +<div class="form-inline"> + <input class="form-control" type="number" ng-model="dataProvider.getFieldData()[$ctrl.fieldName].distance" placeholder="{{:: ts('Distance') }}" > + <select class="form-control" ng-model="dataProvider.getFieldData()[$ctrl.fieldName].distance_unit"> + <option value="km">{{:: ts('Km') }}</option> + <option value="miles">{{:: ts('Miles') }}</option> + </select> + <input class="form-control" ng-model="dataProvider.getFieldData()[$ctrl.fieldName].address" placeholder="{{:: ts('Street, City, State, Country') }}" ng-model-options="{updateOn: 'blur'}" > +</div> diff --git a/civicrm/ext/afform/core/ang/af/fields/Select.html b/civicrm/ext/afform/core/ang/af/fields/Select.html index 7380af10b6..4e000171d4 100644 --- a/civicrm/ext/afform/core/ang/af/fields/Select.html +++ b/civicrm/ext/afform/core/ang/af/fields/Select.html @@ -1,6 +1,6 @@ <div class="{{:: $ctrl.defn.search_range ? 'form-inline' : 'form-group' }}"> - <input class="form-control" ng-required="$ctrl.defn.required" id="{{:: fieldId }}" ng-if="!$ctrl.defn.input_attrs.multiple" crm-ui-select="{data: select2Options, placeholder: $ctrl.defn.input_attrs.placeholder}" ng-model="getSetSelect" ng-model-options="{getterSetter: true}" > - <input class="form-control" ng-required="$ctrl.defn.required" id="{{:: fieldId }}" ng-if="$ctrl.defn.input_attrs.multiple" ng-list crm-ui-select="{data: select2Options, multiple: true, placeholder: $ctrl.defn.input_attrs.placeholder}" ng-model="getSetSelect" ng-model-options="{getterSetter: true}" > + <input class="form-control" ng-required="$ctrl.defn.required" id="{{:: fieldId }}" ng-if="!$ctrl.isMultiple()" crm-ui-select="{data: select2Options, placeholder: $ctrl.defn.input_attrs.placeholder}" ng-model="getSetSelect" ng-model-options="{getterSetter: true}" > + <input class="form-control" ng-required="$ctrl.defn.required" id="{{:: fieldId }}" ng-if="$ctrl.isMultiple()" ng-list crm-ui-select="{data: select2Options, multiple: true, placeholder: $ctrl.defn.input_attrs.placeholder}" ng-model="getSetSelect" ng-model-options="{getterSetter: true}" > <input class="form-control" ng-required="$ctrl.defn.required" ng-if=":: $ctrl.defn.search_range && !$ctrl.defn.is_date" id="{{:: fieldId }}2" crm-ui-select="{data: select2Options, placeholder: $ctrl.defn.input_attrs.placeholder2 || $ctrl.defn.input_attrs.placeholder}" ng-model="dataProvider.getFieldData()[$ctrl.fieldName]['<=']" > <div ng-if="$ctrl.defn.search_range && $ctrl.defn.is_date && getSetSelect() === '{}'" class="form-group" ng-include="'~/af/fields/Date.html'"></div> </div> diff --git a/civicrm/ext/afform/core/ang/afCore.css b/civicrm/ext/afform/core/ang/afCore.css index 35e095925c..d7dae0164c 100644 --- a/civicrm/ext/afform/core/ang/afCore.css +++ b/civicrm/ext/afform/core/ang/afCore.css @@ -28,6 +28,7 @@ a.af-api4-action-idle { af-form { display: block; + position: relative; } #bootstrap-theme .input-group .crm-af-field { @@ -84,3 +85,14 @@ af-form { #bootstrap-theme .af-container-style-pane.af-collapsed > .af-title { margin-bottom: 0; } + +/* Admin edit links */ +af-form a.af-admin-edit-form-link { + position: absolute; + right: 0; + top: 0; + display: none; +} +af-form:hover a.af-admin-edit-form-link { + display: block; +} diff --git a/civicrm/ext/afform/core/info.xml b/civicrm/ext/afform/core/info.xml index 32fbb2f937..927a248df8 100644 --- a/civicrm/ext/afform/core/info.xml +++ b/civicrm/ext/afform/core/info.xml @@ -13,11 +13,14 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-01-09</releaseDate> - <version>5.66.2</version> - <develStage>beta</develStage> + <version>5.67.0</version> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> + <develStage>stable</develStage> + <tags> + <tag>mgmt:required</tag> + </tags> <comments>The Form Core extension is required to use any dynamic form. To administer and edit forms, also install the FormBuilder extension.</comments> <civix> <namespace>CRM/Afform</namespace> diff --git a/civicrm/ext/afform/core/tests/phpunit/Civi/Afform/AfformContactSummaryTest.php b/civicrm/ext/afform/core/tests/phpunit/Civi/Afform/AfformContactSummaryTest.php index aa8817b792..0397eba8ac 100644 --- a/civicrm/ext/afform/core/tests/phpunit/Civi/Afform/AfformContactSummaryTest.php +++ b/civicrm/ext/afform/core/tests/phpunit/Civi/Afform/AfformContactSummaryTest.php @@ -16,11 +16,11 @@ class AfformContactSummaryTest extends TestCase implements HeadlessInterface { use Api4TestTrait; private $formNames = [ - 'contact_summary_test1', - 'contact_summary_test2', - 'contact_summary_test3', - 'contact_summary_test4', - 'contact_summary_test5', + 'afFormTest0', + 'afFormTabTest1', + 'afSearchTabTest2', + 'afSearchtest3', + 'afFormTabTest4', ]; public function setUpHeadless(): CiviEnvBuilder { @@ -63,6 +63,7 @@ class AfformContactSummaryTest extends TestCase implements HeadlessInterface { ->addValue('title', 'Test D') ->addValue('contact_summary', 'tab') ->addValue('summary_contact_type', ['Individual']) + ->addValue('summary_weight', 99) ->execute(); Afform::create() ->addValue('name', $this->formNames[4]) @@ -80,20 +81,22 @@ class AfformContactSummaryTest extends TestCase implements HeadlessInterface { $tabs = array_column($tabs, NULL, 'id'); - $this->assertArrayHasKey($this->formNames[1], $tabs); - $this->assertArrayHasKey($this->formNames[2], $tabs); - $this->assertArrayNotHasKey($this->formNames[0], $tabs); - $this->assertArrayHasKey($this->formNames[3], $tabs); - $this->assertArrayNotHasKey($this->formNames[4], $tabs); - $this->assertEquals('Test C', $tabs[$this->formNames[1]]['title']); - $this->assertEquals(['Individual'], $tabs[$this->formNames[1]]['contact_type']); - $this->assertEquals(['Individual'], $tabs[$this->formNames[3]]['contact_type']); - $this->assertEquals('Test A', $tabs[$this->formNames[2]]['title']); - $this->assertEquals('crm-i smiley-face', $tabs[$this->formNames[1]]['icon']); + $this->assertArrayHasKey('test1', $tabs); + $this->assertArrayHasKey('test2', $tabs); + $this->assertArrayNotHasKey('test0', $tabs); + $this->assertArrayHasKey('test3', $tabs); + $this->assertArrayNotHasKey('test4', $tabs); + $this->assertEquals('Test C', $tabs['test1']['title']); + $this->assertEquals(['Individual'], $tabs['test1']['contact_type']); + $this->assertEquals(['Individual'], $tabs['test3']['contact_type']); + $this->assertEquals('Test A', $tabs['test2']['title']); + $this->assertEquals('crm-i smiley-face', $tabs['test1']['icon']); // Fallback icon - $this->assertEquals('crm-i fa-list-alt', $tabs[$this->formNames[2]]['icon']); + $this->assertEquals('crm-i fa-list-alt', $tabs['test2']['icon']); // Forms should be sorted by title alphabetically - $this->assertGreaterThan($tabs[$this->formNames[2]]['weight'], $tabs[$this->formNames[1]]['weight']); + $this->assertGreaterThan($tabs['test2']['weight'], $tabs['test1']['weight']); + // Should respect explicit weight + $this->assertEquals(99, $tabs['test3']['weight']); } public function testAfformContactSummaryBlock(): void { @@ -130,6 +133,13 @@ class AfformContactSummaryTest extends TestCase implements HeadlessInterface { ->addValue('title', 'Test A') ->addValue('contact_summary', 'block') ->execute(); + Afform::create() + ->addValue('name', $this->formNames[3]) + ->addValue('type', 'form') + ->addValue('title', 'A Weight Test') + ->addValue('contact_summary', 'block') + ->addValue('summary_weight', 99) + ->execute(); // Call pageRun hook and then assert afforms have been added to the appropriate region $dummy = new \CRM_Contact_Page_View_Summary(); @@ -139,10 +149,10 @@ class AfformContactSummaryTest extends TestCase implements HeadlessInterface { // TODO: Be more flexible // The presence of any other afform blocks in the system might alter the left-right assumptions here $blockA = \CRM_Core_Region::instance('contact-basic-info-left')->get('afform:' . $this->formNames[2]); - $this->assertStringContainsString("<contact-summary-test3 options=\"{contact_id: $cid}\"></contact-summary-test3>", $blockA['markup']); + $this->assertStringContainsString("<af-search-tab-test2 options=\"{contact_id: $cid}\"></af-search-tab-test2>", $blockA['markup']); $blockB = \CRM_Core_Region::instance('contact-basic-info-right')->get('afform:' . $this->formNames[1]); - $this->assertStringContainsString("<contact-summary-test2 options=\"{contact_id: $cid}\"></contact-summary-test2>", $blockB['markup']); + $this->assertStringContainsString("<af-form-tab-test1 options=\"{contact_id: $cid}\"></af-form-tab-test1>", $blockB['markup']); // Block for wrong contact type should not appear $this->assertNull(\CRM_Core_Region::instance('contact-basic-info-left')->get('afform:' . $this->formNames[0])); @@ -159,6 +169,8 @@ class AfformContactSummaryTest extends TestCase implements HeadlessInterface { // Forms should be sorted by title $order = array_flip(array_keys($blocks['afform_form']['blocks'])); $this->assertGreaterThan($order[$this->formNames[2]], $order[$this->formNames[1]]); + // Unless explicit weight is given + $this->assertGreaterThan($order[$this->formNames[3]], $order[$this->formNames[2]]); } } diff --git a/civicrm/ext/afform/core/tests/phpunit/bootstrap.php b/civicrm/ext/afform/core/tests/phpunit/bootstrap.php index 5133778c81..63c9148e8e 100644 --- a/civicrm/ext/afform/core/tests/phpunit/bootstrap.php +++ b/civicrm/ext/afform/core/tests/phpunit/bootstrap.php @@ -26,7 +26,7 @@ $loader->register(); */ function cv($cmd, $decode = 'json') { $cmd = 'cv ' . $cmd; - $descriptorSpec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => STDERR); + $descriptorSpec = [0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => STDERR]; $oldOutput = getenv('CV_OUTPUT'); putenv("CV_OUTPUT=json"); diff --git a/civicrm/ext/afform/html/afform_html.civix.php b/civicrm/ext/afform/html/afform_html.civix.php index 31c33437bb..c7d8887f54 100644 --- a/civicrm/ext/afform/html/afform_html.civix.php +++ b/civicrm/ext/afform/html/afform_html.civix.php @@ -84,27 +84,17 @@ use CRM_AfformHtml_ExtensionUtil as E; * * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config */ -function _afform_html_civix_civicrm_config(&$config = NULL) { +function _afform_html_civix_civicrm_config($config = NULL) { static $configured = FALSE; if ($configured) { return; } $configured = TRUE; - $template = CRM_Core_Smarty::singleton(); - $extRoot = __DIR__ . DIRECTORY_SEPARATOR; - $extDir = $extRoot . 'templates'; - - if (is_array($template->template_dir)) { - array_unshift($template->template_dir, $extDir); - } - else { - $template->template_dir = [$extDir, $template->template_dir]; - } - $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); set_include_path($include_path); + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -114,35 +104,7 @@ function _afform_html_civix_civicrm_config(&$config = NULL) { */ function _afform_html_civix_civicrm_install() { _afform_html_civix_civicrm_config(); - if ($upgrader = _afform_html_civix_upgrader()) { - $upgrader->onInstall(); - } -} - -/** - * Implements hook_civicrm_postInstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall - */ -function _afform_html_civix_civicrm_postInstall() { - _afform_html_civix_civicrm_config(); - if ($upgrader = _afform_html_civix_upgrader()) { - if (is_callable([$upgrader, 'onPostInstall'])) { - $upgrader->onPostInstall(); - } - } -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall - */ -function _afform_html_civix_civicrm_uninstall(): void { - _afform_html_civix_civicrm_config(); - if ($upgrader = _afform_html_civix_upgrader()) { - $upgrader->onUninstall(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -152,56 +114,7 @@ function _afform_html_civix_civicrm_uninstall(): void { */ function _afform_html_civix_civicrm_enable(): void { _afform_html_civix_civicrm_config(); - if ($upgrader = _afform_html_civix_upgrader()) { - if (is_callable([$upgrader, 'onEnable'])) { - $upgrader->onEnable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_disable(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable - * @return mixed - */ -function _afform_html_civix_civicrm_disable(): void { - _afform_html_civix_civicrm_config(); - if ($upgrader = _afform_html_civix_upgrader()) { - if (is_callable([$upgrader, 'onDisable'])) { - $upgrader->onDisable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_upgrade(). - * - * @param $op string, the type of operation being performed; 'check' or 'enqueue' - * @param $queue CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks - * - * @return mixed - * based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending) - * for 'enqueue', returns void - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade - */ -function _afform_html_civix_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - if ($upgrader = _afform_html_civix_upgrader()) { - return $upgrader->onUpgrade($op, $queue); - } -} - -/** - * @return CRM_AfformHtml_Upgrader - */ -function _afform_html_civix_upgrader() { - if (!file_exists(__DIR__ . '/CRM/AfformHtml/Upgrader.php')) { - return NULL; - } - else { - return CRM_AfformHtml_Upgrader_Base::instance(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -220,8 +133,8 @@ function _afform_html_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; @@ -285,14 +198,3 @@ function _afform_html_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentI } } } - -/** - * (Delegated) Implements hook_civicrm_entityTypes(). - * - * Find any *.entityType.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function _afform_html_civix_civicrm_entityTypes(&$entityTypes) { - $entityTypes = array_merge($entityTypes, []); -} diff --git a/civicrm/ext/afform/html/afform_html.php b/civicrm/ext/afform/html/afform_html.php index 4410f3eb17..e788accd53 100644 --- a/civicrm/ext/afform/html/afform_html.php +++ b/civicrm/ext/afform/html/afform_html.php @@ -25,24 +25,6 @@ function afform_html_civicrm_install() { _afform_html_civix_civicrm_install(); } -/** - * Implements hook_civicrm_postInstall(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_postInstall - */ -function afform_html_civicrm_postInstall() { - _afform_html_civix_civicrm_postInstall(); -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_uninstall - */ -function afform_html_civicrm_uninstall() { - _afform_html_civix_civicrm_uninstall(); -} - /** * Implements hook_civicrm_enable(). * @@ -51,32 +33,3 @@ function afform_html_civicrm_uninstall() { function afform_html_civicrm_enable() { _afform_html_civix_civicrm_enable(); } - -/** - * Implements hook_civicrm_disable(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_disable - */ -function afform_html_civicrm_disable() { - _afform_html_civix_civicrm_disable(); -} - -/** - * Implements hook_civicrm_upgrade(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_upgrade - */ -function afform_html_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - return _afform_html_civix_civicrm_upgrade($op, $queue); -} - -/** - * Implements hook_civicrm_entityTypes(). - * - * Declare entity types provided by this module. - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_entityTypes - */ -function afform_html_civicrm_entityTypes(&$entityTypes) { - _afform_html_civix_civicrm_entityTypes($entityTypes); -} diff --git a/civicrm/ext/afform/html/info.xml b/civicrm/ext/afform/html/info.xml index cf0f187140..b875963b15 100644 --- a/civicrm/ext/afform/html/info.xml +++ b/civicrm/ext/afform/html/info.xml @@ -13,10 +13,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-01-09</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>alpha</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <requires> <ext>org.civicrm.afform</ext> @@ -27,6 +27,9 @@ </mixins> <civix> <namespace>CRM/AfformHtml</namespace> - <format>22.10.0</format> + <format>23.02.1</format> </civix> + <classloader> + <psr4 prefix="Civi\" path="Civi"/> + </classloader> </extension> diff --git a/civicrm/ext/afform/mock/afform_mock.civix.php b/civicrm/ext/afform/mock/afform_mock.civix.php index 74c34428b1..add2e8811d 100644 --- a/civicrm/ext/afform/mock/afform_mock.civix.php +++ b/civicrm/ext/afform/mock/afform_mock.civix.php @@ -84,27 +84,17 @@ use CRM_AfformMock_ExtensionUtil as E; * * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config */ -function _afform_mock_civix_civicrm_config(&$config = NULL) { +function _afform_mock_civix_civicrm_config($config = NULL) { static $configured = FALSE; if ($configured) { return; } $configured = TRUE; - $template = CRM_Core_Smarty::singleton(); - $extRoot = __DIR__ . DIRECTORY_SEPARATOR; - $extDir = $extRoot . 'templates'; - - if (is_array($template->template_dir)) { - array_unshift($template->template_dir, $extDir); - } - else { - $template->template_dir = [$extDir, $template->template_dir]; - } - $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); set_include_path($include_path); + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -114,35 +104,7 @@ function _afform_mock_civix_civicrm_config(&$config = NULL) { */ function _afform_mock_civix_civicrm_install() { _afform_mock_civix_civicrm_config(); - if ($upgrader = _afform_mock_civix_upgrader()) { - $upgrader->onInstall(); - } -} - -/** - * Implements hook_civicrm_postInstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall - */ -function _afform_mock_civix_civicrm_postInstall() { - _afform_mock_civix_civicrm_config(); - if ($upgrader = _afform_mock_civix_upgrader()) { - if (is_callable([$upgrader, 'onPostInstall'])) { - $upgrader->onPostInstall(); - } - } -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall - */ -function _afform_mock_civix_civicrm_uninstall(): void { - _afform_mock_civix_civicrm_config(); - if ($upgrader = _afform_mock_civix_upgrader()) { - $upgrader->onUninstall(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -152,56 +114,7 @@ function _afform_mock_civix_civicrm_uninstall(): void { */ function _afform_mock_civix_civicrm_enable(): void { _afform_mock_civix_civicrm_config(); - if ($upgrader = _afform_mock_civix_upgrader()) { - if (is_callable([$upgrader, 'onEnable'])) { - $upgrader->onEnable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_disable(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable - * @return mixed - */ -function _afform_mock_civix_civicrm_disable(): void { - _afform_mock_civix_civicrm_config(); - if ($upgrader = _afform_mock_civix_upgrader()) { - if (is_callable([$upgrader, 'onDisable'])) { - $upgrader->onDisable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_upgrade(). - * - * @param $op string, the type of operation being performed; 'check' or 'enqueue' - * @param $queue CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks - * - * @return mixed - * based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending) - * for 'enqueue', returns void - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade - */ -function _afform_mock_civix_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - if ($upgrader = _afform_mock_civix_upgrader()) { - return $upgrader->onUpgrade($op, $queue); - } -} - -/** - * @return CRM_AfformMock_Upgrader - */ -function _afform_mock_civix_upgrader() { - if (!file_exists(__DIR__ . '/CRM/AfformMock/Upgrader.php')) { - return NULL; - } - else { - return CRM_AfformMock_Upgrader_Base::instance(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -220,8 +133,8 @@ function _afform_mock_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; @@ -285,14 +198,3 @@ function _afform_mock_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentI } } } - -/** - * (Delegated) Implements hook_civicrm_entityTypes(). - * - * Find any *.entityType.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function _afform_mock_civix_civicrm_entityTypes(&$entityTypes) { - $entityTypes = array_merge($entityTypes, []); -} diff --git a/civicrm/ext/afform/mock/afform_mock.php b/civicrm/ext/afform/mock/afform_mock.php index 3f6d87a1a9..0ac585f2d4 100644 --- a/civicrm/ext/afform/mock/afform_mock.php +++ b/civicrm/ext/afform/mock/afform_mock.php @@ -21,24 +21,6 @@ function afform_mock_civicrm_install() { _afform_mock_civix_civicrm_install(); } -/** - * Implements hook_civicrm_postInstall(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_postInstall - */ -function afform_mock_civicrm_postInstall() { - _afform_mock_civix_civicrm_postInstall(); -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_uninstall - */ -function afform_mock_civicrm_uninstall() { - _afform_mock_civix_civicrm_uninstall(); -} - /** * Implements hook_civicrm_enable(). * @@ -47,32 +29,3 @@ function afform_mock_civicrm_uninstall() { function afform_mock_civicrm_enable() { _afform_mock_civix_civicrm_enable(); } - -/** - * Implements hook_civicrm_disable(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_disable - */ -function afform_mock_civicrm_disable() { - _afform_mock_civix_civicrm_disable(); -} - -/** - * Implements hook_civicrm_upgrade(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_upgrade - */ -function afform_mock_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - return _afform_mock_civix_civicrm_upgrade($op, $queue); -} - -/** - * Implements hook_civicrm_entityTypes(). - * - * Declare entity types provided by this module. - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_entityTypes - */ -function afform_mock_civicrm_entityTypes(&$entityTypes) { - _afform_mock_civix_civicrm_entityTypes($entityTypes); -} diff --git a/civicrm/ext/afform/mock/ang/testDisplaysSharingSameFieldset.aff.html b/civicrm/ext/afform/mock/ang/testDisplaysSharingSameFieldset.aff.html new file mode 100644 index 0000000000..9133093287 --- /dev/null +++ b/civicrm/ext/afform/mock/ang/testDisplaysSharingSameFieldset.aff.html @@ -0,0 +1,7 @@ +<div af-fieldset=""> + <div class="af-container af-layout-inline"> + <af-field name="label" /> + </div> + <crm-search-display-table filters="{is_active: true, 'option_group_id:name': dummy_var}" search-name="testDisplaysSharingSameFieldset" display-name="testDisplaysSharingSameFieldset"></crm-search-display-table> + <crm-search-display-table filters="{is_active: false, 'option_group_id:name': dummy_var}" search-name="testDisplaysSharingSameFieldset" display-name="testDisplaysSharingSameFieldset"></crm-search-display-table> +</div> diff --git a/civicrm/ext/afform/mock/info.xml b/civicrm/ext/afform/mock/info.xml index 837cc58bfa..269c1e2efb 100644 --- a/civicrm/ext/afform/mock/info.xml +++ b/civicrm/ext/afform/mock/info.xml @@ -12,13 +12,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-01-09</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <tags> <tag>mgmt:hidden</tag> </tags> <develStage>alpha</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <requires> <ext>org.civicrm.afform</ext> @@ -29,6 +29,9 @@ </mixins> <civix> <namespace>CRM/AfformMock</namespace> - <format>22.10.0</format> + <format>23.02.1</format> </civix> + <classloader> + <psr4 prefix="Civi\" path="Civi"/> + </classloader> </extension> diff --git a/civicrm/ext/afform/mock/tests/phpunit/bootstrap.php b/civicrm/ext/afform/mock/tests/phpunit/bootstrap.php index bac7c1f297..5fd2c5bf3f 100644 --- a/civicrm/ext/afform/mock/tests/phpunit/bootstrap.php +++ b/civicrm/ext/afform/mock/tests/phpunit/bootstrap.php @@ -29,7 +29,7 @@ foreach ([__DIR__] as $dir) { */ function cv($cmd, $decode = 'json') { $cmd = 'cv ' . $cmd; - $descriptorSpec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => STDERR); + $descriptorSpec = [0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => STDERR]; $oldOutput = getenv('CV_OUTPUT'); putenv("CV_OUTPUT=json"); diff --git a/civicrm/ext/authx/authx.civix.php b/civicrm/ext/authx/authx.civix.php index 4e1b32a58e..4bfa920f3a 100644 --- a/civicrm/ext/authx/authx.civix.php +++ b/civicrm/ext/authx/authx.civix.php @@ -133,8 +133,8 @@ function _authx_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/authx/authx.php b/civicrm/ext/authx/authx.php index 01091f9b2b..2a4e8c0dc8 100644 --- a/civicrm/ext/authx/authx.php +++ b/civicrm/ext/authx/authx.php @@ -73,7 +73,7 @@ function _authx_redact(array $keys) { function _authx_reload($route, $queryString) { parse_str($queryString, $query); foreach (array_keys($query) as $key) { - if (CRM_Utils_String::startsWith($key, '_authx')) { + if (str_starts_with($key, '_authx')) { unset($query[$key]); } } diff --git a/civicrm/ext/authx/info.xml b/civicrm/ext/authx/info.xml index e1e3f072ec..55613e28d7 100644 --- a/civicrm/ext/authx/info.xml +++ b/civicrm/ext/authx/info.xml @@ -15,10 +15,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2021-02-11</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> + <tags> + <tag>mgmt:required</tag> + </tags> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>AuthX enables remote applications to connect to CiviCRM. Use it to enable and disable different forms of authentication (such as username-password, API key, and/or JWT).</comments> <classloader> @@ -32,6 +35,6 @@ </mixins> <civix> <namespace>CRM/Authx</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/authx/tests/phpunit/bootstrap.php b/civicrm/ext/authx/tests/phpunit/bootstrap.php index 5133778c81..63c9148e8e 100644 --- a/civicrm/ext/authx/tests/phpunit/bootstrap.php +++ b/civicrm/ext/authx/tests/phpunit/bootstrap.php @@ -26,7 +26,7 @@ $loader->register(); */ function cv($cmd, $decode = 'json') { $cmd = 'cv ' . $cmd; - $descriptorSpec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => STDERR); + $descriptorSpec = [0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => STDERR]; $oldOutput = getenv('CV_OUTPUT'); putenv("CV_OUTPUT=json"); diff --git a/civicrm/ext/civi_campaign/ang/afsearchCampaignDashboard.aff.html b/civicrm/ext/civi_campaign/ang/afsearchCampaignDashboard.aff.html new file mode 100644 index 0000000000..b429bdd539 --- /dev/null +++ b/civicrm/ext/civi_campaign/ang/afsearchCampaignDashboard.aff.html @@ -0,0 +1,25 @@ +<div crm-ui-tab-set> + <div af-fieldset crm-ui-tab crm-title="ts('Campaigns')" id="tab-campaigns"> + <fieldset class="af-container af-layout-inline"> + <af-field name="title,description" defn="{label: false, data_type: 'String', input_type: 'Text', name: 'title', input_attrs: {placeholder: 'Filter by title/description'}}" /> + <af-field name="campaign_type_id" defn="{input_attrs: {multiple: true, placeholder: 'Filter by type'}, label: false}" /> + <af-field name="status_id" defn="{input_attrs: {multiple: true, placeholder: 'Filter by status'}, label: false}" /> + </fieldset> + <crm-search-display-table search-name="Administer_Campaigns" display-name="Campaigns_Table" total-count="$parent.count"></crm-search-display-table> + </div> + <div af-fieldset crm-ui-tab crm-title="ts('Surveys')" id="tab-surveys"> + <fieldset class="af-container af-layout-inline"> + <af-field name="title" defn="{label: false, input_attrs: {placeholder: 'Filter by title'}}" /> + <af-field name="activity_type_id" defn="{input_attrs: {multiple: true, placeholder: 'Filter by type'}, label: false}" /> + <af-field name="campaign_id" defn="{label: false, input_attrs: {placeholder: 'Filter by campaign', autoOpen: true}}" /> + </fieldset> + <crm-search-display-table search-name="Administer_Surveys" display-name="Surveys_Table" total-count="$parent.count"></crm-search-display-table> + </div> + <div af-fieldset crm-ui-tab crm-title="ts('Petitions')" id="tab-petitions"> + <fieldset class="af-container af-layout-inline"> + <af-field name="title" defn="{label: false, input_attrs: {placeholder: 'Filter by title'}}" /> + <af-field name="campaign_id" defn="{label: false, input_attrs: {placeholder: 'Filter by campaign', autoOpen: true}}" /> + </fieldset> + <crm-search-display-table search-name="Administer_Petitions" display-name="Petitions_Table" total-count="$parent.count"></crm-search-display-table> + </div> +</div> diff --git a/civicrm/ext/civi_campaign/ang/afsearchCampaignDashboard.aff.php b/civicrm/ext/civi_campaign/ang/afsearchCampaignDashboard.aff.php new file mode 100644 index 0000000000..2134c1f285 --- /dev/null +++ b/civicrm/ext/civi_campaign/ang/afsearchCampaignDashboard.aff.php @@ -0,0 +1,16 @@ +<?php +use CRM_Campaign_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Campaign Dashboard'), + 'icon' => 'fa-table', + 'server_route' => 'civicrm/campaign', + 'permission' => ['administer CiviCampaign', 'manage campaign'], + 'permission_operator' => 'OR', + 'navigation' => [ + 'parent' => 'Campaigns', + 'label' => E::ts('Campaign Dashboard'), + 'weight' => -1, + ], +]; diff --git a/civicrm/ext/civi_campaign/ang/afsearchSurveyOptionGroup.aff.html b/civicrm/ext/civi_campaign/ang/afsearchSurveyOptionGroup.aff.html new file mode 100644 index 0000000000..999b0d2469 --- /dev/null +++ b/civicrm/ext/civi_campaign/ang/afsearchSurveyOptionGroup.aff.html @@ -0,0 +1,3 @@ +<div af-fieldset=""> + <crm-search-display-table search-name="Administer_Survey_Options" display-name="Administer_Survey_Options_Table" filters="{option_group_id: routeParams.option_group_id}"></crm-search-display-table> +</div> diff --git a/civicrm/ext/civi_campaign/ang/afsearchSurveyOptionGroup.aff.php b/civicrm/ext/civi_campaign/ang/afsearchSurveyOptionGroup.aff.php new file mode 100644 index 0000000000..7f5a56948f --- /dev/null +++ b/civicrm/ext/civi_campaign/ang/afsearchSurveyOptionGroup.aff.php @@ -0,0 +1,10 @@ +<?php +use CRM_Campaign_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => '', + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/survey/option-group', + 'permission' => ['access CiviCRM'], +]; diff --git a/civicrm/ext/civi_campaign/info.xml b/civicrm/ext/civi_campaign/info.xml index 931a8ccc08..024d1d0746 100644 --- a/civicrm/ext/civi_campaign/info.xml +++ b/civicrm/ext/civi_campaign/info.xml @@ -13,13 +13,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2023-04-08</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <tags> <tag>component</tag> </tags> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Core Component</comments> <upgrader>CRM_Extension_Upgrader_Component</upgrader> @@ -29,6 +29,7 @@ </classloader> <mixins> <mixin>scan-classes@1.0.0</mixin> + <mixin>mgd-php@1.0.0</mixin> </mixins> <civix> <namespace>CRM/Campaign</namespace> diff --git a/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Campaigns.mgd.php b/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Campaigns.mgd.php new file mode 100644 index 0000000000..fa6f5fbe19 --- /dev/null +++ b/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Campaigns.mgd.php @@ -0,0 +1,205 @@ +<?php +use CRM_Campaign_ExtensionUtil as E; + +return [ + [ + 'name' => 'SavedSearch_Administer_Campaigns', + 'entity' => 'SavedSearch', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Administer_Campaigns', + 'label' => E::ts('Administer Campaigns'), + 'form_values' => NULL, + 'mapping_id' => NULL, + 'search_custom_id' => NULL, + 'api_entity' => 'Campaign', + 'api_params' => [ + 'version' => 4, + 'select' => [ + 'id', + 'title', + 'description', + 'is_active', + 'start_date', + 'end_date', + 'campaign_type_id:label', + 'status_id:label', + ], + 'orderBy' => [], + 'where' => [], + 'groupBy' => [], + 'join' => [], + 'having' => [], + ], + 'expires_date' => NULL, + 'description' => NULL, + ], + 'match' => [ + 'name', + ], + ], + ], + [ + 'name' => 'SavedSearch_Administer_Campaigns_SearchDisplay_Campaigns_Table', + 'entity' => 'SearchDisplay', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Campaigns_Table', + 'label' => E::ts('Administer Campaigns'), + 'saved_search_id.name' => 'Administer_Campaigns', + 'type' => 'table', + 'settings' => [ + 'actions' => FALSE, + 'limit' => 50, + 'classes' => [ + 'table', + 'table-striped', + ], + 'pager' => [ + 'show_count' => FALSE, + 'expose_limit' => TRUE, + 'hide_single' => TRUE, + ], + 'placeholder' => 5, + 'sort' => [ + ['is_active', 'DESC'], + ['title', 'ASC'], + ], + 'columns' => [ + [ + 'type' => 'field', + 'key' => 'title', + 'dataType' => 'String', + 'label' => E::ts('Title'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'description', + 'dataType' => 'String', + 'label' => E::ts('Description'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'start_date', + 'dataType' => 'Date', + 'label' => E::ts('Start Date'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'end_date', + 'dataType' => 'Date', + 'label' => E::ts('End Date'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'campaign_type_id:label', + 'dataType' => 'String', + 'label' => E::ts('Type'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'status_id:label', + 'dataType' => 'String', + 'label' => E::ts('Status'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'is_active', + 'dataType' => 'Boolean', + 'label' => E::ts('Enabled'), + 'sortable' => TRUE, + ], + [ + 'size' => 'btn-xs', + 'links' => [ + [ + 'path' => '', + 'icon' => 'fa-pencil', + 'text' => E::ts('Edit'), + 'style' => 'default', + 'condition' => [], + 'entity' => 'Campaign', + 'action' => 'update', + 'join' => '', + 'target' => 'crm-popup', + ], + [ + 'task' => 'enable', + 'entity' => 'Campaign', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'Campaign', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], + [ + 'entity' => 'Campaign', + 'action' => 'delete', + 'join' => '', + 'target' => 'crm-popup', + 'icon' => 'fa-trash', + 'text' => E::ts('Delete'), + 'style' => 'danger small-popup', + 'path' => '', + 'condition' => [], + ], + ], + 'type' => 'buttons', + 'alignment' => 'text-right', + ], + ], + 'toolbar' => [ + [ + 'entity' => 'Campaign', + 'action' => 'add', + 'target' => 'crm-popup', + 'icon' => 'fa-plus', + 'text' => E::ts('Add Campaign'), + 'style' => 'primary', + ], + ], + 'cssRules' => [ + [ + 'disabled', + 'is_active', + '=', + FALSE, + ], + ], + ], + 'acl_bypass' => FALSE, + ], + 'match' => [ + 'name', + 'saved_search_id', + ], + ], + ], +]; diff --git a/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Petitions.mgd.php b/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Petitions.mgd.php new file mode 100644 index 0000000000..fa36a617cf --- /dev/null +++ b/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Petitions.mgd.php @@ -0,0 +1,218 @@ +<?php +use CRM_Campaign_ExtensionUtil as E; + +return [ + [ + 'name' => 'SavedSearch_Administer_Petitions', + 'entity' => 'SavedSearch', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Administer_Petitions', + 'label' => E::ts('Administer Petitions'), + 'form_values' => NULL, + 'mapping_id' => NULL, + 'search_custom_id' => NULL, + 'api_entity' => 'Survey', + 'api_params' => [ + 'version' => 4, + 'select' => [ + 'id', + 'title', + 'campaign_id:label', + 'is_active', + 'is_default', + ], + 'orderBy' => [], + 'where' => [ + ['activity_type_id:name', '=', 'Petition'], + ], + 'groupBy' => [], + 'join' => [], + 'having' => [], + ], + 'expires_date' => NULL, + 'description' => NULL, + ], + 'match' => [ + 'name', + ], + ], + ], + [ + 'name' => 'SavedSearch_Administer_Petitions_SearchDisplay_Petitions_Table', + 'entity' => 'SearchDisplay', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Petitions_Table', + 'label' => E::ts('Administer Petitions'), + 'saved_search_id.name' => 'Administer_Petitions', + 'type' => 'table', + 'settings' => [ + 'actions' => FALSE, + 'limit' => 50, + 'classes' => [ + 'table', + 'table-striped', + ], + 'pager' => [ + 'show_count' => FALSE, + 'expose_limit' => TRUE, + 'hide_single' => TRUE, + ], + 'placeholder' => 5, + 'sort' => [ + ['is_active', 'DESC'], + ['title', 'ASC'], + ], + 'columns' => [ + [ + 'type' => 'field', + 'key' => 'title', + 'dataType' => 'String', + 'label' => E::ts('Title'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'campaign_id:label', + 'dataType' => 'Integer', + 'label' => E::ts('Survey'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'is_default', + 'dataType' => 'Boolean', + 'label' => E::ts('Default'), + 'sortable' => TRUE, + 'rewrite' => ' ', + 'icons' => [ + [ + 'icon' => 'fa-check-square-o', + 'side' => 'left', + 'if' => [ + 'is_default', + '=', + TRUE, + ], + ], + ], + ], + [ + 'type' => 'field', + 'key' => 'is_active', + 'dataType' => 'Boolean', + 'label' => E::ts('Enabled'), + 'sortable' => TRUE, + ], + [ + 'size' => 'btn-xs', + 'type' => 'buttons', + 'alignment' => 'text-right', + 'links' => [ + [ + 'path' => 'civicrm/petition/add?reset=1&action=update&id=[id]', + 'icon' => 'fa-pencil', + 'text' => E::ts('Edit'), + 'style' => 'default', + 'condition' => [], + 'target' => 'crm-popup', + ], + [ + 'task' => 'enable', + 'entity' => 'Survey', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'Survey', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], + [ + 'entity' => 'Survey', + 'action' => 'delete', + 'join' => '', + 'target' => 'crm-popup', + 'icon' => 'fa-trash', + 'text' => E::ts('Delete'), + 'style' => 'danger small-popup', + 'path' => '', + 'condition' => [], + ], + ], + ], + [ + 'text' => E::ts('Signatures'), + 'style' => 'default', + 'size' => 'btn-xs', + 'icon' => 'fa-bars', + 'type' => 'menu', + 'alignment' => 'text-right', + 'links' => [ + [ + 'path' => 'civicrm/petition/sign?reset=1&sid=[id]', + 'icon' => 'fa-clipboard', + 'text' => E::ts('Sign'), + 'style' => 'default', + 'condition' => [], + 'target' => '_blank', + ], + [ + 'path' => 'civicrm/activity/search?force=1&survey=[id]', + 'icon' => 'fa-list-alt', + 'text' => E::ts('View Signatures'), + 'style' => 'default', + 'condition' => [], + 'target' => '_blank', + ], + ], + ], + ], + 'toolbar' => [ + [ + 'path' => 'civicrm/petition/add?reset=1', + 'text' => E::ts('Add Petition'), + 'target' => 'crm-popup', + 'icon' => 'fa-plus', + 'style' => 'primary', + 'condition' => [ + 'check user permission', + 'CONTAINS', + ['administer CiviCampaign', 'manage campaign'], + ], + ], + ], + 'cssRules' => [ + [ + 'disabled', + 'is_active', + '=', + FALSE, + ], + ], + ], + 'acl_bypass' => FALSE, + ], + 'match' => [ + 'name', + 'saved_search_id', + ], + ], + ], +]; diff --git a/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Survey_Options.mgd.php b/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Survey_Options.mgd.php new file mode 100644 index 0000000000..6615e54374 --- /dev/null +++ b/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Survey_Options.mgd.php @@ -0,0 +1,101 @@ +<?php +use CRM_Campaign_ExtensionUtil as E; + +return [ + [ + 'name' => 'SavedSearch_Administer_Survey_Options', + 'entity' => 'SavedSearch', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Administer_Survey_Options', + 'label' => E::ts('Administer Survey Options'), + 'form_values' => NULL, + 'mapping_id' => NULL, + 'search_custom_id' => NULL, + 'api_entity' => 'OptionValue', + 'api_params' => [ + 'version' => 4, + 'select' => [ + 'label', + 'value', + 'filter', + ], + 'orderBy' => [], + 'where' => [], + 'groupBy' => [], + 'join' => [], + 'having' => [], + ], + 'expires_date' => NULL, + 'description' => NULL, + ], + 'match' => [ + 'name', + ], + ], + ], + [ + 'name' => 'SavedSearch_Administer_Survey_Options_SearchDisplay_Administer_Survey_Options_Table', + 'entity' => 'SearchDisplay', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Administer_Survey_Options_Table', + 'label' => E::ts('Administer Survey Options'), + 'saved_search_id.name' => 'Administer_Survey_Options', + 'type' => 'table', + 'settings' => [ + 'description' => NULL, + 'sort' => [], + 'limit' => 50, + 'actions' => FALSE, + 'classes' => [ + 'table', + 'table-striped', + ], + 'draggable' => 'weight', + 'pager' => [ + 'hide_single' => TRUE, + ], + 'placeholder' => 5, + 'columns' => [ + [ + 'type' => 'field', + 'key' => 'label', + 'dataType' => 'String', + 'label' => E::ts('Label'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'value', + 'dataType' => 'String', + 'label' => E::ts('Value'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'filter', + 'dataType' => 'Integer', + 'label' => E::ts('Recontact Interval'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + ], + ], + 'acl_bypass' => FALSE, + ], + 'match' => [ + 'name', + 'saved_search_id', + ], + ], + ], +]; diff --git a/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Surveys.mgd.php b/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Surveys.mgd.php new file mode 100644 index 0000000000..98eafea940 --- /dev/null +++ b/civicrm/ext/civi_campaign/managed/SavedSearch_Administer_Surveys.mgd.php @@ -0,0 +1,303 @@ +<?php +use CRM_Campaign_ExtensionUtil as E; + +return [ + [ + 'name' => 'SavedSearch_Administer_Surveys', + 'entity' => 'SavedSearch', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Administer_Surveys', + 'label' => E::ts('Administer Surveys'), + 'form_values' => NULL, + 'mapping_id' => NULL, + 'search_custom_id' => NULL, + 'api_entity' => 'Survey', + 'api_params' => [ + 'version' => 4, + 'select' => [ + 'id', + 'title', + 'campaign_id:label', + 'activity_type_id:label', + 'release_frequency', + 'default_number_of_contacts', + 'max_number_of_contacts', + 'is_active', + 'is_default', + 'result_id:label', + ], + 'orderBy' => [], + 'where' => [ + ['activity_type_id:name', '!=', 'Petition'], + ], + 'groupBy' => [], + 'join' => [], + 'having' => [], + ], + 'expires_date' => NULL, + 'description' => NULL, + ], + 'match' => [ + 'name', + ], + ], + ], + [ + 'name' => 'SavedSearch_Administer_Surveys_SearchDisplay_Surveys_Table', + 'entity' => 'SearchDisplay', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Surveys_Table', + 'label' => E::ts('Administer Surveys'), + 'saved_search_id.name' => 'Administer_Surveys', + 'type' => 'table', + 'settings' => [ + 'actions' => FALSE, + 'limit' => 50, + 'classes' => [ + 'table', + 'table-striped', + ], + 'pager' => [ + 'show_count' => FALSE, + 'expose_limit' => TRUE, + 'hide_single' => TRUE, + ], + 'placeholder' => 5, + 'sort' => [ + ['is_active', 'DESC'], + ['title', 'ASC'], + ], + 'columns' => [ + [ + 'type' => 'field', + 'key' => 'title', + 'dataType' => 'String', + 'label' => E::ts('Title'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'campaign_id:label', + 'dataType' => 'Integer', + 'label' => E::ts('Survey'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'activity_type_id:label', + 'dataType' => 'Integer', + 'label' => E::ts('Type'), + 'sortable' => TRUE, + 'editable' => TRUE, + 'icons' => [ + [ + 'field' => 'activity_type_id:icon', + 'side' => 'left', + ], + ], + ], + [ + 'type' => 'field', + 'key' => 'release_frequency', + 'dataType' => 'Integer', + 'label' => E::ts('Release Frequency'), + 'sortable' => TRUE, + 'empty_value' => '', + 'rewrite' => '[release_frequency] Days', + ], + [ + 'type' => 'field', + 'key' => 'default_number_of_contacts', + 'dataType' => 'Integer', + 'label' => E::ts('Reserve Each Time'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'max_number_of_contacts', + 'dataType' => 'Integer', + 'label' => E::ts('Total Reserve'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'result_id:label', + 'dataType' => 'Integer', + 'label' => E::ts('Result Set'), + 'sortable' => TRUE, + 'link' => [ + 'path' => 'civicrm/survey/option-group#?option_group_id=[result_id]', + 'entity' => '', + 'action' => '', + 'join' => '', + 'target' => 'crm-popup', + ], + 'empty_value' => E::ts('Incomplete'), + 'cssRules' => [ + [ + 'bg-danger', + 'result_id:label', + 'IS EMPTY', + ], + ], + 'rewrite' => E::ts('View Options'), + 'icons' => [], + ], + [ + 'type' => 'field', + 'key' => 'is_default', + 'dataType' => 'Boolean', + 'label' => E::ts('Default'), + 'sortable' => TRUE, + 'rewrite' => ' ', + 'icons' => [ + [ + 'icon' => 'fa-check-square-o', + 'side' => 'left', + 'if' => [ + 'is_default', + '=', + TRUE, + ], + ], + ], + ], + [ + 'type' => 'field', + 'key' => 'is_active', + 'dataType' => 'Boolean', + 'label' => E::ts('Enabled'), + 'sortable' => TRUE, + ], + [ + 'size' => 'btn-xs', + 'links' => [ + [ + 'path' => '', + 'icon' => 'fa-pencil', + 'text' => E::ts('Edit'), + 'style' => 'default', + 'condition' => [], + 'entity' => 'Survey', + 'action' => 'update', + 'join' => '', + 'target' => '', + ], + [ + 'task' => 'enable', + 'entity' => 'Survey', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'Survey', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], + [ + 'entity' => 'Survey', + 'action' => 'delete', + 'join' => '', + 'target' => 'crm-popup', + 'icon' => 'fa-trash', + 'text' => E::ts('Delete'), + 'style' => 'danger small-popup', + 'path' => '', + 'condition' => [], + ], + ], + 'type' => 'buttons', + 'alignment' => 'text-right', + ], + [ + 'text' => E::ts('Respondents'), + 'style' => 'default', + 'size' => 'btn-xs', + 'icon' => 'fa-bars', + 'type' => 'menu', + 'alignment' => 'text-right', + 'links' => [ + [ + 'entity' => '', + 'action' => '', + 'join' => '', + 'target' => '_blank', + 'icon' => 'fa-user-plus', + 'text' => E::ts('Reserve'), + 'style' => 'default', + 'path' => 'civicrm/survey/search?sid=[id]&reset=1&op=reserve', + 'task' => '', + 'condition' => [], + ], + [ + 'path' => 'civicrm/survey/search?sid=[id]&reset=1&op=interview&force=1', + 'icon' => 'fa-clipboard', + 'text' => E::ts('Interview'), + 'style' => 'default', + 'condition' => [], + 'task' => '', + 'entity' => '', + 'action' => '', + 'join' => '', + 'target' => '_blank', + ], + [ + 'path' => 'civicrm/survey/search?sid=[id]&reset=1&op=release&force=1', + 'icon' => 'fa-user-times', + 'text' => E::ts('Release'), + 'style' => 'default', + 'condition' => [], + 'task' => '', + 'entity' => '', + 'action' => '', + 'join' => '', + 'target' => '_blank', + ], + ], + ], + ], + 'toolbar' => [ + [ + 'entity' => 'Survey', + 'action' => 'add', + 'target' => 'crm-popup', + 'icon' => 'fa-plus', + 'text' => E::ts('Add Survey'), + 'style' => 'primary', + ], + ], + 'cssRules' => [ + [ + 'disabled', + 'is_active', + '=', + FALSE, + ], + ], + ], + 'acl_bypass' => FALSE, + ], + 'match' => [ + 'name', + 'saved_search_id', + ], + ], + ], +]; diff --git a/civicrm/ext/civi_case/Civi/Api4/CaseContact.php b/civicrm/ext/civi_case/Civi/Api4/CaseContact.php index da651d499f..ec24f1f281 100644 --- a/civicrm/ext/civi_case/Civi/Api4/CaseContact.php +++ b/civicrm/ext/civi_case/Civi/Api4/CaseContact.php @@ -23,7 +23,7 @@ namespace Civi\Api4; class CaseContact extends Generic\DAOEntity { use Generic\Traits\EntityBridge; - protected static function getEntityTitle($plural = FALSE) { + protected static function getEntityTitle(bool $plural = FALSE): string { return $plural ? ts('Case Clients') : ts('Case Client'); } diff --git a/civicrm/ext/civi_case/civi_case.php b/civicrm/ext/civi_case/civi_case.php index 82665f72e3..43d5b67706 100644 --- a/civicrm/ext/civi_case/civi_case.php +++ b/civicrm/ext/civi_case/civi_case.php @@ -7,10 +7,32 @@ use CRM_Case_ExtensionUtil as E; * Implements hook_civicrm_managed(). */ function civi_case_civicrm_managed(&$entities, $modules) { - // Don't optimize for $modules because the below functions delegate to other extensions - $entities = array_merge($entities, - CRM_Case_ManagedEntities::createManagedCaseTypes(), - CRM_Case_ManagedEntities::createManagedActivityTypes(CRM_Case_XMLRepository::singleton(), CRM_Core_ManagedEntities::singleton()), - CRM_Case_ManagedEntities::createManagedRelationshipTypes(CRM_Case_XMLRepository::singleton(), CRM_Core_ManagedEntities::singleton()) - ); + // Don't optimize for $modules because `createManagedCaseTypes` delegates to other extensions + $entities = array_merge($entities, CRM_Case_ManagedEntities::createManagedCaseTypes()); + // These functions always declare module = civicrm + if (!$modules || in_array('civicrm', $modules, TRUE)) { + $entities = array_merge($entities, + CRM_Case_ManagedEntities::createManagedActivityTypes(CRM_Case_XMLRepository::singleton()), + CRM_Case_ManagedEntities::createManagedRelationshipTypes(CRM_Case_XMLRepository::singleton()) + ); + } +} + +/** + * Applies Case permissions to Activities + * + * @implements CRM_Utils_Hook::selectWhereClause + */ +function civi_case_civicrm_selectWhereClause($entityName, &$clauses, $userId, $conditions) { + if ($entityName === 'Activity') { + // OR group: either it's a non-case activity OR case permissions apply + $orGroup = [ + 'NOT IN (SELECT activity_id FROM civicrm_case_activity)', + ]; + $casePerms = CRM_Utils_SQL::mergeSubquery('Case'); + if ($casePerms) { + $orGroup[] = 'IN (SELECT activity_id FROM civicrm_case_activity WHERE case_id ' . implode(' AND case_id ', $casePerms) . ')'; + } + $clauses['id'][] = $orGroup; + } } diff --git a/civicrm/ext/civi_case/info.xml b/civicrm/ext/civi_case/info.xml index e97309c7bf..a70d407847 100644 --- a/civicrm/ext/civi_case/info.xml +++ b/civicrm/ext/civi_case/info.xml @@ -13,13 +13,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2023-04-08</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <tags> <tag>component</tag> </tags> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Core Component</comments> <upgrader>CRM_Extension_Upgrader_Component</upgrader> diff --git a/civicrm/ext/civi_contribute/Civi/Api4/Service/Spec/Provider/FinancialItemCreationSpecProvider.php b/civicrm/ext/civi_contribute/Civi/Api4/Service/Spec/Provider/FinancialItemCreationSpecProvider.php index a29d133f2f..9a266b9622 100644 --- a/civicrm/ext/civi_contribute/Civi/Api4/Service/Spec/Provider/FinancialItemCreationSpecProvider.php +++ b/civicrm/ext/civi_contribute/Civi/Api4/Service/Spec/Provider/FinancialItemCreationSpecProvider.php @@ -20,20 +20,13 @@ use Civi\Api4\Service\Spec\RequestSpec; */ class FinancialItemCreationSpecProvider extends \Civi\Core\Service\AutoService implements Generic\SpecProviderInterface { - // I'm not sure it makes sense to have a default `entity_table`... actually, I don't even know if it makes - // sense to expose `FinancialItem` as a public API, for what that's worth. But it's there, so clearly it does. - // And the ConformanceTests require that you be able to create (and read-back) a record using metadata. - - const DEFAULT_TABLE = 'civicrm_line_item'; - const DEFAULT_ENTITY = 'LineItem'; - /** * @param \Civi\Api4\Service\Spec\RequestSpec $spec */ public function modifySpec(RequestSpec $spec) { + // TODO: These fields ought to be required in the schema. $spec->getFieldByName('entity_table')->setRequired(TRUE); $spec->getFieldByName('entity_id')->setRequired(TRUE); - $spec->getFieldByName('entity_table')->setDefaultValue(self::DEFAULT_TABLE); } /** diff --git a/civicrm/ext/civi_contribute/info.xml b/civicrm/ext/civi_contribute/info.xml index 7ee1c53f63..b9a0257418 100644 --- a/civicrm/ext/civi_contribute/info.xml +++ b/civicrm/ext/civi_contribute/info.xml @@ -13,13 +13,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2023-04-08</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <tags> <tag>component</tag> </tags> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Core Component</comments> <upgrader>CRM_Extension_Upgrader_Component</upgrader> diff --git a/civicrm/ext/civi_event/info.xml b/civicrm/ext/civi_event/info.xml index 0f364e8eba..95af320cad 100644 --- a/civicrm/ext/civi_event/info.xml +++ b/civicrm/ext/civi_event/info.xml @@ -13,13 +13,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2023-04-08</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <tags> <tag>component</tag> </tags> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Core Component</comments> <upgrader>CRM_Extension_Upgrader_Component</upgrader> diff --git a/civicrm/ext/civi_mail/info.xml b/civicrm/ext/civi_mail/info.xml index 600c79efa1..9beb218f39 100644 --- a/civicrm/ext/civi_mail/info.xml +++ b/civicrm/ext/civi_mail/info.xml @@ -13,13 +13,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2023-04-08</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <tags> <tag>component</tag> </tags> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Core Component</comments> <upgrader>CRM_Extension_Upgrader_Component</upgrader> diff --git a/civicrm/ext/civi_member/info.xml b/civicrm/ext/civi_member/info.xml index 2fd5525cef..b1bd1a7127 100644 --- a/civicrm/ext/civi_member/info.xml +++ b/civicrm/ext/civi_member/info.xml @@ -13,13 +13,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2023-04-08</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <tags> <tag>component</tag> </tags> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Core Component</comments> <upgrader>CRM_Extension_Upgrader_Component</upgrader> diff --git a/civicrm/ext/civi_pledge/info.xml b/civicrm/ext/civi_pledge/info.xml index 4cb4e112a6..18e24f431a 100644 --- a/civicrm/ext/civi_pledge/info.xml +++ b/civicrm/ext/civi_pledge/info.xml @@ -13,13 +13,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2023-04-08</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <tags> <tag>component</tag> </tags> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Core Component</comments> <upgrader>CRM_Extension_Upgrader_Component</upgrader> diff --git a/civicrm/ext/civi_report/info.xml b/civicrm/ext/civi_report/info.xml index eabc21e118..03213140c5 100644 --- a/civicrm/ext/civi_report/info.xml +++ b/civicrm/ext/civi_report/info.xml @@ -13,13 +13,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2023-04-08</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <tags> <tag>component</tag> </tags> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Core Component</comments> <upgrader>CRM_Extension_Upgrader_Component</upgrader> diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminContactTypes.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminContactTypes.aff.json deleted file mode 100644 index 902c469d7f..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminContactTypes.aff.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "type": "search", - "title": "Contact Types", - "description": "Administer contact types and sub-types", - "icon": "fa-list-alt", - "server_route": "civicrm/admin/options/subtype", - "permission": "access CiviCRM" -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminContactTypes.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminContactTypes.aff.php new file mode 100644 index 0000000000..b10d7e5754 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminContactTypes.aff.php @@ -0,0 +1,11 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Contact Types'), + 'description' => E::ts('Administer contact types and sub-types'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/options/subtype', + 'permission' => ['access CiviCRM'], +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomFields.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomFields.aff.json deleted file mode 100644 index 185667191e..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomFields.aff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Fields", - "description": "Administer custom fields list", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "summary_contact_type": null, - "icon": "fa-list-alt", - "server_route": "civicrm/admin/custom/group/fields", - "permission": "administer CiviCRM data", - "redirect": null, - "create_submission": false, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomFields.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomFields.aff.php new file mode 100644 index 0000000000..abf4c4fc05 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomFields.aff.php @@ -0,0 +1,22 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Fields'), + 'description' => E::ts('Administer custom fields list'), + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/custom/group/fields', + 'permission' => ['administer CiviCRM data'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomGroups.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomGroups.aff.json deleted file mode 100644 index 449a7e5f65..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomGroups.aff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Custom Field Groups", - "description": "Administer custom field groups list", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "summary_contact_type": null, - "icon": "fa-list-alt", - "server_route": "civicrm/admin/custom/group", - "permission": "administer CiviCRM data", - "redirect": null, - "create_submission": false, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomGroups.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomGroups.aff.php new file mode 100644 index 0000000000..130875c0c7 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminCustomGroups.aff.php @@ -0,0 +1,22 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Custom Field Groups'), + 'description' => E::ts('Administer custom field groups list'), + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/custom/group', + 'permission' => ['administer CiviCRM data'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminFinancialTypes.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminFinancialTypes.aff.json deleted file mode 100644 index fb689cbac6..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminFinancialTypes.aff.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "type": "search", - "title": "Financial Types", - "icon": "fa-list-alt", - "server_route": "civicrm/admin/financial/financialType", - "permission": "administer CiviCRM", - "requires": [], - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "entity_type": null, - "join_entity": null, - "contact_summary": null, - "redirect": null, - "create_submission": null, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminFinancialTypes.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminFinancialTypes.aff.php new file mode 100644 index 0000000000..d2c1f1bf40 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminFinancialTypes.aff.php @@ -0,0 +1,21 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Financial Types'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/financial/financialType', + 'permission' => ['administer CiviCRM'], + 'requires' => [], + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'entity_type' => NULL, + 'join_entity' => NULL, + 'contact_summary' => NULL, + 'redirect' => NULL, + 'create_submission' => NULL, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminScheduledReminders.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminScheduledReminders.aff.json deleted file mode 100644 index 36136fa0be..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminScheduledReminders.aff.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "type": "search", - "title": "Scheduled Reminders", - "description": "Administer scheduled reminders", - "icon": "fa-list-alt", - "server_route": "civicrm/admin/scheduleReminders", - "permission": "administer CiviCRM data" -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminScheduledReminders.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminScheduledReminders.aff.php new file mode 100644 index 0000000000..ba517ce1d2 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdminScheduledReminders.aff.php @@ -0,0 +1,11 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Scheduled Reminders'), + 'description' => E::ts('Administer scheduled reminders'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/scheduleReminders', + 'permission' => ['administer CiviCRM data'], +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerLocationTypes.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerLocationTypes.aff.json deleted file mode 100644 index 04f482bc20..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerLocationTypes.aff.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type": "search", - "title": "Location Types", - "icon": "fa-list-alt", - "server_route": "civicrm/admin/locationType", - "permission": "administer CiviCRM" -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerLocationTypes.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerLocationTypes.aff.php new file mode 100644 index 0000000000..dc57cde4d0 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerLocationTypes.aff.php @@ -0,0 +1,10 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Location Types'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/locationType', + 'permission' => ['administer CiviCRM'], +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerPaymentProcessors.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerPaymentProcessors.aff.json deleted file mode 100644 index de7115a392..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerPaymentProcessors.aff.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type": "search", - "title": "Administer Payment Processors", - "icon": "fa-list-alt", - "server_route": "civicrm/admin/paymentProcessor", - "permission": "administer payment processors" -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerPaymentProcessors.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerPaymentProcessors.aff.php new file mode 100644 index 0000000000..1982c9b5e9 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchAdministerPaymentProcessors.aff.php @@ -0,0 +1,10 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Administer Payment Processors'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/paymentProcessor', + 'permission' => ['administer payment processors'], +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignUsersToRoles.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignUsersToRoles.aff.json deleted file mode 100644 index 189261d896..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignUsersToRoles.aff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Assign Users to Roles", - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "summary_contact_type": null, - "icon": "fa-list-alt", - "server_route": "civicrm/acl/entityrole", - "permission": "administer CiviCRM", - "redirect": null, - "create_submission": false, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignUsersToRoles.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignUsersToRoles.aff.php new file mode 100644 index 0000000000..7f26925bf1 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignUsersToRoles.aff.php @@ -0,0 +1,22 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Assign Users to Roles'), + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/acl/entityrole', + 'permission' => ['administer CiviCRM'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignedFinancialAccounts.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignedFinancialAccounts.aff.json deleted file mode 100644 index 30fbd772c6..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignedFinancialAccounts.aff.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "type": "search", - "title": "Assigned Financial Accounts", - "icon": "fa-list-alt", - "server_route": "civicrm/admin/financial/financialType/accounts/list", - "permission": "administer CiviCRM", - "requires": [], - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "entity_type": null, - "join_entity": null, - "contact_summary": null, - "redirect": null, - "create_submission": null, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignedFinancialAccounts.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignedFinancialAccounts.aff.php new file mode 100644 index 0000000000..3db0ce6bdd --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchAssignedFinancialAccounts.aff.php @@ -0,0 +1,21 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Assigned Financial Accounts'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/financial/financialType/accounts/list', + 'permission' => ['administer CiviCRM'], + 'requires' => [], + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'entity_type' => NULL, + 'join_entity' => NULL, + 'contact_summary' => NULL, + 'redirect' => NULL, + 'create_submission' => NULL, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchFinancialAccounts.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchFinancialAccounts.aff.json deleted file mode 100644 index b675e79b84..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchFinancialAccounts.aff.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "type": "search", - "title": "Financial Accounts", - "description": "Administer Financial Accounts", - "is_public": false, - "icon": "fa-list-alt", - "server_route": "civicrm/admin/financial/financialAccount", - "permission": "administer CiviCRM" -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchFinancialAccounts.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchFinancialAccounts.aff.php new file mode 100644 index 0000000000..4d5a529997 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchFinancialAccounts.aff.php @@ -0,0 +1,12 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Financial Accounts'), + 'description' => E::ts('Administer Financial Accounts'), + 'is_public' => FALSE, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/financial/financialAccount', + 'permission' => ['administer CiviCRM'], +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchMailAccounts.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchMailAccounts.aff.json deleted file mode 100644 index 19168345da..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchMailAccounts.aff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "search", - "title": "Mail Accounts", - "icon": "fa-list-alt", - "server_route": "civicrm/admin/mailSettings", - "permission": "administer CiviCRM", - "requires": [], - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "entity_type": null, - "join_entity": null, - "contact_summary": null, - "summary_contact_type": null, - "redirect": null, - "create_submission": null, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchMailAccounts.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchMailAccounts.aff.php new file mode 100644 index 0000000000..bd5f43e297 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchMailAccounts.aff.php @@ -0,0 +1,22 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Mail Accounts'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/mailSettings', + 'permission' => ['administer CiviCRM'], + 'requires' => [], + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'entity_type' => NULL, + 'join_entity' => NULL, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'redirect' => NULL, + 'create_submission' => NULL, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageACLs.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageACLs.aff.json deleted file mode 100644 index 9c7f2567ab..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageACLs.aff.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "type": "search", - "title": "Manage ACLs", - "icon": "fa-list-alt", - "server_route": "civicrm/acl", - "permission": "administer CiviCRM", - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageACLs.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageACLs.aff.php new file mode 100644 index 0000000000..c99bee4b41 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageACLs.aff.php @@ -0,0 +1,11 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Manage ACLs'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/acl', + 'permission' => ['administer CiviCRM'], + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageContributionPages.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageContributionPages.aff.json deleted file mode 100644 index 06408ef48c..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageContributionPages.aff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Manage Contribution Pages", - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "summary_contact_type": null, - "icon": "fa-list-alt", - "server_route": "civicrm/admin/contribute", - "permission": "access CiviContribute", - "redirect": null, - "create_submission": false, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageContributionPages.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageContributionPages.aff.php new file mode 100644 index 0000000000..46234e489a --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageContributionPages.aff.php @@ -0,0 +1,22 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Manage Contribution Pages'), + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/contribute', + 'permission' => ['access CiviContribute'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageGroups.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageGroups.aff.json deleted file mode 100644 index cd904460ad..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageGroups.aff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "search", - "title": "Manage Groups", - "icon": "fa-list-alt", - "server_route": "civicrm/group", - "permission": "access CiviCRM", - "requires": [], - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "entity_type": null, - "join_entity": null, - "contact_summary": null, - "summary_contact_type": null, - "redirect": null, - "create_submission": null, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageGroups.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageGroups.aff.php new file mode 100644 index 0000000000..091156b3d0 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageGroups.aff.php @@ -0,0 +1,22 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Manage Groups'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/group', + 'permission' => ['access CiviCRM'], + 'requires' => [], + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'entity_type' => NULL, + 'join_entity' => NULL, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'redirect' => NULL, + 'create_submission' => NULL, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageScheduledJobs.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageScheduledJobs.aff.json deleted file mode 100644 index 4aebf05131..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageScheduledJobs.aff.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type": "search", - "title": "Manage Scheduled Jobs", - "icon": "fa-list-alt", - "server_route": "civicrm/admin/job", - "permission": "access CiviCRM" -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchManageScheduledJobs.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageScheduledJobs.aff.php new file mode 100644 index 0000000000..6916dfd6c3 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchManageScheduledJobs.aff.php @@ -0,0 +1,10 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Manage Scheduled Jobs'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/job', + 'permission' => ['access CiviCRM'], +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchProfileFields.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchProfileFields.aff.json deleted file mode 100644 index 050dd2d1bf..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchProfileFields.aff.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Profile Fields", - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "icon": "fa-list-alt", - "server_route": "civicrm/admin/uf/group/field", - "permission": "access CiviCRM", - "redirect": null, - "create_submission": false, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchProfileFields.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchProfileFields.aff.php new file mode 100644 index 0000000000..eb9054191d --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchProfileFields.aff.php @@ -0,0 +1,21 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Profile Fields'), + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/uf/group/field', + 'permission' => ['access CiviCRM'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchProfiles.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchProfiles.aff.json deleted file mode 100644 index 9be0002e90..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchProfiles.aff.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Profiles", - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "icon": "fa-list-alt", - "server_route": "civicrm/admin/uf/group", - "permission": "access CiviCRM", - "redirect": null, - "create_submission": false, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchProfiles.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchProfiles.aff.php new file mode 100644 index 0000000000..6e9bb233fc --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchProfiles.aff.php @@ -0,0 +1,21 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Profiles'), + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/uf/group', + 'permission' => ['access CiviCRM'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchRelationshipTypes.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchRelationshipTypes.aff.json deleted file mode 100644 index 58bc820a2f..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchRelationshipTypes.aff.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Relationship Types", - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "icon": "fa-list-alt", - "server_route": "civicrm/admin/reltype", - "permission": "access CiviCRM", - "redirect": null, - "create_submission": false, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchRelationshipTypes.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchRelationshipTypes.aff.php new file mode 100644 index 0000000000..df7f2b4735 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchRelationshipTypes.aff.php @@ -0,0 +1,21 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Relationship Types'), + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/reltype', + 'permission' => ['access CiviCRM'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.html b/civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.html index c29768ddc1..2b596924ef 100644 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.html +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.html @@ -2,12 +2,14 @@ <div class="btn-group pull-right"> + <a class="btn btn-primary" ng-href="{{:: crmUrl('civicrm/admin/job', {reset: 1}) }}"> <i class="crm-i fa-list-alt"/> {{:: ts('Scheduled Jobs Listing') }} </a> + </div> - <crm-search-display-table search-name="Scheduled_Jobs_Log" display-name="Scheduled_Jobs_Log_Table_1"></crm-search-display-table> + <crm-search-display-table search-name="Scheduled_Jobs_Log" display-name="Scheduled_Jobs_Log_Table_1" filters="{job_id: routeParams.job_id}"></crm-search-display-table> </div> diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.json b/civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.json deleted file mode 100644 index 3bde1de42d..0000000000 --- a/civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Scheduled Jobs Log", - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "summary_contact_type": null, - "icon": "fa-list-alt", - "server_route": "civicrm/admin/joblog", - "permission": "admin CiviCRM", - "redirect": null, - "create_submission": false, - "navigation": null -} diff --git a/civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.php b/civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.php new file mode 100644 index 0000000000..ce2f09f083 --- /dev/null +++ b/civicrm/ext/civicrm_admin_ui/ang/afsearchScheduledJobsLog.aff.php @@ -0,0 +1,22 @@ +<?php +use CRM_CivicrmAdminUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Scheduled Jobs Log'), + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/joblog', + 'permission' => ['admin CiviCRM'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/civicrm_admin_ui/info.xml b/civicrm/ext/civicrm_admin_ui/info.xml index 7cf0ef6de7..bce6caec22 100644 --- a/civicrm/ext/civicrm_admin_ui/info.xml +++ b/civicrm/ext/civicrm_admin_ui/info.xml @@ -15,10 +15,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2022-01-02</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>beta</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <requires> <ext>org.civicrm.search_kit</ext> diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_ACL_Roles.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_ACL_Roles.mgd.php index d139ac217e..bd8af2a789 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_ACL_Roles.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_ACL_Roles.mgd.php @@ -178,10 +178,15 @@ return [ FALSE, ], ], - 'addButton' => [ - 'path' => 'civicrm/acl/entityrole/edit?reset=1&action=add', - 'text' => E::ts('Add ACL Role Assignment'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'ACLEntityRole', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add ACL Role Assignment'), + 'icon' => 'fa-plus', + ], ], ], 'acl_bypass' => FALSE, diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Assigned_Financial_Accounts.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Assigned_Financial_Accounts.mgd.php index 1515549640..54401dfa35 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Assigned_Financial_Accounts.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Assigned_Financial_Accounts.mgd.php @@ -164,10 +164,15 @@ return [ FALSE, ], ], - 'addButton' => [ - 'path' => 'civicrm/admin/financial/financialType/accounts?action=add&reset=1&aid=[entity_id]', - 'text' => E::ts('Add Assigned Account'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'EntityFinancialAccount', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Assigned Account'), + 'icon' => 'fa-plus', + ], ], ], 'acl_bypass' => FALSE, diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Contact_Types.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Contact_Types.mgd.php index af94d309c7..315d6bcc23 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Contact_Types.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Contact_Types.mgd.php @@ -145,10 +145,15 @@ return [ 'alignment' => 'text-right', ], ], - 'addButton' => [ - 'path' => 'civicrm/admin/options/subtype/edit?action=add&reset=1', - 'text' => E::ts('Add Contact Type'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'ContactType', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Contact Type'), + 'icon' => 'fa-plus', + ], ], ], 'acl_bypass' => FALSE, diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Fields.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Fields.mgd.php index b5074525f6..6d784e714b 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Fields.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Fields.mgd.php @@ -215,11 +215,16 @@ return [ FALSE, ], ], - 'addButton' => [ - 'path' => 'civicrm/admin/custom/group/field/add?reset=1&action=add&gid=[custom_group_id]', - 'text' => E::ts('Add Custom Field'), - 'icon' => 'fa-plus', - 'autoOpen' => TRUE, + 'toolbar' => [ + [ + 'entity' => 'CustomField', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Custom Field'), + 'icon' => 'fa-plus', + 'autoOpen' => TRUE, + ], ], 'placeholder' => 5, ], diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Groups.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Groups.mgd.php index 22d01e6709..28d95458c4 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Groups.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Groups.mgd.php @@ -124,7 +124,7 @@ return [ 'dataType' => 'String', 'label' => E::ts('Fields'), 'sortable' => TRUE, - 'rewrite' => "{capture assign=fields}[GROUP_CONCAT_CustomGroup_CustomField_custom_group_id_01_label]{/capture}{ \$fields|replace:',':'<br>'}", + 'rewrite' => "{capture assign=fields}[GROUP_CONCAT_CustomGroup_CustomField_custom_group_id_01_label]{/capture}{\$fields|replace:',':'<br>'}", ], [ 'size' => 'btn-xs', @@ -216,11 +216,16 @@ return [ ], ], 'placeholder' => 5, - 'addButton' => [ - 'path' => 'civicrm/admin/custom/group/edit?reset=1', - 'text' => E::ts('Add Set of Custom Fields'), - 'icon' => 'fa-plus', - 'autoOpen' => TRUE, + 'toolbar' => [ + [ + 'entity' => 'CustomGroup', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Set of Custom Fields'), + 'icon' => 'fa-plus', + 'autoOpen' => TRUE, + ], ], ], 'acl_bypass' => FALSE, diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Accounts.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Accounts.mgd.php index 87537a6719..037272055b 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Accounts.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Accounts.mgd.php @@ -188,10 +188,15 @@ return [ 'alignment' => 'text-right', ], ], - 'addButton' => [ - 'path' => 'civicrm/admin/financial/financialAccount/edit?action=add&reset=1', - 'text' => E::ts('Add Financial Account'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'FinancialAccount', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Financial Account'), + 'icon' => 'fa-plus', + ], ], 'cssRules' => [ [ diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Types.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Types.mgd.php index 97b14eb98e..fb1c1f5149 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Types.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Types.mgd.php @@ -194,10 +194,15 @@ return [ 'alignment' => 'text-right', ], ], - 'addButton' => [ - 'path' => 'civicrm/admin/financial/financialType/edit?reset=1&action=add', - 'text' => E::ts('Add Financial Type'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'FinancialType', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Financial Type'), + 'icon' => 'fa-plus', + ], ], 'cssRules' => [ [ diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Location_Types.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Location_Types.mgd.php index d0565012c8..de21d6709c 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Location_Types.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Location_Types.mgd.php @@ -172,10 +172,15 @@ return [ 'alignment' => 'text-right', ], ], - 'addButton' => [ - 'path' => 'civicrm/admin/locationType/edit?action=add&reset=1', - 'text' => E::ts('Add Location Type'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'LocationType', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Location Type'), + 'icon' => 'fa-plus', + ], ], 'cssRules' => [ [ diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Manage_Group.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Manage_Group.mgd.php index 66fa0460c7..989a90f3ab 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Manage_Group.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Manage_Group.mgd.php @@ -273,10 +273,15 @@ return [ 'table', 'table-striped', ], - 'addButton' => [ - 'path' => 'civicrm/group/add?reset=1', - 'text' => E::ts('Add Group'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'Group', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Group'), + 'icon' => 'fa-plus', + ], ], 'cssRules' => [ [ diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Payment_Processors.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Payment_Processors.mgd.php index f6a9395feb..5d77af6ea6 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Payment_Processors.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Payment_Processors.mgd.php @@ -212,10 +212,15 @@ return [ 'alignment' => 'text-right', ], ], - 'addButton' => [ - 'path' => 'civicrm/admin/paymentProcessor/edit?action=add&reset=1', - 'text' => E::ts('Add Payment Processor'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'PaymentProcessor', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Payment Processor'), + 'icon' => 'fa-plus', + ], ], 'cssRules' => [ [ diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_ProfileFields.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_ProfileFields.mgd.php index bda07f5c26..9e542201f1 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_ProfileFields.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_ProfileFields.mgd.php @@ -191,11 +191,16 @@ return [ ], 'draggable' => 'weight', 'button' => NULL, - 'addButton' => [ - 'path' => 'civicrm/admin/uf/group/field/add?reset=1&action=add&gid=[uf_group_id]', - 'text' => E::ts('Add Field'), - 'icon' => 'fa-plus', - 'autoOpen' => TRUE, + 'toolbar' => [ + [ + 'entity' => 'UFField', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Field'), + 'icon' => 'fa-plus', + 'autoOpen' => TRUE, + ], ], 'cssRules' => [ [ diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Profiles.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Profiles.mgd.php index d0dc2982d6..c866616fca 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Profiles.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Profiles.mgd.php @@ -246,6 +246,16 @@ return [ 'style' => 'default', 'condition' => ['is_active', '=', TRUE], ], + [ + 'icon' => 'fa-copy', + 'text' => E::ts('Copy'), + 'style' => 'default', + 'condition' => [], + 'entity' => 'UFGroup', + 'action' => 'copy', + 'join' => '', + 'target' => '', + ], [ 'icon' => 'fa-trash', 'text' => E::ts('Delete'), @@ -262,10 +272,15 @@ return [ 'label' => '', ], ], - 'addButton' => [ - 'path' => 'civicrm/admin/uf/group/add?action=add&reset=1', - 'text' => E::ts('Add Profile'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'UFGroup', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Profile'), + 'icon' => 'fa-plus', + ], ], 'cssRules' => [ [ diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Relationship_Types.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Relationship_Types.mgd.php index 06e1764b09..543637452e 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Relationship_Types.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Relationship_Types.mgd.php @@ -163,10 +163,15 @@ return [ 'alignment' => 'text-right', ], ], - 'addButton' => [ - 'path' => 'civicrm/admin/reltype/edit?action=add&reset=1', - 'text' => E::ts('Add Relationship Type'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'RelationshipType', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Relationship Type'), + 'icon' => 'fa-plus', + ], ], 'cssRules' => [ [ diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Scheduled_Reminders.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Scheduled_Reminders.mgd.php index e6e3387768..899c01af35 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Scheduled_Reminders.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Scheduled_Reminders.mgd.php @@ -187,10 +187,15 @@ return [ 'table-striped', 'crm-sticky-header', ], - 'addButton' => [ - 'path' => 'civicrm/admin/scheduleReminders/edit?reset=1&action=add', - 'text' => E::ts('Add Scheduled Reminder'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'ActionSchedule', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Scheduled Reminder'), + 'icon' => 'fa-plus', + ], ], ], 'acl_bypass' => FALSE, diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_ACLs.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_ACLs.mgd.php index 1138b1b1a6..22a541bf5b 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_ACLs.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_ACLs.mgd.php @@ -180,10 +180,15 @@ return [ 'table-striped', 'crm-sticky-header', ], - 'addButton' => [ - 'path' => 'civicrm/acl/edit?reset=1&action=add', - 'text' => E::ts('Add ACL'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'ACL', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add ACL'), + 'icon' => 'fa-plus', + ], ], ], 'acl_bypass' => FALSE, diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Mail_Accounts.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Mail_Accounts.mgd.php index 3efe2e216d..d1119fd2aa 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Mail_Accounts.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Mail_Accounts.mgd.php @@ -178,10 +178,15 @@ return [ 'table', 'table-striped', ], - 'addButton' => [ - 'path' => 'civicrm/admin/mailSettings/edit?action=add&reset=1', - 'text' => E::ts('Add Mail Account'), - 'icon' => 'fa-plus', + 'toolbar' => [ + [ + 'entity' => 'MailSettings', + 'action' => 'add', + 'target' => 'crm-popup', + 'style' => 'primary', + 'text' => E::ts('Add Mail Account'), + 'icon' => 'fa-plus', + ], ], ], 'acl_bypass' => FALSE, diff --git a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Scheduled_Jobs.mgd.php b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Scheduled_Jobs.mgd.php index 8e97c1cfb5..261b8f6967 100644 --- a/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Scheduled_Jobs.mgd.php +++ b/civicrm/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Scheduled_Jobs.mgd.php @@ -167,7 +167,7 @@ return [ 'icon' => 'fa-file-o', 'text' => E::ts('View joblog'), 'style' => 'default', - 'path' => 'civicrm/admin/joblog?jid=[id]&reset=1', + 'path' => 'civicrm/admin/joblog#?job_id=[id]', 'condition' => [], ], [ diff --git a/civicrm/ext/civicrm_search_ui/ang/afsearchContactSearch.aff.json b/civicrm/ext/civicrm_search_ui/ang/afsearchContactSearch.aff.json deleted file mode 100644 index f56ff6fda1..0000000000 --- a/civicrm/ext/civicrm_search_ui/ang/afsearchContactSearch.aff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "search", - "title": "Find Contacts", - "icon": "fa-list-alt", - "server_route": "civicrm/searchui/contact/search", - "permission": "access CiviCRM", - "navigation": null, - "requires": [], - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "entity_type": null, - "join_entity": null, - "contact_summary": null, - "summary_contact_type": null, - "redirect": null, - "create_submission": null -} diff --git a/civicrm/ext/civicrm_search_ui/ang/afsearchContactSearch.aff.php b/civicrm/ext/civicrm_search_ui/ang/afsearchContactSearch.aff.php new file mode 100644 index 0000000000..802a5ba9e6 --- /dev/null +++ b/civicrm/ext/civicrm_search_ui/ang/afsearchContactSearch.aff.php @@ -0,0 +1,22 @@ +<?php +use CRM_CivicrmSearchUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Find Contacts'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/searchui/contact/search', + 'permission' => ['access CiviCRM'], + 'navigation' => NULL, + 'requires' => [], + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'entity_type' => NULL, + 'join_entity' => NULL, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'redirect' => NULL, + 'create_submission' => NULL, +]; diff --git a/civicrm/ext/civicrm_search_ui/ang/afsearchFindContributions.aff.json b/civicrm/ext/civicrm_search_ui/ang/afsearchFindContributions.aff.json deleted file mode 100644 index f5dbd9da55..0000000000 --- a/civicrm/ext/civicrm_search_ui/ang/afsearchFindContributions.aff.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Find Contributions", - "description": "The original searches for Contributions but also can show just soft credits and recurring contributions. Maybe recur is better as a separate search? And soft credits?", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "summary_contact_type": null, - "icon": "fa-credit-card", - "server_route": "civicrm/sk/contrib", - "permission": "access CiviContribute", - "redirect": null, - "create_submission": false, - "navigation": { - "parent": "Experimental", - "label": "Find Contributions", - "weight": 0 - } -} diff --git a/civicrm/ext/civicrm_search_ui/ang/afsearchFindContributions.aff.php b/civicrm/ext/civicrm_search_ui/ang/afsearchFindContributions.aff.php new file mode 100644 index 0000000000..cc9fd973ff --- /dev/null +++ b/civicrm/ext/civicrm_search_ui/ang/afsearchFindContributions.aff.php @@ -0,0 +1,26 @@ +<?php +use CRM_CivicrmSearchUi_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Find Contributions'), + 'description' => 'The original searches for Contributions but also can show just soft credits and recurring contributions. Maybe recur is better as a separate search? And soft credits?', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'icon' => 'fa-credit-card', + 'server_route' => 'civicrm/sk/contrib', + 'permission' => ['access CiviContribute'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => [ + 'parent' => 'Experimental', + 'label' => E::ts('Find Contributions'), + 'weight' => 0, + ], +]; diff --git a/civicrm/ext/civicrm_search_ui/info.xml b/civicrm/ext/civicrm_search_ui/info.xml index 67b3962c12..da8c7714e3 100644 --- a/civicrm/ext/civicrm_search_ui/info.xml +++ b/civicrm/ext/civicrm_search_ui/info.xml @@ -15,14 +15,14 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2023-07-17</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>alpha</develStage> <requires> <ext>org.civicrm.search_kit</ext> <ext>org.civicrm.afform</ext> </requires> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Replacement SearchKit/FormBuilder pages for core Search pages.</comments> <classloader> diff --git a/civicrm/ext/civigrant/CRM/Grant/DAO/Grant.php b/civicrm/ext/civigrant/CRM/Grant/DAO/Grant.php index f25269dc93..fda65e11e6 100644 --- a/civicrm/ext/civigrant/CRM/Grant/DAO/Grant.php +++ b/civicrm/ext/civigrant/CRM/Grant/DAO/Grant.php @@ -6,7 +6,7 @@ * * Generated from civigrant/xml/schema/CRM/Grant/Grant.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c3ae6f29f7956693f952034cb68e75a0) + * (GenCodeChecksum:35a957c6b295a38c1fc0881e57ab1ec4) */ use CRM_Grant_ExtensionUtil as E; @@ -44,10 +44,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO { * @var string[] */ protected static $_paths = [ - 'add' => 'civicrm/grant/add?reset=1&action=add&context=standalone', - 'view' => 'civicrm/contact/view/grant?reset=1&action=view&id=[id]&cid=[contact_id]', - 'update' => 'civicrm/contact/view/grant?reset=1&action=update&id=[id]&cid=[contact_id]', - 'delete' => 'civicrm/contact/view/grant?reset=1&action=delete&id=[id]&cid=[contact_id]', + 'add' => 'civicrm/grant/add?reset=1&action=add&cid=[contact_id]', + 'view' => 'civicrm/grant/add?reset=1&action=view&id=[id]', + 'update' => 'civicrm/grant/add?reset=1&action=update&id=[id]', + 'delete' => 'civicrm/grant/add?reset=1&action=delete&id=[id]', ]; /** diff --git a/civicrm/ext/civigrant/CRM/Grant/Form/Grant.php b/civicrm/ext/civigrant/CRM/Grant/Form/Grant.php index 661607e60c..0342d63723 100644 --- a/civicrm/ext/civigrant/CRM/Grant/Form/Grant.php +++ b/civicrm/ext/civigrant/CRM/Grant/Form/Grant.php @@ -45,16 +45,19 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form { */ public function preProcess() { - $this->_contactID = CRM_Utils_Request::retrieve('cid', 'Positive', $this); $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this); $this->_grantType = NULL; if ($this->_id) { $this->_grantType = CRM_Core_DAO::getFieldValue('CRM_Grant_DAO_Grant', $this->_id, 'grant_type_id'); + $this->_contactID = CRM_Core_DAO::getFieldValue('CRM_Grant_DAO_Grant', $this->_id, 'contact_id'); } - $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this); + else { + $this->_contactID = CRM_Utils_Request::retrieve('cid', 'Positive', $this); + } + // Almost-useless _context variable just tells if we have a contact id + $this->_context = $this->_contactID ? 'contact' : 'standalone'; $this->assign('action', $this->_action); - $this->assign('context', $this->_context); // check permission for action. $perm = $this->_action & CRM_Core_Action::DELETE ? 'delete in CiviGrant' : 'edit grants'; @@ -62,7 +65,7 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form { CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.')); } - $this->setPageTitle(ts('Grant')); + $this->setPageTitle(); if ($this->_action & CRM_Core_Action::DELETE) { return; @@ -187,22 +190,24 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form { // make this form an upload since we dont know if the custom data injected dynamically // is of type file etc $uploadNames = $this->get( 'uploadNames' ); - $this->addButtons([ - [ - 'type' => 'upload', - 'name' => ts('Save'), - 'isDefault' => TRUE, - ], - [ - 'type' => 'upload', - 'name' => ts('Save and New'), - 'subName' => 'new', - ], - [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ], - ]); + if ($this->_action !== CRM_Core_Action::VIEW) { + $this->addButtons([ + [ + 'type' => 'upload', + 'name' => ts('Save'), + 'isDefault' => TRUE, + ], + [ + 'type' => 'upload', + 'name' => ts('Save and New'), + 'subName' => 'new', + ], + [ + 'type' => 'cancel', + 'name' => ts('Cancel'), + ], + ]); + } $contactField = $this->addEntityRef('contact_id', ts('Applicant'), ['create' => TRUE], TRUE); if ($this->_context != 'standalone') { @@ -285,7 +290,7 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form { if ($this->_context == 'standalone') { if ($buttonName == $this->getButtonName('upload', 'new')) { $session->replaceUserContext(CRM_Utils_System::url('civicrm/grant/add', - 'reset=1&action=add&context=standalone' + 'reset=1&action=add' )); } else { @@ -295,8 +300,8 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form { } } elseif ($buttonName == $this->getButtonName('upload', 'new')) { - $session->replaceUserContext(CRM_Utils_System::url('civicrm/contact/view/grant', - "reset=1&action=add&context=grant&cid={$this->_contactID}" + $session->replaceUserContext(CRM_Utils_System::url('civicrm/grant/add', + "reset=1&action=add&cid={$this->_contactID}" )); } } diff --git a/civicrm/ext/civigrant/CRM/Grant/Form/GrantView.php b/civicrm/ext/civigrant/CRM/Grant/Form/GrantView.php index 261060bfeb..0b640ad2d0 100644 --- a/civicrm/ext/civigrant/CRM/Grant/Form/GrantView.php +++ b/civicrm/ext/civigrant/CRM/Grant/Form/GrantView.php @@ -69,21 +69,21 @@ class CRM_Grant_Form_GrantView extends CRM_Core_Form { } // add Grant to Recent Items - $url = CRM_Utils_System::url('civicrm/contact/view/grant', - "action=view&reset=1&id={$values['id']}&cid={$values['contact_id']}&context=home" + $url = CRM_Utils_System::url('civicrm/grant/add', + "action=view&reset=1&id={$values['id']}&cid={$values['contact_id']}" ); $title = CRM_Contact_BAO_Contact::displayName($values['contact_id']) . ' - ' . ts('Grant') . ': ' . CRM_Utils_Money::format($values['amount_total']) . ' (' . $grantType[$values['grant_type_id']] . ')'; $recentOther = []; if (CRM_Core_Permission::check('edit grants')) { - $recentOther['editUrl'] = CRM_Utils_System::url('civicrm/contact/view/grant', - "action=update&reset=1&id={$values['id']}&cid={$values['contact_id']}&context=home" + $recentOther['editUrl'] = CRM_Utils_System::url('civicrm/grant/add', + "action=update&reset=1&id={$values['id']}&cid={$values['contact_id']}" ); } if (CRM_Core_Permission::check('delete in CiviGrant')) { - $recentOther['deleteUrl'] = CRM_Utils_System::url('civicrm/contact/view/grant', - "action=delete&reset=1&id={$values['id']}&cid={$values['contact_id']}&context=home" + $recentOther['deleteUrl'] = CRM_Utils_System::url('civicrm/grant/add', + "action=delete&reset=1&id={$values['id']}&cid={$values['contact_id']}" ); } CRM_Utils_Recent::add($title, diff --git a/civicrm/ext/civigrant/CRM/Grant/Page/Tab.php b/civicrm/ext/civigrant/CRM/Grant/Page/Tab.php deleted file mode 100644 index 40fe12bcd6..0000000000 --- a/civicrm/ext/civigrant/CRM/Grant/Page/Tab.php +++ /dev/null @@ -1,189 +0,0 @@ -<?php -/* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ - */ - -/** - * - * @package CRM - * @copyright CiviCRM LLC https://civicrm.org/licensing - */ - -/** - * This class handle grant related functions - * - */ -class CRM_Grant_Page_Tab extends CRM_Contact_Page_View { - - /** - * The action links that we need to display for the browse screen. - * - * @var array - */ - public static $_links = NULL; - public $_permission = NULL; - public $_contactId = NULL; - - /** - * called when action is browse. - * - */ - public function browse() { - $controller = new CRM_Core_Controller_Simple('CRM_Grant_Form_Search', ts('Grants'), $this->_action); - $controller->setEmbedded(TRUE); - $controller->reset(); - $controller->set('cid', $this->_contactId); - $controller->set('context', 'grant'); - $controller->process(); - $controller->run(); - - if ($this->_contactId) { - $displayName = CRM_Contact_BAO_Contact::displayName($this->_contactId); - $this->assign('displayName', $displayName); - $this->ajaxResponse['tabCount'] = CRM_Grant_BAO_Grant::getContactGrantCount($this->_contactId); - } - } - - /** - * called when action is view. - * - * @return null - */ - public function view() { - $controller = new CRM_Core_Controller_Simple('CRM_Grant_Form_GrantView', 'View Grant', $this->_action); - $controller->setEmbedded(TRUE); - $controller->set('id', $this->_id); - $controller->set('cid', $this->_contactId); - - return $controller->run(); - } - - /** - * called when action is update or new. - * - * @return null - */ - public function edit() { - $controller = new CRM_Core_Controller_Simple('CRM_Grant_Form_Grant', 'Create grant', $this->_action); - $controller->setEmbedded(TRUE); - $controller->set('id', $this->_id); - $controller->set('cid', $this->_contactId); - - return $controller->run(); - } - - /** - * Build all the data structures needed to build the form. - * - * @return void - */ - public function preProcess() { - $context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this); - $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); - $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this); - - if ($context == 'standalone') { - $this->_action = CRM_Core_Action::ADD; - } - else { - $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE); - $displayName = CRM_Contact_BAO_Contact::displayName($this->_contactId); - $this->assign('contactId', $this->_contactId); - $this->assign('displayName', $displayName); - - // check logged in url permission - CRM_Contact_Page_View::checkUserPermission($this); - } - $this->assign('action', $this->_action); - - if ($this->_permission == CRM_Core_Permission::EDIT && !CRM_Core_Permission::check('edit grants')) { - // demote to view since user does not have edit grant rights - $this->_permission = CRM_Core_Permission::VIEW; - $this->assign('permission', 'view'); - } - } - - /** - * the main function that is called when the page loads, - * it decides the which action has to be taken for the page. - * - * @return null - */ - public function run() { - $this->preProcess(); - - $this->setContext(); - - if ($this->_action & CRM_Core_Action::VIEW) { - $this->view(); - } - elseif ($this->_action & (CRM_Core_Action::UPDATE | CRM_Core_Action::ADD | CRM_Core_Action::DELETE)) { - $this->edit(); - } - else { - $this->browse(); - } - return parent::run(); - } - - public function setContext() { - $context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this); - $this->_id = CRM_Utils_Request::retrieve('id', 'Integer', $this); - $session = CRM_Core_Session::singleton(); - - $qfKey = CRM_Utils_Request::retrieve('key', 'String', $this); - //validate the qfKey - if (!CRM_Utils_Rule::qfKey($qfKey)) { - $qfKey = NULL; - } - - switch ($context) { - case 'search': - $urlParams = 'force=1'; - if ($qfKey) { - $urlParams .= "&qfKey=$qfKey"; - } - $this->assign('searchKey', $qfKey); - - $url = CRM_Utils_System::url('civicrm/grant/search', $urlParams); - break; - - case 'dashboard': - $url = CRM_Utils_System::url('civicrm/grant', 'reset=1'); - break; - - case 'edit': - $url = CRM_Utils_System::url('civicrm/contact/view/grant', 'reset=1&id=' . $this->_id . '&cid=' . $this->_contactId . '&action=view&context=grant&selectedChild=grant'); - break; - - case 'grant': - $url = CRM_Utils_System::url('civicrm/contact/view', 'action=browse&selectedChild=grant&cid=' . $this->_contactId); - break; - - case 'standalone': - $url = CRM_Utils_System::url('civicrm/dashboard', 'reset=1'); - break; - - default: - $cid = NULL; - if ($this->_contactId) { - $cid = '&cid=' . $this->_contactId; - } - $url = CRM_Utils_System::url('civicrm/grant/search', 'reset=1&force=1' . $cid); - break; - } - $session->pushUserContext($url); - - if (CRM_Utils_Request::retrieve('confirmed', 'Boolean')) { - CRM_Grant_BAO_Grant::del($this->_id); - CRM_Utils_System::redirect($url); - } - } - -} diff --git a/civicrm/ext/civigrant/CRM/Grant/Selector/Search.php b/civicrm/ext/civigrant/CRM/Grant/Selector/Search.php index b3187e1096..c8252ff8e4 100644 --- a/civicrm/ext/civigrant/CRM/Grant/Selector/Search.php +++ b/civicrm/ext/civigrant/CRM/Grant/Selector/Search.php @@ -171,15 +171,15 @@ class CRM_Grant_Selector_Search extends CRM_Core_Selector_Base implements CRM_Co self::$_links = [ CRM_Core_Action::VIEW => [ 'name' => ts('View'), - 'url' => 'civicrm/contact/view/grant', - 'qs' => 'reset=1&id=%%id%%&cid=%%cid%%&action=view&context=%%cxt%%&selectedChild=grant' . $extraParams, + 'url' => 'civicrm/grant/add', + 'qs' => 'reset=1&id=%%id%%&cid=%%cid%%&action=view&' . $extraParams, 'title' => ts('View Grant'), 'weight' => -20, ], CRM_Core_Action::UPDATE => [ 'name' => ts('Edit'), - 'url' => 'civicrm/contact/view/grant', - 'qs' => 'reset=1&action=update&id=%%id%%&cid=%%cid%%&context=%%cxt%%' . $extraParams, + 'url' => 'civicrm/grant/add', + 'qs' => 'reset=1&action=update&id=%%id%%&cid=%%cid%%' . $extraParams, 'title' => ts('Edit Grant'), 'weight' => -10, ], @@ -189,8 +189,8 @@ class CRM_Grant_Selector_Search extends CRM_Core_Selector_Base implements CRM_Co $delLink = [ CRM_Core_Action::DELETE => [ 'name' => ts('Delete'), - 'url' => 'civicrm/contact/view/grant', - 'qs' => 'action=delete&reset=1&cid=%%cid%%&id=%%id%%&selectedChild=grant' . $extraParams, + 'url' => 'civicrm/grant/add', + 'qs' => 'action=delete&reset=1&cid=%%cid%%&id=%%id%%' . $extraParams, 'title' => ts('Delete Grant'), 'weight' => 100, ], diff --git a/civicrm/ext/civigrant/ang/afsearchTabGrant.aff.html b/civicrm/ext/civigrant/ang/afsearchTabGrant.aff.html index afedc03b5e..ac44d8a349 100644 --- a/civicrm/ext/civigrant/ang/afsearchTabGrant.aff.html +++ b/civicrm/ext/civigrant/ang/afsearchTabGrant.aff.html @@ -1,9 +1,3 @@ -<div class="btn-group"> - <a class="btn btn-primary crm-popup" ng-href="{{ crmUrl('civicrm/grant/add', {reset: 1, action: 'add', context: 'grant', cid: options.contact_id}) }}"> - <i class="crm-i fa-plus-circle"></i> - {{:: ts('Add Grant') }} - </a> -</div> <div af-fieldset=""> <crm-search-display-table search-name="CiviGrant_Summary" display-name="Grant_Tab" filters="{'contact_id': options.contact_id}"></crm-search-display-table> </div> diff --git a/civicrm/ext/civigrant/ang/afsearchTabGrant.aff.json b/civicrm/ext/civigrant/ang/afsearchTabGrant.aff.json deleted file mode 100644 index 44b9ee3dcd..0000000000 --- a/civicrm/ext/civigrant/ang/afsearchTabGrant.aff.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "type": "search", - "title": "Grants", - "contact_summary": "tab", - "icon": "fa-money", - "server_route": "", - "permission": "access CiviGrant" -} diff --git a/civicrm/ext/civigrant/ang/afsearchTabGrant.aff.php b/civicrm/ext/civigrant/ang/afsearchTabGrant.aff.php new file mode 100644 index 0000000000..af3297ac2d --- /dev/null +++ b/civicrm/ext/civigrant/ang/afsearchTabGrant.aff.php @@ -0,0 +1,12 @@ +<?php +use CRM_Grant_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('Grants'), + 'contact_summary' => 'tab', + 'summary_weight' => 60, + 'icon' => 'fa-money', + 'server_route' => '', + 'permission' => ['access CiviGrant'], +]; diff --git a/civicrm/ext/civigrant/civigrant.php b/civicrm/ext/civigrant/civigrant.php index d0e24ed5ac..1f491b57d9 100644 --- a/civicrm/ext/civigrant/civigrant.php +++ b/civicrm/ext/civigrant/civigrant.php @@ -23,7 +23,7 @@ function civigrant_civicrm_links($context, $name, $id, &$links) { 'ref' => 'new-grant', 'name' => 'Grant', 'title' => ts('Grant'), - 'url' => CRM_Utils_System::url('civicrm/grant/add', 'reset=1&action=add&context=standalone'), + 'url' => CRM_Utils_System::url('civicrm/grant/add', 'reset=1&action=add'), ]; } } @@ -40,8 +40,8 @@ function civigrant_civicrm_summaryActions(&$menu, $cid) { 'ref' => 'new-grant', 'key' => 'grant', 'tab' => 'grant', - 'href' => CRM_Utils_System::url('civicrm/contact/view/grant', - 'reset=1&action=add&context=grant' + 'href' => CRM_Utils_System::url('civicrm/grant/add', + 'reset=1&action=add' ), 'permissions' => ['edit grants'], ]; diff --git a/civicrm/ext/civigrant/info.xml b/civicrm/ext/civigrant/info.xml index 6405bbe1c2..10e13435a3 100644 --- a/civicrm/ext/civigrant/info.xml +++ b/civicrm/ext/civigrant/info.xml @@ -13,10 +13,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2021-11-11</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>CiviGrant was originally a core component before migrating to an extension</comments> <requires> diff --git a/civicrm/ext/civigrant/managed/Navigation_Grants.mgd.php b/civicrm/ext/civigrant/managed/Navigation_Grants.mgd.php index d69029d4e5..0356e3c395 100644 --- a/civicrm/ext/civigrant/managed/Navigation_Grants.mgd.php +++ b/civicrm/ext/civigrant/managed/Navigation_Grants.mgd.php @@ -55,7 +55,7 @@ return [ 'values' => [ 'label' => E::ts('New Grant'), 'name' => 'New Grant', - 'url' => 'civicrm/grant/add?reset=1&action=add&context=standalone', + 'url' => 'civicrm/grant/add?reset=1&action=add', 'icon' => NULL, 'permission' => 'access CiviGrant,edit grants', 'permission_operator' => 'AND', diff --git a/civicrm/ext/civigrant/managed/OptionValue_note_used_for_grant.mgd.php b/civicrm/ext/civigrant/managed/OptionValue_note_used_for_grant.mgd.php new file mode 100644 index 0000000000..2976588f7f --- /dev/null +++ b/civicrm/ext/civigrant/managed/OptionValue_note_used_for_grant.mgd.php @@ -0,0 +1,27 @@ +<?php +use CRM_Grant_ExtensionUtil as E; + +// This enables custom fields for Grant entities +return [ + [ + 'name' => 'note_used_for:Grant', + 'entity' => 'OptionValue', + 'cleanup' => 'always', + 'update' => 'always', + 'params' => [ + 'version' => 4, + 'values' => [ + 'option_group_id.name' => 'note_used_for', + 'label' => E::ts('Grants'), + 'value' => 'civicrm_grant', + 'name' => 'Grant', + 'is_reserved' => TRUE, + 'is_active' => TRUE, + ], + 'match' => [ + 'name', + 'option_group_id', + ], + ], + ], +]; diff --git a/civicrm/ext/civigrant/managed/SavedSearch_CiviGrant_Summary.mgd.php b/civicrm/ext/civigrant/managed/SavedSearch_CiviGrant_Summary.mgd.php index 727974d0df..d065c159e4 100644 --- a/civicrm/ext/civigrant/managed/SavedSearch_CiviGrant_Summary.mgd.php +++ b/civicrm/ext/civigrant/managed/SavedSearch_CiviGrant_Summary.mgd.php @@ -64,6 +64,16 @@ return [ 'show_count' => TRUE, 'expose_limit' => TRUE, ], + 'toolbar' => [ + [ + 'entity' => 'Grant', + 'action' => 'add', + 'target' => 'crm-popup', + 'icon' => 'fa-plus', + 'text' => E::ts('Add Grant'), + 'style' => 'primary', + ], + ], 'sort' => [], 'columns' => [ [ diff --git a/civicrm/ext/civigrant/templates/CRM/Grant/Form/Grant.tpl b/civicrm/ext/civigrant/templates/CRM/Grant/Form/Grant.tpl index 22d7865e5c..a5ecc12cce 100644 --- a/civicrm/ext/civigrant/templates/CRM/Grant/Form/Grant.tpl +++ b/civicrm/ext/civigrant/templates/CRM/Grant/Form/Grant.tpl @@ -16,6 +16,8 @@ {ts}Are you sure you want to delete this Grant?{/ts} {ts}This action cannot be undone.{/ts}</p> <p>{include file="CRM/Grant/Form/Task.tpl"}</p> </div> + {elseif $action eq 4} + {include file="CRM/Grant/Form/GrantView.tpl"} {else} <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> <table class="form-layout-compressed"> diff --git a/civicrm/ext/civigrant/templates/CRM/Grant/Form/GrantView.tpl b/civicrm/ext/civigrant/templates/CRM/Grant/Form/GrantView.tpl index c30e777d4c..f826193c94 100644 --- a/civicrm/ext/civigrant/templates/CRM/Grant/Form/GrantView.tpl +++ b/civicrm/ext/civigrant/templates/CRM/Grant/Form/GrantView.tpl @@ -9,23 +9,6 @@ *} {* this template is used for viewing grants *} <div class="crm-block crm-content-block crm-grant-view-block"> - <div class="crm-submit-buttons"> - {if call_user_func(array('CRM_Core_Permission','check'), 'edit grants')} - {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context"} - {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} - {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context&key=$searchKey"} - {/if} - <a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil" aria-hidden="true"></i> {ts}Edit{/ts}</span></a> - {/if} - {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviGrant')} - {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context"} - {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} - {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context&key=$searchKey"} - {/if} - <a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}"><span><i class="crm-i fa-trash" aria-hidden="true"></i> {ts}Delete{/ts}</span></a> - {/if} - {include file="CRM/common/formButtons.tpl" location="top"} - </div> <table class="crm-info-panel"> <tr class="crm-grant-view-form-block-name"><td class="label">{ts}Name{/ts}</td><td class="bold">{$displayName}</td></tr> <tr class="crm-grant-view-form-block-status_id"><td class="label">{ts}Grant Status{/ts}</td> <td>{$grantStatus}</td></tr> @@ -48,19 +31,12 @@ {include file="CRM/Custom/Page/CustomDataView.tpl"} <div class="crm-submit-buttons"> {if call_user_func(array('CRM_Core_Permission','check'), 'edit grants')} - {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context"} - {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} - {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update&context=$context&key=$searchKey"} - {/if} - <a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil" aria-hidden="true"></i> {ts}Edit{/ts}</span></a> + {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=update"} + <a class="button" href="{crmURL p='civicrm/grant/add' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil" aria-hidden="true"></i> {ts}Edit{/ts}</span></a> {/if} {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviGrant')} - {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context"} - {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} - {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete&context=$context&key=$searchKey"} - {/if} - <a class="button" href="{crmURL p='civicrm/contact/view/grant' q=$urlParams}"><span><i class="crm-i fa-trash" aria-hidden="true"></i> {ts}Delete{/ts}</span></a> + {assign var='urlParams' value="reset=1&id=$id&cid=$contactId&action=delete"} + <a class="button" href="{crmURL p='civicrm/grant/add' q=$urlParams}"><span><i class="crm-i fa-trash" aria-hidden="true"></i> {ts}Delete{/ts}</span></a> {/if} - {include file="CRM/common/formButtons.tpl" location="bottom"} </div> </div> diff --git a/civicrm/ext/civigrant/templates/CRM/Grant/Form/Selector.tpl b/civicrm/ext/civigrant/templates/CRM/Grant/Form/Selector.tpl index c4911193ed..be64bb0d67 100644 --- a/civicrm/ext/civigrant/templates/CRM/Grant/Form/Selector.tpl +++ b/civicrm/ext/civigrant/templates/CRM/Grant/Form/Selector.tpl @@ -15,7 +15,7 @@ <table class="selector row-highlight"> <thead class="sticky"> <tr> - {if ! $single and $context eq 'Search' } + {if ! $single and $context eq 'Search'} <th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th> {/if} {foreach from=$columnHeaders item=header} @@ -35,8 +35,8 @@ {foreach from=$rows item=row} <tr id='crm-grant_{$row.grant_id}' class="{cycle values="odd-row,even-row"} crm-grant crm-grant_status-{$row.grant_status_id}"> - {if !$single } - {if $context eq 'Search' } + {if !$single} + {if $context eq 'Search'} {assign var=cbName value=$row.checkbox} <td>{$form.$cbName.html}</td> {/if} diff --git a/civicrm/ext/civigrant/templates/CRM/Grant/Form/Task.tpl b/civicrm/ext/civigrant/templates/CRM/Grant/Form/Task.tpl index fa60b22d74..7f674842a2 100644 --- a/civicrm/ext/civigrant/templates/CRM/Grant/Form/Task.tpl +++ b/civicrm/ext/civigrant/templates/CRM/Grant/Form/Task.tpl @@ -10,7 +10,7 @@ {if $totalSelectedGrants} {ts 1=$totalSelectedGrants}Number of selected grants: %1{/ts} {/if} -{if $rows } +{if $rows} <div class="form-item"> <table width="30%"> <tr class="columnheader"> diff --git a/civicrm/ext/civigrant/templates/CRM/Grant/Form/Task/Print.tpl b/civicrm/ext/civigrant/templates/CRM/Grant/Form/Task/Print.tpl index 98e16d5d4a..0e2d85760d 100644 --- a/civicrm/ext/civigrant/templates/CRM/Grant/Form/Task/Print.tpl +++ b/civicrm/ext/civigrant/templates/CRM/Grant/Form/Task/Print.tpl @@ -9,7 +9,7 @@ *} <p> -{if $rows } +{if $rows} <div class="crm-submit-buttons element-right">{$form.buttons.html}</div> <div class="spacer"></div> <br /> diff --git a/civicrm/ext/civigrant/templates/CRM/Grant/Page/DashBoard.tpl b/civicrm/ext/civigrant/templates/CRM/Grant/Page/DashBoard.tpl index 9f28e412ab..bf3fadba01 100644 --- a/civicrm/ext/civigrant/templates/CRM/Grant/Page/DashBoard.tpl +++ b/civicrm/ext/civigrant/templates/CRM/Grant/Page/DashBoard.tpl @@ -10,7 +10,7 @@ {* CiviGrant DashBoard (launch page) *} <div class="help"> {capture assign=findContactURL}{crmURL p="civicrm/contact/search/basic" q="reset=1"}{/capture} - <p>{ts 1=$findContactURL }CiviGrant allows you to input and track grants to Organizations, Individuals or Households. The grantee must first be entered as a contact in CiviCRM. Use <a href='%1'>Find Contacts</a> to see if there's already a record for the grantee. Once you've located or created the contact record, click <strong>View</strong> to go to their summary page, select the <strong>Grants</strong> tab and click <strong>New Grant</strong>.{/ts} + <p>{ts 1=$findContactURL}CiviGrant allows you to input and track grants to Organizations, Individuals or Households. The grantee must first be entered as a contact in CiviCRM. Use <a href='%1'>Find Contacts</a> to see if there's already a record for the grantee. Once you've located or created the contact record, click <strong>View</strong> to go to their summary page, select the <strong>Grants</strong> tab and click <strong>New Grant</strong>.{/ts} </p> </div> <h3>{ts}Grants Summary{/ts}</h3> diff --git a/civicrm/ext/civigrant/templates/CRM/Grant/Page/Tab.tpl b/civicrm/ext/civigrant/templates/CRM/Grant/Page/Tab.tpl deleted file mode 100644 index bbebe0592e..0000000000 --- a/civicrm/ext/civigrant/templates/CRM/Grant/Page/Tab.tpl +++ /dev/null @@ -1,43 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ -*} -{if $action eq 1 or $action eq 2 or $action eq 8 }{* add, update or delete *} - {include file="CRM/Grant/Form/Grant.tpl"} -{elseif $action eq 4 } - {include file="CRM/Grant/Form/GrantView.tpl"} -{else} - <div class="view-content"> - {if $permission EQ 'edit'} - {capture assign=newGrantURL}{crmURL p="civicrm/contact/view/grant" q="reset=1&action=add&cid=`$contactId`&context=grant"}{/capture} - {/if} - - <div class="help"> - <p>{ts 1=$displayName}This page lists all grants for %1 since inception.{/ts} - {if $permission EQ 'edit'} - {capture assign=link}accesskey='N' href='{$newGrantURL}' class='action-item'{/capture} - {ts 1=$link}Click <a %1>Add Grant</a> to record a Grant for this contact.{/ts} - {/if} - </p> - </div> -{if $action eq 16 and $permission EQ 'edit'} - <div class="action-link"> - <a href="{$newGrantURL}" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {ts}Add Grant{/ts}</span></a><br/><br/> - </div> - {/if} - {if $rows} - - {include file="CRM/Grant/Form/Selector.tpl"} - {else} - <div class="messages status"> - {icon icon="fa-info-circle"}{/icon} - {ts}No grants have been recorded for this contact.{/ts} - </div> - {/if} - </div> -{/if} diff --git a/civicrm/ext/civigrant/xml/Menu/Grant.xml b/civicrm/ext/civigrant/xml/Menu/Grant.xml index c31d0ecb27..624b230b2b 100644 --- a/civicrm/ext/civigrant/xml/Menu/Grant.xml +++ b/civicrm/ext/civigrant/xml/Menu/Grant.xml @@ -24,15 +24,15 @@ </item> <item> <path>civicrm/grant/add</path> - <title>New Grant</title> - <page_callback>CRM_Grant_Page_Tab</page_callback> - <path_arguments>action=add</path_arguments> + <title>Grant</title> + <page_callback>CRM_Grant_Form_Grant</page_callback> <access_arguments>access CiviGrant</access_arguments> <page_type>1</page_type> </item> + <!-- Unused/deprecated path redundant with civicrm/grant/add --> <item> <path>civicrm/contact/view/grant</path> - <page_callback>CRM_Grant_Page_Tab</page_callback> + <page_callback>CRM_Grant_Form_Grant</page_callback> <access_arguments>access CiviGrant</access_arguments> </item> </menu> diff --git a/civicrm/ext/civigrant/xml/schema/CRM/Grant/Grant.xml b/civicrm/ext/civigrant/xml/schema/CRM/Grant/Grant.xml index e3db6baafa..843cc499e3 100644 --- a/civicrm/ext/civigrant/xml/schema/CRM/Grant/Grant.xml +++ b/civicrm/ext/civigrant/xml/schema/CRM/Grant/Grant.xml @@ -9,10 +9,10 @@ <log>true</log> <icon>fa-money</icon> <paths> - <add>civicrm/grant/add?reset=1&action=add&context=standalone</add> - <view>civicrm/contact/view/grant?reset=1&action=view&id=[id]&cid=[contact_id]</view> - <update>civicrm/contact/view/grant?reset=1&action=update&id=[id]&cid=[contact_id]</update> - <delete>civicrm/contact/view/grant?reset=1&action=delete&id=[id]&cid=[contact_id]</delete> + <add>civicrm/grant/add?reset=1&action=add&cid=[contact_id]</add> + <view>civicrm/grant/add?reset=1&action=view&id=[id]</view> + <update>civicrm/grant/add?reset=1&action=update&id=[id]</update> + <delete>civicrm/grant/add?reset=1&action=delete&id=[id]</delete> </paths> <field> <name>id</name> diff --git a/civicrm/ext/civiimport/ang/afsearchAllImports.aff.json b/civicrm/ext/civiimport/ang/afsearchAllImports.aff.json deleted file mode 100644 index 92f44df974..0000000000 --- a/civicrm/ext/civiimport/ang/afsearchAllImports.aff.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "All Imports", - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "summary_contact_type": null, - "icon": "fa-list-alt", - "server_route": "civicrm/imports/all-imports", - "permission": "administer queues", - "redirect": null, - "create_submission": false, - "navigation": { - "parent": "Reports", - "label": "All imports", - "weight": 17 - } -} diff --git a/civicrm/ext/civiimport/ang/afsearchAllImports.aff.php b/civicrm/ext/civiimport/ang/afsearchAllImports.aff.php new file mode 100644 index 0000000000..8cf8aa26a5 --- /dev/null +++ b/civicrm/ext/civiimport/ang/afsearchAllImports.aff.php @@ -0,0 +1,26 @@ +<?php +use CRM_Civiimport_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('All Imports'), + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/imports/all-imports', + 'permission' => ['administer queues'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => [ + 'parent' => 'Reports', + 'label' => E::ts('All imports'), + 'weight' => 17, + ], +]; diff --git a/civicrm/ext/civiimport/ang/afsearchMyImports.aff.json b/civicrm/ext/civiimport/ang/afsearchMyImports.aff.json deleted file mode 100644 index a574500353..0000000000 --- a/civicrm/ext/civiimport/ang/afsearchMyImports.aff.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "My Imports", - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "summary_contact_type": null, - "icon": "fa-list-alt", - "server_route": "civicrm/imports/my-listing", - "permission": "access CiviCRM", - "redirect": null, - "create_submission": false, - "navigation": { - "parent": "Reports", - "label": "My Imports", - "weight": 15 - } -} diff --git a/civicrm/ext/civiimport/ang/afsearchMyImports.aff.php b/civicrm/ext/civiimport/ang/afsearchMyImports.aff.php new file mode 100644 index 0000000000..242fd16ab5 --- /dev/null +++ b/civicrm/ext/civiimport/ang/afsearchMyImports.aff.php @@ -0,0 +1,26 @@ +<?php +use CRM_Civiimport_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('My Imports'), + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/imports/my-listing', + 'permission' => ['access CiviCRM'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => [ + 'parent' => 'Reports', + 'label' => E::ts('My Imports'), + 'weight' => 15, + ], +]; diff --git a/civicrm/ext/civiimport/ang/afsearchTemplates.aff.json b/civicrm/ext/civiimport/ang/afsearchTemplates.aff.json deleted file mode 100644 index 6948f1d48b..0000000000 --- a/civicrm/ext/civiimport/ang/afsearchTemplates.aff.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Import Templates", - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "summary_contact_type": null, - "icon": "fa-list-alt", - "server_route": "civicrm/imports/templates", - "permission": "access CiviCRM", - "redirect": null, - "create_submission": false, - "navigation": { - "parent": "Reports", - "label": "Import Templates", - "weight": 16 - } -} diff --git a/civicrm/ext/civiimport/ang/afsearchTemplates.aff.php b/civicrm/ext/civiimport/ang/afsearchTemplates.aff.php new file mode 100644 index 0000000000..613380fd7e --- /dev/null +++ b/civicrm/ext/civiimport/ang/afsearchTemplates.aff.php @@ -0,0 +1,26 @@ +<?php +use CRM_Civiimport_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Import Templates'), + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/imports/templates', + 'permission' => ['access CiviCRM'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => [ + 'parent' => 'Reports', + 'label' => E::ts('Import Templates'), + 'weight' => 16, + ], +]; diff --git a/civicrm/ext/civiimport/civiimport.civix.php b/civicrm/ext/civiimport/civiimport.civix.php index c912ca5bcf..7e45e4530a 100644 --- a/civicrm/ext/civiimport/civiimport.civix.php +++ b/civicrm/ext/civiimport/civiimport.civix.php @@ -133,8 +133,8 @@ function _civiimport_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/civiimport/info.xml b/civicrm/ext/civiimport/info.xml index b0c56db0b1..8e628b1808 100644 --- a/civicrm/ext/civiimport/info.xml +++ b/civicrm/ext/civiimport/info.xml @@ -15,10 +15,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2022-08-11</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>alpha</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Core extension for us to start moving import logic into, has more functionality</comments> <requires> @@ -31,7 +31,7 @@ </classloader> <civix> <namespace>CRM/Civiimport</namespace> - <format>23.02.0</format> + <format>23.02.1</format> <angularModule>crmCiviimport</angularModule> </civix> <mixins> @@ -39,6 +39,6 @@ <mixin>scan-classes@1.0.0</mixin> <mixin>setting-php@1.0.0</mixin> <mixin>ang-php@1.0.0</mixin> - <mixin>smarty-v2@1.0.0</mixin> + <mixin>smarty-v2@1.0.1</mixin> </mixins> </extension> diff --git a/civicrm/ext/ckeditor4/ckeditor4.civix.php b/civicrm/ext/ckeditor4/ckeditor4.civix.php index 39aa238b67..8465f04a1d 100644 --- a/civicrm/ext/ckeditor4/ckeditor4.civix.php +++ b/civicrm/ext/ckeditor4/ckeditor4.civix.php @@ -133,8 +133,8 @@ function _ckeditor4_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/ckeditor4/info.xml b/civicrm/ext/ckeditor4/info.xml index 5f41e4f2eb..331ddedc40 100644 --- a/civicrm/ext/ckeditor4/info.xml +++ b/civicrm/ext/ckeditor4/info.xml @@ -15,10 +15,10 @@ <url desc="Licensing">https://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2021-05-23</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>This is the version of CKEditor that originally shipped with CiviCRM core</comments> <classloader> @@ -27,11 +27,11 @@ </classloader> <mixins> <mixin>menu-xml@1.0.0</mixin> - <mixin>smarty-v2@1.0.0</mixin> + <mixin>smarty-v2@1.0.1</mixin> </mixins> <civix> <namespace>CRM/Ckeditor4</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> <upgrader>CRM_Ckeditor4_Upgrader</upgrader> </extension> diff --git a/civicrm/ext/ckeditor4/templates/CRM/Ckeditor4/Form/CKEditorConfig.tpl b/civicrm/ext/ckeditor4/templates/CRM/Ckeditor4/Form/CKEditorConfig.tpl index ae51de9d18..47e8f4f744 100644 --- a/civicrm/ext/ckeditor4/templates/CRM/Ckeditor4/Form/CKEditorConfig.tpl +++ b/civicrm/ext/ckeditor4/templates/CRM/Ckeditor4/Form/CKEditorConfig.tpl @@ -47,7 +47,7 @@ {/literal}</style> {* Force the custom config file to reload by appending a new query string *} <script type="text/javascript"> - {if $configUrl}CKEDITOR.config.customConfig = '{$configUrl}?{php}print str_replace(array(' ', '.'), array('', '='), microtime());{/php}'{/if}; + {if $configUrl}CKEDITOR.config.customConfig = '{$configUrl}?{$smarty.now}'{/if}; </script> <div class="ui-tabs"> diff --git a/civicrm/ext/contributioncancelactions/contributioncancelactions.civix.php b/civicrm/ext/contributioncancelactions/contributioncancelactions.civix.php index f78d349348..fa52d8fda4 100644 --- a/civicrm/ext/contributioncancelactions/contributioncancelactions.civix.php +++ b/civicrm/ext/contributioncancelactions/contributioncancelactions.civix.php @@ -84,27 +84,17 @@ use CRM_Contributioncancelactions_ExtensionUtil as E; * * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config */ -function _contributioncancelactions_civix_civicrm_config(&$config = NULL) { +function _contributioncancelactions_civix_civicrm_config($config = NULL) { static $configured = FALSE; if ($configured) { return; } $configured = TRUE; - $template = CRM_Core_Smarty::singleton(); - $extRoot = __DIR__ . DIRECTORY_SEPARATOR; - $extDir = $extRoot . 'templates'; - - if (is_array($template->template_dir)) { - array_unshift($template->template_dir, $extDir); - } - else { - $template->template_dir = [$extDir, $template->template_dir]; - } - $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); set_include_path($include_path); + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -114,35 +104,7 @@ function _contributioncancelactions_civix_civicrm_config(&$config = NULL) { */ function _contributioncancelactions_civix_civicrm_install() { _contributioncancelactions_civix_civicrm_config(); - if ($upgrader = _contributioncancelactions_civix_upgrader()) { - $upgrader->onInstall(); - } -} - -/** - * Implements hook_civicrm_postInstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall - */ -function _contributioncancelactions_civix_civicrm_postInstall() { - _contributioncancelactions_civix_civicrm_config(); - if ($upgrader = _contributioncancelactions_civix_upgrader()) { - if (is_callable([$upgrader, 'onPostInstall'])) { - $upgrader->onPostInstall(); - } - } -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall - */ -function _contributioncancelactions_civix_civicrm_uninstall(): void { - _contributioncancelactions_civix_civicrm_config(); - if ($upgrader = _contributioncancelactions_civix_upgrader()) { - $upgrader->onUninstall(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -152,56 +114,7 @@ function _contributioncancelactions_civix_civicrm_uninstall(): void { */ function _contributioncancelactions_civix_civicrm_enable(): void { _contributioncancelactions_civix_civicrm_config(); - if ($upgrader = _contributioncancelactions_civix_upgrader()) { - if (is_callable([$upgrader, 'onEnable'])) { - $upgrader->onEnable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_disable(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable - * @return mixed - */ -function _contributioncancelactions_civix_civicrm_disable(): void { - _contributioncancelactions_civix_civicrm_config(); - if ($upgrader = _contributioncancelactions_civix_upgrader()) { - if (is_callable([$upgrader, 'onDisable'])) { - $upgrader->onDisable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_upgrade(). - * - * @param $op string, the type of operation being performed; 'check' or 'enqueue' - * @param $queue CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks - * - * @return mixed - * based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending) - * for 'enqueue', returns void - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade - */ -function _contributioncancelactions_civix_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - if ($upgrader = _contributioncancelactions_civix_upgrader()) { - return $upgrader->onUpgrade($op, $queue); - } -} - -/** - * @return CRM_Contributioncancelactions_Upgrader - */ -function _contributioncancelactions_civix_upgrader() { - if (!file_exists(__DIR__ . '/CRM/Contributioncancelactions/Upgrader.php')) { - return NULL; - } - else { - return CRM_Contributioncancelactions_Upgrader_Base::instance(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -220,8 +133,8 @@ function _contributioncancelactions_civix_insert_navigation_menu(&$menu, $path, if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; @@ -285,14 +198,3 @@ function _contributioncancelactions_civix_fixNavigationMenuItems(&$nodes, &$maxN } } } - -/** - * (Delegated) Implements hook_civicrm_entityTypes(). - * - * Find any *.entityType.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function _contributioncancelactions_civix_civicrm_entityTypes(&$entityTypes) { - $entityTypes = array_merge($entityTypes, []); -} diff --git a/civicrm/ext/contributioncancelactions/info.xml b/civicrm/ext/contributioncancelactions/info.xml index cfe6a28aab..bd6d544751 100644 --- a/civicrm/ext/contributioncancelactions/info.xml +++ b/civicrm/ext/contributioncancelactions/info.xml @@ -15,10 +15,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-10-12</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>This code has been moved from core to a separate extension in 5.32. Note that if you disable it failed or cancelled contributions will not cause related memberships and participant records to be updated</comments> <classloader> @@ -27,6 +27,6 @@ </classloader> <civix> <namespace>CRM/Contributioncancelactions</namespace> - <format>22.10.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/contributioncancelactions/tests/phpunit/bootstrap.php b/civicrm/ext/contributioncancelactions/tests/phpunit/bootstrap.php index 5133778c81..63c9148e8e 100644 --- a/civicrm/ext/contributioncancelactions/tests/phpunit/bootstrap.php +++ b/civicrm/ext/contributioncancelactions/tests/phpunit/bootstrap.php @@ -26,7 +26,7 @@ $loader->register(); */ function cv($cmd, $decode = 'json') { $cmd = 'cv ' . $cmd; - $descriptorSpec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => STDERR); + $descriptorSpec = [0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => STDERR]; $oldOutput = getenv('CV_OUTPUT'); putenv("CV_OUTPUT=json"); diff --git a/civicrm/ext/elavon/elavon.civix.php b/civicrm/ext/elavon/elavon.civix.php index 22f149e029..e26bb291b8 100644 --- a/civicrm/ext/elavon/elavon.civix.php +++ b/civicrm/ext/elavon/elavon.civix.php @@ -84,27 +84,17 @@ use CRM_Elavon_ExtensionUtil as E; * * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config */ -function _elavon_civix_civicrm_config(&$config = NULL) { +function _elavon_civix_civicrm_config($config = NULL) { static $configured = FALSE; if ($configured) { return; } $configured = TRUE; - $template = CRM_Core_Smarty::singleton(); - $extRoot = __DIR__ . DIRECTORY_SEPARATOR; - $extDir = $extRoot . 'templates'; - - if (is_array($template->template_dir)) { - array_unshift($template->template_dir, $extDir); - } - else { - $template->template_dir = [$extDir, $template->template_dir]; - } - $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); set_include_path($include_path); + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -114,35 +104,7 @@ function _elavon_civix_civicrm_config(&$config = NULL) { */ function _elavon_civix_civicrm_install() { _elavon_civix_civicrm_config(); - if ($upgrader = _elavon_civix_upgrader()) { - $upgrader->onInstall(); - } -} - -/** - * Implements hook_civicrm_postInstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall - */ -function _elavon_civix_civicrm_postInstall() { - _elavon_civix_civicrm_config(); - if ($upgrader = _elavon_civix_upgrader()) { - if (is_callable([$upgrader, 'onPostInstall'])) { - $upgrader->onPostInstall(); - } - } -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall - */ -function _elavon_civix_civicrm_uninstall(): void { - _elavon_civix_civicrm_config(); - if ($upgrader = _elavon_civix_upgrader()) { - $upgrader->onUninstall(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -152,56 +114,7 @@ function _elavon_civix_civicrm_uninstall(): void { */ function _elavon_civix_civicrm_enable(): void { _elavon_civix_civicrm_config(); - if ($upgrader = _elavon_civix_upgrader()) { - if (is_callable([$upgrader, 'onEnable'])) { - $upgrader->onEnable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_disable(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable - * @return mixed - */ -function _elavon_civix_civicrm_disable(): void { - _elavon_civix_civicrm_config(); - if ($upgrader = _elavon_civix_upgrader()) { - if (is_callable([$upgrader, 'onDisable'])) { - $upgrader->onDisable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_upgrade(). - * - * @param $op string, the type of operation being performed; 'check' or 'enqueue' - * @param $queue CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks - * - * @return mixed - * based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending) - * for 'enqueue', returns void - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade - */ -function _elavon_civix_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - if ($upgrader = _elavon_civix_upgrader()) { - return $upgrader->onUpgrade($op, $queue); - } -} - -/** - * @return CRM_Elavon_Upgrader - */ -function _elavon_civix_upgrader() { - if (!file_exists(__DIR__ . '/CRM/Elavon/Upgrader.php')) { - return NULL; - } - else { - return CRM_Elavon_Upgrader_Base::instance(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -220,8 +133,8 @@ function _elavon_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; @@ -285,14 +198,3 @@ function _elavon_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) { } } } - -/** - * (Delegated) Implements hook_civicrm_entityTypes(). - * - * Find any *.entityType.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function _elavon_civix_civicrm_entityTypes(&$entityTypes) { - $entityTypes = array_merge($entityTypes, []); -} diff --git a/civicrm/ext/elavon/elavon.php b/civicrm/ext/elavon/elavon.php index 7bd31d2110..f3f6556fa4 100644 --- a/civicrm/ext/elavon/elavon.php +++ b/civicrm/ext/elavon/elavon.php @@ -23,24 +23,6 @@ function elavon_civicrm_install() { _elavon_civix_civicrm_install(); } -/** - * Implements hook_civicrm_postInstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall - */ -function elavon_civicrm_postInstall() { - _elavon_civix_civicrm_postInstall(); -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall - */ -function elavon_civicrm_uninstall() { - _elavon_civix_civicrm_uninstall(); -} - /** * Implements hook_civicrm_enable(). * @@ -49,32 +31,3 @@ function elavon_civicrm_uninstall() { function elavon_civicrm_enable() { _elavon_civix_civicrm_enable(); } - -/** - * Implements hook_civicrm_disable(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable - */ -function elavon_civicrm_disable() { - _elavon_civix_civicrm_disable(); -} - -/** - * Implements hook_civicrm_upgrade(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade - */ -function elavon_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - return _elavon_civix_civicrm_upgrade($op, $queue); -} - -/** - * Implements hook_civicrm_entityTypes(). - * - * Declare entity types provided by this module. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function elavon_civicrm_entityTypes(&$entityTypes) { - _elavon_civix_civicrm_entityTypes($entityTypes); -} diff --git a/civicrm/ext/elavon/info.xml b/civicrm/ext/elavon/info.xml index bebcef9559..65ceef2c19 100644 --- a/civicrm/ext/elavon/info.xml +++ b/civicrm/ext/elavon/info.xml @@ -15,10 +15,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2022-08-05</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments/> <classloader> @@ -27,7 +27,7 @@ </classloader> <civix> <namespace>CRM/Elavon</namespace> - <format>22.10.0</format> + <format>23.02.1</format> <angularModule>crmElavon</angularModule> </civix> <mixins> diff --git a/civicrm/ext/eventcart/CRM/Event/Cart/Form/Checkout/Payment.php b/civicrm/ext/eventcart/CRM/Event/Cart/Form/Checkout/Payment.php index 49e63c533c..ba283646d6 100644 --- a/civicrm/ext/eventcart/CRM/Event/Cart/Form/Checkout/Payment.php +++ b/civicrm/ext/eventcart/CRM/Event/Cart/Form/Checkout/Payment.php @@ -154,7 +154,21 @@ class CRM_Event_Cart_Form_Checkout_Payment extends CRM_Event_Cart_Form_Cart { } else { $this->_paymentProcessorIDs = [$payment_processor_id]; - $this->assignPaymentProcessor(FALSE); + $this->_paymentProcessors = CRM_Financial_BAO_PaymentProcessor::getPaymentProcessors([ucfirst($this->_mode) . 'Mode'], $this->_paymentProcessorIDs); + + if (!empty($this->_paymentProcessors)) { + foreach ($this->_paymentProcessors as $paymentProcessorID => $paymentProcessorDetail) { + if (empty($this->_paymentProcessor) && $paymentProcessorDetail['is_default'] == 1 || (count($this->_paymentProcessors) == 1) + ) { + $this->_paymentProcessor = $paymentProcessorDetail; + $this->assign('paymentProcessor', $this->_paymentProcessor); + // Setting this is a bit of a legacy overhang. + $this->_paymentObject = $paymentProcessorDetail['object']; + } + } + // It's not clear why we set this on the form. + $this->set('paymentProcessors', $this->_paymentProcessors); + } CRM_Core_Payment_Form::buildPaymentForm($this, $this->_paymentProcessor, FALSE, FALSE); } $this->assign('currency', $this->getCurrency()); @@ -487,7 +501,7 @@ class CRM_Event_Cart_Form_Checkout_Payment extends CRM_Event_Cart_Form_Cart { $params['is_pay_later'] = 0; } if ($trxnDetails == NULL) { - $params['trxn_id'] = $trxn_prefix . strftime("%Y%m%d%H%M%S"); + $params['trxn_id'] = $trxn_prefix . date('YmdHMS'); $params['trxn_date'] = $params['now']; } diff --git a/civicrm/CRM/Event/Form/ManageEvent/Conference.php b/civicrm/ext/eventcart/CRM/Event/Form/ManageEvent/Conference.php similarity index 100% rename from civicrm/CRM/Event/Form/ManageEvent/Conference.php rename to civicrm/ext/eventcart/CRM/Event/Form/ManageEvent/Conference.php diff --git a/civicrm/ext/eventcart/eventcart.civix.php b/civicrm/ext/eventcart/eventcart.civix.php index 91bd958e3b..930d1acbd5 100644 --- a/civicrm/ext/eventcart/eventcart.civix.php +++ b/civicrm/ext/eventcart/eventcart.civix.php @@ -92,11 +92,6 @@ function _eventcart_civix_civicrm_config($config = NULL) { $configured = TRUE; $extRoot = __DIR__ . DIRECTORY_SEPARATOR; - $extDir = $extRoot . 'templates'; - if (file_exists($extDir)) { - CRM_Core_Smarty::singleton()->addTemplateDir($extDir); - } - $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); set_include_path($include_path); // Based on <compatibility>, this does not currently require mixin/polyfill.php. @@ -138,8 +133,8 @@ function _eventcart_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; @@ -203,14 +198,3 @@ function _eventcart_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) } } } - -/** - * (Delegated) Implements hook_civicrm_entityTypes(). - * - * Find any *.entityType.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function _eventcart_civix_civicrm_entityTypes(&$entityTypes) { - $entityTypes = array_merge($entityTypes, []); -} diff --git a/civicrm/ext/eventcart/eventcart.php b/civicrm/ext/eventcart/eventcart.php index df46e2bc7f..3fb283d20f 100644 --- a/civicrm/ext/eventcart/eventcart.php +++ b/civicrm/ext/eventcart/eventcart.php @@ -1,9 +1,7 @@ <?php require_once 'eventcart.civix.php'; -// phpcs:disable -use CRM_Eventcart_ExtensionUtil as E; -// phpcs:enable +use CRM_Event_Cart_ExtensionUtil as E; /** * Implements hook_civicrm_config(). @@ -32,6 +30,19 @@ function eventcart_civicrm_install() { _eventcart_civix_civicrm_install(); } +/** + * Add the conference session variable to the template. + * + * @param array $params + * @param string $template + */ +function eventcart_civicrm_alterMailParams(&$params, $template) { + $workflow = $params['workflow'] ?? ''; + if (($workflow === 'event_online_receipt' || $workflow === 'participant_confirm') && !empty($params['tokenContact']['participant']['id'])) { + $params['tplParams']['conference_sessions'] = CRM_Event_Cart_BAO_Conference::get_participant_sessions($params['tokenContact']['participant']['id']); + } +} + /** * Implements hook_civicrm_enable(). * @@ -41,13 +52,17 @@ function eventcart_civicrm_enable() { _eventcart_civix_civicrm_enable(); } -/** - * Implements hook_civicrm_entityTypes(). - * - * Declare entity types provided by this module. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function eventcart_civicrm_entityTypes(&$entityTypes) { - _eventcart_civix_civicrm_entityTypes($entityTypes); +function eventcart_civicrm_tabset($name, &$tabs) { + if ($name === 'civicrm/event/manage' && Civi::settings()->get('enable_cart')) { + $tabs['conference'] = [ + 'title' => E::ts('Conference Slots'), + 'link' => NULL, + 'valid' => TRUE, + 'active' => TRUE, + 'current' => FALSE, + 'class' => 'ajaxForm', + 'url' => 'civicrm/event/manage/conference', + 'field' => 'slot_label_id', + ]; + } } diff --git a/civicrm/ext/eventcart/info.xml b/civicrm/ext/eventcart/info.xml index bb2645388a..60ade93a97 100644 --- a/civicrm/ext/eventcart/info.xml +++ b/civicrm/ext/eventcart/info.xml @@ -13,13 +13,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-08-03</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <tags> <tag>mgmt:hidden</tag> </tags> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <classloader> <psr0 prefix="CRM_" path="."/> @@ -28,9 +28,10 @@ <mixins> <mixin>menu-xml@1.0.0</mixin> <mixin>setting-php@1.0.0</mixin> + <mixin>smarty-v2@1.0.1</mixin> </mixins> <civix> <namespace>CRM/Event/Cart</namespace> - <format>22.12.1</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/eventcart/templates/CRM/Event/Cart/Form/Checkout/Participant.tpl b/civicrm/ext/eventcart/templates/CRM/Event/Cart/Form/Checkout/Participant.tpl index 7f6ef84078..28cf5eb167 100644 --- a/civicrm/ext/eventcart/templates/CRM/Event/Cart/Form/Checkout/Participant.tpl +++ b/civicrm/ext/eventcart/templates/CRM/Event/Cart/Form/Checkout/Participant.tpl @@ -8,7 +8,7 @@ <div class="clearfix"> {assign var=pre value="event[`$event_id`][participant][`$participant_id`][customPre]"} <div class="profile-group"> - {include file="CRM/UF/Form/Block.tpl" fields=$custom.$pre form=$form.field.$participant_id} + {include file="CRM/UF/Form/Block.tpl" fields=$custom.$pre form=$form.field.$participant_id hideFieldset=false} </div> <div class="participant-info crm-section form-item"> @@ -23,7 +23,7 @@ {assign var=post value="event[`$event_id`][participant][`$participant_id`][customPost]"} <div style="clear:left"></div> <div class="profile-group"> - {include file="CRM/UF/Form/Block.tpl" fields=$custom.$post form=$form.field.$participant_id} + {include file="CRM/UF/Form/Block.tpl" fields=$custom.$post form=$form.field.$participant_id hideFieldset=false} </div> </div> <!--if $form_participant->participant_index > 0--> diff --git a/civicrm/templates/CRM/Event/Form/ManageEvent/Conference.tpl b/civicrm/ext/eventcart/templates/CRM/Event/Form/ManageEvent/Conference.tpl similarity index 100% rename from civicrm/templates/CRM/Event/Form/ManageEvent/Conference.tpl rename to civicrm/ext/eventcart/templates/CRM/Event/Form/ManageEvent/Conference.tpl diff --git a/civicrm/ext/eventcart/xml/Menu/Eventcart.xml b/civicrm/ext/eventcart/xml/Menu/Eventcart.xml index 838014501a..5d452e1c86 100644 --- a/civicrm/ext/eventcart/xml/Menu/Eventcart.xml +++ b/civicrm/ext/eventcart/xml/Menu/Eventcart.xml @@ -45,4 +45,21 @@ <is_public>true</is_public> <is_ssl>false</is_ssl> </item> + <item> + <path>civicrm/admin/options/conference_slot</path> + <title>Conference Slot Labels</title> + <page_callback>CRM_Admin_Page_Options</page_callback> + <desc>Define conference slots and labels.</desc> + <access_arguments>administer CiviCRM,access CiviEvent</access_arguments> + <adminGroup>CiviEvent</adminGroup> + <weight>415</weight> + </item> + <item> + <path>civicrm/event/manage/conference</path> + <title>Conference Slots</title> + <page_callback>CRM_Event_Form_ManageEvent_Conference</page_callback> + <access_arguments>access CiviEvent</access_arguments> + <is_ssl>true</is_ssl> + <weight>950</weight> + </item> </menu> diff --git a/civicrm/ext/ewaysingle/ewaysingle.civix.php b/civicrm/ext/ewaysingle/ewaysingle.civix.php index 33da147685..c161575f74 100644 --- a/civicrm/ext/ewaysingle/ewaysingle.civix.php +++ b/civicrm/ext/ewaysingle/ewaysingle.civix.php @@ -84,27 +84,17 @@ use CRM_Ewaysingle_ExtensionUtil as E; * * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config */ -function _ewaysingle_civix_civicrm_config(&$config = NULL) { +function _ewaysingle_civix_civicrm_config($config = NULL) { static $configured = FALSE; if ($configured) { return; } $configured = TRUE; - $template = CRM_Core_Smarty::singleton(); - $extRoot = __DIR__ . DIRECTORY_SEPARATOR; - $extDir = $extRoot . 'templates'; - - if (is_array($template->template_dir)) { - array_unshift($template->template_dir, $extDir); - } - else { - $template->template_dir = [$extDir, $template->template_dir]; - } - $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); set_include_path($include_path); + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -114,35 +104,7 @@ function _ewaysingle_civix_civicrm_config(&$config = NULL) { */ function _ewaysingle_civix_civicrm_install() { _ewaysingle_civix_civicrm_config(); - if ($upgrader = _ewaysingle_civix_upgrader()) { - $upgrader->onInstall(); - } -} - -/** - * Implements hook_civicrm_postInstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall - */ -function _ewaysingle_civix_civicrm_postInstall() { - _ewaysingle_civix_civicrm_config(); - if ($upgrader = _ewaysingle_civix_upgrader()) { - if (is_callable([$upgrader, 'onPostInstall'])) { - $upgrader->onPostInstall(); - } - } -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall - */ -function _ewaysingle_civix_civicrm_uninstall(): void { - _ewaysingle_civix_civicrm_config(); - if ($upgrader = _ewaysingle_civix_upgrader()) { - $upgrader->onUninstall(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -152,56 +114,7 @@ function _ewaysingle_civix_civicrm_uninstall(): void { */ function _ewaysingle_civix_civicrm_enable(): void { _ewaysingle_civix_civicrm_config(); - if ($upgrader = _ewaysingle_civix_upgrader()) { - if (is_callable([$upgrader, 'onEnable'])) { - $upgrader->onEnable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_disable(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable - * @return mixed - */ -function _ewaysingle_civix_civicrm_disable(): void { - _ewaysingle_civix_civicrm_config(); - if ($upgrader = _ewaysingle_civix_upgrader()) { - if (is_callable([$upgrader, 'onDisable'])) { - $upgrader->onDisable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_upgrade(). - * - * @param $op string, the type of operation being performed; 'check' or 'enqueue' - * @param $queue CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks - * - * @return mixed - * based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending) - * for 'enqueue', returns void - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade - */ -function _ewaysingle_civix_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - if ($upgrader = _ewaysingle_civix_upgrader()) { - return $upgrader->onUpgrade($op, $queue); - } -} - -/** - * @return CRM_Ewaysingle_Upgrader - */ -function _ewaysingle_civix_upgrader() { - if (!file_exists(__DIR__ . '/CRM/Ewaysingle/Upgrader.php')) { - return NULL; - } - else { - return CRM_Ewaysingle_Upgrader_Base::instance(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -220,8 +133,8 @@ function _ewaysingle_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; @@ -285,14 +198,3 @@ function _ewaysingle_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID } } } - -/** - * (Delegated) Implements hook_civicrm_entityTypes(). - * - * Find any *.entityType.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function _ewaysingle_civix_civicrm_entityTypes(&$entityTypes) { - $entityTypes = array_merge($entityTypes, []); -} diff --git a/civicrm/ext/ewaysingle/ewaysingle.php b/civicrm/ext/ewaysingle/ewaysingle.php index 9c146e341b..1f4441ea8f 100644 --- a/civicrm/ext/ewaysingle/ewaysingle.php +++ b/civicrm/ext/ewaysingle/ewaysingle.php @@ -23,24 +23,6 @@ function ewaysingle_civicrm_install() { _ewaysingle_civix_civicrm_install(); } -/** - * Implements hook_civicrm_postInstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall - */ -function ewaysingle_civicrm_postInstall() { - _ewaysingle_civix_civicrm_postInstall(); -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall - */ -function ewaysingle_civicrm_uninstall() { - _ewaysingle_civix_civicrm_uninstall(); -} - /** * Implements hook_civicrm_enable(). * @@ -49,32 +31,3 @@ function ewaysingle_civicrm_uninstall() { function ewaysingle_civicrm_enable() { _ewaysingle_civix_civicrm_enable(); } - -/** - * Implements hook_civicrm_disable(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable - */ -function ewaysingle_civicrm_disable() { - _ewaysingle_civix_civicrm_disable(); -} - -/** - * Implements hook_civicrm_upgrade(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade - */ -function ewaysingle_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - return _ewaysingle_civix_civicrm_upgrade($op, $queue); -} - -/** - * Implements hook_civicrm_entityTypes(). - * - * Declare entity types provided by this module. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function ewaysingle_civicrm_entityTypes(&$entityTypes) { - _ewaysingle_civix_civicrm_entityTypes($entityTypes); -} diff --git a/civicrm/ext/ewaysingle/info.xml b/civicrm/ext/ewaysingle/info.xml index 811de231e0..b1a4c75c45 100644 --- a/civicrm/ext/ewaysingle/info.xml +++ b/civicrm/ext/ewaysingle/info.xml @@ -6,22 +6,22 @@ <license>AGPL-3.0</license> <maintainer> <author>Seamus Lee</author> - <email>seamuslee001@gmail.com</email> + <email>seamus.lee@jmaconsulting.biz</email> </maintainer> <urls> - <url desc="Main Extension Page">https://github.com/civicrm/civicrm-core/blob/master/ext/ewayrecurring</url> - <url desc="Documentation">https://github.com/civicrm/civicrm-core/blob/master/ext/ewayrecurring</url> - <url desc="Support">https://github.com/civicrm/civicrm-core/blob/master/ext/ewayrecurring</url> + <url desc="Main Extension Page">https://github.com/civicrm/civicrm-core/blob/master/ext/ewaysingle</url> + <url desc="Documentation">https://github.com/civicrm/civicrm-core/blob/master/ext/ewaysingle</url> + <url desc="Support">https://github.com/civicrm/civicrm-core/blob/master/ext/ewaysingle</url> <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-10-07</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <tags> <tag>mgmt:hidden</tag> </tags> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>This is an extension to contain the eWAY Single Currency Payment Processor</comments> <classloader> @@ -33,6 +33,6 @@ </mixins> <civix> <namespace>CRM/Ewaysingle</namespace> - <format>22.10.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/ewaysingle/tests/phpunit/bootstrap.php b/civicrm/ext/ewaysingle/tests/phpunit/bootstrap.php index 5133778c81..63c9148e8e 100644 --- a/civicrm/ext/ewaysingle/tests/phpunit/bootstrap.php +++ b/civicrm/ext/ewaysingle/tests/phpunit/bootstrap.php @@ -26,7 +26,7 @@ $loader->register(); */ function cv($cmd, $decode = 'json') { $cmd = 'cv ' . $cmd; - $descriptorSpec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => STDERR); + $descriptorSpec = [0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => STDERR]; $oldOutput = getenv('CV_OUTPUT'); putenv("CV_OUTPUT=json"); diff --git a/civicrm/ext/financialacls/financialacls.civix.php b/civicrm/ext/financialacls/financialacls.civix.php index d7b20fa37a..430305c553 100644 --- a/civicrm/ext/financialacls/financialacls.civix.php +++ b/civicrm/ext/financialacls/financialacls.civix.php @@ -133,8 +133,8 @@ function _financialacls_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/financialacls/financialacls.php b/civicrm/ext/financialacls/financialacls.php index 1e01fade94..5696c289f2 100644 --- a/civicrm/ext/financialacls/financialacls.php +++ b/civicrm/ext/financialacls/financialacls.php @@ -93,19 +93,19 @@ function financialacls_civicrm_selectWhereClause($entity, &$clauses) { case 'MembershipType': case 'ContributionRecur': case 'Contribution': - $clauses['financial_type_id'] = _financialacls_civicrm_get_type_clause(); + $clauses['financial_type_id'][] = _financialacls_civicrm_get_type_clause(); break; case 'Membership': - $clauses['membership_type_id'] = _financialacls_civicrm_get_membership_type_clause(); + $clauses['membership_type_id'][] = _financialacls_civicrm_get_membership_type_clause(); break; case 'FinancialType': - $clauses['id'] = _financialacls_civicrm_get_type_clause(); + $clauses['id'][] = _financialacls_civicrm_get_type_clause(); break; case 'FinancialAccount': - $clauses['id'] = _financialacls_civicrm_get_accounts_clause(); + $clauses['id'][] = _financialacls_civicrm_get_accounts_clause(); break; } diff --git a/civicrm/ext/financialacls/info.xml b/civicrm/ext/financialacls/info.xml index c63d04b571..f98272a41b 100644 --- a/civicrm/ext/financialacls/info.xml +++ b/civicrm/ext/financialacls/info.xml @@ -15,10 +15,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-08-27</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <tags> <tag>mgmt:hidden</tag> @@ -33,6 +33,6 @@ </mixins> <civix> <namespace>CRM/Financialacls</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/financialacls/tests/phpunit/bootstrap.php b/civicrm/ext/financialacls/tests/phpunit/bootstrap.php index 5133778c81..63c9148e8e 100644 --- a/civicrm/ext/financialacls/tests/phpunit/bootstrap.php +++ b/civicrm/ext/financialacls/tests/phpunit/bootstrap.php @@ -26,7 +26,7 @@ $loader->register(); */ function cv($cmd, $decode = 'json') { $cmd = 'cv ' . $cmd; - $descriptorSpec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => STDERR); + $descriptorSpec = [0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => STDERR]; $oldOutput = getenv('CV_OUTPUT'); putenv("CV_OUTPUT=json"); diff --git a/civicrm/ext/flexmailer/flexmailer.civix.php b/civicrm/ext/flexmailer/flexmailer.civix.php index 2905f48988..273986155d 100644 --- a/civicrm/ext/flexmailer/flexmailer.civix.php +++ b/civicrm/ext/flexmailer/flexmailer.civix.php @@ -133,8 +133,8 @@ function _flexmailer_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/flexmailer/info.xml b/civicrm/ext/flexmailer/info.xml index ada8977798..8ccc239656 100644 --- a/civicrm/ext/flexmailer/info.xml +++ b/civicrm/ext/flexmailer/info.xml @@ -15,7 +15,7 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-08-05</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <comments> FlexMailer is an email delivery engine which replaces the internal guts @@ -23,13 +23,14 @@ to provide richer email features. </comments> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <tags> <tag>mgmt:required</tag> </tags> <classloader> <psr4 prefix="Civi\FlexMailer\" path="src"/> + <psr4 prefix="Civi\" path="Civi"/> </classloader> <mixins> <mixin>menu-xml@1.0.0</mixin> @@ -37,6 +38,6 @@ </mixins> <civix> <namespace>CRM/Flexmailer</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/flexmailer/src/API/MailingPreview.php b/civicrm/ext/flexmailer/src/API/MailingPreview.php index 4d3810c4ff..3d6f1f40f1 100644 --- a/civicrm/ext/flexmailer/src/API/MailingPreview.php +++ b/civicrm/ext/flexmailer/src/API/MailingPreview.php @@ -59,13 +59,13 @@ class MailingPreview { $job->mailing_id = $mailing->id ?: NULL; $job->status = 'Complete'; - $flexMailer = new FlexMailer(array( + $flexMailer = new FlexMailer([ 'is_preview' => TRUE, 'mailing' => $mailing, 'job' => $job, 'attachments' => \CRM_Core_BAO_File::getEntityFile('civicrm_mailing', $mailing->id), - )); + ]); if (count($flexMailer->validate()) > 0) { throw new \CRM_Core_Exception("FlexMailer cannot execute: invalid context"); @@ -74,9 +74,9 @@ class MailingPreview { $task = new FlexMailerTask($job->id, $contactID, 'fakehash', 'placeholder@example.com'); - $flexMailer->fireComposeBatch(array($task)); + $flexMailer->fireComposeBatch([$task]); - return civicrm_api3_create_success(array( + return civicrm_api3_create_success([ 'id' => isset($params['id']) ? $params['id'] : NULL, 'contact_id' => $contactID, 'subject' => $task->getMailParam('Subject'), @@ -84,7 +84,7 @@ class MailingPreview { 'body_text' => $task->getMailParam('text'), // Flag our role in processing this - to support tests. '_rendered_by_' => 'flexmailer', - )); + ]); } } diff --git a/civicrm/ext/flexmailer/src/Event/CheckSendableEvent.php b/civicrm/ext/flexmailer/src/Event/CheckSendableEvent.php index 3a36f5adbc..8016d658d9 100644 --- a/civicrm/ext/flexmailer/src/Event/CheckSendableEvent.php +++ b/civicrm/ext/flexmailer/src/Event/CheckSendableEvent.php @@ -30,7 +30,7 @@ class CheckSendableEvent extends \Civi\Core\Event\GenericHookEvent { * Ex: array('subject' => 'The Subject field is blank'). * Example keys: 'subject', 'name', 'from_name', 'from_email', 'body', 'body_html:unsubscribeUrl'. */ - protected $errors = array(); + protected $errors = []; /** * CheckSendableEvent constructor. diff --git a/civicrm/ext/flexmailer/src/FlexMailer.php b/civicrm/ext/flexmailer/src/FlexMailer.php index 844ee66659..194590dc55 100644 --- a/civicrm/ext/flexmailer/src/FlexMailer.php +++ b/civicrm/ext/flexmailer/src/FlexMailer.php @@ -77,12 +77,12 @@ class FlexMailer { * Array(string $event => string $class). */ public static function getEventTypes() { - return array( + return [ self::EVENT_RUN => 'Civi\\FlexMailer\\Event\\RunEvent', self::EVENT_WALK => 'Civi\\FlexMailer\\Event\\WalkBatchesEvent', self::EVENT_COMPOSE => 'Civi\\FlexMailer\\Event\\ComposeBatchEvent', self::EVENT_SEND => 'Civi\\FlexMailer\\Event\\SendBatchEvent', - ); + ]; } /** @@ -112,13 +112,13 @@ class FlexMailer { * TRUE if delivery completed. */ public static function createAndRun($job, $deprecatedMessageMailer, $deprecatedTestParams) { - $flexMailer = new \Civi\FlexMailer\FlexMailer(array( + $flexMailer = new \Civi\FlexMailer\FlexMailer([ 'mailing' => \CRM_Mailing_BAO_Mailing::findById($job->mailing_id), 'job' => $job, 'attachments' => \CRM_Core_BAO_File::getEntityFile('civicrm_mailing', $job->mailing_id), 'deprecatedMessageMailer' => $deprecatedMessageMailer, 'deprecatedTestParams' => $deprecatedTestParams, - )); + ]); return $flexMailer->run(); } @@ -131,7 +131,7 @@ class FlexMailer { * - attachments: array * @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher */ - public function __construct($context = array(), EventDispatcherInterface $dispatcher = NULL) { + public function __construct($context = [], EventDispatcherInterface $dispatcher = NULL) { $this->context = $context; $this->dispatcher = $dispatcher ?: \Civi::service('dispatcher'); } @@ -168,7 +168,7 @@ class FlexMailer { * List of error messages */ public function validate() { - $errors = array(); + $errors = []; if (empty($this->context['mailing'])) { $errors['mailing'] = 'Missing \"mailing\"'; } diff --git a/civicrm/ext/flexmailer/src/FlexMailerTask.php b/civicrm/ext/flexmailer/src/FlexMailerTask.php index 5b17485784..738fff80d7 100644 --- a/civicrm/ext/flexmailer/src/FlexMailerTask.php +++ b/civicrm/ext/flexmailer/src/FlexMailerTask.php @@ -59,7 +59,7 @@ class FlexMailerTask { * @see MailParams * @see \CRM_Utils_Hook::alterMailParams() */ - private $mailParams = array(); + private $mailParams = []; /** * FlexMailerTask constructor. diff --git a/civicrm/ext/flexmailer/src/Listener/BasicHeaders.php b/civicrm/ext/flexmailer/src/Listener/BasicHeaders.php index 025a165e4e..4a44837996 100644 --- a/civicrm/ext/flexmailer/src/Listener/BasicHeaders.php +++ b/civicrm/ext/flexmailer/src/Listener/BasicHeaders.php @@ -37,9 +37,9 @@ class BasicHeaders extends BaseListener { $e->getJob()->id, $task->getEventQueueId(), $task->getHash(), $task->getAddress()); - $mailParams = array(); + $mailParams = []; $mailParams['List-Unsubscribe'] = "<mailto:{$verp['unsubscribe']}>"; - \CRM_Mailing_BAO_Mailing::addMessageIdHeader($mailParams, 'm', $e->getJob()->id, $task->getEventQueueId(), $task->getHash()); + \CRM_Mailing_BAO_Mailing::addMessageIdHeader($mailParams, 'm', NULL, $task->getEventQueueId(), $task->getHash()); $mailParams['Precedence'] = 'bulk'; $mailParams['job_id'] = $e->getJob()->id; diff --git a/civicrm/ext/flexmailer/src/Listener/DefaultBatcher.php b/civicrm/ext/flexmailer/src/Listener/DefaultBatcher.php index 028f593c89..56f834ebf0 100644 --- a/civicrm/ext/flexmailer/src/Listener/DefaultBatcher.php +++ b/civicrm/ext/flexmailer/src/Listener/DefaultBatcher.php @@ -39,7 +39,7 @@ class DefaultBatcher extends BaseListener { $mailerBatchLimit = \CRM_Core_Config::singleton()->mailerBatchLimit; $eq = \CRM_Mailing_BAO_MailingJob::findPendingTasks($job->id, 'email'); - $tasks = array(); + $tasks = []; while ($eq->fetch()) { if ($mailerBatchLimit > 0 && \CRM_Mailing_BAO_MailingJob::$mailsProcessed >= $mailerBatchLimit) { if (!empty($tasks)) { @@ -61,7 +61,7 @@ class DefaultBatcher extends BaseListener { $e->setCompleted($isDelivered); return; } - $tasks = array(); + $tasks = []; } } diff --git a/civicrm/ext/flexmailer/src/Listener/DefaultComposer.php b/civicrm/ext/flexmailer/src/Listener/DefaultComposer.php index 93559b8a1a..25b2e69b5d 100644 --- a/civicrm/ext/flexmailer/src/Listener/DefaultComposer.php +++ b/civicrm/ext/flexmailer/src/Listener/DefaultComposer.php @@ -96,13 +96,13 @@ class DefaultComposer extends BaseListener { * @return array */ public function createTokenProcessorContext(ComposeBatchEvent $e) { - $context = array( + $context = [ 'controller' => get_class($this), // FIXME: Use template_type, template_options 'smarty' => defined('CIVICRM_MAIL_SMARTY') && CIVICRM_MAIL_SMARTY ? TRUE : FALSE, 'mailing' => $e->getMailing(), 'mailingId' => $e->getMailing()->id, - ); + ]; return $context; } @@ -119,16 +119,16 @@ class DefaultComposer extends BaseListener { ComposeBatchEvent $e, FlexMailerTask $task ) { - return array( + return [ 'contactId' => $task->getContactId(), 'mailingJobId' => $e->getJob()->id, - 'mailingActionTarget' => array( + 'mailingActionTarget' => [ 'id' => $task->getEventQueueId(), 'hash' => $task->getHash(), 'email' => $task->getAddress(), - ), + ], 'flexMailerTask' => $task, - ); + ]; } /** @@ -146,11 +146,11 @@ class DefaultComposer extends BaseListener { FlexMailerTask $task, TokenRow $row ) { - return array( + return [ 'Subject' => $row->render('subject'), 'text' => $row->render('body_text'), 'html' => $row->render('body_html'), - ); + ]; } /** diff --git a/civicrm/ext/flexmailer/src/Listener/DefaultSender.php b/civicrm/ext/flexmailer/src/Listener/DefaultSender.php index d2e0d7b09d..d09386ff11 100644 --- a/civicrm/ext/flexmailer/src/Listener/DefaultSender.php +++ b/civicrm/ext/flexmailer/src/Listener/DefaultSender.php @@ -29,7 +29,7 @@ class DefaultSender extends BaseListener { $job_date = \CRM_Utils_Date::isoToMysql($job->scheduled_date); $mailer = \Civi::service('pear_mail'); - $targetParams = $deliveredParams = array(); + $targetParams = $deliveredParams = []; $count = 0; $retryBatch = FALSE; @@ -188,11 +188,11 @@ class DefaultSender extends BaseListener { * @param string $errorMessage */ protected function recordBounce($job, $task, $errorMessage) { - $params = array( + $params = [ 'event_queue_id' => $task->getEventQueueId(), 'job_id' => $job->id, 'hash' => $task->getHash(), - ); + ]; $params = array_merge($params, \CRM_Mailing_BAO_BouncePattern::match($errorMessage) ); diff --git a/civicrm/ext/flexmailer/src/Listener/RequiredFields.php b/civicrm/ext/flexmailer/src/Listener/RequiredFields.php index a109b26728..4eaa02d750 100644 --- a/civicrm/ext/flexmailer/src/Listener/RequiredFields.php +++ b/civicrm/ext/flexmailer/src/Listener/RequiredFields.php @@ -60,9 +60,9 @@ class RequiredFields extends BaseListener { } if (!$found) { - $e->setError($field, E::ts('Field %1 is required.', array( + $e->setError($field, E::ts('Field %1 is required.', [ 1 => $fieldTitle, - ))); + ])); } unset($found); } diff --git a/civicrm/ext/flexmailer/src/Listener/RequiredTokens.php b/civicrm/ext/flexmailer/src/Listener/RequiredTokens.php index e627243c97..1d6a87af65 100644 --- a/civicrm/ext/flexmailer/src/Listener/RequiredTokens.php +++ b/civicrm/ext/flexmailer/src/Listener/RequiredTokens.php @@ -66,21 +66,21 @@ class RequiredTokens extends BaseListener { return; } - foreach (array('body_html', 'body_text') as $field) { + foreach (['body_html', 'body_text'] as $field) { $str = $e->getFullBody($field); if (empty($str)) { continue; } foreach ($this->findMissingTokens($str) as $token => $desc) { $e->setError("{$field}:{$token}", E::ts('This message is missing a required token - {%1}: %2', - array(1 => $token, 2 => $desc) + [1 => $token, 2 => $desc] )); } } } public function findMissingTokens($str) { - $missing = array(); + $missing = []; foreach ($this->getRequiredTokens() as $token => $value) { if (!is_array($value)) { if (!preg_match('/(^|[^\{])' . preg_quote('{' . $token . '}') . '/', $str)) { diff --git a/civicrm/ext/flexmailer/src/Listener/SimpleFilter.php b/civicrm/ext/flexmailer/src/Listener/SimpleFilter.php index 4d0f1a5571..291be3be95 100644 --- a/civicrm/ext/flexmailer/src/Listener/SimpleFilter.php +++ b/civicrm/ext/flexmailer/src/Listener/SimpleFilter.php @@ -65,7 +65,7 @@ class SimpleFilter { */ public static function byColumn(ComposeBatchEvent $e, $field, $filter) { $tasks = $e->getTasks(); - $values = array(); + $values = []; foreach ($tasks as $k => $task) { /** @var \Civi\FlexMailer\FlexMailerTask $task */ @@ -75,7 +75,7 @@ class SimpleFilter { } } - $values = call_user_func_array($filter, array($values, $e)); + $values = call_user_func_array($filter, [$values, $e]); foreach ($values as $k => $value) { $tasks[$k]->setMailParam($field, $value); diff --git a/civicrm/ext/flexmailer/src/Listener/ToHeader.php b/civicrm/ext/flexmailer/src/Listener/ToHeader.php index a85a36139b..855cf85ca0 100644 --- a/civicrm/ext/flexmailer/src/Listener/ToHeader.php +++ b/civicrm/ext/flexmailer/src/Listener/ToHeader.php @@ -47,7 +47,7 @@ class ToHeader extends BaseListener { * Array(int $contactId => string $displayName). */ protected function getContactNames($tasks) { - $ids = array(); + $ids = []; foreach ($tasks as $task) { /** @var \Civi\FlexMailer\FlexMailerTask $task */ $ids[$task->getContactId()] = $task->getContactId(); @@ -55,14 +55,14 @@ class ToHeader extends BaseListener { $ids = array_filter($ids, 'is_numeric'); if (empty($ids)) { - return array(); + return []; } $idString = implode(',', $ids); $query = \CRM_Core_DAO::executeQuery( "SELECT id, display_name FROM civicrm_contact WHERE id in ($idString)"); - $names = array(); + $names = []; while ($query->fetch()) { $names[$query->id] = $query->display_name; } diff --git a/civicrm/ext/flexmailer/src/MailParams.php b/civicrm/ext/flexmailer/src/MailParams.php index b7880e32d7..60e7dde105 100644 --- a/civicrm/ext/flexmailer/src/MailParams.php +++ b/civicrm/ext/flexmailer/src/MailParams.php @@ -89,7 +89,7 @@ class MailParams { break; default: - $message->headers(array($key => $value), TRUE); + $message->headers([$key => $value], TRUE); } } diff --git a/civicrm/ext/flexmailer/src/Services.php b/civicrm/ext/flexmailer/src/Services.php index 9be823e167..899041e4c9 100644 --- a/civicrm/ext/flexmailer/src/Services.php +++ b/civicrm/ext/flexmailer/src/Services.php @@ -29,27 +29,27 @@ class Services { $apiOverrides = $container->setDefinition('civi_flexmailer_api_overrides', new Definition('Civi\API\Provider\ProviderInterface'))->setPublic(TRUE); self::applyStaticFactory($apiOverrides, __CLASS__, 'createApiOverrides'); - $container->setDefinition('civi_flexmailer_required_fields', new Definition('Civi\FlexMailer\Listener\RequiredFields', array( - array( + $container->setDefinition('civi_flexmailer_required_fields', new Definition('Civi\FlexMailer\Listener\RequiredFields', [ + [ 'subject', 'name', 'from_name', 'from_email', '(body_html|body_text)', - ), - )))->setPublic(TRUE); - $container->setDefinition('civi_flexmailer_required_tokens', new Definition('Civi\FlexMailer\Listener\RequiredTokens', array( - array('traditional'), - array( + ], + ]))->setPublic(TRUE); + $container->setDefinition('civi_flexmailer_required_tokens', new Definition('Civi\FlexMailer\Listener\RequiredTokens', [ + ['traditional'], + [ 'domain.address' => ts("Domain address - displays your organization's postal address."), - 'action.optOutUrl or action.unsubscribeUrl' => array( + 'action.optOutUrl or action.unsubscribeUrl' => [ 'action.optOut' => ts("'Opt out via email' - displays an email address for recipients to opt out of receiving emails from your organization."), 'action.optOutUrl' => ts("'Opt out via web page' - creates a link for recipients to click if they want to opt out of receiving emails from your organization. Alternatively, you can include the 'Opt out via email' token."), 'action.unsubscribe' => ts("'Unsubscribe via email' - displays an email address for recipients to unsubscribe from the specific mailing list used to send this message."), 'action.unsubscribeUrl' => ts("'Unsubscribe via web page' - creates a link for recipients to unsubscribe from the specific mailing list used to send this message. Alternatively, you can include the 'Unsubscribe via email' token or one of the Opt-out tokens."), - ), - ), - )))->setPublic(TRUE); + ], + ], + ]))->setPublic(TRUE); $container->setDefinition('civi_flexmailer_abdicator', new Definition('Civi\FlexMailer\Listener\Abdicator'))->setPublic(TRUE); $container->setDefinition('civi_flexmailer_default_batcher', new Definition('Civi\FlexMailer\Listener\DefaultBatcher'))->setPublic(TRUE); @@ -70,7 +70,7 @@ class Services { $container->findDefinition('dispatcher')->addMethodCall('addListenerService', $listenerSpec); } - $container->findDefinition('civi_api_kernel')->addMethodCall('registerApiProvider', array(new Reference('civi_flexmailer_api_overrides'))); + $container->findDefinition('civi_api_kernel')->addMethodCall('registerApiProvider', [new Reference('civi_flexmailer_api_overrides')]); } /** @@ -84,27 +84,27 @@ class Services { * Arguments to pass to addListenerService($eventName, $callbackSvc, $priority). */ protected static function getListenerSpecs() { - $listenerSpecs = array(); + $listenerSpecs = []; - $listenerSpecs[] = array(Validator::EVENT_CHECK_SENDABLE, array('civi_flexmailer_abdicator', 'onCheckSendable'), FM::WEIGHT_START); - $listenerSpecs[] = array(Validator::EVENT_CHECK_SENDABLE, array('civi_flexmailer_required_fields', 'onCheckSendable'), FM::WEIGHT_MAIN); - $listenerSpecs[] = array(Validator::EVENT_CHECK_SENDABLE, array('civi_flexmailer_required_tokens', 'onCheckSendable'), FM::WEIGHT_MAIN); + $listenerSpecs[] = [Validator::EVENT_CHECK_SENDABLE, ['civi_flexmailer_abdicator', 'onCheckSendable'], FM::WEIGHT_START]; + $listenerSpecs[] = [Validator::EVENT_CHECK_SENDABLE, ['civi_flexmailer_required_fields', 'onCheckSendable'], FM::WEIGHT_MAIN]; + $listenerSpecs[] = [Validator::EVENT_CHECK_SENDABLE, ['civi_flexmailer_required_tokens', 'onCheckSendable'], FM::WEIGHT_MAIN]; - $listenerSpecs[] = array(FM::EVENT_RUN, array('civi_flexmailer_default_composer', 'onRun'), FM::WEIGHT_MAIN); - $listenerSpecs[] = array(FM::EVENT_RUN, array('civi_flexmailer_abdicator', 'onRun'), FM::WEIGHT_END); + $listenerSpecs[] = [FM::EVENT_RUN, ['civi_flexmailer_default_composer', 'onRun'], FM::WEIGHT_MAIN]; + $listenerSpecs[] = [FM::EVENT_RUN, ['civi_flexmailer_abdicator', 'onRun'], FM::WEIGHT_END]; - $listenerSpecs[] = array(FM::EVENT_WALK, array('civi_flexmailer_default_batcher', 'onWalk'), FM::WEIGHT_END); + $listenerSpecs[] = [FM::EVENT_WALK, ['civi_flexmailer_default_batcher', 'onWalk'], FM::WEIGHT_END]; - $listenerSpecs[] = array(FM::EVENT_COMPOSE, array('civi_flexmailer_basic_headers', 'onCompose'), FM::WEIGHT_PREPARE); - $listenerSpecs[] = array(FM::EVENT_COMPOSE, array('civi_flexmailer_to_header', 'onCompose'), FM::WEIGHT_PREPARE); - $listenerSpecs[] = array(FM::EVENT_COMPOSE, array('civi_flexmailer_bounce_tracker', 'onCompose'), FM::WEIGHT_PREPARE); - $listenerSpecs[] = array(FM::EVENT_COMPOSE, array('civi_flexmailer_default_composer', 'onCompose'), FM::WEIGHT_MAIN - 100); - $listenerSpecs[] = array(FM::EVENT_COMPOSE, array('civi_flexmailer_attachments', 'onCompose'), FM::WEIGHT_ALTER); - $listenerSpecs[] = array(FM::EVENT_COMPOSE, array('civi_flexmailer_open_tracker', 'onCompose'), FM::WEIGHT_ALTER); - $listenerSpecs[] = array(FM::EVENT_COMPOSE, array('civi_flexmailer_test_prefix', 'onCompose'), FM::WEIGHT_ALTER); - $listenerSpecs[] = array(FM::EVENT_COMPOSE, array('civi_flexmailer_hooks', 'onCompose'), FM::WEIGHT_ALTER - 100); + $listenerSpecs[] = [FM::EVENT_COMPOSE, ['civi_flexmailer_basic_headers', 'onCompose'], FM::WEIGHT_PREPARE]; + $listenerSpecs[] = [FM::EVENT_COMPOSE, ['civi_flexmailer_to_header', 'onCompose'], FM::WEIGHT_PREPARE]; + $listenerSpecs[] = [FM::EVENT_COMPOSE, ['civi_flexmailer_bounce_tracker', 'onCompose'], FM::WEIGHT_PREPARE]; + $listenerSpecs[] = [FM::EVENT_COMPOSE, ['civi_flexmailer_default_composer', 'onCompose'], FM::WEIGHT_MAIN - 100]; + $listenerSpecs[] = [FM::EVENT_COMPOSE, ['civi_flexmailer_attachments', 'onCompose'], FM::WEIGHT_ALTER]; + $listenerSpecs[] = [FM::EVENT_COMPOSE, ['civi_flexmailer_open_tracker', 'onCompose'], FM::WEIGHT_ALTER]; + $listenerSpecs[] = [FM::EVENT_COMPOSE, ['civi_flexmailer_test_prefix', 'onCompose'], FM::WEIGHT_ALTER]; + $listenerSpecs[] = [FM::EVENT_COMPOSE, ['civi_flexmailer_hooks', 'onCompose'], FM::WEIGHT_ALTER - 100]; - $listenerSpecs[] = array(FM::EVENT_SEND, array('civi_flexmailer_default_sender', 'onSend'), FM::WEIGHT_END); + $listenerSpecs[] = [FM::EVENT_SEND, ['civi_flexmailer_default_sender', 'onSend'], FM::WEIGHT_END]; return $listenerSpecs; } @@ -132,7 +132,7 @@ class Services { */ protected static function applyStaticFactory($def, $factoryClass, $factoryMethod) { if (method_exists($def, 'setFactory')) { - $def->setFactory(array($factoryClass, $factoryMethod)); + $def->setFactory([$factoryClass, $factoryMethod]); } else { $def->setFactoryClass($factoryClass)->setFactoryMethod($factoryMethod); diff --git a/civicrm/ext/flexmailer/src/Validator.php b/civicrm/ext/flexmailer/src/Validator.php index 549d028e3c..91ce47b25c 100644 --- a/civicrm/ext/flexmailer/src/Validator.php +++ b/civicrm/ext/flexmailer/src/Validator.php @@ -38,10 +38,10 @@ class Validator { } $mailing->copyValues($params); - return (new Validator())->run(array( + return (new Validator())->run([ 'mailing' => $mailing, 'attachments' => \CRM_Core_BAO_File::getEntityFile('civicrm_mailing', $mailing->id), - )); + ]); } /** diff --git a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ClickTracker/HtmlClickTrackerTest.php b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ClickTracker/HtmlClickTrackerTest.php index 4533fdaecd..687ca67bbd 100644 --- a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ClickTracker/HtmlClickTrackerTest.php +++ b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ClickTracker/HtmlClickTrackerTest.php @@ -23,7 +23,7 @@ class HtmlClickTrackerTest extends \CiviUnitTestCase { // Activate before transactions are setup. $manager = \CRM_Extension_System::singleton()->getManager(); if ($manager->getStatus('org.civicrm.flexmailer') !== \CRM_Extension_Manager::STATUS_INSTALLED) { - $manager->install(array('org.civicrm.flexmailer')); + $manager->install(['org.civicrm.flexmailer']); } parent::setUp(); diff --git a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ClickTracker/TextClickTrackerTest.php b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ClickTracker/TextClickTrackerTest.php index 14da23dd78..a007001c3b 100644 --- a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ClickTracker/TextClickTrackerTest.php +++ b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ClickTracker/TextClickTrackerTest.php @@ -23,7 +23,7 @@ class TextClickTrackerTest extends \CiviUnitTestCase { // Activate before transactions are setup. $manager = \CRM_Extension_System::singleton()->getManager(); if ($manager->getStatus('org.civicrm.flexmailer') !== \CRM_Extension_Manager::STATUS_INSTALLED) { - $manager->install(array('org.civicrm.flexmailer')); + $manager->install(['org.civicrm.flexmailer']); } parent::setUp(); diff --git a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ConcurrentDeliveryTest.php b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ConcurrentDeliveryTest.php index f9f6061b3f..ae1e216beb 100644 --- a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ConcurrentDeliveryTest.php +++ b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ConcurrentDeliveryTest.php @@ -37,7 +37,7 @@ class ConcurrentDeliveryTest extends \api_v3_JobProcessMailingTest { // Activate before transactions are setup. $manager = \CRM_Extension_System::singleton()->getManager(); if ($manager->getStatus('org.civicrm.flexmailer') !== \CRM_Extension_Manager::STATUS_INSTALLED) { - $manager->install(array('org.civicrm.flexmailer')); + $manager->install(['org.civicrm.flexmailer']); } parent::setUp(); diff --git a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/FlexMailerSystemTest.php b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/FlexMailerSystemTest.php index dbba1d7ab5..d91e6ec490 100644 --- a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/FlexMailerSystemTest.php +++ b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/FlexMailerSystemTest.php @@ -43,20 +43,20 @@ class FlexMailerSystemTest extends \CRM_Mailing_BaseMailingSystemTest { // Activate before transactions are setup. $manager = \CRM_Extension_System::singleton()->getManager(); if ($manager->getStatus('org.civicrm.flexmailer') !== \CRM_Extension_Manager::STATUS_INSTALLED) { - $manager->install(array('org.civicrm.flexmailer')); + $manager->install(['org.civicrm.flexmailer']); } parent::setUp(); $dispatcher = \Civi::service('dispatcher'); foreach (FlexMailer::getEventTypes() as $event => $class) { - $dispatcher->addListener($event, array($this, 'handleEvent')); + $dispatcher->addListener($event, [$this, 'handleEvent']); } $hooks = \CRM_Utils_Hook::singleton(); $hooks->setHook('civicrm_alterMailParams', - array($this, 'hook_alterMailParams')); - $this->counts = array(); + [$this, 'hook_alterMailParams']); + $this->counts = []; } public function handleEvent(GenericHookEvent $e) { diff --git a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/Listener/SimpleFilterTest.php b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/Listener/SimpleFilterTest.php index b7d4d7904f..7ae2774f42 100644 --- a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/Listener/SimpleFilterTest.php +++ b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/Listener/SimpleFilterTest.php @@ -33,7 +33,7 @@ class SimpleFilterTest extends \CiviUnitTestCase { // Activate before transactions are setup. $manager = \CRM_Extension_System::singleton()->getManager(); if ($manager->getStatus('org.civicrm.flexmailer') !== \CRM_Extension_Manager::STATUS_INSTALLED) { - $manager->install(array('org.civicrm.flexmailer')); + $manager->install(['org.civicrm.flexmailer']); } parent::setUp(); @@ -49,10 +49,10 @@ class SimpleFilterTest extends \CiviUnitTestCase { SimpleFilter::byValue($e, 'text', function ($value, $t, $e) use ($test) { $test->assertInstanceOf('Civi\FlexMailer\FlexMailerTask', $t); $test->assertInstanceOf('Civi\FlexMailer\Event\ComposeBatchEvent', $e); - $test->assertTrue(in_array($value, array( + $test->assertTrue(in_array($value, [ 'eat more cheese', 'eat more ice cream', - ))); + ])); return preg_replace('/more/', 'thoughtfully considered quantities of', $value); }); @@ -83,15 +83,15 @@ class SimpleFilterTest extends \CiviUnitTestCase { * @return array */ protected function createExampleBatch() { - $tasks = array(); + $tasks = []; $tasks[0] = new FlexMailerTask(1000, 2000, 'asdf', 'foo@example.org'); $tasks[1] = new FlexMailerTask(1001, 2001, 'fdsa', 'bar@example.org'); - $e = new ComposeBatchEvent(array(), $tasks); + $e = new ComposeBatchEvent([], $tasks); $tasks[0]->setMailParam('text', 'eat more cheese'); $tasks[1]->setMailParam('text', 'eat more ice cream'); - return array($tasks, $e); + return [$tasks, $e]; } } diff --git a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/MailingPreviewTest.php b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/MailingPreviewTest.php index d6c72e15c9..ecfe524a73 100644 --- a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/MailingPreviewTest.php +++ b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/MailingPreviewTest.php @@ -24,7 +24,7 @@ class MailingPreviewTest extends \CiviUnitTestCase { // Activate before transactions are setup. $manager = \CRM_Extension_System::singleton()->getManager(); if ($manager->getStatus('org.civicrm.flexmailer') !== \CRM_Extension_Manager::STATUS_INSTALLED) { - $manager->install(array('org.civicrm.flexmailer')); + $manager->install(['org.civicrm.flexmailer']); } parent::setUp(); @@ -35,7 +35,7 @@ class MailingPreviewTest extends \CiviUnitTestCase { $this->_contactID = $this->individualCreate(); $this->_groupID = $this->groupCreate(); $this->_email = 'test@test.test'; - $this->_params = array( + $this->_params = [ 'subject' => 'Hello {contact.display_name}', 'body_text' => "This is {contact.display_name}.\nhttps://civicrm.org\nda=({domain.address}) optout=({action.optOutUrl}) subj=({mailing.subject})", 'body_html' => "<p>This is {contact.display_name}.</p><p><a href='https://civicrm.org/'>CiviCRM.org</a></p><p>da=({domain.address}) optout=({action.optOutUrl}) subj=({mailing.subject})</p>", @@ -43,14 +43,14 @@ class MailingPreviewTest extends \CiviUnitTestCase { 'created_id' => $this->_contactID, 'header_id' => '', 'footer_id' => '', - ); + ]; - $this->footer = civicrm_api3('MailingComponent', 'create', array( + $this->footer = civicrm_api3('MailingComponent', 'create', [ 'name' => 'test domain footer', 'component_type' => 'footer', 'body_html' => '<p>From {domain.address}. To opt out, go to {action.optOutUrl}.</p>', 'body_text' => 'From {domain.address}. To opt out, go to {action.optOutUrl}.', - )); + ]); } public function tearDown(): void { @@ -63,15 +63,15 @@ class MailingPreviewTest extends \CiviUnitTestCase { // BEGIN SAMPLE DATA $contactID = $this->individualCreate(); $displayName = $this->callAPISuccess('contact', 'get', - array('id' => $contactID)); + ['id' => $contactID]); $displayName = $displayName['values'][$contactID]['display_name']; $this->assertTrue(!empty($displayName)); $params = $this->_params; - $params['api.Mailing.preview'] = array( + $params['api.Mailing.preview'] = [ 'id' => '$value.id', 'contact_id' => $contactID, - ); + ]; $params['options']['force_rollback'] = 1; // END SAMPLE DATA @@ -130,12 +130,12 @@ class MailingPreviewTest extends \CiviUnitTestCase { * Array(string $table => int $maxID). */ protected function getMaxIds() { - return array( + return [ 'civicrm_mailing' => \CRM_Core_DAO::singleValueQuery('SELECT MAX(id) FROM civicrm_mailing'), 'civicrm_mailing_job' => \CRM_Core_DAO::singleValueQuery('SELECT MAX(id) FROM civicrm_mailing_job'), 'civicrm_mailing_group' => \CRM_Core_DAO::singleValueQuery('SELECT MAX(id) FROM civicrm_mailing_group'), 'civicrm_mailing_recipients' => \CRM_Core_DAO::singleValueQuery('SELECT MAX(id) FROM civicrm_mailing_recipients'), - ); + ]; } /** diff --git a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ValidatorTest.php b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ValidatorTest.php index a0bd66b3d4..08c2592f29 100644 --- a/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ValidatorTest.php +++ b/civicrm/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ValidatorTest.php @@ -21,14 +21,14 @@ class ValidatorTest extends \CiviUnitTestCase { // Activate before transactions are setup. $manager = \CRM_Extension_System::singleton()->getManager(); if ($manager->getStatus('org.civicrm.flexmailer') !== \CRM_Extension_Manager::STATUS_INSTALLED) { - $manager->install(array('org.civicrm.flexmailer')); + $manager->install(['org.civicrm.flexmailer']); } parent::setUp(); } public function getExamples() { - $defaults = array( + $defaults = [ 'id' => 123, 'subject' => 'Default subject', 'name' => 'Default name', @@ -37,44 +37,44 @@ class ValidatorTest extends \CiviUnitTestCase { 'body_html' => '<html>Default HTML body {action.unsubscribeUrl} {domain.address}</html>', 'body_text' => 'Default text body {action.unsubscribeUrl} {domain.address}', 'template_type' => 'traditional', - 'template_options' => array(), - ); + 'template_options' => [], + ]; - $es = array(); - $es[] = array( - array_merge($defaults, array('subject' => NULL)), - array('subject' => '/Field "subject" is required./'), - ); - $es[] = array( - array_merge($defaults, array('subject' => NULL, 'from_name' => NULL)), - array( + $es = []; + $es[] = [ + array_merge($defaults, ['subject' => NULL]), + ['subject' => '/Field "subject" is required./'], + ]; + $es[] = [ + array_merge($defaults, ['subject' => NULL, 'from_name' => NULL]), + [ 'subject' => '/Field "subject" is required./', 'from_name' => '/Field "from_name" is required./', - ), - ); - $es[] = array( - array_merge($defaults, array('body_text' => NULL)), - array(), - ); - $es[] = array( - array_merge($defaults, array('body_html' => NULL)), - array(), - ); - $es[] = array( - array_merge($defaults, array('body_html' => NULL, 'body_text' => NULL)), - array('(body_html|body_text)' => '/Field "body_html" or "body_text" is required./'), - ); - $es[] = array( - array_merge($defaults, array('body_html' => 'Muahaha. I omit the mandatory tokens!')), - array( + ], + ]; + $es[] = [ + array_merge($defaults, ['body_text' => NULL]), + [], + ]; + $es[] = [ + array_merge($defaults, ['body_html' => NULL]), + [], + ]; + $es[] = [ + array_merge($defaults, ['body_html' => NULL, 'body_text' => NULL]), + ['(body_html|body_text)' => '/Field "body_html" or "body_text" is required./'], + ]; + $es[] = [ + array_merge($defaults, ['body_html' => 'Muahaha. I omit the mandatory tokens!']), + [ 'body_html:domain.address' => '/This message is missing.*postal address/', 'body_html:action.optOutUrl or action.unsubscribeUrl' => '/This message is missing.*Unsubscribe via web page/', - ), - ); - $es[] = array( - array_merge($defaults, array('body_html' => 'I omit the mandatory tokens, but checking them is someone else\'s job!', 'template_type' => 'esperanto')), - array(), - ); + ], + ]; + $es[] = [ + array_merge($defaults, ['body_html' => 'I omit the mandatory tokens, but checking them is someone else\'s job!', 'template_type' => 'esperanto']), + [], + ]; return $es; } diff --git a/civicrm/ext/flexmailer/tests/phpunit/bootstrap.php b/civicrm/ext/flexmailer/tests/phpunit/bootstrap.php index ed4f208fec..75b1128e99 100644 --- a/civicrm/ext/flexmailer/tests/phpunit/bootstrap.php +++ b/civicrm/ext/flexmailer/tests/phpunit/bootstrap.php @@ -32,7 +32,7 @@ if (CIVICRM_UF === 'UnitTests') { */ function cv($cmd, $decode = 'json') { $cmd = 'cv ' . $cmd; - $descriptorSpec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => STDERR); + $descriptorSpec = [0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => STDERR]; $oldOutput = getenv('CV_OUTPUT'); putenv("CV_OUTPUT=json"); $process = proc_open($cmd, $descriptorSpec, $pipes, __DIR__); diff --git a/civicrm/ext/greenwich/greenwich.civix.php b/civicrm/ext/greenwich/greenwich.civix.php index 2c4dfb1309..97bf46e4ea 100644 --- a/civicrm/ext/greenwich/greenwich.civix.php +++ b/civicrm/ext/greenwich/greenwich.civix.php @@ -133,8 +133,8 @@ function _greenwich_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/greenwich/info.xml b/civicrm/ext/greenwich/info.xml index ff1246fbfd..58e0a9454c 100644 --- a/civicrm/ext/greenwich/info.xml +++ b/civicrm/ext/greenwich/info.xml @@ -15,13 +15,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-07-21</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <tags> <tag>mgmt:hidden</tag> </tags> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <classloader> <psr0 prefix="CRM_" path="."/> @@ -29,6 +29,6 @@ </classloader> <civix> <namespace>CRM/Greenwich</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom.php b/civicrm/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom.php index 942cfea4aa..d9793ecb2a 100644 --- a/civicrm/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom.php +++ b/civicrm/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom.php @@ -16,7 +16,10 @@ */ class CRM_Contact_Form_Search_Custom extends CRM_Contact_Form_Search { - protected $_customClass = NULL; + /** + * @var CRM_Contact_Form_Search_Custom_Base + */ + protected $_customClass; public function preProcess() { // SearchFormName is deprecated & to be removed - the replacement is for the task to @@ -30,11 +33,7 @@ class CRM_Contact_Form_Search_Custom extends CRM_Contact_Form_Search { $ssID = CRM_Utils_Request::retrieve('ssID', 'Integer', $this); $gID = CRM_Utils_Request::retrieve('gid', 'Integer', $this); - list( - $this->_customSearchID, - $this->_customSearchClass, - $formValues - ) = CRM_Contact_BAO_SearchCustom::details($csID, $ssID, $gID); + [$this->_customSearchID, $this->_customSearchClass, $formValues] = CRM_Contact_BAO_SearchCustom::details($csID, $ssID, $gID); if (!$this->_customSearchID) { CRM_Core_Error::statusbounce(ts('Could not get details for custom search.')); @@ -107,9 +106,21 @@ class CRM_Contact_Form_Search_Custom extends CRM_Contact_Form_Search { */ public function buildTaskList() { // call the parent method to populate $this->_taskList for the custom search - parent::buildTaskList(); - - return $this->_customClass->buildTaskList($this); + // amtg = 'Add members to group' + if ($this->_context !== 'amtg') { + $taskParams['deletedContacts'] = FALSE; + if ($this->_componentMode == CRM_Contact_BAO_Query::MODE_CONTACTS || $this->_componentMode == CRM_Contact_BAO_Query::MODE_CONTACTSRELATED) { + $taskParams['deletedContacts'] = $this->_formValues['deleted_contacts'] ?? NULL; + } + $className = $this->_modeValue['taskClassName']; + $taskParams['ssID'] = $this->_ssID ?? NULL; + $this->_taskList += $className::permissionedTaskTitles(CRM_Core_Permission::getPermission(), $taskParams); + } + $reflectionClass = new ReflectionClass($this->_customClass); + if ($reflectionClass->getMethod('buildTaskList')->class == get_class($this->_customClass)) { + return $this->_customClass->buildTaskList($this); + } + return $this->_taskList; } public function buildQuickForm() { diff --git a/civicrm/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom/Base.php b/civicrm/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom/Base.php index fa5eddcd28..bdfea1d766 100644 --- a/civicrm/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom/Base.php +++ b/civicrm/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom/Base.php @@ -57,6 +57,7 @@ class CRM_Contact_Form_Search_Custom_Base { * @return array */ public function buildTaskList(CRM_Core_Form_Search $form) { + CRM_Core_Error::deprecatedFunctionWarning('this does not seem reachable'); return $form->getVar('_taskList'); } diff --git a/civicrm/ext/legacycustomsearches/CRM/Utils/QueryFormatter.php b/civicrm/ext/legacycustomsearches/CRM/Utils/QueryFormatter.php index e11fdced70..beedd4efa4 100644 --- a/civicrm/ext/legacycustomsearches/CRM/Utils/QueryFormatter.php +++ b/civicrm/ext/legacycustomsearches/CRM/Utils/QueryFormatter.php @@ -283,7 +283,7 @@ class CRM_Utils_QueryFormatter { //Return if searched string ends with an unsupported operator. //Or if the string contains an invalid joint occurrence of operators. foreach ($operators as $val) { - if ($text == '@' || CRM_Utils_String::endsWith($text, $val) || preg_match("/[{$expression}]{2,}/", $text)) { + if ($text == '@' || str_ends_with($text, $val) || preg_match("/[{$expression}]{2,}/", $text)) { $csid = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', 'CRM_Contact_Form_Search_Custom_FullText', 'value', 'name'); $url = CRM_Utils_System::url("civicrm/contact/search/custom", "csid={$csid}&reset=1"); $operators = implode("', '", $operators); diff --git a/civicrm/ext/legacycustomsearches/info.xml b/civicrm/ext/legacycustomsearches/info.xml index 10ff14c522..5b66be4c8b 100644 --- a/civicrm/ext/legacycustomsearches/info.xml +++ b/civicrm/ext/legacycustomsearches/info.xml @@ -15,10 +15,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2021-07-25</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>This is our old search system which has limited support. All new effort is on SearchKit</comments> <classloader> @@ -28,11 +28,11 @@ <mixins> <mixin>menu-xml@1.0.0</mixin> <mixin>mgd-php@1.0.0</mixin> - <mixin>smarty-v2@1.0.0</mixin> + <mixin>smarty-v2@1.0.1</mixin> <mixin>setting-php@1.0.0</mixin> </mixins> <civix> <namespace>CRM/Legacycustomsearches</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/legacycustomsearches/legacycustomsearches.civix.php b/civicrm/ext/legacycustomsearches/legacycustomsearches.civix.php index ffcb4eeb94..ac3bca24f3 100644 --- a/civicrm/ext/legacycustomsearches/legacycustomsearches.civix.php +++ b/civicrm/ext/legacycustomsearches/legacycustomsearches.civix.php @@ -133,8 +133,8 @@ function _legacycustomsearches_civix_insert_navigation_menu(&$menu, $path, $item if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/legacycustomsearches/templates/CRM/Contact/Form/Search/Custom/ActivitySearch.tpl b/civicrm/ext/legacycustomsearches/templates/CRM/Contact/Form/Search/Custom/ActivitySearch.tpl index ff69a607a9..fe35dced90 100644 --- a/civicrm/ext/legacycustomsearches/templates/CRM/Contact/Form/Search/Custom/ActivitySearch.tpl +++ b/civicrm/ext/legacycustomsearches/templates/CRM/Contact/Form/Search/Custom/ActivitySearch.tpl @@ -60,8 +60,8 @@ <thead class="sticky"> <th scope="col" title="Select All Rows">{$form.toggleSelect.html}</th> {foreach from=$columnHeaders item=header} - {if ($header.sort eq 'activity_id') or ($header.sort eq 'case_id') } - {elseif ($header.sort eq 'sort_name') or ($header.sort eq 'activity_status_id') or ($header.sort eq 'activity_type_id') or ($header.sort eq 'activity_subject') or ($header.sort eq 'source_contact') or ($header.SORT eq 'activity_date') or ($header.name eq null) } + {if ($header.sort eq 'activity_id') or ($header.sort eq 'case_id')} + {elseif ($header.sort eq 'sort_name') or ($header.sort eq 'activity_status_id') or ($header.sort eq 'activity_type_id') or ($header.sort eq 'activity_subject') or ($header.sort eq 'source_contact') or ($header.SORT eq 'activity_date') or ($header.name eq null)} <th scope="col"> {if $header.sort} {assign var='key' value=$header.sort} @@ -81,13 +81,13 @@ {assign var=cbName value=$row.checkbox} <td>{$form.$cbName.html}</td> {foreach from=$columnHeaders item=header} - {if ($header.sort eq 'sort_name') or ($header.sort eq 'activity_status_id') or ($header.sort eq 'activity_type_id') or ($header.sort eq 'activity_subject') or ($header.sort eq 'source_contact') or ($header.SORT eq 'activity_date') or ($header.name eq null) } + {if ($header.sort eq 'sort_name') or ($header.sort eq 'activity_status_id') or ($header.sort eq 'activity_type_id') or ($header.sort eq 'activity_subject') or ($header.sort eq 'source_contact') or ($header.SORT eq 'activity_date') or ($header.name eq null)} {assign var=fName value=$header.sort} {if $fName eq 'sort_name'} <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`"}">{$row.sort_name}</a></td> {elseif $fName eq 'activity_subject'} <td> - {if $row.case_id } + {if $row.case_id} <a href="{crmURL p='civicrm/case/activity/view' q="reset=1&aid=`$row.activity_id`&cid=`$row.contact_id`&caseID=`$row.case_id`"}" title="{ts}View activity details{/ts}"> {else} <a href="{crmURL p='civicrm/contact/view/activity' q="atype=`$row.activity_type_id`&action=view&reset=1&id=`$row.activity_id`&cid=`$row.contact_id`"}" title="{ts}View activity details{/ts}"> diff --git a/civicrm/ext/legacycustomsearches/templates/CRM/Contact/Form/Search/Custom/FullText.tpl b/civicrm/ext/legacycustomsearches/templates/CRM/Contact/Form/Search/Custom/FullText.tpl index 1c58d077f2..8a80e9d2ed 100644 --- a/civicrm/ext/legacycustomsearches/templates/CRM/Contact/Form/Search/Custom/FullText.tpl +++ b/civicrm/ext/legacycustomsearches/templates/CRM/Contact/Form/Search/Custom/FullText.tpl @@ -37,7 +37,7 @@ {* @TODO: This is confusing - the variable `table` is already set and used above, and now we set it again to something that is technically different but has the same value, except on a blank form where it doesn't exist, but effectively then is the same value that it already has which is ''. So do we need this line even? *} {if $form.table.value && (array_key_exists(0, $form.table.value))}{assign var=table value=$form.table.value.0}{/if} {assign var=text value=$form.text.value} -{if !empty($summary.Contact) } +{if !empty($summary.Contact)} <div class="section"> {* Search request has returned 1 or more matching rows. Display results. *} <h3>{ts}Contacts{/ts} @@ -75,7 +75,7 @@ </div> {/if} -{if !empty($summary.Activity) } +{if !empty($summary.Activity)} <div class="section"> {* Search request has returned 1 or more matching rows. Display results. *} @@ -115,7 +115,7 @@ </td> {if $allowFileSearch}<td>{$row.fileHtml}</td>{/if} <td> - {if $row.case_id } + {if $row.case_id} <a href="{crmURL p='civicrm/case/activity/view' q="reset=1&aid=`$row.activity_id`&cid=`$row.client_id`&caseID=`$row.case_id`&context=fulltext&key=`$qfKey`"}"> {else} @@ -138,7 +138,7 @@ </div> {/if} -{if !empty($summary.Case) } +{if !empty($summary.Case)} <div class="section"> {* Search request has returned 1 or more matching rows. Display results. *} <h3>{ts}Cases{/ts} @@ -195,7 +195,7 @@ </div> {/if} -{if !empty($summary.Contribution) } +{if !empty($summary.Contribution)} <div class="section"> {* Search request has returned 1 or more matching rows. Display results. *} @@ -249,7 +249,7 @@ </div> {/if} -{if !empty($summary.Participant) } +{if !empty($summary.Participant)} <div class="section"> {* Search request has returned 1 or more matching rows. *} @@ -305,7 +305,7 @@ </div> {/if} -{if !empty($summary.Membership) } +{if !empty($summary.Membership)} <div class="section"> {* Search request has returned 1 or more matching rows. *} @@ -362,7 +362,7 @@ </div> {/if} -{if !empty($summary.File) } +{if !empty($summary.File)} <div class="section"> {* Search request has returned 1 or more matching rows. *} diff --git a/civicrm/ext/message_admin/CRM/MessageAdmin/Page/MsgtplBasePage.php b/civicrm/ext/message_admin/CRM/MessageAdmin/Page/MsgtplBasePage.php index 32a72afe5b..390b1a3cc2 100644 --- a/civicrm/ext/message_admin/CRM/MessageAdmin/Page/MsgtplBasePage.php +++ b/civicrm/ext/message_admin/CRM/MessageAdmin/Page/MsgtplBasePage.php @@ -25,9 +25,9 @@ class CRM_MessageAdmin_Page_MsgtplBasePage extends CRM_Core_Page { /** @var \Civi\Angular\AngularLoader $loader */ $loader = \Civi::service('angularjs.loader'); $loader->addModules(['crmMsgadm']); - $loader->useApp(array( + $loader->useApp([ 'defaultRoute' => '/user', - )); + ]); parent::run(); } diff --git a/civicrm/ext/message_admin/info.xml b/civicrm/ext/message_admin/info.xml index 22b66e6043..7c25a93830 100644 --- a/civicrm/ext/message_admin/info.xml +++ b/civicrm/ext/message_admin/info.xml @@ -15,10 +15,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2021-06-12</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>alpha</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <requires> <ext>org.civicrm.afform</ext> @@ -31,10 +31,10 @@ <mixins> <mixin>ang-php@1.0.0</mixin> <mixin>menu-xml@1.0.0</mixin> - <mixin>smarty-v2@1.0.0</mixin> + <mixin>smarty-v2@1.0.1</mixin> </mixins> <civix> <namespace>CRM/MessageAdmin</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/message_admin/message_admin.civix.php b/civicrm/ext/message_admin/message_admin.civix.php index 78da356905..432521c56e 100644 --- a/civicrm/ext/message_admin/message_admin.civix.php +++ b/civicrm/ext/message_admin/message_admin.civix.php @@ -133,8 +133,8 @@ function _message_admin_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/oauth-client/CRM/OAuth/BAO/OAuthContactToken.php b/civicrm/ext/oauth-client/CRM/OAuth/BAO/OAuthContactToken.php index 69228fb622..46401c6d1f 100644 --- a/civicrm/ext/oauth-client/CRM/OAuth/BAO/OAuthContactToken.php +++ b/civicrm/ext/oauth-client/CRM/OAuth/BAO/OAuthContactToken.php @@ -97,9 +97,12 @@ class CRM_OAuth_BAO_OAuthContactToken extends CRM_OAuth_DAO_OAuthContactToken { } /** + * @param string|null $entityName + * @param int|null $userId + * @param array $conditions * @inheritDoc */ - public function addSelectWhereClause() { + public function addSelectWhereClause(string $entityName = NULL, int $userId = NULL, array $conditions = []): array { $clauses = []; $loggedInContactID = CRM_Core_Session::getLoggedInContactID(); @@ -109,13 +112,13 @@ class CRM_OAuth_BAO_OAuthContactToken extends CRM_OAuth_DAO_OAuthContactToken { } // With 'manage my' permission, limit to just the current user elseif ($loggedInContactID && CRM_Core_Permission::check(['manage my OAuth contact tokens'])) { - $clauses['contact_id'] = "= $loggedInContactID"; + $clauses['contact_id'][] = "= $loggedInContactID"; } // No permission, return nothing else { - $clauses['contact_id'] = "= -1"; + $clauses['contact_id'][] = "= -1"; } - CRM_Utils_Hook::selectWhereClause($this, $clauses); + CRM_Utils_Hook::selectWhereClause($this, $clauses, $userId, $conditions); return $clauses; } diff --git a/civicrm/ext/oauth-client/Civi/Api4/Action/OAuthClient/AbstractGrantAction.php b/civicrm/ext/oauth-client/Civi/Api4/Action/OAuthClient/AbstractGrantAction.php index a5b2240cad..bc9106e332 100644 --- a/civicrm/ext/oauth-client/Civi/Api4/Action/OAuthClient/AbstractGrantAction.php +++ b/civicrm/ext/oauth-client/Civi/Api4/Action/OAuthClient/AbstractGrantAction.php @@ -47,10 +47,6 @@ abstract class AbstractGrantAction extends \Civi\Api4\Generic\AbstractBatchActio */ private $clientDef = NULL; - public function __construct($entityName, $actionName) { - parent::__construct($entityName, $actionName, ['*']); - } - /** * @throws \CRM_Core_Exception */ diff --git a/civicrm/ext/oauth-client/Civi/Api4/Action/OAuthSessionToken/Delete.php b/civicrm/ext/oauth-client/Civi/Api4/Action/OAuthSessionToken/Delete.php new file mode 100644 index 0000000000..126847d7aa --- /dev/null +++ b/civicrm/ext/oauth-client/Civi/Api4/Action/OAuthSessionToken/Delete.php @@ -0,0 +1,33 @@ +<?php + +namespace Civi\Api4\Action\OAuthSessionToken; + +use Civi\Api4\Generic\BasicBatchAction; +use Civi\Api4\Generic\Result; + +/** + * Delete one or more $ENTITIES. + * + * If a `where` parameter is given, it is used to restrict which $ENTITIES + * are deleted. Otherwise all are deleted. + */ +class Delete extends BasicBatchAction { + /** + * Criteria for selecting $ENTITIES to delete. This can be left empty, in + * which case all $ENTITIES will be deleted. + * + * @var array + */ + protected $where = []; + + protected function processBatch(Result $result, array $items) { + $session = \CRM_Core_Session::singleton(); + $allTokens = $session->get('OAuthSessionTokens') ?? []; + foreach ($items as $item) { + unset($allTokens[$item['cardinal']]); + $result[] = $item; + } + $session->set('OAuthSessionTokens', $allTokens); + } + +} diff --git a/civicrm/ext/oauth-client/Civi/Api4/Action/OAuthSysToken/Refresh.php b/civicrm/ext/oauth-client/Civi/Api4/Action/OAuthSysToken/Refresh.php index 3c75a94556..5f7164e9cd 100644 --- a/civicrm/ext/oauth-client/Civi/Api4/Action/OAuthSysToken/Refresh.php +++ b/civicrm/ext/oauth-client/Civi/Api4/Action/OAuthSysToken/Refresh.php @@ -41,10 +41,6 @@ class Refresh extends BasicBatchAction { private $selectFields = ['id', 'client_id', 'access_token', 'refresh_token', 'expires', 'token_type', 'raw']; private $providers = []; - public function __construct($entityName, $actionName) { - parent::__construct($entityName, $actionName); - } - protected function getSelect() { return $this->selectFields; } diff --git a/civicrm/ext/oauth-client/Civi/Api4/OAuthSessionToken.php b/civicrm/ext/oauth-client/Civi/Api4/OAuthSessionToken.php new file mode 100644 index 0000000000..35ed707032 --- /dev/null +++ b/civicrm/ext/oauth-client/Civi/Api4/OAuthSessionToken.php @@ -0,0 +1,108 @@ +<?php + +namespace Civi\Api4; + +/** + * OAuth Access Tokens stored in the session + * + * @see https://docs.civicrm.org/dev/en/latest/framework/oauth/#model-token + * + * @primaryKey cardinal + * @searchable none + * @since 5.67 + * @package Civi\Api4 + */ +class OAuthSessionToken extends Generic\AbstractEntity { + + /** + * @param bool $checkPermissions + * @return \Civi\Api4\Generic\BasicCreateAction + */ + public static function create($checkPermissions = TRUE): Generic\BasicCreateAction { + $action = new Generic\BasicCreateAction( + static::getEntityName(), + __FUNCTION__, + function ($item) { + $session = \CRM_Core_Session::singleton(); + $allTokens = $session->get('OAuthSessionTokens') ?? []; + $cardinal = ($session->get('OAuthSessionTokenCount') ?? 0) + 1; + $item['cardinal'] = $cardinal; + $allTokens[$cardinal] = $item; + $session->set('OAuthSessionTokens', $allTokens); + $session->set('OAuthSessionTokenCount', $cardinal); + return $item; + }); + return $action->setCheckPermissions($checkPermissions); + } + + /** + * @param bool $checkPermissions + * @return Generic\BasicBatchAction + */ + public static function delete($checkPermissions = TRUE): Generic\BasicBatchAction { + $action = new Action\OAuthSessionToken\Delete(static::getEntityName(), __FUNCTION__); + return $action->setCheckPermissions($checkPermissions); + } + + /** + * @param bool $checkPermissions + * @return Generic\BasicGetAction + */ + public static function get($checkPermissions = TRUE): Generic\BasicGetAction { + $action = new Generic\BasicGetAction(static::getEntityName(), __FUNCTION__, function () { + $session = \CRM_Core_Session::singleton(); + return $session->get('OAuthSessionTokens') ?? []; + }); + return $action->setCheckPermissions($checkPermissions); + } + + /** + * @param bool $checkPermissions + * @return Generic\BasicGetFieldsAction + */ + public static function getFields($checkPermissions = TRUE) { + $action = new Generic\BasicGetFieldsAction(static::getEntityName(), __FUNCTION__, function () { + return [ + [ + 'name' => 'client_id', + 'required' => TRUE, + 'data_type' => 'Integer', + 'fk_entity' => 'OAuthClient', + ], + [ + 'name' => 'cardinal', + 'readonly' => TRUE, + 'data_type' => 'Integer', + 'description' => 'Order in which the token was created within the current session. Unique within the session.', + ], + ['name' => 'grant_type'], + ['name' => 'tag'], + ['name' => 'scopes'], + ['name' => 'token_type'], + ['name' => 'access_token'], + ['name' => 'refresh_token'], + ['name' => 'expires'], + ['name' => 'storage'], + ['name' => 'resource_owner_name'], + ['name' => 'resource_owner'], + ['name' => 'raw'], + ]; + }); + return $action->setCheckPermissions($checkPermissions); + } + + /** + * @return array + */ + public static function permissions() { + return [ + "meta" => ["access CiviCRM"], + "default" => ["administer CiviCRM data"], + ]; + } + + protected static function getEntityTitle(bool $plural = FALSE): string { + return $plural ? ts('OAuth Session Tokens') : ts('OAuth Session Token'); + } + +} diff --git a/civicrm/ext/oauth-client/Civi/OAuth/CiviGenericProvider.php b/civicrm/ext/oauth-client/Civi/OAuth/CiviGenericProvider.php index 6edd596a0b..9a284cdaef 100644 --- a/civicrm/ext/oauth-client/Civi/OAuth/CiviGenericProvider.php +++ b/civicrm/ext/oauth-client/Civi/OAuth/CiviGenericProvider.php @@ -14,9 +14,8 @@ use League\OAuth2\Client\Token\AccessToken; * may prefer "prompt" nowadays. * - Allow one to fetch claims about the resource-owner from the `id_token` * supported by OpenID Connect. This reduces the need for extra round-trips - * and proprietary scopes+URLs. To use this, set the the option: - * - * "urlResourceOwnerDetails": "{{use_id_token}}", + * and proprietary scopes+URLs. To use this, set the option: + * "urlResourceOwnerDetails": "{{use_id_token}}", * - Allow support for {{tenant}} token in provider URLs, if the provider has * the 'tenancy' option set to TRUE (eg: ms-exchange). */ diff --git a/civicrm/ext/oauth-client/Civi/OAuth/OAuthTokenFacade.php b/civicrm/ext/oauth-client/Civi/OAuth/OAuthTokenFacade.php index 679599c0e3..45718390e9 100644 --- a/civicrm/ext/oauth-client/Civi/OAuth/OAuthTokenFacade.php +++ b/civicrm/ext/oauth-client/Civi/OAuth/OAuthTokenFacade.php @@ -6,7 +6,7 @@ use League\OAuth2\Client\Provider\ResourceOwnerInterface; class OAuthTokenFacade { - const STORAGE_TYPES = ';^OAuth(Sys|Contact)Token$;'; + const STORAGE_TYPES = ';^OAuth(Sys|Contact|Session)Token$;'; /** * Request and store a token. diff --git a/civicrm/ext/oauth-client/Civi/OAuth/TestOAuthDotComProvider.php b/civicrm/ext/oauth-client/Civi/OAuth/TestOAuthDotComProvider.php new file mode 100644 index 0000000000..4badd7609a --- /dev/null +++ b/civicrm/ext/oauth-client/Civi/OAuth/TestOAuthDotComProvider.php @@ -0,0 +1,14 @@ +<?php + +namespace Civi\OAuth; + +use League\OAuth2\Client\Provider\GenericResourceOwner; +use League\OAuth2\Client\Token\AccessToken; + +class TestOAuthDotComProvider extends CiviGenericProvider { + + protected function createResourceOwner(array $response, AccessToken $token): GenericResourceOwner { + return new GenericResourceOwner($response, 'name'); + } + +} diff --git a/civicrm/ext/oauth-client/ang/oauthClientAdmin.aff.json b/civicrm/ext/oauth-client/ang/oauthClientAdmin.aff.json deleted file mode 100644 index dbc4750189..0000000000 --- a/civicrm/ext/oauth-client/ang/oauthClientAdmin.aff.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "title": "OAuth2 Client Administration", - "server_route": "civicrm/admin/oauth", - "permission": "manage OAuth client" -} diff --git a/civicrm/ext/oauth-client/ang/oauthClientAdmin.aff.php b/civicrm/ext/oauth-client/ang/oauthClientAdmin.aff.php new file mode 100644 index 0000000000..9e3783c200 --- /dev/null +++ b/civicrm/ext/oauth-client/ang/oauthClientAdmin.aff.php @@ -0,0 +1,8 @@ +<?php +use CRM_OAuth_ExtensionUtil as E; + +return [ + 'title' => E::ts('OAuth2 Client Administration'), + 'server_route' => 'civicrm/admin/oauth', + 'permission' => ['manage OAuth client'], +]; diff --git a/civicrm/ext/oauth-client/ang/oauthJwtDebug.aff.json b/civicrm/ext/oauth-client/ang/oauthJwtDebug.aff.json deleted file mode 100644 index a0ab1a2891..0000000000 --- a/civicrm/ext/oauth-client/ang/oauthJwtDebug.aff.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "title": "OAuth2 JWT Debug", - "requires": ["unvalidatedJwtDecode", "afCore"], - "server_route": "civicrm/admin/oauth-jwt-debug", - "permission": "manage OAuth client secrets" -} \ No newline at end of file diff --git a/civicrm/ext/oauth-client/ang/oauthJwtDebug.aff.php b/civicrm/ext/oauth-client/ang/oauthJwtDebug.aff.php new file mode 100644 index 0000000000..20710ce96f --- /dev/null +++ b/civicrm/ext/oauth-client/ang/oauthJwtDebug.aff.php @@ -0,0 +1,9 @@ +<?php +use CRM_OAuth_ExtensionUtil as E; + +return [ + 'title' => E::ts('OAuth2 JWT Debug'), + 'requires' => ["unvalidatedJwtDecode", "afCore"], + 'server_route' => 'civicrm/admin/oauth-jwt-debug', + 'permission' => ['manage OAuth client secrets'], +]; diff --git a/civicrm/ext/oauth-client/info.xml b/civicrm/ext/oauth-client/info.xml index 3cf3e9b40c..c4e9d5d8e2 100644 --- a/civicrm/ext/oauth-client/info.xml +++ b/civicrm/ext/oauth-client/info.xml @@ -15,10 +15,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-10-23</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <requires> <ext version="~4.5">org.civicrm.afform</ext> @@ -33,11 +33,11 @@ <mixin>ang-php@1.0.0</mixin> <mixin>menu-xml@1.0.0</mixin> <mixin>setting-php@1.0.0</mixin> - <mixin>smarty-v2@1.0.0</mixin> + <mixin>smarty-v2@1.0.1</mixin> <mixin>entity-types-php@1.0.0</mixin> </mixins> <civix> <namespace>CRM/OAuth</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/oauth-client/oauth_client.civix.php b/civicrm/ext/oauth-client/oauth_client.civix.php index bf8cc5fd0a..3134514b44 100644 --- a/civicrm/ext/oauth-client/oauth_client.civix.php +++ b/civicrm/ext/oauth-client/oauth_client.civix.php @@ -133,8 +133,8 @@ function _oauth_client_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/oauth-client/providers/testoauth.com.json b/civicrm/ext/oauth-client/providers/testoauth.com.json new file mode 100644 index 0000000000..7463f968fc --- /dev/null +++ b/civicrm/ext/oauth-client/providers/testoauth.com.json @@ -0,0 +1,10 @@ +{ + "title": "TestOAuth.com", + "class": "Civi\\OAuth\\TestOAuthDotComProvider", + "options": { + "urlAuthorize": "https://testoauth.com/oauth/authorize", + "urlAccessToken": "https://testoauth.com/oauth/token", + "urlResourceOwnerDetails": "https://testoauth.com/oauth/info", + "scopes": ["read"] + } +} diff --git a/civicrm/ext/oauth-client/tests/phpunit/api/v4/OAuthSessionTokenTest.php b/civicrm/ext/oauth-client/tests/phpunit/api/v4/OAuthSessionTokenTest.php new file mode 100644 index 0000000000..7979155e4f --- /dev/null +++ b/civicrm/ext/oauth-client/tests/phpunit/api/v4/OAuthSessionTokenTest.php @@ -0,0 +1,140 @@ +<?php + +use Civi\Test\HeadlessInterface; +use Civi\Test\HookInterface; +use Civi\Test\TransactionalInterface; + +/** + * Create and read session-specific OAuth tokens + * + * @group headless + */ +class api_v4_OAuthSessionTokenTest extends \PHPUnit\Framework\TestCase implements + HeadlessInterface, + HookInterface, + TransactionalInterface { + + // these two traits together give us createLoggedInUser() + use Civi\Test\ContactTestTrait; + use \Civi\Test\Api3TestTrait; + + public function setUpHeadless(): \Civi\Test\CiviEnvBuilder { + return \Civi\Test::headless()->install('oauth-client')->apply(); + } + + public function setUp(): void { + parent::setUp(); + $this->assertEquals(0, CRM_Core_DAO::singleValueQuery('SELECT count(*) FROM civicrm_oauth_client')); + $this->assertNull(CRM_Core_Session::singleton()->get('OAuthSessionTokens') ?? NULL); + } + + protected function tearDown(): void { + CRM_Core_Session::singleton()->reset(); + parent::tearDown(); + } + + private function createClient(): ?array { + $createClient = Civi\Api4\OAuthClient::create(FALSE)->setValues( + [ + 'provider' => 'test_example_1', + 'guid' => "example-client-guid", + 'secret' => "example-secret", + ] + )->execute(); + $client = $createClient->first(); + $this->assertTrue(is_numeric($client['id'])); + return $client; + } + + private function getTestTokenCreateValues($client, $secretPrefix) { + return [ + 'client_id' => $client['id'], + 'access_token' => "$secretPrefix-user-access-token", + 'refresh_token' => "$secretPrefix-user-refresh-token", + ]; + } + + public function testAnonymousSessionCanHoldToken() { + self::assertNull(CRM_Core_Session::getLoggedInContactID()); + + $client = $this->createClient(); + $tokenCreateValues = $this->getTestTokenCreateValues($client, 'anon'); + + Civi\Api4\OAuthSessionToken::create(FALSE) + ->setValues($tokenCreateValues) + ->execute(); + + $retrievedToken = \Civi\Api4\OAuthSessionToken::get(FALSE) + ->addWhere('client_id', '=', $client['id']) + ->execute() + ->first(); + + $this->assertEquals($client['id'], $retrievedToken['client_id']); + $this->assertEquals($tokenCreateValues['access_token'], $retrievedToken['access_token']); + $this->assertEquals($tokenCreateValues['refresh_token'], $retrievedToken['refresh_token']); + } + + public function testAnonymousSessionTokensCanBeDeleted() { + self::assertNull(CRM_Core_Session::getLoggedInContactID()); + + $client = $this->createClient(); + $tokenCreateValues = $this->getTestTokenCreateValues($client, 'anon'); + + Civi\Api4\OAuthSessionToken::create(FALSE) + ->setValues($tokenCreateValues) + ->execute(); + + \Civi\Api4\OAuthSessionToken::delete(FALSE) + ->execute(); + + $retrievedTokens = \Civi\Api4\OAuthSessionToken::get(FALSE) + ->execute() + ->first(); + + $this->assertEmpty($retrievedTokens); + } + + public function testLoggedInSessionCanHoldToken() { + $this->createLoggedInUser(); + self::assertIsNumeric(CRM_Core_Session::getLoggedInContactID()); + + $client = $this->createClient(); + $tokenCreateValues = $this->getTestTokenCreateValues($client, 'loggedIn'); + + Civi\Api4\OAuthSessionToken::create(FALSE) + ->setValues($tokenCreateValues) + ->execute(); + + $retrievedToken = \Civi\Api4\OAuthSessionToken::get(FALSE) + ->addWhere('client_id', '=', $client['id']) + ->execute() + ->first(); + + $this->assertEquals($client['id'], $retrievedToken['client_id']); + $this->assertEquals($tokenCreateValues['access_token'], $retrievedToken['access_token']); + $this->assertEquals($tokenCreateValues['refresh_token'], $retrievedToken['refresh_token']); + } + + public function testLoggingOutDeletesTokens() { + $this->createLoggedInUser(); + self::assertIsNumeric(CRM_Core_Session::getLoggedInContactID()); + + $client = $this->createClient(); + $tokenCreateValues = $this->getTestTokenCreateValues($client, 'loggedIn'); + + Civi\Api4\OAuthSessionToken::create(FALSE) + ->setValues($tokenCreateValues) + ->execute(); + + // log out + CRM_Core_Session::singleton()->reset(); + self::assertNull(CRM_Core_Session::getLoggedInContactID()); + + $retrievedTokens = \Civi\Api4\OAuthSessionToken::get(FALSE) + ->execute() + ->first(); + + $this->assertEmpty($retrievedTokens); + } + +} diff --git a/civicrm/ext/oauth-client/tests/phpunit/bootstrap.php b/civicrm/ext/oauth-client/tests/phpunit/bootstrap.php index 4d64ac46f2..a6f64881db 100644 --- a/civicrm/ext/oauth-client/tests/phpunit/bootstrap.php +++ b/civicrm/ext/oauth-client/tests/phpunit/bootstrap.php @@ -27,7 +27,7 @@ $loader->register(); */ function cv($cmd, $decode = 'json') { $cmd = 'cv ' . $cmd; - $descriptorSpec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => STDERR); + $descriptorSpec = [0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => STDERR]; $oldOutput = getenv('CV_OUTPUT'); putenv("CV_OUTPUT=json"); diff --git a/civicrm/ext/payflowpro/info.xml b/civicrm/ext/payflowpro/info.xml index d438a3d904..730420bc95 100644 --- a/civicrm/ext/payflowpro/info.xml +++ b/civicrm/ext/payflowpro/info.xml @@ -15,10 +15,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2021-04-13</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>This extension is extraction of the original Core Payflow Pro Payment Processor</comments> <classloader> @@ -30,6 +30,6 @@ </mixins> <civix> <namespace>CRM/Payflowpro</namespace> - <format>22.10.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/payflowpro/payflowpro.civix.php b/civicrm/ext/payflowpro/payflowpro.civix.php index ff6316d715..a233c68624 100644 --- a/civicrm/ext/payflowpro/payflowpro.civix.php +++ b/civicrm/ext/payflowpro/payflowpro.civix.php @@ -84,27 +84,17 @@ use CRM_Payflowpro_ExtensionUtil as E; * * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config */ -function _payflowpro_civix_civicrm_config(&$config = NULL) { +function _payflowpro_civix_civicrm_config($config = NULL) { static $configured = FALSE; if ($configured) { return; } $configured = TRUE; - $template = CRM_Core_Smarty::singleton(); - $extRoot = __DIR__ . DIRECTORY_SEPARATOR; - $extDir = $extRoot . 'templates'; - - if (is_array($template->template_dir)) { - array_unshift($template->template_dir, $extDir); - } - else { - $template->template_dir = [$extDir, $template->template_dir]; - } - $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); set_include_path($include_path); + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -114,35 +104,7 @@ function _payflowpro_civix_civicrm_config(&$config = NULL) { */ function _payflowpro_civix_civicrm_install() { _payflowpro_civix_civicrm_config(); - if ($upgrader = _payflowpro_civix_upgrader()) { - $upgrader->onInstall(); - } -} - -/** - * Implements hook_civicrm_postInstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall - */ -function _payflowpro_civix_civicrm_postInstall() { - _payflowpro_civix_civicrm_config(); - if ($upgrader = _payflowpro_civix_upgrader()) { - if (is_callable([$upgrader, 'onPostInstall'])) { - $upgrader->onPostInstall(); - } - } -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall - */ -function _payflowpro_civix_civicrm_uninstall(): void { - _payflowpro_civix_civicrm_config(); - if ($upgrader = _payflowpro_civix_upgrader()) { - $upgrader->onUninstall(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -152,56 +114,7 @@ function _payflowpro_civix_civicrm_uninstall(): void { */ function _payflowpro_civix_civicrm_enable(): void { _payflowpro_civix_civicrm_config(); - if ($upgrader = _payflowpro_civix_upgrader()) { - if (is_callable([$upgrader, 'onEnable'])) { - $upgrader->onEnable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_disable(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable - * @return mixed - */ -function _payflowpro_civix_civicrm_disable(): void { - _payflowpro_civix_civicrm_config(); - if ($upgrader = _payflowpro_civix_upgrader()) { - if (is_callable([$upgrader, 'onDisable'])) { - $upgrader->onDisable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_upgrade(). - * - * @param $op string, the type of operation being performed; 'check' or 'enqueue' - * @param $queue CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks - * - * @return mixed - * based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending) - * for 'enqueue', returns void - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade - */ -function _payflowpro_civix_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - if ($upgrader = _payflowpro_civix_upgrader()) { - return $upgrader->onUpgrade($op, $queue); - } -} - -/** - * @return CRM_Payflowpro_Upgrader - */ -function _payflowpro_civix_upgrader() { - if (!file_exists(__DIR__ . '/CRM/Payflowpro/Upgrader.php')) { - return NULL; - } - else { - return CRM_Payflowpro_Upgrader_Base::instance(); - } + // Based on <compatibility>, this does not currently require mixin/polyfill.php. } /** @@ -220,8 +133,8 @@ function _payflowpro_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; @@ -285,14 +198,3 @@ function _payflowpro_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID } } } - -/** - * (Delegated) Implements hook_civicrm_entityTypes(). - * - * Find any *.entityType.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function _payflowpro_civix_civicrm_entityTypes(&$entityTypes) { - $entityTypes = array_merge($entityTypes, []); -} diff --git a/civicrm/ext/payflowpro/payflowpro.php b/civicrm/ext/payflowpro/payflowpro.php index 3479e41c73..7a30241d23 100644 --- a/civicrm/ext/payflowpro/payflowpro.php +++ b/civicrm/ext/payflowpro/payflowpro.php @@ -23,24 +23,6 @@ function payflowpro_civicrm_install() { _payflowpro_civix_civicrm_install(); } -/** - * Implements hook_civicrm_postInstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall - */ -function payflowpro_civicrm_postInstall() { - _payflowpro_civix_civicrm_postInstall(); -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall - */ -function payflowpro_civicrm_uninstall() { - _payflowpro_civix_civicrm_uninstall(); -} - /** * Implements hook_civicrm_enable(). * @@ -49,32 +31,3 @@ function payflowpro_civicrm_uninstall() { function payflowpro_civicrm_enable() { _payflowpro_civix_civicrm_enable(); } - -/** - * Implements hook_civicrm_disable(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable - */ -function payflowpro_civicrm_disable() { - _payflowpro_civix_civicrm_disable(); -} - -/** - * Implements hook_civicrm_upgrade(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade - */ -function payflowpro_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - return _payflowpro_civix_civicrm_upgrade($op, $queue); -} - -/** - * Implements hook_civicrm_entityTypes(). - * - * Declare entity types provided by this module. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function payflowpro_civicrm_entityTypes(&$entityTypes) { - _payflowpro_civix_civicrm_entityTypes($entityTypes); -} diff --git a/civicrm/ext/payflowpro/tests/phpunit/bootstrap.php b/civicrm/ext/payflowpro/tests/phpunit/bootstrap.php index 5133778c81..63c9148e8e 100644 --- a/civicrm/ext/payflowpro/tests/phpunit/bootstrap.php +++ b/civicrm/ext/payflowpro/tests/phpunit/bootstrap.php @@ -26,7 +26,7 @@ $loader->register(); */ function cv($cmd, $decode = 'json') { $cmd = 'cv ' . $cmd; - $descriptorSpec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => STDERR); + $descriptorSpec = [0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => STDERR]; $oldOutput = getenv('CV_OUTPUT'); putenv("CV_OUTPUT=json"); diff --git a/civicrm/ext/recaptcha/info.xml b/civicrm/ext/recaptcha/info.xml index 1c1e53efea..e655e105bd 100644 --- a/civicrm/ext/recaptcha/info.xml +++ b/civicrm/ext/recaptcha/info.xml @@ -13,13 +13,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2021-04-03</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <tags> <tag>mgmt:hidden</tag> </tags> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <classloader> <psr0 prefix="CRM_" path="."/> @@ -30,10 +30,10 @@ <mixin>setting-php@1.0.0</mixin> <mixin>ang-php@1.0.0</mixin> <mixin>scan-classes@1.0.0</mixin> - <mixin>smarty-v2@1.0.0</mixin> + <mixin>smarty-v2@1.0.1</mixin> </mixins> <civix> <namespace>CRM/Recaptcha</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/recaptcha/recaptcha.civix.php b/civicrm/ext/recaptcha/recaptcha.civix.php index 13f0af1218..6c1d618f1e 100644 --- a/civicrm/ext/recaptcha/recaptcha.civix.php +++ b/civicrm/ext/recaptcha/recaptcha.civix.php @@ -133,8 +133,8 @@ function _recaptcha_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/scheduled_communications/info.xml b/civicrm/ext/scheduled_communications/info.xml index af5ab529bf..d6a8b971c4 100644 --- a/civicrm/ext/scheduled_communications/info.xml +++ b/civicrm/ext/scheduled_communications/info.xml @@ -13,10 +13,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2023-09-04</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>beta</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Click on the chat link above to discuss development, report problems or ask questions.</comments> <classloader> diff --git a/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php b/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php index 78ae7ae59b..02037c290a 100644 --- a/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php +++ b/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php @@ -177,7 +177,7 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { default: if (!empty($data[$key])) { $item = $this->getSelectExpression($key); - if ($item['expr'] instanceof SqlField && $item['fields'][$key]['fk_entity'] === 'File') { + if ($item['expr'] instanceof SqlField && isset($item['fields'][$key]) && $item['fields'][$key]['fk_entity'] === 'File') { return $this->generateFileUrl($data[$key]); } } @@ -213,7 +213,7 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { * @return array{val: mixed, links: array, edit: array, label: string, title: string, image: array, cssClass: string} */ private function formatColumn($column, $data) { - $column += ['rewrite' => NULL, 'label' => NULL]; + $column += ['rewrite' => NULL, 'label' => NULL, 'key' => '']; $out = []; switch ($column['type']) { case 'field': @@ -278,7 +278,11 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { if (isset($column['title']) && strlen($column['title'])) { $out['title'] = $this->replaceTokens($column['title'], $data, 'view'); } - $cssClass = $this->getCssStyles($column['cssRules'] ?? [], $data); + $cssClass = []; + // Style rules get applied to entire column if not a link + if (empty($column['link']) && !empty($column['cssRules'])) { + $cssClass = $this->getCssStyles($column['cssRules'], $data); + } if (!empty($column['alignment'])) { $cssClass[] = $column['alignment']; } @@ -286,7 +290,7 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { $out['cssClass'] = implode(' ', $cssClass); } if (!empty($column['icons'])) { - $out['icons'] = $this->getColumnIcons($column['icons'], $data); + $out['icons'] = $this->getColumnIcons($column, $data, $out); } return $out; } @@ -316,15 +320,16 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { * * @param array[] $styleRules * @param array $data + * @param int $index * @return array */ - protected function getCssStyles(array $styleRules, array $data) { + protected function getCssStyles(array $styleRules, array $data, int $index = NULL) { $classes = []; foreach ($styleRules as $clause) { $cssClass = $clause[0] ?? ''; if ($cssClass) { $condition = $this->getRuleCondition(array_slice($clause, 1)); - if (is_null($condition[0]) || (self::filterCompare($data, $condition))) { + if (is_null($condition[0]) || (self::filterCompare($data, $condition, $index))) { $classes[] = $cssClass; } } @@ -339,44 +344,79 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { * If more than one per side is given, latter icons are treated as fallbacks * and only shown if prior ones are missing. * - * @param array{icon: string, field: string, if: array, side: string}[] $icons + * @param array $column * @param array $data + * @param array $out * @return array */ - protected function getColumnIcons(array $icons, array $data) { + protected function getColumnIcons(array $column, array $data, array $out): array { + // Column is either outputting an array of links, or a plain value + // Links are always an array. Value could be, if field is multivalued or aggregated. + $value = $out['links'] ?? $out['val'] ?? NULL; + // Get 0-indexed keys of the values (pad so we have at least one) + $keys = array_pad(array_keys(array_values((array) $value)), 1, 0); $result = []; - // Reverse order so latter icons become fallbacks and earlier ones take priority - foreach (array_reverse($icons) as $icon) { - $iconClass = $icon['icon'] ?? NULL; - if (!$iconClass && !empty($icon['field']) && !empty($data[$icon['field']])) { - // Icon field may be multivalued e.g. contact_sub_type - $iconClass = \CRM_Utils_Array::first(array_filter((array) $data[$icon['field']])); + foreach (['left', 'right'] as $side) { + foreach ($keys as $index) { + $result[$side][$index] = $this->getColumnIcon($column['icons'], $side, $index, $data, is_array($value)); } - if ($iconClass) { - $condition = $this->getRuleCondition($icon['if'] ?? []); - if (!is_null($condition[0]) && !(self::filterCompare($data, $condition))) { + // Drop if empty + if (!array_filter($result[$side])) { + unset($result[$side]); + } + } + return $result; + } + + private function getColumnIcon(array $icons, string $side, int $index, array $data, bool $isMulti): ?string { + // Latter icons are fallbacks, earlier ones take priority + foreach ($icons as $icon) { + $iconClass = NULL; + $icon += ['side' => 'left', 'icon' => NULL]; + if ($icon['side'] !== $side) { + continue; + } + $iconField = !empty($icon['field']) ? $this->renameIfAggregate($icon['field']) : NULL; + if (!empty($iconField) && !empty($data[$iconField])) { + // Icon field may be multivalued e.g. contact_sub_type, or it may be aggregated + // If both base field and icon field are multivalued, use corresponding index + if ($isMulti && is_array($data[$iconField])) { + $iconClass = $data[$iconField][$index] ?? NULL; + } + // Otherwise get a single value + else { + $iconClass = \CRM_Utils_Array::first(array_filter((array) $data[$iconField])); + } + } + $iconClass = $iconClass ?? $icon['icon']; + if ($iconClass && !empty($icon['if'])) { + $condition = $this->getRuleCondition($icon['if'], $isMulti); + if (!is_null($condition[0]) && !(self::filterCompare($data, $condition, $isMulti ? $index : NULL))) { continue; } - $side = $icon['side'] ?? 'left'; - $result[$side] = ['class' => $iconClass, 'side' => $side]; + } + if ($iconClass) { + return $iconClass; } } - return array_values($result); + return NULL; } /** * Returns the condition of a cssRules * * @param array $clause + * @param bool $isMulti * @return array */ - protected function getRuleCondition($clause) { + protected function getRuleCondition($clause, bool $isMulti = FALSE): array { $fieldKey = $clause[0] ?? NULL; - // For fields used in group by, add aggregation and change operator to CONTAINS - // NOTE: This doesn't support any other operators for aggregated fields. + // For fields used in group by, add aggregation and change comparison operator to CONTAINS if ($fieldKey && $this->canAggregate($fieldKey)) { - $clause[1] = 'CONTAINS'; - $fieldKey = 'GROUP_CONCAT_' . str_replace(['.', ':'], '_', $clause[0]); + if (!$isMulti && !empty($clause[1]) && !in_array($clause[1], ['IS EMPTY', 'IS NOT EMPTY'], TRUE)) { + $clause[1] = 'CONTAINS'; + } + $fieldKey = $this->renameIfAggregate($fieldKey); } return [$fieldKey, $clause[1] ?? 'IS NOT EMPTY', $clause[2] ?? NULL]; } @@ -393,7 +433,7 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { $fieldKey = $clause[1] ?? NULL; if ($fieldKey) { // For fields used in group by, add aggregation - $select[] = $this->canAggregate($fieldKey) ? "GROUP_CONCAT($fieldKey) AS GROUP_CONCAT_" . str_replace(['.', ':'], '_', $fieldKey) : $fieldKey; + $select[] = $this->renameIfAggregate($fieldKey, TRUE); } } return $select; @@ -409,12 +449,12 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { $select = []; foreach ($icons as $icon) { if (!empty($icon['field'])) { - $select[] = $icon['field']; + $select[] = $this->renameIfAggregate($icon['field'], TRUE); } $fieldKey = $icon['if'][0] ?? NULL; if ($fieldKey) { // For fields used in group by, add aggregation - $select[] = $this->canAggregate($fieldKey) ? "GROUP_CONCAT($fieldKey) AS GROUP_CONCAT_" . str_replace(['.', ':'], '_', $fieldKey) : $fieldKey; + $select[] = $this->renameIfAggregate($fieldKey, TRUE); } } return $select; @@ -432,6 +472,12 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { foreach ((array) $value as $index => $val) { $link = $this->formatLink($column['link'], $data, $val, $index); if ($link) { + // Style rules get appled to each link + if (!empty($column['cssRules'])) { + $link += ['style' => '']; + $css = $this->getCssStyles($column['cssRules'], $data, $index); + $link['style'] = trim($link['style'] . ' ' . implode(' ', $css)); + } $links[] = $link; } } @@ -461,8 +507,8 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { return $out; } - private function formatLink(array $link, array $data, string $text = NULL, $index = 0): ?array { - $link = $this->getLinkInfo($link, $data, $index); + protected function formatLink(array $link, array $data, string $text = NULL, $index = 0): ?array { + $link = $this->getLinkInfo($link); if (!$this->checkLinkAccess($link, $data, $index)) { return NULL; } @@ -471,13 +517,19 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { $path = $this->replaceTokens($link['path'], $data, 'url', $index); if ($path) { $link['url'] = $this->getUrl($path); - $keys = ['url', 'text', 'title', 'target', 'style', 'icon']; + $keys = ['url', 'text', 'title', 'target', 'icon', 'style', 'autoOpen']; + } + elseif (!empty($link['task'])) { + $keys = ['task', 'text', 'title', 'icon', 'style']; } else { - $keys = ['task', 'text', 'title', 'style', 'icon']; + return NULL; } $link = array_intersect_key($link, array_flip($keys)); - return array_filter($link); + return array_filter($link, function($value) { + // "0" is a valid title + return $value || (is_string($value) && strlen($value)); + }); } /** @@ -502,6 +554,10 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { if (!$actionName) { return FALSE; } + if ($actionName === 'create') { + // No record to check for this action and getPermittedLinkAction says it's allowed; we're good. + return TRUE; + } $idField = CoreUtil::getIdFieldName($link['entity']); $idKey = $this->getIdKeyName($link['entity']); $id = $data[$link['prefix'] . $idKey] ?? NULL; @@ -517,6 +573,8 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { $apiRequest = Request::create($link['entity'], $actionName, ['version' => 4]); return CoreUtil::checkAccessRecord($apiRequest, $values); } + // No id so cannot possibly update or delete record + return FALSE; } return TRUE; } @@ -535,11 +593,19 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { private function getPermittedLinkAction(string $entityName, string $actionName): ?string { // Load api actions and cache for performance (this function may be called hundreds of times per request) if (!isset($this->entityActions[$entityName])) { + if (!CoreUtil::entityExists($entityName)) { + return NULL; + } $this->entityActions[$entityName] = [ 'all' => civicrm_api4($entityName, 'getActions', ['checkPermissions' => FALSE])->column('name'), 'allowed' => civicrm_api4($entityName, 'getActions', ['checkPermissions' => TRUE])->column('name'), ]; } + // Map CRM_Core_Action names to API action names :/ + $map = [ + 'add' => 'create', + ]; + $actionName = $map[$actionName] ?? $actionName; // Action exists and is permitted if (in_array($actionName, $this->entityActions[$entityName]['allowed'], TRUE)) { return $actionName; @@ -567,16 +633,22 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { * @param array $data * @return bool */ - private function checkLinkCondition(array $item, array $data): bool { + protected function checkLinkCondition(array $item, array $data): bool { if (empty($item['condition'][0]) || empty($item['condition'][1])) { return TRUE; } $op = $item['condition'][1]; if ($item['condition'][0] === 'check user permission') { - if (!empty($item['condition'][2]) && !\CRM_Core_Permission::check($item['condition'][2])) { - return $op !== '='; + // No permission == open access + if (empty($item['condition'][2])) { + return TRUE; } - return TRUE; + $permissions = (array) $item['condition'][2]; + if ($op === 'CONTAINS') { + // Place conditions in OR array for CONTAINS operator + $permissions = [$permissions]; + } + return \CRM_Core_Permission::check($permissions) == ($op !== '!='); } // Convert the conditional value of 'current_domain' into an actual value that filterCompare can work with if ($item['condition'][2] === 'current_domain') { @@ -591,8 +663,8 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { } /** - * @param array{path: string, entity: string, action: string, task: string, join: string, target: string, style: string, icon: string, title: string, text: string} $link - * @return array{path: string, entity: string, action: string, task: string, join: string, target: string, style: string, icon: string, title: string, text: string, prefix: string} + * @param array{path: string, entity: string, action: string, task: string, join: string, target: string, style: string, title: string, text: string} $link + * @return array{path: string, entity: string, action: string, task: string, join: string, target: string, style: string, title: string, text: string, prefix: string} */ private function getLinkInfo(array $link): array { $link += [ @@ -602,10 +674,11 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { 'text' => '', 'title' => '', 'prefix' => '', + 'key' => '', ]; $entity = $link['entity']; - $idKey = $this->getIdKeyName($link['entity']); - if ($entity) { + if ($entity && CoreUtil::entityExists($entity)) { + $idKey = $this->getIdKeyName($entity); // Hack to support links to relationships if ($entity === 'Relationship') { $entity = 'RelationshipCache'; @@ -642,13 +715,15 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { } } elseif (!empty($task['apiBatch']) || !empty($task['uiDialog'])) { - $link['title'] = $link['title'] ?: $task['title']; + if (!strlen($link['title'])) { + $link['title'] = $task['title']; + } // Fill in the api action if known, for the sake of $this->checkLinkAccess $link['action'] = $task['apiBatch']['action'] ?? NULL; } } + $link['key'] = $link['prefix'] . $idKey; } - $link['key'] = $link['prefix'] . $idKey; return $link; } @@ -1255,7 +1330,7 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { if (!$this->getSelectExpression($expr)) { // Tokens for aggregated columns start with 'GROUP_CONCAT_' if (strpos($expr, 'GROUP_CONCAT_') === 0) { - $expr = 'GROUP_CONCAT(' . $this->getJoinFromAlias(explode('_', $expr, 3)[2]) . ') AS ' . $expr; + $expr = 'GROUP_CONCAT(UNIQUE ' . $this->getJoinFromAlias(explode('_', $expr, 3)[2]) . ') AS ' . $expr; } $this->_apiParams['select'][] = $expr; // Force-reset cache so it gets rebuilt with the new select param @@ -1320,14 +1395,17 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { if ($filterAttr && is_string($filterAttr) && $filterAttr[0] === '{') { foreach (\CRM_Utils_JS::decode($filterAttr) as $filterKey => $filterVal) { // Automatically apply filters from the markup if they have a value - if ($filterVal !== NULL) { + // Only do this if there's one instance of the display on the form + if ($afform['searchDisplay']['count'] === 1 && $filterVal !== NULL) { unset($this->filters[$filterKey]); if ($this->hasValue($filterVal)) { $this->applyFilter(explode(',', $filterKey), $filterVal); } } // If it's a javascript variable it will have come back from decode() as NULL; - // whitelist it to allow it to be passed to this api from javascript. + // Or if there's more than one instance of the display on the form, they might + // use different filters. + // Just whitelist it so the value passed in will be accepted. else { $filterKeys[] = $filterKey; } @@ -1355,22 +1433,37 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { if (empty($afform['layout'])) { return FALSE; } + $afform['searchDisplay'] = NULL; // Get all search display fieldsets (which will have an empty value for the af-fieldset attribute) $fieldsets = \CRM_Utils_Array::findAll($afform['layout'], ['af-fieldset' => '']); // As a fallback, search the entire afform in case the search display is not in a fieldset $fieldsets['form'] = $afform['layout']; - // Validate that the afform contains this search display + // Search for one or more instance of this search display foreach ($fieldsets as $key => $fieldset) { - $afform['searchDisplay'] = \CRM_Utils_Array::findAll( - $fieldset, - ['#tag' => $this->display['type:name'], 'search-name' => $this->savedSearch['name'], 'display-name' => $this->display['name']] - )[0] ?? NULL; + if ($key === 'form' && $afform['searchDisplay']) { + // Already found in a fieldset, don't search the whole form + continue; + } + $displays = \CRM_Utils_Array::findAll( + $fieldset, + ['#tag' => $this->display['type:name'], 'search-name' => $this->savedSearch['name'], 'display-name' => $this->display['name']] + ); + if (!$displays) { + continue; + } + // Already found, just increment the count if ($afform['searchDisplay']) { + $afform['searchDisplay']['count'] += count($displays); + } + else { + $afform['searchDisplay'] = $displays[0]; + $afform['searchDisplay']['count'] = count($displays); // Set the fieldset for this display (if it is in one and we haven't fallen back to the whole form) + // TODO: This just uses the first fieldset, but there could be multiple. Potentially could use filters to match it. $afform['searchDisplay']['fieldset'] = $key === 'form' ? [] : $fieldset; - return $this->_afform = $afform; } } + $this->_afform = $afform; } return $this->_afform; } diff --git a/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/Download.php b/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/Download.php index 34da8c8c76..b0ebdbfeec 100644 --- a/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/Download.php +++ b/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/Download.php @@ -52,12 +52,17 @@ class Download extends AbstractRunAction { protected function processResult(\Civi\Api4\Result\SearchDisplayRunResult $result) { $entityName = $this->savedSearch['api_entity']; $apiParams =& $this->_apiParams; - $settings = $this->display['settings']; + $settings =& $this->display['settings']; - // checking permissions for menu, link or button columns is costly, so remove them early - foreach ($this->display['settings']['columns'] as $index => $col) { + // Checking permissions for menu, link or button columns is costly, so remove them early + foreach ($settings['columns'] as $index => $col) { + // Remove buttons/menus and other column types that cannot be rendered in a spreadsheet if (empty($col['key'])) { - unset($this->display['settings']['columns'][$index]); + unset($settings['columns'][$index]); + } + // Avoid wasting time processing links, editable and other non-printable items from spreadsheet + else { + \CRM_Utils_Array::remove($settings['columns'][$index], 'link', 'editable', 'icons', 'cssClass'); } } diff --git a/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/GetDefault.php b/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/GetDefault.php index cad99c7697..22fe2ac8b9 100644 --- a/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/GetDefault.php +++ b/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/GetDefault.php @@ -146,9 +146,10 @@ class GetDefault extends \Civi\Api4\Generic\AbstractAction { */ public function getLinksMenu() { $menu = []; + $discard = array_flip(['add', 'browse']); $mainEntity = $this->savedSearch['api_entity'] ?? NULL; if ($mainEntity && !$this->canAggregate(CoreUtil::getIdFieldName($mainEntity))) { - foreach (Display::getEntityLinks($mainEntity, TRUE) as $link) { + foreach (array_diff_key(Display::getEntityLinks($mainEntity, TRUE), $discard) as $link) { $link['join'] = NULL; $menu[] = $link; } @@ -158,7 +159,7 @@ class GetDefault extends \Civi\Api4\Generic\AbstractAction { if (!$this->canAggregate($join['alias'] . '.' . CoreUtil::getIdFieldName($join['entity']))) { foreach (array_filter(array_intersect_key($join, $keys)) as $joinEntity) { $joinLabel = $this->getJoinLabel($join['alias']); - foreach (Display::getEntityLinks($joinEntity, $joinLabel) as $link) { + foreach (array_diff_key(Display::getEntityLinks($joinEntity, $joinLabel), $discard) as $link) { $link['join'] = $join['alias']; $menu[] = $link; } diff --git a/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php b/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php index 3a66af498d..21fdf87428 100644 --- a/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php +++ b/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php @@ -5,6 +5,7 @@ namespace Civi\Api4\Action\SearchDisplay; use Civi\API\Request; use Civi\Api4\Query\Api4SelectQuery; use Civi\Api4\Utils\CoreUtil; +use Civi\Api4\Utils\FormattingUtil; /** * Load the results for rendering a SearchDisplay. @@ -119,10 +120,53 @@ class Run extends AbstractRunAction { $result->setCountMatched($apiResult->countFetched()); $apiResult = array_slice((array) $apiResult, 0, $apiParams['limit'] - 1); } + if ($pagerMode === 'page') { + $result->toolbar = $this->formatToolbar(); + } $result->exchangeArray($this->formatResult($apiResult)); $result->labels = $this->filterLabels; } + } + private function formatToolbar(): array { + $toolbar = $data = []; + $settings = $this->display['settings']; + // If no toolbar, early return + if (empty($settings['toolbar']) && empty($settings['addButton']['path'])) { + return []; + } + // There is no row data, but some values can be inferred from query filters + // First pass: gather raw data from the where clause + foreach ($this->_apiParams['where'] as $clause) { + if ($clause[1] === '=' || $clause[1] === 'IN') { + $data[$clause[0]] = $clause[2]; + } + } + // Second pass: format values (because data from first pass could be useful to FormattingUtil) + foreach ($this->_apiParams['where'] as $clause) { + if ($clause[1] === '=' || $clause[1] === 'IN') { + [$fieldPath] = explode(':', $clause[0]); + $fieldSpec = $this->getField($fieldPath); + $data[$fieldPath] = $clause[2]; + if ($fieldSpec) { + FormattingUtil::formatInputValue($data[$fieldPath], $clause[0], $fieldSpec, $data, $clause[1]); + } + } + } + // Support legacy 'addButton' setting + if (empty($settings['toolbar']) && !empty($settings['addButton']['path'])) { + $settings['toolbar'][] = $settings['addButton'] + ['style' => 'primary', 'target' => 'crm-popup']; + } + foreach ($settings['toolbar'] ?? [] as $button) { + if (!$this->checkLinkCondition($button, $data)) { + continue; + } + $button = $this->formatLink($button, $data); + if ($button) { + $toolbar[] = $button; + } + } + return $toolbar; } } diff --git a/civicrm/ext/search_kit/Civi/Api4/Result/SearchDisplayRunResult.php b/civicrm/ext/search_kit/Civi/Api4/Result/SearchDisplayRunResult.php index d1c5fa37b4..4b27eda094 100644 --- a/civicrm/ext/search_kit/Civi/Api4/Result/SearchDisplayRunResult.php +++ b/civicrm/ext/search_kit/Civi/Api4/Result/SearchDisplayRunResult.php @@ -13,14 +13,21 @@ namespace Civi\Api4\Result; /** - * Class ReplaceResult + * Specialized APIv4 Result object for SearchDisplay::run * * @package Civi\Api4\Result */ class SearchDisplayRunResult extends \Civi\Api4\Generic\Result { /** + * Contextual labels for use in page title * @var array */ public $labels = []; + /** + * Rendered toolbar buttons + * @var array|null + */ + public $toolbar = NULL; + } diff --git a/civicrm/ext/search_kit/Civi/Search/Admin.php b/civicrm/ext/search_kit/Civi/Search/Admin.php index 6c224e1630..8232f25233 100644 --- a/civicrm/ext/search_kit/Civi/Search/Admin.php +++ b/civicrm/ext/search_kit/Civi/Search/Admin.php @@ -13,7 +13,6 @@ namespace Civi\Search; use Civi\Api4\Action\SearchDisplay\AbstractRunAction; use Civi\Api4\Entity; -use Civi\Api4\Extension; use Civi\Api4\Query\SqlEquation; use Civi\Api4\Query\SqlFunction; use Civi\Api4\SearchDisplay; @@ -35,8 +34,6 @@ class Admin { */ public static function getAdminSettings():array { $schema = self::getSchema(); - $extensions = Extension::get(FALSE)->addWhere('status', '=', 'installed') - ->execute()->indexBy('key')->column('label'); $data = [ 'schema' => self::addImplicitFKFields($schema), 'joins' => self::getJoins($schema), @@ -48,7 +45,7 @@ class Admin { 'styles' => \CRM_Utils_Array::makeNonAssociative(self::getStyles()), 'defaultPagerSize' => (int) \Civi::settings()->get('default_pager_size'), 'defaultDisplay' => SearchDisplay::getDefault(FALSE)->setSavedSearch(['id' => NULL])->execute()->first(), - 'modules' => $extensions, + 'modules' => \CRM_Core_BAO_Managed::getBaseModules(), 'defaultContactType' => \CRM_Contact_BAO_ContactType::basicTypeInfo()['Individual']['name'] ?? NULL, 'defaultDistanceUnit' => \CRM_Utils_Address::getDefaultDistanceUnit(), 'jobFrequency' => \Civi\Api4\Job::getFields() @@ -153,7 +150,7 @@ class Admin { $getFields = civicrm_api4($entity['name'], 'getFields', [ 'select' => ['name', 'title', 'label', 'description', 'type', 'options', 'input_type', 'input_attrs', 'data_type', 'serialize', 'entity', 'fk_entity', 'readonly', 'operators', 'suffixes', 'nullable'], 'where' => [['deprecated', '=', FALSE], ['name', 'NOT IN', ['api_key', 'hash']]], - 'orderBy' => ['label'], + 'orderBy' => ['label' => 'ASC'], ])->indexBy('name'); } catch (\CRM_Core_Exception $e) { @@ -337,21 +334,29 @@ class Admin { // For dynamic references getTargetEntities will return multiple targets; for normal joins this loop will only run once foreach ($reference->getTargetEntities() as $targetTable => $targetEntityName) { - if (!isset($allowedEntities[$targetEntityName]) || $targetEntityName === $entity['name']) { + if ( + !isset($allowedEntities[$targetEntityName]) || + // What to do with self-references? They're weird but sometimes useful. + // For now, only allowing it for dynamic columns since they're explicitly declared + // (e.g. a Note can be a comment on a Note), and only the 1-n join since n-1 can be done with implicit joins. + ($targetEntityName === $entity['name'] && !$dynamicCol) + ) { continue; } $targetEntity = $allowedEntities[$targetEntityName]; - // Add the straight 1-1 join - $alias = $entity['name'] . '_' . $targetEntityName . '_' . $keyField['name']; - $joins[$entity['name']][] = [ - 'label' => $entity['title'] . ' ' . ($dynamicCol ? $targetEntity['title'] : $keyField['label']), - 'description' => '', - 'entity' => $targetEntityName, - 'conditions' => self::getJoinConditions($keyField['name'], $alias . '.' . $reference->getTargetKey(), $targetTable, $dynamicCol), - 'defaults' => self::getJoinDefaults($alias, $targetEntity), - 'alias' => $alias, - 'multi' => FALSE, - ]; + // Add the straight 1-1 join (but only if it's not a reference to itself, see above) + if ($targetEntityName !== $entity['name']) { + $alias = $entity['name'] . '_' . $targetEntityName . '_' . $keyField['name']; + $joins[$entity['name']][] = [ + 'label' => $entity['title'] . ' ' . ($dynamicCol ? $targetEntity['title'] : $keyField['label']), + 'description' => '', + 'entity' => $targetEntityName, + 'conditions' => self::getJoinConditions($keyField['name'], $alias . '.' . $reference->getTargetKey(), $targetTable, $dynamicCol), + 'defaults' => self::getJoinDefaults($alias, $targetEntity), + 'alias' => $alias, + 'multi' => FALSE, + ]; + } // Flip the conditions & add the reverse (1-n) join $alias = $targetEntityName . '_' . $entity['name'] . '_' . $keyField['name']; $joins[$targetEntityName][] = [ diff --git a/civicrm/ext/search_kit/Civi/Search/Display.php b/civicrm/ext/search_kit/Civi/Search/Display.php index 4c2ba295a5..413a3c5d9a 100644 --- a/civicrm/ext/search_kit/Civi/Search/Display.php +++ b/civicrm/ext/search_kit/Civi/Search/Display.php @@ -69,7 +69,10 @@ class Display { } // If addLabel is false the placeholder needs to be passed through to javascript $label = $addLabel ?: '%1'; - unset($paths['add'], $paths['browse']); + $styles = [ + 'delete' => 'danger', + 'add' => 'primary', + ]; foreach (array_keys($paths) as $actionName) { $actionKey = \CRM_Core_Action::mapItem($actionName); $link = [ @@ -78,7 +81,7 @@ class Display { 'text' => \CRM_Core_Action::getTitle($actionKey, $label), 'icon' => \CRM_Core_Action::getIcon($actionKey), 'weight' => \CRM_Core_Action::getWeight($actionKey), - 'style' => $actionName === 'delete' ? 'danger' : 'default', + 'style' => $styles[$actionName] ?? 'default', 'target' => 'crm-popup', ]; // Contacts and cases are too cumbersome to view in a popup @@ -87,7 +90,11 @@ class Display { } $links[$actionName] = $link; } + // Sort by weight, then discard it uasort($links, ['CRM_Utils_Sort', 'cmpFunc']); + foreach ($links as $index => $link) { + unset($links[$index]['weight']); + } return $links; } diff --git a/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js b/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js index 970a83a86d..0f55130611 100644 --- a/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js +++ b/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js @@ -665,7 +665,7 @@ // Build a list of all possible links to main entity & join entities // @return {Array} - this.buildLinks = function() { + this.buildLinks = function(isRow) { function addTitle(link, entityName) { link.text = link.text.replace('%1', entityName); } @@ -712,7 +712,8 @@ } } }); - return links; + // Filter links according to usage - add & browse only make sense outside of a row + return _.filter(links, (link) => ['add', 'browse'].includes(link.action) !== isRow); }; function loadAfforms() { diff --git a/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminDisplay.component.js b/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminDisplay.component.js index 5fb2ced4af..1c49b0ecbe 100644 --- a/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminDisplay.component.js +++ b/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminDisplay.component.js @@ -248,7 +248,10 @@ this.getLinks = function(columnKey) { if (!ctrl.links) { - ctrl.links = {'*': ctrl.crmSearchAdmin.buildLinks(), '0': []}; + ctrl.links = { + '*': ctrl.crmSearchAdmin.buildLinks(true), + '0': [] + }; ctrl.links[''] = _.filter(ctrl.links['*'], {join: ''}); searchMeta.getSearchTasks(ctrl.savedSearch.api_entity).then(function(tasks) { _.each(tasks, function (task) { @@ -289,25 +292,6 @@ }); }; - this.toggleAddButton = function() { - if (ctrl.display.settings.addButton && ctrl.display.settings.addButton.path) { - delete ctrl.display.settings.addButton; - } else { - var entity = searchMeta.getBaseEntity(); - ctrl.display.settings.addButton = { - path: entity.addPath || 'civicrm/', - text: ts('Add %1', {1: entity.title}), - icon: 'fa-plus' - }; - } - }; - - this.onChangeAddButtonPath = function() { - if (!ctrl.display.settings.addButton.path) { - delete ctrl.display.settings.addButton; - } - }; - // Helper function to sort active from hidden columns and initialize each column with defaults this.initColumns = function(defaults) { if (!ctrl.display.settings.columns) { diff --git a/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.component.js b/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.component.js index c766a4e86b..532541bcc6 100644 --- a/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.component.js +++ b/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.component.js @@ -18,8 +18,9 @@ linkProps = ['path', 'task', 'entity', 'action', 'join', 'target', 'icon', 'text', 'style', 'condition']; ctrl.permissionOperators = [ - {key: '=', value: ts('Has')}, - {key: '!=', value: ts('Lacks')} + {key: 'CONTAINS', value: ts('Includes')}, + {key: '=', value: ts('Has All')}, + {key: '!=', value: ts('Lacks All')} ]; this.styles = CRM.crmSearchAdmin.styles; diff --git a/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.html b/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.html index 4bb1f77e53..81622bab39 100644 --- a/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.html +++ b/civicrm/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.html @@ -39,7 +39,7 @@ <input ng-model="item.condition[0]" crm-ui-select="{placeholder: item.action ? ts('Allowed') : ts('Always'), data: $ctrl.fields}" ng-change="$ctrl.onChangeCondition(item)"> <div class="form-group" ng-if="item.condition[0] === 'check user permission'"> <select class="form-control api4-operator" ng-model="item.condition[1]" ng-options="o.key as o.value for o in $ctrl.permissionOperators"></select> - <input class="form-control" crm-ui-select="{data: $ctrl.permissions}" ng-model="item.condition[2]"> + <input class="form-control" crm-ui-select="{data: $ctrl.permissions, multiple: true}" ng-model="item.condition[2]" ng-list> </div> <crm-search-condition class="form-group" ng-if="item.condition[0] && item.condition[0] !== 'check user permission'" diff --git a/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchAdminToolbarConfig.component.js b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchAdminToolbarConfig.component.js new file mode 100644 index 0000000000..0bacfb6b9a --- /dev/null +++ b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchAdminToolbarConfig.component.js @@ -0,0 +1,43 @@ +(function(angular, $, _) { + "use strict"; + + angular.module('crmSearchAdmin').component('searchAdminToolbarConfig', { + bindings: { + display: '<', + apiEntity: '<', + apiParams: '<' + }, + require: { + crmSearchAdmin: '^crmSearchAdmin' + }, + templateUrl: '~/crmSearchAdmin/displays/common/searchAdminToolbarConfig.html', + controller: function($scope, searchMeta) { + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), + ctrl = this; + + this.$onInit = function() { + this.links = ctrl.crmSearchAdmin.buildLinks(false); + // Migrate legacy setting + if (ctrl.display.settings.addButton) { + if (!ctrl.display.settings.toolbar && ctrl.display.settings.addButton.path) { + ctrl.display.settings.addButton.style = 'primary'; + ctrl.display.settings.toolbar = [ctrl.display.settings.addButton]; + } + delete ctrl.display.settings.addButton; + } + }; + + this.toggleToolbar = function() { + if (ctrl.display.settings.toolbar) { + delete ctrl.display.settings.toolbar; + } else { + ctrl.display.settings.toolbar = _.filter(ctrl.links, function(link) { + return link.action === 'add' && !link.join; + }); + } + }; + + } + }); + +})(angular, CRM.$, CRM._); diff --git a/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchAdminToolbarConfig.html b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchAdminToolbarConfig.html new file mode 100644 index 0000000000..fa2c2f40a4 --- /dev/null +++ b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchAdminToolbarConfig.html @@ -0,0 +1,11 @@ +<fieldset> + <div class="form-inline"> + <div class="checkbox-inline form-control"> + <label> + <input type="checkbox" ng-checked="!!$ctrl.display.settings.toolbar" ng-click="$ctrl.toggleToolbar()"> + <span>{{:: ts('Toolbar') }}</span> + </label> + </div> + </div> + <crm-search-admin-link-group ng-if="$ctrl.display.settings.toolbar" links="$ctrl.links" group="$ctrl.display.settings.toolbar" api-entity="$ctrl.apiEntity" api-params="$ctrl.apiParams"></crm-search-admin-link-group> +</fieldset> diff --git a/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchButtonConfig.html b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchButtonConfig.html index 268c3a1e08..a5271a9915 100644 --- a/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchButtonConfig.html +++ b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/common/searchButtonConfig.html @@ -19,12 +19,3 @@ </label> </div> </div> -<div class="input-group"> - <div class="checkbox-inline form-control" title="{{:: ts('Display a button for creating a new record') }}"> - <label> - <input type="checkbox" ng-checked="$ctrl.display.settings.addButton.path" ng-click="$ctrl.parent.toggleAddButton()"> - <span>{{:: ts('"Add New" Button') }}</span> - </label> - </div> -</div> -<input class="form-control" ng-if="$ctrl.display.settings.addButton.path" ng-model="$ctrl.display.settings.addButton.path" ng-change="$ctrl.onChangeAddButtonPath()" ng-model-options="{updateOn: 'blur'}" title="{{:: ts('Path') }}" placeholder="{{:: ts('Path') }}"> diff --git a/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayGrid.html b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayGrid.html index fdc5eeed2c..a2a3cf6a11 100644 --- a/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayGrid.html +++ b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayGrid.html @@ -13,6 +13,7 @@ </div> <search-admin-pager-config display="$ctrl.display"></search-admin-pager-config> <search-admin-placeholder-config display="$ctrl.display"></search-admin-placeholder-config> + <search-admin-toolbar-config display="$ctrl.display" api-entity="$ctrl.apiEntity" api-params="$ctrl.apiParams"></search-admin-toolbar-config> </fieldset> <fieldset class="crm-search-admin-edit-columns-wrapper"> <legend> diff --git a/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayList.html b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayList.html index 3253059f54..fa385a3297 100644 --- a/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayList.html +++ b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayList.html @@ -17,6 +17,7 @@ </div> <search-admin-pager-config display="$ctrl.display"></search-admin-pager-config> <search-admin-placeholder-config display="$ctrl.display"></search-admin-placeholder-config> + <search-admin-toolbar-config display="$ctrl.display" api-entity="$ctrl.apiEntity" api-params="$ctrl.apiParams"></search-admin-toolbar-config> </fieldset> <fieldset class="crm-search-admin-edit-columns-wrapper"> <legend> diff --git a/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayTable.html b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayTable.html index 737dbdd479..27e9f4da5d 100644 --- a/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayTable.html +++ b/civicrm/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayTable.html @@ -31,6 +31,7 @@ <label for="crm-search-admin-display-no-results-text">{{:: ts('No Results Text') }}</label> <input class="form-control crm-flex-1" id="crm-search-admin-display-no-results-text" ng-model="$ctrl.display.settings.noResultsText" placeholder="{{:: ts('None found.') }}"> </div> + <search-admin-toolbar-config display="$ctrl.display" api-entity="$ctrl.apiEntity" api-params="$ctrl.apiParams"></search-admin-toolbar-config> <div class="form-inline"> <div class="checkbox-inline form-control" title="{{:: ts('Shows grand totals or other statistics, configured per-column.') }}"> <label> diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplay/AddButton.html b/civicrm/ext/search_kit/ang/crmSearchDisplay/AddButton.html deleted file mode 100644 index 0c779885f6..0000000000 --- a/civicrm/ext/search_kit/ang/crmSearchDisplay/AddButton.html +++ /dev/null @@ -1,4 +0,0 @@ -<a ng-href="{{ $ctrl.getButtonUrl() }}" class="btn btn-primary" target="crm-popup"> - <i ng-if="$ctrl.settings.addButton.icon" class="crm-i {{:: $ctrl.settings.addButton.icon }}"></i> - {{:: $ctrl.settings.addButton.text }} -</a> diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplay/Pager.html b/civicrm/ext/search_kit/ang/crmSearchDisplay/Pager.html index 97c1e00093..f50d93744b 100644 --- a/civicrm/ext/search_kit/ang/crmSearchDisplay/Pager.html +++ b/civicrm/ext/search_kit/ang/crmSearchDisplay/Pager.html @@ -20,7 +20,7 @@ ></ul> </div> <div> - <div class="form-inline text-right" ng-if="$ctrl.settings.pager.expose_limit"> + <div class="form-inline text-right" ng-if="$ctrl.settings.pager.expose_limit && (!$ctrl.settings.pager.hide_single || $ctrl.rowCount > $ctrl.limit)"> <label for="crm-search-results-page-size" > {{:: ts('Page Size') }} </label> diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplay/colType/field.html b/civicrm/ext/search_kit/ang/crmSearchDisplay/colType/field.html index ceb1664696..a2ffc7293d 100644 --- a/civicrm/ext/search_kit/ang/crmSearchDisplay/colType/field.html +++ b/civicrm/ext/search_kit/ang/crmSearchDisplay/colType/field.html @@ -1,14 +1,23 @@ <crm-search-display-editable row="row" col="colData" cancel="$ctrl.editing = null;" ng-if="colData.edit && $ctrl.isEditing(rowIndex, colIndex)"></crm-search-display-editable> <span ng-if="!colData.links && !$ctrl.isEditing(rowIndex, colIndex)" ng-class="{'crm-editable-enabled': colData.edit && !$ctrl.editing, 'crm-editable-disabled': colData.edit && $ctrl.editing}" ng-click="colData.edit && !$ctrl.editing && ($ctrl.editing = [rowIndex, colIndex])"> - <i ng-repeat="icon in colData.icons" ng-if="icon.side === 'left'" class="crm-i {{:: icon['class'] }}"></i> - {{:: $ctrl.formatFieldValue(colData) }} - <i ng-repeat="icon in colData.icons" ng-if="icon.side === 'right'" class="crm-i {{:: icon['class'] }}"></i> + <span ng-if="!$ctrl.isArray(colData.val)"> + <i ng-if="colData.icons.left[0]" class="crm-i {{:: colData.icons.left[0] }}"></i> + {{:: colData.val }} + <i ng-if="colData.icons.right[$index]" class="crm-i {{:: colData.icons.right[$index] }}"></i> + </span> + <span ng-if="$ctrl.isArray(colData.val)"> + <span ng-repeat="val in colData.val track by $index"> + <i ng-if="colData.icons.left[$index]" class="crm-i {{:: colData.icons.left[$index] }}"></i> + {{:: val }}<i ng-if="colData.icons.right[$index]" class="crm-i {{:: colData.icons.right[$index] }}"> </i><span ng-if="!$last">, + </span> + </span> + </span> </span> <span ng-if="colData.links && !$ctrl.isEditing(rowIndex, colIndex)"> <span ng-repeat="link in colData.links"> - <a target="{{:: link.target }}" ng-href="{{:: link.url }}" title="{{:: link.title }}" ng-click="$ctrl.onClickLink(link, row.key, $event)"> - <i ng-repeat="icon in colData.icons" ng-if="icon.side === 'left'" class="crm-i {{:: icon['class'] }}"></i> - {{:: link.text }}<i ng-repeat="icon in colData.icons" ng-if="icon.side === 'right'" class="crm-i {{:: icon['class'] }}"></i></a><span ng-if="!$last">, + <a target="{{:: link.target }}" ng-href="{{:: link.url }}" title="{{:: link.title }}" class="{{:: link.style }} ng-click="$ctrl.onClickLink(link, row.key, $event)"> + <i ng-if="colData.icons.left[$index]" class="crm-i {{:: colData.icons.left[$index] }}"></i> + {{:: link.text }}<i ng-if="colData.icons.right[$index]" class="crm-i {{:: colData.icons.right[$index] }}"> </i></a><span ng-if="!$last">, </span> </span> </span> diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplay/crmSearchDisplayEditable.component.js b/civicrm/ext/search_kit/ang/crmSearchDisplay/crmSearchDisplayEditable.component.js index 46eed4615d..e9ddec24a9 100644 --- a/civicrm/ext/search_kit/ang/crmSearchDisplay/crmSearchDisplayEditable.component.js +++ b/civicrm/ext/search_kit/ang/crmSearchDisplay/crmSearchDisplayEditable.component.js @@ -32,11 +32,12 @@ nullable: col.edit.nullable }; - $(document).on('keydown.crmSearchDisplayEditable', function(e) { + $(document).on('keydown.crmSearchDisplayEditable', (e) => { if (e.key === 'Escape') { - $scope.$apply(function() { - ctrl.cancel(); - }); + $scope.$apply(() => ctrl.cancel()); + } + else if (e.key === 'Enter') { + $scope.$apply(() => ctrl.save()); } }); diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplay/toolbar.html b/civicrm/ext/search_kit/ang/crmSearchDisplay/toolbar.html new file mode 100644 index 0000000000..f839f267bd --- /dev/null +++ b/civicrm/ext/search_kit/ang/crmSearchDisplay/toolbar.html @@ -0,0 +1,4 @@ +<a ng-repeat="link in $ctrl.toolbar" ng-href="{{:: link.url }}" class="btn btn-{{:: link.style }}" target="{{:: link.target }}"> + <i ng-if="link.icon" class="crm-i {{:: link.icon }}"></i> + {{:: link.text }} +</a> diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplay/traits/searchDisplayBaseTrait.service.js b/civicrm/ext/search_kit/ang/crmSearchDisplay/traits/searchDisplayBaseTrait.service.js index e7d067bf7a..7aa7a70ede 100644 --- a/civicrm/ext/search_kit/ang/crmSearchDisplay/traits/searchDisplayBaseTrait.service.js +++ b/civicrm/ext/search_kit/ang/crmSearchDisplay/traits/searchDisplayBaseTrait.service.js @@ -30,6 +30,7 @@ _.each(ctrl.onInitialize, function(callback) { callback.call(ctrl, $scope, $element); }); + this.isArray = angular.isArray; // _.debounce used here to trigger the initial search immediately but prevent subsequent launches within 300ms this.getResultsPronto = _.debounce(ctrl.runSearch, 300, {leading: true, trailing: false}); @@ -50,7 +51,8 @@ // Update totalCount only if no user filters are set if (typeof rowCount === 'number' && angular.equals({}, ctrl.getAfformFilters())) { ctrl.totalCount = rowCount; - if (contactTab) { + // The first display in a tab gets to control the count + if (contactTab && $element.is($('#' + contactTab + ' [search][display]').first())) { CRM.tabHeader.updateCount(contactTab.replace('contact-', '#tab_'), rowCount); } } @@ -125,16 +127,6 @@ }; }, - // Get path for the addButton - getButtonUrl: function() { - var path = this.settings.addButton.path, - filters = this.getFilters(); - _.each(filters, function(value, key) { - path = path.replace('[' + key + ']', value); - }); - return CRM.url(path); - }, - onClickSearchButton: function() { this.rowCount = null; this.page = 1; @@ -172,14 +164,20 @@ ctrl.rowCount = result.count; }); } - // If there are no results on initial load, open the "addNew" link if configured as "autoOpen" - if (!ctrl.results.length && requestId === 1 && ctrl.settings.addButton && ctrl.settings.addButton.autoOpen) { - CRM.loadForm(ctrl.getButtonUrl()) - .on('crmFormSuccess', function() { - ctrl.rowCount = null; - ctrl.getResultsPronto(); - }); - } + } + // Process toolbar + if (apiResults.run.toolbar) { + ctrl.toolbar = apiResults.run.toolbar; + // If there are no results on initial load, open an "autoOpen" toolbar link + ctrl.toolbar.forEach((link) => { + if (link.autoOpen && requestId === 1 && !ctrl.results.length) { + CRM.loadForm(link.url) + .on('crmFormSuccess', () => { + ctrl.rowCount = null; + ctrl.getResultsPronto(); + }); + } + }); } _.each(ctrl.onPostRun, function(callback) { callback.call(ctrl, apiResults, 'success', editedRow); diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplayGrid/crmSearchDisplayGrid.html b/civicrm/ext/search_kit/ang/crmSearchDisplayGrid/crmSearchDisplayGrid.html index e1399d26c8..786caa43ef 100644 --- a/civicrm/ext/search_kit/ang/crmSearchDisplayGrid/crmSearchDisplayGrid.html +++ b/civicrm/ext/search_kit/ang/crmSearchDisplayGrid/crmSearchDisplayGrid.html @@ -3,7 +3,7 @@ <div class="form-inline"> <div class="btn-group" ng-include="'~/crmSearchDisplay/SearchButton.html'" ng-if="$ctrl.settings.button"></div> <span ng-if="$ctrl.settings.headerCount" ng-include="'~/crmSearchDisplay/ResultCount.html'"></span> - <div class="btn-group pull-right" ng-include="'~/crmSearchDisplay/AddButton.html'" ng-if="$ctrl.settings.addButton.path"></div> + <div class="btn-group pull-right" ng-include="'~/crmSearchDisplay/toolbar.html'" ng-if="$ctrl.toolbar"></div> </div> <div class="crm-search-display-grid-container crm-search-display-grid-layout-{{$ctrl.settings.colno}}" diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplayGrid/crmSearchDisplayGridItems.html b/civicrm/ext/search_kit/ang/crmSearchDisplayGrid/crmSearchDisplayGridItems.html index 805a432aa2..77836888ed 100644 --- a/civicrm/ext/search_kit/ang/crmSearchDisplayGrid/crmSearchDisplayGridItems.html +++ b/civicrm/ext/search_kit/ang/crmSearchDisplayGrid/crmSearchDisplayGridItems.html @@ -1,5 +1,5 @@ <div ng-repeat="(rowIndex, row) in $ctrl.results" class="{{:: row.cssClass }}"> - <div ng-repeat="(colIndex, colData) in row.columns" title="{{:: colData.title }}" class="{{:: colData.cssClass }} {{:: $ctrl.settings.columns[colIndex].break ? '' : 'crm-inline-block' }}"> + <div ng-repeat="(colIndex, colData) in row.columns" title="{{:: colData.title }}" class="crm-search-col-type-{{:: $ctrl.settings.columns[colIndex].type }} {{:: colData.cssClass }} {{:: $ctrl.settings.columns[colIndex].break ? '' : 'crm-inline-block' }}"> <label ng-if=":: colData.label"> {{:: colData.label }} </label> diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayList.html b/civicrm/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayList.html index 2924630ffc..a4cfdb6459 100644 --- a/civicrm/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayList.html +++ b/civicrm/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayList.html @@ -3,7 +3,7 @@ <div class="form-inline"> <div class="btn-group" ng-include="'~/crmSearchDisplay/SearchButton.html'" ng-if="$ctrl.settings.button"></div> <span ng-if="$ctrl.settings.headerCount" ng-include="'~/crmSearchDisplay/ResultCount.html'"></span> - <div class="btn-group pull-right" ng-include="'~/crmSearchDisplay/AddButton.html'" ng-if="$ctrl.settings.addButton.path"></div> + <div class="btn-group pull-right" ng-include="'~/crmSearchDisplay/toolbar.html'" ng-if="$ctrl.toolbar"></div> </div> <ol ng-if=":: $ctrl.settings.style === 'ol'" ng-include="'~/crmSearchDisplayList/crmSearchDisplayList' + ($ctrl.loading ? 'Loading' : 'Items') + '.html'" ng-style="{'list-style': $ctrl.settings.symbol}"></ol> <ul ng-if=":: $ctrl.settings.style !== 'ol'" ng-include="'~/crmSearchDisplayList/crmSearchDisplayList' + ($ctrl.loading ? 'Loading' : 'Items') + '.html'" ng-style="{'list-style': $ctrl.settings.symbol}"></ul> diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayListItems.html b/civicrm/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayListItems.html index 9736f7a433..c273db5c92 100644 --- a/civicrm/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayListItems.html +++ b/civicrm/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayListItems.html @@ -1,5 +1,5 @@ <li ng-repeat="(rowIndex, row) in $ctrl.results" class="{{:: row.cssClass }}"> - <div ng-repeat="(colIndex, colData) in row.columns" title="{{:: colData.title }}" class="{{:: colData.cssClass }} {{:: $ctrl.settings.columns[colIndex].break ? '' : 'crm-inline-block' }}"> + <div ng-repeat="(colIndex, colData) in row.columns" title="{{:: colData.title }}" class="crm-search-col-type-{{:: $ctrl.settings.columns[colIndex].type }} {{:: colData.cssClass }} {{:: $ctrl.settings.columns[colIndex].break ? '' : 'crm-inline-block' }}"> <label ng-if=":: colData.label"> {{:: colData.label }} </label> diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.html b/civicrm/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.html index 8f9437ea41..5ca040d1f6 100644 --- a/civicrm/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.html +++ b/civicrm/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.html @@ -4,14 +4,14 @@ <div class="btn-group" ng-include="'~/crmSearchDisplay/SearchButton.html'" ng-if="$ctrl.settings.button"></div> <crm-search-tasks-menu ng-if="$ctrl.settings.actions && $ctrl.taskManager" ids="$ctrl.selectedRows" task-manager="$ctrl.taskManager"></crm-search-tasks-menu> <span ng-if="$ctrl.settings.headerCount" ng-include="'~/crmSearchDisplay/ResultCount.html'"></span> - <div class="btn-group pull-right" ng-include="'~/crmSearchDisplay/AddButton.html'" ng-if="$ctrl.settings.addButton.path"></div> + <div class="btn-group pull-right" ng-include="'~/crmSearchDisplay/toolbar.html'" ng-if="$ctrl.toolbar"></div> </div> <table class="{{:: $ctrl.settings.classes.join(' ') }}"> <thead> <tr> <th ng-class="{'crm-search-result-select': $ctrl.settings.actions}" ng-include="'~/crmSearchDisplayTable/crmSearchDisplayTaskHeader.html'" ng-if=":: $ctrl.hasExtraFirstColumn()"> </th> - <th ng-repeat="col in $ctrl.settings.columns" ng-click="$ctrl.setSort(col, $event)" class="{{:: $ctrl.isSortable(col) ? 'crm-sortable-col' : ''}}" title="{{:: $ctrl.isSortable(col) ? ts('Click to sort results (shift-click to sort by multiple).') : '' }}"> + <th ng-repeat="col in $ctrl.settings.columns" ng-click="$ctrl.setSort(col, $event)" class="{{:: $ctrl.isSortable(col) ? 'crm-sortable-col' : ''}} {{:: col.alignment }}" title="{{:: $ctrl.isSortable(col) ? ts('Click to sort results (shift-click to sort by multiple).') : '' }}"> <i ng-if=":: $ctrl.isSortable(col)" class="crm-i crm-search-table-column-sort-icon {{ $ctrl.getSort(col) }}"></i> <span class="crm-search-display-table-column-label">{{:: col.label }}</span> </th> diff --git a/civicrm/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTableBody.html b/civicrm/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTableBody.html index 617dc299be..e864bc09de 100644 --- a/civicrm/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTableBody.html +++ b/civicrm/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTableBody.html @@ -5,7 +5,7 @@ </span> <input ng-if=":: $ctrl.settings.actions" type="checkbox" ng-checked="$ctrl.isRowSelected(row)" ng-click="$ctrl.toggleRow(row, $event)" ng-disabled="!!$ctrl.loadingAllRows"> </td> - <td ng-repeat="(colIndex, colData) in row.columns" ng-include="'~/crmSearchDisplay/colType/' + $ctrl.settings.columns[colIndex].type + '.html'" title="{{:: colData.title }}" class="{{:: row.cssClass }} {{:: colData.cssClass }}"> + <td ng-repeat="(colIndex, colData) in row.columns" ng-include="'~/crmSearchDisplay/colType/' + $ctrl.settings.columns[colIndex].type + '.html'" title="{{:: colData.title }}" class="crm-search-col-type-{{:: $ctrl.settings.columns[colIndex].type }} {{:: row.cssClass }} {{:: colData.cssClass }}"> </td> </tr> <tr ng-if="$ctrl.rowCount === 0"> diff --git a/civicrm/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js b/civicrm/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js index a1f7277bfa..47e3b51e5a 100644 --- a/civicrm/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js +++ b/civicrm/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js @@ -7,7 +7,7 @@ // TaskManager object is responsible for fetching task metadata for a SearchDispaly // and handles the running of tasks. - function TaskManager(displayCtrl) { + function TaskManager(displayCtrl, $element) { var mngr = this; var fetchedMetadata; this.tasks = null; @@ -84,8 +84,11 @@ this.refreshAfterTask = function() { displayCtrl.selectedRows = []; displayCtrl.allRowsSelected = false; - displayCtrl.rowCount = undefined; - displayCtrl.runSearch(); + displayCtrl.rowCount = null; + displayCtrl.getResultsPronto(); + // Trigger all other displays in the same form to update. + // This display won't update twice because of the debounce in getResultsPronto() + $element.trigger('crmPopupFormSuccess'); }; } @@ -201,10 +204,10 @@ }, // onInitialize callback - onInitialize: [function() { + onInitialize: [function($scope, $element) { // Instantiate task manager object if (!this.taskManager) { - this.taskManager = new TaskManager(this); + this.taskManager = new TaskManager(this, $element); } }], diff --git a/civicrm/ext/search_kit/info.xml b/civicrm/ext/search_kit/info.xml index 253bb9b35d..616c9be448 100644 --- a/civicrm/ext/search_kit/info.xml +++ b/civicrm/ext/search_kit/info.xml @@ -15,13 +15,13 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2021-01-06</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>stable</develStage> <tags> <tag>mgmt:required</tag> </tags> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <comments>Click on the chat link above to discuss development, report problems or ask questions.</comments> <classloader> @@ -35,10 +35,10 @@ <mixin>menu-xml@1.0.0</mixin> <mixin>mgd-php@1.0.0</mixin> <mixin>entity-types-php@1.0.0</mixin> - <mixin>smarty-v2@1.0.0</mixin> + <mixin>smarty-v2@1.0.1</mixin> </mixins> <civix> <namespace>CRM/Search</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> </extension> diff --git a/civicrm/ext/search_kit/search_kit.civix.php b/civicrm/ext/search_kit/search_kit.civix.php index a0be0f9032..8771431147 100644 --- a/civicrm/ext/search_kit/search_kit.civix.php +++ b/civicrm/ext/search_kit/search_kit.civix.php @@ -133,8 +133,8 @@ function _search_kit_civix_insert_navigation_menu(&$menu, $path, $item) { if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchAfformTest.php b/civicrm/ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchAfformTest.php index 377cb8d7b9..311de97de9 100644 --- a/civicrm/ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchAfformTest.php +++ b/civicrm/ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchAfformTest.php @@ -5,6 +5,8 @@ use Civi\Api4\Action\Afform\Save; use Civi\Api4\Afform; use Civi\Api4\Contact; use Civi\Api4\Email; +use Civi\Api4\OptionGroup; +use Civi\Api4\OptionValue; use Civi\Api4\Phone; use Civi\Api4\SavedSearch; use Civi\Api4\SearchDisplay; @@ -33,7 +35,7 @@ class SearchAfformTest extends \PHPUnit\Framework\TestCase implements HeadlessIn /** * Test running a searchDisplay within an afform. */ - public function testRunWithAfform() { + public function testRunWithAfform(): void { $search = SavedSearch::create(FALSE) ->setValues([ 'name' => 'TestContactEmailSearch', @@ -180,7 +182,7 @@ class SearchAfformTest extends \PHPUnit\Framework\TestCase implements HeadlessIn $this->assertCount(1, $result); } - public function testRunMultipleSearchForm() { + public function testRunMultipleSearchForm(): void { $email = uniqid('tester@'); Contact::create(FALSE) @@ -230,8 +232,8 @@ class SearchAfformTest extends \PHPUnit\Framework\TestCase implements HeadlessIn ) ->execute(); - $contactEmailSearch = SavedSearch::create(FALSE) - ->setValues([ + $contactEmailSearch = SavedSearch::save(FALSE) + ->addRecord([ 'name' => 'TestContactEmailSearch', 'label' => 'TestContactEmailSearch', 'api_entity' => 'Contact', @@ -257,10 +259,11 @@ class SearchAfformTest extends \PHPUnit\Framework\TestCase implements HeadlessIn 'having' => [], ], ]) + ->setMatch(['name']) ->execute()->first(); - $contactEmailDisplay = SearchDisplay::create(FALSE) - ->setValues([ + $contactEmailDisplay = SearchDisplay::save(FALSE) + ->addRecord([ 'name' => 'TestContactEmailDisplay', 'label' => 'TestContactEmailDisplay', 'saved_search_id.name' => 'TestContactEmailSearch', @@ -291,11 +294,12 @@ class SearchAfformTest extends \PHPUnit\Framework\TestCase implements HeadlessIn ], 'acl_bypass' => FALSE, ]) + ->setMatch(['name']) ->execute()->first(); foreach (['Email', 'Phone'] as $entity) { - SavedSearch::create(FALSE) - ->setValues([ + SavedSearch::save(FALSE) + ->addRecord([ 'name' => 'TestSearchFor' . $entity, 'label' => 'TestSearchFor' . $entity, 'api_entity' => $entity, @@ -312,6 +316,7 @@ class SearchAfformTest extends \PHPUnit\Framework\TestCase implements HeadlessIn 'having' => [], ], ]) + ->setMatch(['name']) ->execute(); } @@ -349,9 +354,9 @@ class SearchAfformTest extends \PHPUnit\Framework\TestCase implements HeadlessIn $this->assertCount(1, $result); } - public function testSearchReferencesToAfform() { - $search = SavedSearch::create(FALSE) - ->setValues([ + public function testSearchReferencesToAfform(): void { + $search = SavedSearch::save(FALSE) + ->addRecord([ 'name' => 'TestSearchToDelete', 'label' => 'TestSearchToDelete', 'api_entity' => 'Contact', @@ -360,10 +365,11 @@ class SearchAfformTest extends \PHPUnit\Framework\TestCase implements HeadlessIn 'select' => ['id'], ], ]) + ->setMatch(['name']) ->execute()->first(); - $display = SearchDisplay::create(FALSE) - ->setValues([ + $display = SearchDisplay::save(FALSE) + ->addRecord([ 'name' => 'TestDisplayToDelete', 'label' => 'TestDisplayToDelete', 'saved_search_id.name' => 'TestSearchToDelete', @@ -380,6 +386,7 @@ class SearchAfformTest extends \PHPUnit\Framework\TestCase implements HeadlessIn ], 'acl_bypass' => FALSE, ]) + ->setMatch(['saved_search_id', 'name']) ->execute()->first(); // The search should have one reference (its display) @@ -443,4 +450,97 @@ class SearchAfformTest extends \PHPUnit\Framework\TestCase implements HeadlessIn $this->assertCount(0, Afform::get(FALSE)->addWhere('name', 'CONTAINS', 'TestAfformToDelete')->execute()); } + public function testDisplaysSharingSameFieldset(): void { + OptionGroup::save(FALSE) + ->addRecord([ + 'title' => 'search_test_options', + ]) + ->setMatch(['title']) + ->execute(); + OptionValue::save(FALSE) + ->setDefaults(['option_group_id.name' => 'search_test_options']) + ->addRecord([ + 'label' => 'option_a', + 'value' => 'a', + ]) + ->addRecord([ + 'label' => 'option_b', + 'value' => 'b', + ]) + ->addRecord([ + 'label' => 'option_c', + 'value' => 'c', + 'is_active' => FALSE, + ]) + ->setMatch(['name', 'option_group_id']) + ->execute(); + + $search = SavedSearch::save(FALSE) + ->addRecord([ + 'name' => 'testDisplaysSharingSameFieldset', + 'label' => 'testDisplaysSharingSameFieldset', + 'api_entity' => 'OptionValue', + 'api_params' => [ + 'version' => 4, + 'select' => ['value'], + ], + ]) + ->setMatch(['name']) + ->execute()->first(); + + $display = SearchDisplay::save(FALSE) + ->addRecord([ + 'name' => 'testDisplaysSharingSameFieldset', + 'label' => 'testDisplaysSharingSameFieldset', + 'saved_search_id.name' => 'testDisplaysSharingSameFieldset', + 'type' => 'table', + 'settings' => [ + 'columns' => [ + [ + 'key' => 'value', + 'type' => 'field', + ], + ], + ], + 'acl_bypass' => FALSE, + ]) + ->setMatch(['saved_search_id', 'name']) + ->execute()->first(); + + $baseParams = [ + 'return' => 'page:1', + 'savedSearch' => $search['name'], + 'display' => $display['name'], + 'afform' => 'testDisplaysSharingSameFieldset', + 'filters' => ['option_group_id:name' => 'search_test_options'], + ]; + + // Afform has 2 copies of the same display, with different values for the filter is_active + // This should allow the is_active filters to be set in the params + $params = $baseParams; + $params['filters']['is_active'] = TRUE; + $result = civicrm_api4('SearchDisplay', 'run', $params); + $this->assertCount(2, $result); + + $params = $baseParams; + $params['filters']['is_active'] = FALSE; + $result = civicrm_api4('SearchDisplay', 'run', $params); + $this->assertCount(1, $result); + $this->assertEquals('c', $result[0]['columns'][0]['val']); + + // Because the 2 displays share a fieldset, the filter field should work on both + $params = $baseParams; + $params['filters']['is_active'] = TRUE; + $params['filters']['label'] = 'b'; + $result = civicrm_api4('SearchDisplay', 'run', $params); + $this->assertCount(1, $result); + $this->assertEquals('b', $result[0]['columns'][0]['val']); + + $params = $baseParams; + $params['filters']['is_active'] = FALSE; + $params['filters']['label'] = 'b'; + $result = civicrm_api4('SearchDisplay', 'run', $params); + $this->assertCount(0, $result); + } + } diff --git a/civicrm/ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchRunTest.php b/civicrm/ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchRunTest.php index 82f33532cc..0dba79e959 100644 --- a/civicrm/ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchRunTest.php +++ b/civicrm/ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchRunTest.php @@ -31,6 +31,24 @@ class SearchRunTest extends Api4TestBase implements TransactionalInterface { ->apply(); } + /** + * @inheritDoc + */ + protected function setUp(): void { + \CRM_Core_BAO_ConfigSetting::enableAllComponents(); + parent::setUp(); + } + + /** + * @inheritDoc + */ + public function tearDown(): void { + \Civi\Api4\Setting::revert(FALSE) + ->addSelect('geoProvider') + ->execute(); + parent::tearDown(); + } + /** * Test running a searchDisplay with various filters. */ @@ -278,8 +296,9 @@ class SearchRunTest extends Api4TestBase implements TransactionalInterface { ], [ 'entity' => 'Contribution', + 'title' => 'Delete', 'action' => 'delete', - 'icon' => 'fa-pencil', + 'icon' => 'fa-trash', 'target' => 'crm-popup', ], ], @@ -297,19 +316,24 @@ class SearchRunTest extends Api4TestBase implements TransactionalInterface { // 1st link is to a quickform-based search task (CRM_Contribute_Task::PDF_RECEIPT) $this->assertArrayNotHasKey('task', $result[0]['columns'][1]['links'][0]); $this->assertStringContainsString('id=' . $contributions[0]['id'] . '&qfKey=', $result[0]['columns'][1]['links'][0]['url']); + $this->assertEquals('fa-external-link', $result[0]['columns'][1]['links'][0]['icon']); // 2nd link is to the native SK bulk-update task $this->assertArrayNotHasKey('url', $result[0]['columns'][1]['links'][1]); $this->assertEquals('update', $result[0]['columns'][1]['links'][1]['task']); + $this->assertEquals('fa-pencil', $result[0]['columns'][1]['links'][1]['icon']); // 3rd link is a popup link to the delete contribution quickform $this->assertStringContainsString('action=delete&id=' . $contributions[0]['id'], $result[0]['columns'][1]['links'][2]['url']); $this->assertEquals('crm-popup', $result[0]['columns'][1]['links'][2]['target']); + $this->assertEquals('fa-trash', $result[0]['columns'][1]['links'][2]['icon']); + $this->assertEquals('Delete', $result[0]['columns'][1]['links'][2]['title']); } public function testRelationshipCacheLinks():void { + $case = $this->createTestRecord('Case'); $relationships = $this->saveTestRecords('Relationship', [ 'records' => [ ['contact_id_a' => $this->createTestRecord('Contact')['id'], 'is_active' => TRUE], - ['contact_id_a' => $this->createTestRecord('Contact')['id'], 'is_active' => FALSE], + ['contact_id_a' => $this->createTestRecord('Contact')['id'], 'is_active' => FALSE, 'case_id' => $case['id']], ], ]); $params = [ @@ -321,6 +345,13 @@ class SearchRunTest extends Api4TestBase implements TransactionalInterface { 'version' => 4, 'select' => ['near_contact_id.display_name'], 'where' => [['relationship_id', 'IN', $relationships->column('id')]], + 'join' => [ + [ + 'Case AS RelationshipCache_Case_case_id_01', + 'LEFT', + ['case_id', '=', 'RelationshipCache_Case_case_id_01.id'], + ], + ], ], ], 'display' => [ @@ -345,6 +376,7 @@ class SearchRunTest extends Api4TestBase implements TransactionalInterface { 'icon' => 'fa-external-link', ], [ + 'title' => '0', 'entity' => 'Relationship', 'task' => 'delete', 'icon' => 'fa-trash', @@ -359,6 +391,12 @@ class SearchRunTest extends Api4TestBase implements TransactionalInterface { 'task' => 'disable', 'condition' => ['is_active', '=', TRUE], ], + [ + 'entity' => 'Case', + 'action' => 'view', + 'join' => 'RelationshipCache_Case_case_id_01', + 'text' => 'Manage Case', + ], ], ], ], @@ -371,17 +409,25 @@ class SearchRunTest extends Api4TestBase implements TransactionalInterface { $result = civicrm_api4('SearchDisplay', 'run', $params); $this->assertCount(4, $result); $this->assertCount(3, $result[0]['columns'][1]['links']); + $this->assertCount(4, $result[2]['columns'][1]['links']); // 1st link is to a quickform-based action $this->assertArrayNotHasKey('task', $result[0]['columns'][1]['links'][0]); $this->assertStringContainsString('id=' . $relationships[0]['id'], $result[0]['columns'][1]['links'][0]['url']); // 2nd link is to the native SK bulk-delete task $this->assertArrayNotHasKey('url', $result[0]['columns'][1]['links'][1]); $this->assertEquals('delete', $result[0]['columns'][1]['links'][1]['task']); + $this->assertEquals('fa-trash', $result[0]['columns'][1]['links'][1]['icon']); + // Ensure "empty" titles are still returned + $this->assertEquals('0', $result[0]['columns'][1]['links'][1]['title']); // 3rd link is the disable task for active relationships or the enable task for inactive ones $this->assertEquals('disable', $result[0]['columns'][1]['links'][2]['task']); $this->assertEquals('disable', $result[1]['columns'][1]['links'][2]['task']); $this->assertEquals('enable', $result[2]['columns'][1]['links'][2]['task']); $this->assertEquals('enable', $result[3]['columns'][1]['links'][2]['task']); + $this->assertStringContainsString('Enable', $result[3]['columns'][1]['links'][2]['title']); + // 4th link is to the case, and only for the relevant entity + $this->assertEquals('Manage Case', $result[2]['columns'][1]['links'][3]['text']); + $this->assertStringContainsString('civicrm', $result[3]['columns'][1]['links'][3]['url']); } /** @@ -1006,7 +1052,6 @@ class SearchRunTest extends Api4TestBase implements TransactionalInterface { "GROUP_CONCAT(DISTINCT subject) AS GROUP_CONCAT_subject", ], 'groupBy' => ['activity_type_id'], - 'orderBy' => ['activity_type_id:label'], 'where' => [], ], ], @@ -1232,9 +1277,9 @@ class SearchRunTest extends Api4TestBase implements TransactionalInterface { ->execute(); // Icon based on activity type - $this->assertEquals([['class' => 'fa-slideshare', 'side' => 'left']], $result[0]['columns'][0]['icons']); + $this->assertEquals(['left' => ['fa-slideshare']], $result[0]['columns'][0]['icons']); // Activity type icon + conditional icon based on status - $this->assertEquals([['class' => 'fa-star', 'side' => 'right'], ['class' => 'fa-phone', 'side' => 'left']], $result[1]['columns'][0]['icons']); + $this->assertEquals(['right' => ['fa-star'], 'left' => ['fa-phone']], $result[1]['columns'][0]['icons']); } /** @@ -1845,11 +1890,11 @@ class SearchRunTest extends Api4TestBase implements TransactionalInterface { // Contacts will be returned in order by sort_name $this->assertEquals('Both', $result[0]['columns'][0]['val']); - $this->assertEquals('fa-star', $result[0]['columns'][0]['icons'][0]['class']); + $this->assertEquals('fa-star', $result[0]['columns'][0]['icons']['left'][0]); $this->assertEquals('No icon', $result[1]['columns'][0]['val']); - $this->assertEquals('fa-user', $result[1]['columns'][0]['icons'][0]['class']); + $this->assertEquals('fa-user', $result[1]['columns'][0]['icons']['left'][0]); $this->assertEquals('Starry', $result[2]['columns'][0]['val']); - $this->assertEquals('fa-star', $result[2]['columns'][0]['icons'][0]['class']); + $this->assertEquals('fa-star', $result[2]['columns'][0]['icons']['left'][0]); } public function testKeyIsReturned(): void { @@ -1895,6 +1940,324 @@ class SearchRunTest extends Api4TestBase implements TransactionalInterface { $this->assertEquals($id, $result[0]['key']); } + public function testRunWithToolbar(): void { + $params = [ + 'return' => 'page:1', + 'savedSearch' => [ + 'api_entity' => 'Contact', + 'api_params' => [ + 'version' => 4, + 'select' => ['first_name', 'contact_type'], + ], + ], + 'display' => [ + 'type' => 'table', + 'label' => '', + 'settings' => [ + 'actions' => TRUE, + 'pager' => [], + 'toolbar' => [ + [ + 'entity' => 'Contact', + 'action' => 'add', + 'text' => 'Add Contact', + 'target' => 'crm-popup', + 'icon' => 'fa-plus', + 'style' => 'primary', + ], + ], + 'columns' => [ + [ + 'key' => 'first_name', + 'label' => 'First', + 'dataType' => 'String', + 'type' => 'field', + ], + ], + 'sort' => [], + ], + ], + 'filters' => ['contact_type' => 'Individual'], + ]; + // No 'add contacts' permission == no "Add contacts" button + \CRM_Core_Config::singleton()->userPermissionClass->permissions = [ + 'access CiviCRM', + 'administer search_kit', + ]; + $result = civicrm_api4('SearchDisplay', 'run', $params); + $this->assertCount(0, $result->toolbar); + // With 'add contacts' permission the button will be shown + \CRM_Core_Config::singleton()->userPermissionClass->permissions[] = 'add contacts'; + $result = civicrm_api4('SearchDisplay', 'run', $params); + $this->assertCount(1, $result->toolbar); + $button = $result->toolbar[0]; + $this->assertEquals('crm-popup', $button['target']); + $this->assertEquals('fa-plus', $button['icon']); + $this->assertEquals('primary', $button['style']); + $this->assertEquals('Add Contact', $button['text']); + $this->assertStringContainsString('=Individual', $button['url']); + + // Try with pseudoconstant (for proper test the label needs to be different from the name) + ContactType::update(FALSE) + ->addValue('label', 'Disorganization') + ->addWhere('name', '=', 'Organization') + ->execute(); + $params['filters'] = ['contact_type:label' => 'Disorganization']; + $result = civicrm_api4('SearchDisplay', 'run', $params); + $button = $result->toolbar[0]; + $this->assertStringContainsString('=Organization', $button['url']); + + // Test legacy 'addButton' setting + $params['display']['settings']['toolbar'] = NULL; + $params['display']['settings']['addButton'] = [ + 'path' => 'civicrm/test/url?test=[contact_type]', + 'text' => 'Test', + 'icon' => 'fa-old', + 'autoOpen' => TRUE, + ]; + $result = civicrm_api4('SearchDisplay', 'run', $params); + $this->assertCount(1, $result->toolbar); + $button = $result->toolbar[0]; + $this->assertStringContainsString('test=Organization', $button['url']); + $this->assertTrue($button['autoOpen']); + } + + public static function toolbarLinkPermissions(): array { + $sets = []; + $sets[] = [ + 'CONTAINS', + ['access CiviCRM', 'administer CiviCRM'], + ['access CiviCRM'], + TRUE, + ]; + $sets[] = [ + '=', + ['access CiviCRM', 'administer CiviCRM'], + ['access CiviCRM'], + FALSE, + ]; + $sets[] = [ + '!=', + ['access CiviCRM', 'administer CiviCRM'], + ['access CiviCRM'], + TRUE, + ]; + $sets[] = [ + 'CONTAINS', + ['access CiviCRM', 'administer CiviCRM'], + [], + FALSE, + ]; + $sets[] = [ + '=', + [], + [], + TRUE, + ]; + return $sets; + } + + /** + * @dataProvider toolbarLinkPermissions + */ + public function testToolbarLinksPermissionOperators($linkOperator, $linkPerms, $userPerms, $shouldBeVisible): void { + $params = [ + 'return' => 'page:1', + 'savedSearch' => [ + 'api_entity' => 'Contact', + 'api_params' => [ + 'version' => 4, + 'select' => ['first_name', 'contact_type'], + ], + ], + 'display' => [ + 'type' => 'table', + 'label' => '', + 'settings' => [ + 'actions' => TRUE, + 'pager' => [], + 'toolbar' => [ + [ + 'path' => 'civicrm/test', + 'text' => 'Test', + 'condition' => [ + 'check user permission', + $linkOperator, + $linkPerms, + ], + ], + ], + 'columns' => [], + ], + ], + ]; + \CRM_Core_Config::singleton()->userPermissionClass->permissions = array_merge(['administer search_kit'], $userPerms); + $result = civicrm_api4('SearchDisplay', 'run', $params); + $this->assertCount((int) $shouldBeVisible, $result->toolbar); + } + + public function testRunWithEntityFile(): void { + $cid = $this->createTestRecord('Contact')['id']; + $notes = $this->saveTestRecords('Note', [ + 'records' => 2, + 'defaults' => ['entity_table' => 'civicrm_contact', 'entity_id' => $cid], + ])->column('id'); + + foreach (['text/plain' => 'txt', 'image/png' => 'png', 'image/foo' => 'foo'] as $mimeType => $ext) { + // FIXME: Use api4 when available + civicrm_api3('Attachment', 'create', [ + 'entity_table' => 'civicrm_note', + 'entity_id' => $notes[0], + 'name' => 'test_file.' . $ext, + 'mime_type' => $mimeType, + 'content' => 'hello', + ])['id']; + } + + $params = [ + 'checkPermissions' => FALSE, + 'debug' => TRUE, + 'return' => 'page:1', + 'savedSearch' => [ + 'api_entity' => 'Note', + 'api_params' => [ + 'version' => 4, + 'select' => [ + 'id', + 'subject', + 'note', + 'note_date', + 'modified_date', + 'contact_id.sort_name', + 'GROUP_CONCAT(UNIQUE Note_EntityFile_File_01.file_name) AS GROUP_CONCAT_Note_EntityFile_File_01_file_name', + 'GROUP_CONCAT(UNIQUE Note_EntityFile_File_01.url) AS GROUP_CONCAT_Note_EntityFile_File_01_url', + 'GROUP_CONCAT(UNIQUE Note_EntityFile_File_01.icon) AS GROUP_CONCAT_Note_EntityFile_File_01_icon', + ], + 'where' => [ + ['entity_id', 'IN', [$cid]], + ['entity_table:name', '=', 'Contact'], + ], + 'groupBy' => [ + 'id', + ], + 'join' => [ + [ + 'File AS Note_EntityFile_File_01', + 'LEFT', + 'EntityFile', + [ + 'id', + '=', + 'Note_EntityFile_File_01.entity_id', + ], + [ + 'Note_EntityFile_File_01.entity_table', + '=', + "'civicrm_note'", + ], + ], + ], + 'having' => [], + ], + ], + 'display' => [ + 'type' => 'table', + 'label' => '', + 'settings' => [ + 'limit' => 20, + 'pager' => TRUE, + 'actions' => TRUE, + 'columns' => [ + [ + 'type' => 'field', + 'key' => 'id', + 'dataType' => 'Integer', + 'label' => 'ID', + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'GROUP_CONCAT_Note_EntityFile_File_01_file_name', + 'dataType' => 'String', + 'label' => ts('Attachments'), + 'sortable' => TRUE, + 'link' => [ + 'path' => '[GROUP_CONCAT_Note_EntityFile_File_01_url]', + 'entity' => '', + 'action' => '', + 'join' => '', + 'target' => '', + ], + 'icons' => [ + [ + 'field' => 'Note_EntityFile_File_01.icon', + 'side' => 'left', + ], + [ + 'icon' => 'fa-search', + 'side' => 'right', + 'if' => ['Note_EntityFile_File_01.is_image'], + ], + ], + 'cssRules' => [ + ['crm-image-popup', 'Note_EntityFile_File_01.is_image', '=', TRUE], + ], + ], + ], + 'sort' => [ + ['id', 'ASC'], + ], + ], + ], + 'afform' => NULL, + ]; + + $result = civicrm_api4('SearchDisplay', 'run', $params); + $this->assertCount(2, $result); + $this->assertEquals(['fa-file-text-o', 'fa-file-image-o', 'fa-file-image-o'], $result[0]['columns'][1]['icons']['left']); + $this->assertEquals([NULL, 'fa-search', NULL], $result[0]['columns'][1]['icons']['right']); + $this->assertEquals(['', 'crm-image-popup', ''], array_column($result[0]['columns'][1]['links'], 'style')); + $this->assertEquals(['test_file.txt', 'test_file.png', 'test_file_foo.unknown'], array_column($result[0]['columns'][1]['links'], 'text')); + } + + public function testRunWithAddressProximity(): void { + require_once __DIR__ . '/../../../../../../../tests/phpunit/CRM/Utils/Geocode/TestProvider.php'; + $sampleData = [ + ['geo_code_1' => \CRM_Utils_Geocode_TestProvider::GEO_CODE_1, 'geo_code_2' => \CRM_Utils_Geocode_TestProvider::GEO_CODE_2], + ['geo_code_1' => \CRM_Utils_Geocode_TestProvider::GEO_CODE_1 - .05, 'geo_code_2' => \CRM_Utils_Geocode_TestProvider::GEO_CODE_2 + .05], + ['geo_code_1' => '0', 'geo_code_2' => '0'], + ]; + $addresses = $this->saveTestRecords('Address', ['records' => $sampleData]) + ->column('id'); + + \Civi\Api4\Setting::set(FALSE) + ->addValue('geoProvider', 'TestProvider') + ->execute(); + + $params = [ + 'checkPermissions' => FALSE, + 'return' => 'page:1', + 'savedSearch' => [ + 'api_entity' => 'Address', + 'api_params' => [ + 'version' => 4, + // Hack proximity into select clause to allow filter + 'select' => ['id', 'proximity'], + 'where' => [ + ['id', 'IN', $addresses], + ], + ], + ], + 'display' => NULL, + 'filters' => ['proximity' => ['distance' => 1000, 'address' => \CRM_Utils_Geocode_TestProvider::ADDRESS]], + 'afform' => NULL, + 'debug' => TRUE, + ]; + + $result = civicrm_api4('SearchDisplay', 'run', $params); + $this->assertCount(2, $result); + } + /** * Returns all contacts in VIEW mode but only specified contact for EDIT. * diff --git a/civicrm/ext/search_kit/tests/phpunit/bootstrap.php b/civicrm/ext/search_kit/tests/phpunit/bootstrap.php index 5133778c81..63c9148e8e 100644 --- a/civicrm/ext/search_kit/tests/phpunit/bootstrap.php +++ b/civicrm/ext/search_kit/tests/phpunit/bootstrap.php @@ -26,7 +26,7 @@ $loader->register(); */ function cv($cmd, $decode = 'json') { $cmd = 'cv ' . $cmd; - $descriptorSpec = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => STDERR); + $descriptorSpec = [0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => STDERR]; $oldOutput = getenv('CV_OUTPUT'); putenv("CV_OUTPUT=json"); diff --git a/civicrm/ext/sequentialcreditnotes/info.xml b/civicrm/ext/sequentialcreditnotes/info.xml index c3763f76a7..91abcf2a0f 100644 --- a/civicrm/ext/sequentialcreditnotes/info.xml +++ b/civicrm/ext/sequentialcreditnotes/info.xml @@ -15,19 +15,22 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2020-01-28</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <tags> <tag>mgmt:hidden</tag> </tags> <develStage>stable</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <mixins> <mixin>setting-php@1.0.0</mixin> </mixins> <civix> <namespace>CRM/Sequentialcreditnotes</namespace> - <format>23.02.0</format> + <format>23.02.1</format> </civix> + <classloader> + <psr4 prefix="Civi\" path="Civi"/> + </classloader> </extension> diff --git a/civicrm/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php b/civicrm/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php index 4b35c35b76..429615a028 100644 --- a/civicrm/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php +++ b/civicrm/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php @@ -133,8 +133,8 @@ function _sequentialcreditnotes_civix_insert_navigation_menu(&$menu, $path, $ite if (empty($path)) { $menu[] = [ 'attributes' => array_merge([ - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, + 'label' => $item['name'] ?? NULL, + 'active' => 1, ], $item), ]; return TRUE; diff --git a/civicrm/ext/standaloneusers/CRM/Standaloneusers/DAO/User.php b/civicrm/ext/standaloneusers/CRM/Standaloneusers/DAO/User.php index d814534a78..76ae428a29 100644 --- a/civicrm/ext/standaloneusers/CRM/Standaloneusers/DAO/User.php +++ b/civicrm/ext/standaloneusers/CRM/Standaloneusers/DAO/User.php @@ -6,7 +6,7 @@ * * Generated from standaloneusers/xml/schema/CRM/Standaloneusers/User.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:44014e10073e5e7f63059f09956e77ca) + * (GenCodeChecksum:60852489e3705659312988971c632fb7) */ use CRM_Standaloneusers_ExtensionUtil as E; @@ -22,7 +22,7 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { * * @var string */ - public static $_tableName = 'civicrm_user'; + public static $_tableName = 'civicrm_uf_match'; /** * Field to show when displaying a record. @@ -58,38 +58,56 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { public $id; /** - * FK to Contact - possibly redundant + * Which Domain is this match entry for * - * @var int|string|null + * @var int|string * (SQL type: int unsigned) * Note that values will be retrieved from the database as a string. */ - public $contact_id; + public $domain_id; /** - * @var string - * (SQL type: varchar(60)) + * UF ID. Redundant in Standalone. Needs to be identical to id. + * + * @var int|string + * (SQL type: int unsigned) * Note that values will be retrieved from the database as a string. */ - public $username; + public $uf_id; + + /** + * Email (e.g. for password resets) + * + * @var string|null + * (SQL type: varchar(255)) + * Note that values will be retrieved from the database as a string. + */ + public $uf_name; /** - * Hashed password + * FK to Contact ID * + * @var int|string|null + * (SQL type: int unsigned) + * Note that values will be retrieved from the database as a string. + */ + public $contact_id; + + /** * @var string - * (SQL type: varchar(128)) + * (SQL type: varchar(60)) * Note that values will be retrieved from the database as a string. */ - public $password; + public $username; /** - * Email (e.g. for password resets) + * Hashed, not plaintext password * * @var string - * (SQL type: varchar(255)) + * (SQL type: varchar(128)) * Note that values will be retrieved from the database as a string. */ - public $email; + public $hashed_password; /** * FK to Role @@ -138,19 +156,28 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { public $timezone; /** - * The language for the user. + * UI language preferred by the given user/contact * - * @var int|string|null - * (SQL type: int unsigned) + * @var string|null + * (SQL type: varchar(5)) * Note that values will be retrieved from the database as a string. */ public $language; + /** + * The unspent token + * + * @var string|null + * (SQL type: varchar(40)) + * Note that values will be retrieved from the database as a string. + */ + public $password_reset_token; + /** * Class constructor. */ public function __construct() { - $this->__table = 'civicrm_user'; + $this->__table = 'civicrm_uf_match'; parent::__construct(); } @@ -173,6 +200,7 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { public static function getReferenceColumns() { if (!isset(Civi::$statics[__CLASS__]['links'])) { Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__); + Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'domain_id', 'civicrm_domain', 'id'); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id'); CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']); } @@ -190,7 +218,7 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { 'id' => [ 'name' => 'id', 'type' => CRM_Utils_Type::T_INT, - 'title' => E::ts('ID'), + 'title' => E::ts('UF Match ID'), 'description' => E::ts('Unique User ID'), 'required' => TRUE, 'usage' => [ @@ -199,8 +227,8 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.id', - 'table_name' => 'civicrm_user', + 'where' => 'civicrm_uf_match.id', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, @@ -208,78 +236,131 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { 'type' => 'Number', ], 'readonly' => TRUE, - 'add' => NULL, + 'add' => '5.67', ], - 'contact_id' => [ - 'name' => 'contact_id', + 'domain_id' => [ + 'name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, - 'title' => E::ts('Contact ID'), - 'description' => E::ts('FK to Contact - possibly redundant'), + 'title' => E::ts('Domain ID'), + 'description' => E::ts('Which Domain is this match entry for'), + 'required' => TRUE, 'usage' => [ 'import' => FALSE, 'export' => FALSE, 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.contact_id', - 'table_name' => 'civicrm_user', + 'where' => 'civicrm_uf_match.domain_id', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, - 'FKClassName' => 'CRM_Contact_DAO_Contact', - 'add' => NULL, + 'FKClassName' => 'CRM_Core_DAO_Domain', + 'html' => [ + 'label' => E::ts("Domain"), + ], + 'pseudoconstant' => [ + 'table' => 'civicrm_domain', + 'keyColumn' => 'id', + 'labelColumn' => 'name', + ], + 'add' => '3.0', ], - 'username' => [ - 'name' => 'username', - 'type' => CRM_Utils_Type::T_STRING, - 'title' => E::ts('Username'), + 'uf_id' => [ + 'name' => 'uf_id', + 'type' => CRM_Utils_Type::T_INT, + 'title' => E::ts('CMS ID'), + 'description' => E::ts('UF ID. Redundant in Standalone. Needs to be identical to id.'), 'required' => TRUE, - 'maxlength' => 60, - 'size' => CRM_Utils_Type::BIG, 'usage' => [ 'import' => FALSE, 'export' => FALSE, 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.username', - 'table_name' => 'civicrm_user', + 'where' => 'civicrm_uf_match.uf_id', + 'default' => '0', + 'table_name' => 'civicrm_uf_match', + 'entity' => 'User', + 'bao' => 'CRM_Standaloneusers_DAO_User', + 'localizable' => 0, + 'add' => '1.1', + ], + 'uf_name' => [ + 'name' => 'uf_name', + 'type' => CRM_Utils_Type::T_STRING, + 'title' => E::ts('User Email'), + 'description' => E::ts('Email (e.g. for password resets)'), + 'maxlength' => 255, + 'size' => CRM_Utils_Type::HUGE, + 'usage' => [ + 'import' => FALSE, + 'export' => FALSE, + 'duplicate_matching' => FALSE, + 'token' => FALSE, + ], + 'where' => 'civicrm_uf_match.uf_name', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, 'html' => [ - 'type' => 'Text', + 'type' => 'Email', ], 'add' => NULL, ], - 'password' => [ - 'name' => 'password', + 'contact_id' => [ + 'name' => 'contact_id', + 'type' => CRM_Utils_Type::T_INT, + 'title' => E::ts('Contact ID'), + 'description' => E::ts('FK to Contact ID'), + 'usage' => [ + 'import' => FALSE, + 'export' => FALSE, + 'duplicate_matching' => FALSE, + 'token' => FALSE, + ], + 'where' => 'civicrm_uf_match.contact_id', + 'table_name' => 'civicrm_uf_match', + 'entity' => 'User', + 'bao' => 'CRM_Standaloneusers_DAO_User', + 'localizable' => 0, + 'FKClassName' => 'CRM_Contact_DAO_Contact', + 'html' => [ + 'label' => E::ts("Contact"), + ], + 'add' => '1.1', + ], + 'username' => [ + 'name' => 'username', 'type' => CRM_Utils_Type::T_STRING, - 'title' => E::ts('Password'), - 'description' => E::ts('Hashed password'), + 'title' => E::ts('Username'), 'required' => TRUE, - 'maxlength' => 128, - 'size' => CRM_Utils_Type::HUGE, + 'maxlength' => 60, + 'size' => CRM_Utils_Type::BIG, 'usage' => [ 'import' => FALSE, 'export' => FALSE, 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.password', - 'table_name' => 'civicrm_user', + 'where' => 'civicrm_uf_match.username', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, + 'html' => [ + 'type' => 'Text', + ], 'add' => NULL, ], - 'email' => [ - 'name' => 'email', + 'hashed_password' => [ + 'name' => 'hashed_password', 'type' => CRM_Utils_Type::T_STRING, - 'title' => E::ts('Email'), - 'description' => E::ts('Email (e.g. for password resets)'), + 'title' => E::ts('Hashed Password'), + 'description' => E::ts('Hashed, not plaintext password'), 'required' => TRUE, - 'maxlength' => 255, + 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE, 'usage' => [ 'import' => FALSE, @@ -287,14 +368,13 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.email', - 'table_name' => 'civicrm_user', + 'where' => 'civicrm_uf_match.hashed_password', + 'default' => '', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, - 'html' => [ - 'type' => 'Text', - ], + 'readonly' => TRUE, 'add' => NULL, ], 'roles' => [ @@ -310,8 +390,8 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.roles', - 'table_name' => 'civicrm_user', + 'where' => 'civicrm_uf_match.roles', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, @@ -338,9 +418,9 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.when_created', + 'where' => 'civicrm_uf_match.when_created', 'default' => 'CURRENT_TIMESTAMP', - 'table_name' => 'civicrm_user', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, @@ -357,8 +437,8 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.when_last_accessed', - 'table_name' => 'civicrm_user', + 'where' => 'civicrm_uf_match.when_last_accessed', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, @@ -375,8 +455,8 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.when_updated', - 'table_name' => 'civicrm_user', + 'where' => 'civicrm_uf_match.when_updated', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, @@ -393,9 +473,9 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.is_active', + 'where' => 'civicrm_uf_match.is_active', 'default' => '1', - 'table_name' => 'civicrm_user', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, @@ -418,8 +498,8 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.timezone', - 'table_name' => 'civicrm_user', + 'where' => 'civicrm_uf_match.timezone', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, @@ -430,27 +510,43 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { ], 'language' => [ 'name' => 'language', - 'type' => CRM_Utils_Type::T_INT, - 'title' => E::ts('Language'), - 'description' => E::ts('The language for the user.'), + 'type' => CRM_Utils_Type::T_STRING, + 'title' => E::ts('Preferred Language'), + 'description' => E::ts('UI language preferred by the given user/contact'), + 'maxlength' => 5, + 'size' => CRM_Utils_Type::SIX, 'usage' => [ 'import' => FALSE, 'export' => FALSE, 'duplicate_matching' => FALSE, 'token' => FALSE, ], - 'where' => 'civicrm_user.language', - 'table_name' => 'civicrm_user', + 'where' => 'civicrm_uf_match.language', + 'table_name' => 'civicrm_uf_match', 'entity' => 'User', 'bao' => 'CRM_Standaloneusers_DAO_User', 'localizable' => 0, - 'html' => [ - 'type' => 'Select', - ], - 'pseudoconstant' => [ - 'optionGroupName' => 'languages', - 'optionEditPath' => 'civicrm/admin/options/languages', + 'add' => '2.1', + ], + 'password_reset_token' => [ + 'name' => 'password_reset_token', + 'type' => CRM_Utils_Type::T_STRING, + 'title' => E::ts('Password Reset Token'), + 'description' => E::ts('The unspent token'), + 'maxlength' => 40, + 'size' => CRM_Utils_Type::BIG, + 'usage' => [ + 'import' => FALSE, + 'export' => FALSE, + 'duplicate_matching' => FALSE, + 'token' => FALSE, ], + 'where' => 'civicrm_uf_match.password_reset_token', + 'table_name' => 'civicrm_uf_match', + 'entity' => 'User', + 'bao' => 'CRM_Standaloneusers_DAO_User', + 'localizable' => 0, + 'readonly' => TRUE, 'add' => NULL, ], ]; @@ -498,7 +594,7 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { * @return array */ public static function &import($prefix = FALSE) { - $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'user', $prefix, []); + $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'uf_match', $prefix, []); return $r; } @@ -510,7 +606,7 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { * @return array */ public static function &export($prefix = FALSE) { - $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'user', $prefix, []); + $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'uf_match', $prefix, []); return $r; } @@ -523,6 +619,14 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { */ public static function indices($localize = TRUE) { $indices = [ + 'I_civicrm_uf_match_uf_id' => [ + 'name' => 'I_civicrm_uf_match_uf_id', + 'field' => [ + 0 => 'uf_id', + ], + 'localizable' => FALSE, + 'sig' => 'civicrm_uf_match::0::uf_id', + ], 'UI_username' => [ 'name' => 'UI_username', 'field' => [ @@ -530,7 +634,27 @@ class CRM_Standaloneusers_DAO_User extends CRM_Core_DAO { ], 'localizable' => FALSE, 'unique' => TRUE, - 'sig' => 'civicrm_user::1::username', + 'sig' => 'civicrm_uf_match::1::username', + ], + 'UI_uf_name_domain_id' => [ + 'name' => 'UI_uf_name_domain_id', + 'field' => [ + 0 => 'uf_name', + 1 => 'domain_id', + ], + 'localizable' => FALSE, + 'unique' => TRUE, + 'sig' => 'civicrm_uf_match::1::uf_name::domain_id', + ], + 'UI_contact_domain_id' => [ + 'name' => 'UI_contact_domain_id', + 'field' => [ + 0 => 'contact_id', + 1 => 'domain_id', + ], + 'localizable' => FALSE, + 'unique' => TRUE, + 'sig' => 'civicrm_uf_match::1::contact_id::domain_id', ], ]; return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; diff --git a/civicrm/ext/standaloneusers/CRM/Standaloneusers/Page/ChangePassword.php b/civicrm/ext/standaloneusers/CRM/Standaloneusers/Page/ChangePassword.php new file mode 100644 index 0000000000..04c9c3bdc1 --- /dev/null +++ b/civicrm/ext/standaloneusers/CRM/Standaloneusers/Page/ChangePassword.php @@ -0,0 +1,14 @@ +<?php +use CRM_Standaloneusers_ExtensionUtil as E; + +class CRM_Standaloneusers_Page_ChangePassword extends CRM_Core_Page { + + public function run() { + $this->assign('hibp', CIVICRM_HIBP_URL); + $this->assign('loggedInUserID', CRM_Utils_System::getLoggedInUfID()); + Civi::service('angularjs.loader')->addModules('crmChangePassword'); + // @todo specify the user in the URL somehow. + parent::run(); + } + +} diff --git a/civicrm/ext/standaloneusers/CRM/Standaloneusers/Page/ResetPassword.php b/civicrm/ext/standaloneusers/CRM/Standaloneusers/Page/ResetPassword.php new file mode 100644 index 0000000000..1f18b66c39 --- /dev/null +++ b/civicrm/ext/standaloneusers/CRM/Standaloneusers/Page/ResetPassword.php @@ -0,0 +1,32 @@ +<?php +use CRM_Standaloneusers_ExtensionUtil as E; + +use Civi\Standalone\Security; + +/** + * Provide the send password reset / reset password page. + * URL: /civicrm/login/password[?token=xxxx] + * + * If called with ?token=xxxx then it's the latter. + */ +class CRM_Standaloneusers_Page_ResetPassword extends CRM_Core_Page { + + public function run() { + + $this->assign('hibp', CIVICRM_HIBP_URL); + // $this->assign('loggedInUserID', CRM_Utils_System::getLoggedInUfID()); + Civi::service('angularjs.loader')->addModules('crmResetPassword'); + + // If we have a password reset token, validate it without 'spending' it. + $token = CRM_Utils_Request::retrieveValue('token', 'String', NULL, FALSE, $method = 'GET'); + if ($token) { + if (!Security::singleton()->checkPasswordResetToken($token, FALSE)) { + $token = 'invalid'; + } + $this->assign('token', $token); + } + + parent::run(); + } + +} diff --git a/civicrm/ext/standaloneusers/CRM/Standaloneusers/Upgrader.php b/civicrm/ext/standaloneusers/CRM/Standaloneusers/Upgrader.php index ecde5dc978..d6b7615a10 100644 --- a/civicrm/ext/standaloneusers/CRM/Standaloneusers/Upgrader.php +++ b/civicrm/ext/standaloneusers/CRM/Standaloneusers/Upgrader.php @@ -1,5 +1,6 @@ <?php use CRM_Standaloneusers_ExtensionUtil as E; +use Civi\Api4\MessageTemplate; /** * Collection of upgrade steps. @@ -44,21 +45,52 @@ class CRM_Standaloneusers_Upgrader extends CRM_Extension_Upgrader_Base { */ public function postInstall() { + // Ensure users can login with username/password via authx. Civi::settings()->set('authx_login_cred', array_unique(array_merge( Civi::settings()->get('authx_login_cred'), ['pass'] ))); - $users = \Civi\Api4\User::get(FALSE)->selectRowCount()->execute()->countMatched(); - if ($users == 0) { - CRM_Core_DAO::executeQuery('DELETE FROM civicrm_uf_match'); - } + $this->createPasswordResetMessageTemplate(); // `standaloneusers` is installed as part of the overall install process for `Standalone`. // A subsequent step will configure some default users (*depending on local options*). // See also: `StandaloneUsers.civi-setup.php` } + protected function createPasswordResetMessageTemplate() { + + $baseTpl = [ + 'workflow_name' => 'password_reset', + 'msg_title' => 'Password reset', + 'msg_subject' => 'Password reset link for {domain.name}', + 'msg_text' => <<<TXT + A password reset link was requested for this account. If this wasn\'t you (and nobody else can access this email account) you can safely ignore this email. + + {\$resetUrlPlaintext} + + {domain.name} + TXT, + 'msg_html' => <<<HTML + <p>A password reset link was requested for this account. If this wasn\'t you (and nobody else can access this email account) you can safely ignore this email.</p> + + <p><a href="{\$resetUrlHtml}">{\$resetUrlHtml}</a></p> + + <p>{domain.name}</p> + HTML, + ]; + + // Create a "reserved" template. This is a pristine copy provided for reference. + MessageTemplate::save(FALSE) + ->setDefaults($baseTpl) + ->setRecords([ + ['is_reserved' => TRUE, 'is_default' => FALSE], + ['is_reserved' => FALSE, 'is_default' => TRUE], + ]) + ->execute(); + + } + /** * Example: Run an external SQL script when the module is uninstalled. */ diff --git a/civicrm/ext/standaloneusers/CRM/Standaloneusers/WorkflowMessage/PasswordReset.php b/civicrm/ext/standaloneusers/CRM/Standaloneusers/WorkflowMessage/PasswordReset.php new file mode 100644 index 0000000000..3797232262 --- /dev/null +++ b/civicrm/ext/standaloneusers/CRM/Standaloneusers/WorkflowMessage/PasswordReset.php @@ -0,0 +1,82 @@ +<?php +use Civi\WorkflowMessage\GenericWorkflowMessage; + +/** + * + * @method static setResetUrlPlaintext(string $s) + * @method static setResetUrlHtml(string $s) + * @method static setUsernamePlaintext(string $s) + * @method static setUsernameHtml(string $s) + * + */ +class CRM_Standaloneusers_WorkflowMessage_PasswordReset extends GenericWorkflowMessage { + + public const WORKFLOW = 'password_reset'; + + /** + * Plaintext full URL to user's password reset. + * + * @var string + * + * @scope tplParams + */ + public $resetUrlPlaintext; + + /** + * HTML full URL to user's password reset. + * + * @var string + * + * @scope tplParams + */ + public $resetUrlHtml; + + /** + * Plaintext username. + * + * @var string + * + * @scope tplParams + */ + public $usernamePlaintext; + + /** + * HTML username. + * + * @var string + * + * @scope tplParams + */ + public $usernameHtml; + + /** + * @var array + */ + protected $logParams; + + /** + * Generate/regenerate a token for the user and load the tplParams + */ + public function setDataFromUser(array $user, string $token) { + $resetUrlPlaintext = \CRM_Utils_System::url('civicrm/login/password', ['token' => $token], TRUE, NULL, FALSE); + $resetUrlHtml = htmlspecialchars($resetUrlPlaintext); + $this->logParams = [ + 'userID' => $user['id'], + 'username' => $user['username'], + 'email' => $user['uf_name'], + 'url' => $resetUrlPlaintext, + ]; + $this + ->setResetUrlPlaintext($resetUrlPlaintext) + ->setResetUrlHtml($resetUrlHtml) + ->setUsernamePlaintext($user['username']) + ->setUsernameHtml(htmlspecialchars($user['username'])) + ->setTo($user['uf_name']); + return $this; + } + + public function getParamsForLog(): array { + return $this->logParams; + } + +} diff --git a/civicrm/ext/standaloneusers/Civi/Api4/Action/User/Create.php b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/Create.php new file mode 100644 index 0000000000..b28fcf6b59 --- /dev/null +++ b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/Create.php @@ -0,0 +1,12 @@ +<?php +namespace Civi\Api4\Action\User; + +use Civi\Api4\Generic\DAOCreateAction; + +/** + * use Civi\Api4\Generic\Result; + */ +class Create extends DAOCreateAction { + use WriteTrait; + +} diff --git a/civicrm/ext/standaloneusers/Civi/Api4/Action/User/PasswordReset.php b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/PasswordReset.php new file mode 100644 index 0000000000..e02928d0e1 --- /dev/null +++ b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/PasswordReset.php @@ -0,0 +1,57 @@ +<?php +namespace Civi\Api4\Action\User; + +use Civi\Api4\Generic\Result; +use Civi\Standalone\Security; +use API_Exception; +use Civi\Api4\User; +use Civi\Api4\Generic\AbstractAction; + +/** + * This is designed to be a public API + * + * @method static setIdentifier(string $identifier) + */ +class PasswordReset extends AbstractAction { + + /** + * Password reset token. + * + * @var string + * @required + */ + protected string $token; + + /** + * New password. + * + * @var string + * @required + */ + protected string $password; + + public function _run(Result $result) { + + if (empty($this->password)) { + throw new API_Exception("Invalid password"); + } + + // todo: some minimum password quality check? + + // Only valid change here is password, for a known ID. + $security = Security::singleton(); + $userID = $security->checkPasswordResetToken($this->token); + if (!$userID) { + throw new API_Exception("Invalid token."); + } + + User::update(FALSE) + ->addWhere('id', '=', $userID) + ->addValue('password', $this->password) + ->execute(); + + $result['success'] = 1; + \Civi::log()->info("Changed password for user {userID} via User.PasswordReset", compact('userID')); + } + +} diff --git a/civicrm/ext/standaloneusers/Civi/Api4/Action/User/Save.php b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/Save.php new file mode 100644 index 0000000000..34148924dd --- /dev/null +++ b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/Save.php @@ -0,0 +1,9 @@ +<?php +namespace Civi\Api4\Action\User; + +use Civi\Api4\Generic\DAOSaveAction; + +class Save extends DAOSaveAction { + use WriteTrait; + +} diff --git a/civicrm/ext/standaloneusers/Civi/Api4/Action/User/SendPasswordReset.php b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/SendPasswordReset.php new file mode 100644 index 0000000000..101d210675 --- /dev/null +++ b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/SendPasswordReset.php @@ -0,0 +1,121 @@ +<?php +namespace Civi\Api4\Action\User; + +// @todo +// URL is (a) just theh path in the emails. +// clicking button on form with proper token does nothing. +// should redirect to login on success + +use Civi; +use Civi\Api4\Generic\Result; +use API_Exception; +use Civi\Api4\User; +use Civi\Standalone\Security; +use Civi\Api4\Generic\AbstractAction; + +/** + * @class API_Exception + */ + +/** + * This is designed to be a public API + * + * @method static setIdentifier(string $identifier) + */ +class SendPasswordReset extends AbstractAction { + + /** + * Username or email of user to send email for. + * + * @var string + * @default '' + */ + protected string $identifier; + + public function _run(Result $result) { + $endNoSoonerThan = 0.25 + microtime(TRUE); + + $identifier = trim($this->identifier); + if (!$identifier) { + throw new API_Exception("Missing identifier"); + } + + $user = User::get(FALSE) + ->addSelect('id', 'uf_name', 'username') + ->addWhere('is_active', '=', TRUE) + ->setLimit(1) + ->addWhere( + filter_var($identifier, FILTER_VALIDATE_EMAIL) ? 'uf_name' : 'username', + '=', + $identifier) + ->execute() + ->first(); + $userID = $user['id'] ?? 0; + + try { + // Allow flood control by extensions. (e.g. Moat). + $event = \Civi\Core\Event\GenericHookEvent::create([ + 'action' => 'send_password_reset', + 'identifiers' => ["user:$userID"], + ]); + \Civi::dispatcher()->dispatch('civi.flood.drip', $event); + } + catch (\Exception $e) { + // If we caught an exception, disable sending. + $userID = 0; + } + + if ($userID) { + // (Re)generate token and store on User. + $token = static::updateToken($userID); + + $workflowMessage = Security::singleton()->preparePasswordResetWorkflow($user, $token); + if ($workflowMessage) { + // The template_params are used in the template like {$resetUrlHtml} and {$resetUrlHtml} {$usernamePlaintext} {$usernameHtml} + try { + [$sent, /*$subject, $text, $html*/] = $workflowMessage->sendTemplate(); + if (!$sent) { + throw new \RuntimeException("sendTemplate() returned unsent."); + } + Civi::log()->info("Successfully sent password reset to user {userID} ({username}) to {email}", $workflowMessage->getParamsForLog()); + } + catch (\Exception $e) { + Civi::log()->error("Failed to send password reset to user {userID} ({username}) to {email}", $workflowMessage->getParamsForLog() + ['exception' => $e]); + } + } + } + + // Ensure we took at least 0.25s. The assumption is that it takes + // less than 0.25s to generate and send an email, and so this will + // disguise whether an email has been sent or not. It's won't + // thwart concerted timing attacks, but in combination with flood + // control, it might help. + usleep(1000000 * max(0, $endNoSoonerThan - microtime(TRUE))); + } + + /** + * Generate and store a token on the User record. + * + * @param int $userID + * + * @return string + * The token + */ + public static function updateToken(int $userID): string { + // Generate a once-use token that expires in 1 hour. + // We'll store this on the User record, that way invalidating any previous token that may have been generated. + // The format is <expiry><random><userID> + // The UserID shouldn't need to be secret. + // We only store <expiry><random> on the User record. + $expires = time() + 60 * 60; + $token = dechex($expires) . substr(preg_replace('@[/+=]+@', '', base64_encode(random_bytes(64))), 0, 32); + + User::update(FALSE) + ->addValue('password_reset_token', $token) + ->addWhere('id', '=', $userID) + ->execute(); + + return $token . dechex($userID); + } + +} diff --git a/civicrm/ext/standaloneusers/Civi/Api4/Action/User/Update.php b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/Update.php new file mode 100644 index 0000000000..2fcdace1f8 --- /dev/null +++ b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/Update.php @@ -0,0 +1,9 @@ +<?php +namespace Civi\Api4\Action\User; + +use Civi\Api4\Generic\DAOUpdateAction; + +class Update extends DAOUpdateAction { + use WriteTrait; + +} diff --git a/civicrm/ext/standaloneusers/Civi/Api4/Action/User/WriteTrait.php b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/WriteTrait.php new file mode 100644 index 0000000000..7b7b998329 --- /dev/null +++ b/civicrm/ext/standaloneusers/Civi/Api4/Action/User/WriteTrait.php @@ -0,0 +1,149 @@ +<?php +namespace Civi\Api4\Action\User; + +use Civi\API\Exception\UnauthorizedException; + +use Civi\Standalone\Security; + +trait WriteTrait { + + /** + * If given, this is checked against the current user's password before the change is allowed. + * + * @var string + */ + protected $actorPassword; + + /** + * At this point we don't have the records we're going to update, we just have the + * API values we're going to SET on (each) record that gets processed. + * + * We can do some basic checks. + * + * Do all most of our complex permissions checks here. + * + * Convert plaintext passwords into hashed ones for storage. + * + * @param array $record + * @throws \CRM_Core_Exception + */ + protected function formatWriteValues(&$record) { + + if ($this->getCheckPermissions()) { + // We must have a logged in user if we're checking permissions. + $loggedInUserID = \CRM_Utils_System::getLoggedInUfID(); + if (!$loggedInUserID) { + throw new UnauthorizedException("Unauthorized"); + } + + // We never allow one user to directly change the hashed password of another. + // We assume that directly setting hashed_password would only ever be done by + // integration/migration scripts which would not use checkPermissions() + // Some other things should also not be changed by permissioned API call. + $disallowChanging = ['hashed_password', 'when_created', 'when_last_accessed', 'when_updated']; + $forbidden = array_intersect_key($record, array_flip($disallowChanging)); + if ($forbidden) { + throw new UnauthorizedException("Not allowed to change " . implode(' or ', array_keys($forbidden))); + } + + $requireAdminPermissionToChange = ['contact_id', 'roles', 'is_active']; + $forbidden = array_intersect_key($record, array_flip($requireAdminPermissionToChange)); + if (!\CRM_Core_Permission::check(['cms:administer users']) && $forbidden) { + throw new UnauthorizedException("Not allowed to change " . implode(' or ', array_keys($forbidden))); + } + } + if (array_key_exists('password', $record)) { + if (!empty($record['hashed_password'])) { + throw new API_Exception("Ambiguous password parameters: Cannot pass password AND hashed_password."); + } + if (empty($record['password'])) { + throw new API_Exception("Disallowing empty password."); + } + } + parent::formatWriteValues($record); + } + + /** + * This is called with the values for a record fully loaded. + * + * Note that we will now have hashed_password, as well as possibly password. + * + */ + protected function validateValues() { + if (!$this->getCheckPermissions()) { + return; + } + $loggedInUserID = \CRM_Utils_System::getLoggedInUfID() ?? FALSE; + $hasAdminPermission = \CRM_Core_Permission::check(['cms:administer users']); + $authenticatedAsLoggedInUser = FALSE; + $security = Security::singleton(); + // Check that we have the logged-in-user's password. + if ($this->actorPassword && $loggedInUserID) { + $storedHashedPassword = \Civi\Api4\User::get(FALSE) + ->addWhere('id', '=', $loggedInUserID) + ->addSelect('hashed_password') + ->execute() + ->single()['hashed_password']; + if (!$security->checkPassword($this->actorPassword, $storedHashedPassword)) { + throw new UnauthorizedException("Incorrect password"); + } + $authenticatedAsLoggedInUser = TRUE; + } + + $records = ($this->getActionName() === 'save') ? $this->records : [$this->getValues()]; + foreach ($records as $values) { + // Cases: + // 1. Not logged in: only valid change is password, if we have a passwordResetToken. + // 2. Logged in: if change includes password, require $authenticatedAsLoggedInUser + // 2.1 if changing a different user to the logged in user, require $hasAdminPermission + // 3. Logged in: change is without password + // 3.1 if changing a different user to the logged in user, require $hasAdminPermission + + $changingPassword = array_key_exists('password', $values); + if (!$loggedInUserID) { + throw new UnauthorizedException("Unauthorized"); + } + else { + $changingOtherUser = ($values['id'] ?? FALSE) !== $loggedInUserID; + if ($changingOtherUser && !$hasAdminPermission) { + throw new UnauthorizedException("You are not permitted to change other users' accounts."); + } + if ($changingPassword && !$authenticatedAsLoggedInUser) { + throw new UnauthorizedException("Unauthorized"); + } + } + } + } + + /** + * Overrideable function to save items using the appropriate BAO function + * + * @param array[] $items + * Items already formatted by self::writeObjects + * @return \CRM_Core_DAO[] + * Array of saved DAO records + */ + protected function write(array $items) { + foreach ($items as &$item) { + // If given, convert password to hashed_password now. + if (isset($item['password'])) { + $item['hashed_password'] = Security::singleton()->hashPassword($item['password']); + unset($item['password']); + } + } + unset($item); + + // Call parent to do the main saving. + $saved = parent::write($items); + + // Enforce uf_id === id + foreach ($saved as $bao) { + if ($bao->uf_id !== $bao->id) { + $bao->uf_id = $bao->id; + $bao->save(); + } + } + return $saved; + } + +} diff --git a/civicrm/ext/standaloneusers/Civi/Api4/Service/Spec/Provider/UserSpecProvider.php b/civicrm/ext/standaloneusers/Civi/Api4/Service/Spec/Provider/UserSpecProvider.php new file mode 100644 index 0000000000..486fa97f87 --- /dev/null +++ b/civicrm/ext/standaloneusers/Civi/Api4/Service/Spec/Provider/UserSpecProvider.php @@ -0,0 +1,42 @@ +<?php + +/* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ + */ + +namespace Civi\Api4\Service\Spec\Provider; + +use Civi\Api4\Service\Spec\FieldSpec; +use Civi\Api4\Service\Spec\RequestSpec; + +/** + * @service + * @internal + */ +class UserSpecProvider extends \Civi\Core\Service\AutoService implements Generic\SpecProviderInterface { + + /** + * @inheritDoc + */ + public function modifySpec(RequestSpec $spec) { + $password = new FieldSpec('password', 'User', 'String'); + $password->setTitle(ts('New password')); + $password->setDescription('Provide a new password for this user.'); + $password->setInputType('Password'); + $spec->addFieldSpec($password); + } + + /** + * @inheritDoc + */ + public function applies($entity, $action) { + return $entity === 'User' && in_array($action, ['create', 'update', 'save']); + } + +} diff --git a/civicrm/ext/standaloneusers/Civi/Api4/User.php b/civicrm/ext/standaloneusers/Civi/Api4/User.php index ddb629fadd..a013da7269 100644 --- a/civicrm/ext/standaloneusers/Civi/Api4/User.php +++ b/civicrm/ext/standaloneusers/Civi/Api4/User.php @@ -1,6 +1,11 @@ <?php namespace Civi\Api4; +use Civi\Api4\Action\User\Create; +use Civi\Api4\Action\User\Save; +use Civi\Api4\Action\User\Update; +use Civi\Api4\Action\User\SendPasswordReset; + /** * User entity. * @@ -10,4 +15,51 @@ namespace Civi\Api4; */ class User extends Generic\DAOEntity { + /** + * @param bool $checkPermissions + * @return \Civi\Api4\Action\User\Save + */ + public static function save($checkPermissions = TRUE): Save { + return (new Save(static::getEntityName(), __FUNCTION__)) + ->setCheckPermissions($checkPermissions); + } + + /** + * @param bool $checkPermissions + * @return \Civi\Api4\Action\User\Create + */ + public static function create($checkPermissions = TRUE): Create { + return (new Create(static::getEntityName(), __FUNCTION__)) + ->setCheckPermissions($checkPermissions); + } + + /** + * @param bool $checkPermissions + * @return \Civi\Api4\Action\User\Update + */ + public static function update($checkPermissions = TRUE): Update { + return (new Update(static::getEntityName(), __FUNCTION__)) + ->setCheckPermissions($checkPermissions); + } + + /** + * @param bool $checkPermissions + * @return \Civi\Api4\Action\User\SendPasswordReset + */ + public static function sendPasswordReset($checkPermissions = TRUE): SendPasswordReset { + return (new SendPasswordReset(static::getEntityName(), __FUNCTION__)) + ->setCheckPermissions($checkPermissions); + } + + /** + * Permissions are wide on this but are checked in validateValues. + */ + public static function permissions() { + return [ + 'default' => ['access CiviCRM'], + 'passwordReset' => ['access password resets'], + 'sendPasswordReset' => ['access password resets'], + ]; + } + } diff --git a/civicrm/ext/standaloneusers/Civi/Authx/Standalone.php b/civicrm/ext/standaloneusers/Civi/Authx/Standalone.php index 0eea52cc9f..f3156c5127 100644 --- a/civicrm/ext/standaloneusers/Civi/Authx/Standalone.php +++ b/civicrm/ext/standaloneusers/Civi/Authx/Standalone.php @@ -21,7 +21,7 @@ class Standalone implements AuthxInterface { public function checkPassword(string $username, string $password) { $security = Security::singleton(); $user = $security->loadUserByName($username); - return $security->checkPassword($password, $user['password'] ?? '') ? $user['id'] : NULL; + return $security->checkPassword($password, $user['hashed_password'] ?? '') ? $user['id'] : NULL; } /** diff --git a/civicrm/ext/standaloneusers/Civi/Standalone/PasswordAlgorithms/AlgorithmInterface.php b/civicrm/ext/standaloneusers/Civi/Standalone/PasswordAlgorithms/AlgorithmInterface.php new file mode 100644 index 0000000000..edfdde795c --- /dev/null +++ b/civicrm/ext/standaloneusers/Civi/Standalone/PasswordAlgorithms/AlgorithmInterface.php @@ -0,0 +1,21 @@ +<?php +namespace Civi\Standalone\PasswordAlgorithms; + +interface AlgorithmInterface { + + /** + * Checks if a password matches the stored value + * + * @return bool + */ + public function checkPassword(string $plaintext, string $storedPassword): bool; + + /** + * Creates a hashed value to store for given password. + * + * Responsible for loading any of its configurable settings. + * + */ + public function hashPassword(string $plaintext): string; + +} diff --git a/civicrm/ext/standaloneusers/Civi/Standalone/PasswordAlgorithms/Drupal7.php b/civicrm/ext/standaloneusers/Civi/Standalone/PasswordAlgorithms/Drupal7.php new file mode 100644 index 0000000000..25e9db1da4 --- /dev/null +++ b/civicrm/ext/standaloneusers/Civi/Standalone/PasswordAlgorithms/Drupal7.php @@ -0,0 +1,184 @@ +<?php +namespace Civi\Standalone\PasswordAlgorithms; + +class Drupal7 implements AlgorithmInterface { + + public const ITOA64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; + + /** + * @var string + */ + public static $defaultAlgo = 'sha512'; + + /** + * @var int + */ + public static $minHashCount = 7; + + /** + * @var int + */ + public static $maxHashCount = 30; + + /** + * @var int + */ + public static $hashLength = 55; + + /** + * Checks if a password matches the stored value + * + * @return bool + */ + public function checkPassword(string $plaintext, string $storedPassword): bool { + return hash_equals($storedPassword, $this->_d7_password_crypt('sha512', $plaintext, $storedPassword)); + } + + /** + * Creates a hashed value to store for given password. + * + * Responsible for loading any of its configurable settings. + * + */ + public function hashPassword(string $plaintext): string { + return $this->_d7_password_crypt('sha512', $plaintext, $this->_d7_password_generate_salt()); + } + + /** + * This is taken from Drupal 7.91 + * + * Encodes bytes into printable base 64 using the *nix standard from crypt(). + * + * @param $input + * The string containing bytes to encode. + * @param $count + * The number of characters (bytes) to encode. + * + * @return string + * Encoded string + */ + public function _d7_password_base64_encode($input, $count): string { + $output = ''; + $i = 0; + $itoa64 = self::ITOA64; + do { + $value = ord($input[$i++]); + $output .= $itoa64[$value & 0x3f]; + if ($i < $count) { + $value |= ord($input[$i]) << 8; + } + $output .= $itoa64[($value >> 6) & 0x3f]; + if ($i++ >= $count) { + break; + } + if ($i < $count) { + $value |= ord($input[$i]) << 16; + } + $output .= $itoa64[($value >> 12) & 0x3f]; + if ($i++ >= $count) { + break; + } + $output .= $itoa64[($value >> 18) & 0x3f]; + } while ($i < $count); + + return $output; + } + + /** + * This is taken from Drupal 7.91 + * + * Generates a random base 64-encoded salt prefixed with settings for the hash. + * + * Proper use of salts may defeat a number of attacks, including: + * - The ability to try candidate passwords against multiple hashes at once. + * - The ability to use pre-hashed lists of candidate passwords. + * - The ability to determine whether two users have the same (or different) + * password without actually having to guess one of the passwords. + * + * @param $count_log2 + * Integer that determines the number of iterations used in the hashing + * process. A larger value is more secure, but takes more time to complete. + * + * @return string + * A 12 character string containing the iteration count and a random salt. + */ + public function _d7_password_generate_salt($count_log2 = NULL): string { + + // Standalone: D7 has this stored as a CMS variable setting. + // @todo use global setting that can be changed in civicrm.settings.php + // For now, we just pick a value half way between our hard-coded min and max. + if ($count_log2 === NULL) { + $count_log2 = (int) ((static::$maxHashCount + static::$minHashCount) / 2); + } + $output = '$S$'; + // Ensure that $count_log2 is within set bounds. + $count_log2 = max(static::$minHashCount, min(static::$maxHashCount, $count_log2)); + // We encode the final log2 iteration count in base 64. + $output .= self::ITOA64[$count_log2]; + // 6 bytes is the standard salt for a portable phpass hash. + $output .= $this->_d7_password_base64_encode(random_bytes(6), 6); + return $output; + } + + /** + * This is taken from Drupal 7.91 + * + * Hash a password using a secure stretched hash. + * + * By using a salt and repeated hashing the password is "stretched". Its + * security is increased because it becomes much more computationally costly + * for an attacker to try to break the hash by brute-force computation of the + * hashes of a large number of plain-text words or strings to find a match. + * + * @param $algo + * The string name of a hashing algorithm usable by hash(), like 'sha256'. + * @param $password + * Plain-text password up to 512 bytes (128 to 512 UTF-8 characters) to hash. + * @param $setting + * An existing hash or the output of _d7_password_generate_salt(). Must be + * at least 12 characters (the settings and salt). + * + * @return string|bool + * A string containing the hashed password (and salt) or FALSE on failure. + * The return string will be truncated at DRUPAL_HASH_LENGTH characters max. + */ + protected function _d7_password_crypt($algo, $password, $setting) { + // Prevent DoS attacks by refusing to hash large passwords. + if (strlen($password) > 512) { + return FALSE; + } + // The first 12 characters of an existing hash are its setting string. + $setting = substr($setting, 0, 12); + + if ($setting[0] != '$' || $setting[2] != '$') { + return FALSE; + } + + $count_log2 = strpos(self::ITOA64, $setting[3]); + + // Hashes may be imported from elsewhere, so we allow != DRUPAL_HASH_COUNT + if ($count_log2 < self::$minHashCount || $count_log2 > self::$maxHashCount) { + return FALSE; + } + $salt = substr($setting, 4, 8); + // Hashes must have an 8 character salt. + if (strlen($salt) != 8) { + return FALSE; + } + + // Convert the base 2 logarithm into an integer. + $count = 1 << $count_log2; + $hash = hash($algo, $password, TRUE); + do { + $hash = hash($algo, $hash . $password, TRUE); + } while (--$count); + + $len = strlen($hash); + $output = $setting . $this->_d7_password_base64_encode($hash, $len); + // _d7_password_base64_encode() of a 16 byte MD5 will always be 22 characters. + // _d7_password_base64_encode() of a 64 byte sha512 will always be 86 characters. + $expected = 12 + ceil((8 * $len) / 6); + return (strlen($output) == $expected) ? substr($output, 0, self::$hashLength) : FALSE; + } + +} diff --git a/civicrm/ext/standaloneusers/Civi/Standalone/Security.php b/civicrm/ext/standaloneusers/Civi/Standalone/Security.php index a6ddaa0792..587f1f504e 100644 --- a/civicrm/ext/standaloneusers/Civi/Standalone/Security.php +++ b/civicrm/ext/standaloneusers/Civi/Standalone/Security.php @@ -2,6 +2,10 @@ namespace Civi\Standalone; use CRM_Core_Session; +use Civi; +use Civi\Api4\User; +use Civi\Api4\MessageTemplate; +use CRM_Standaloneusers_WorkflowMessage_PasswordReset; /** * This is a single home for security related functions for Civi Standalone. @@ -12,13 +16,6 @@ use CRM_Core_Session; */ class Security { - public const ITOA64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; - - public static $minHashCount = 7; - public static $maxHashCount = 30; - public static $hashLength = 55; - public static $hashMethod = 'sha512'; - /** * @return static */ @@ -29,24 +26,6 @@ class Security { return \Civi::$statics[__METHOD__]; } - /** - * Check whether a password matches a hashed version. - */ - public function checkPassword(string $plaintextPassword, string $storedHashedPassword): bool { - $type = substr($storedHashedPassword, 0, 3); - switch ($type) { - case '$S$': - // A normal Drupal 7 password. - $hash = $this->_password_crypt(static::$hashMethod, $plaintextPassword, $storedHashedPassword); - break; - - default: - // Invalid password - return FALSE; - } - return hash_equals($storedHashedPassword, $hash); - } - /** * CRM_Core_Permission_Standalone::check() delegates here. * @@ -154,30 +133,29 @@ class Security { * - 'cms_name' * - 'cms_pass' plaintext password * - 'notify' boolean - * @param string $mailParam + * @param string $emailParam * Name of the $param which contains the email address. * * @return int|bool * uid if user was created, false otherwise */ - public function createUser(&$params, $mailParam) { + public function createUser(&$params, $emailParam) { try { - // Q. should this be in the api for User.create? - $hashedPassword = $this->_password_crypt(static::$hashMethod, $params['cms_pass'], $this->_password_generate_salt()); - $mail = $params[$mailParam]; - - $userID = \Civi\Api4\User::create(FALSE) + $email = $params[$emailParam]; + $userID = User::create(FALSE) ->addValue('username', $params['cms_name']) - ->addValue('email', $mail) - ->addValue('password', $hashedPassword) + ->addValue('uf_name', $email) + ->addValue('password', $params['cms_pass']) + ->addValue('contact_id', $params['contact_id'] ?? NULL) + // ->addValue('uf_id', 0) // does not work without this. ->execute()->single()['id']; } catch (\Exception $e) { - \Civi::log()->warning("Failed to create user '$mail': " . $e->getMessage()); + \Civi::log()->warning("Failed to create user '$email': " . $e->getMessage()); return FALSE; } - // @todo This is what Drupal does, but it's unclear why. + // @todo This next line is what Drupal does, but it's unclear why. // I think it assumes we want to be logged in as this contact, and as there's no uf match, it's not in civi. // But I'm not sure if we are always becomming this user; I'm not sure waht calls this function. // CRM_Core_Config::singleton()->inCiviCRM = FALSE; @@ -193,7 +171,7 @@ class Security { public function updateCMSName($ufID, $email) { \Civi\Api4\User::update(FALSE) ->addWhere('id', '=', $ufID) - ->addValue('email', $email) + ->addValue('uf_name', $email) ->execute(); } @@ -314,140 +292,164 @@ class Security { } /** - * This is taken from Drupal 7.91 - * - * Hash a password using a secure stretched hash. - * - * By using a salt and repeated hashing the password is "stretched". Its - * security is increased because it becomes much more computationally costly - * for an attacker to try to break the hash by brute-force computation of the - * hashes of a large number of plain-text words or strings to find a match. - * - * @param $algo - * The string name of a hashing algorithm usable by hash(), like 'sha256'. - * @param $password - * Plain-text password up to 512 bytes (128 to 512 UTF-8 characters) to hash. - * @param $setting - * An existing hash or the output of _password_generate_salt(). Must be - * at least 12 characters (the settings and salt). - * - * @return string|bool - * A string containing the hashed password (and salt) or FALSE on failure. - * The return string will be truncated at DRUPAL_HASH_LENGTH characters max. + * High level function to encrypt password using the site-default mechanism. */ - public function _password_crypt($algo, $password, $setting) { - // Prevent DoS attacks by refusing to hash large passwords. - if (strlen($password) > 512) { - return FALSE; + public function hashPassword(string $plaintext): string { + // For now, we just implement D7's but this should be configurable. + // Sites should be able to move from one password hashing algo to another + // e.g. if a vulnerability is discovered. + $algo = new \Civi\Standalone\PasswordAlgorithms\Drupal7(); + return $algo->hashPassword($plaintext); + } + + /** + * Check whether a password matches a hashed version. + */ + public function checkPassword(string $plaintextPassword, string $storedHashedPassword): bool { + + if (preg_match('@^\$S\$[A-Za-z./0-9]{52}$@', $storedHashedPassword)) { + // Looks like a default D7 password. + $algo = new \Civi\Standalone\PasswordAlgorithms\Drupal7(); + return $algo->checkPassword($plaintextPassword, $storedHashedPassword); } - // The first 12 characters of an existing hash are its setting string. - $setting = substr($setting, 0, 12); - if ($setting[0] != '$' || $setting[2] != '$') { + if (preg_match('@^\$P\$B[a-zA-Z0-9./]{30}$@', $storedHashedPassword)) { + Civi::log()->warning("Denying access to user whose password looks like a WordPress one because we haven't coded support for that."); return FALSE; } - $count_log2 = strpos(self::ITOA64, $setting[3]); - - // Hashes may be imported from elsewhere, so we allow != DRUPAL_HASH_COUNT - if ($count_log2 < self::$minHashCount || $count_log2 > self::$maxHashCount) { + // See if we can parse it against this spec... + // One day we might like to support this format because it allows all sorts of hashing algorithms. + // https://github.com/P-H-C/phc-string-format/blob/master/phc-sf-spec.md + // $<id>[$v=<version>][$<param>=<value>(,<param>=<value>)*][$<salt>[$<hash>]] + if (!preg_match('/ + ^ + \$([a-z0-9-]{1,32}) # Match 1 algorithm identifier + (\$v=[0-9+])? # Match 2 optional version + (\$[a-z0-9-]{1,32}=[a-zA-Z0-9/+.-]*(?:,[a-z0-9-]{1,32}=[a-zA-Z0-9/+.-]*)*)? # 3: optional parameters + \$([a-zA-Z0-9/+.-]+) # Match 4 salt + \$([a-zA-Z0-9/+]+) # Match 5 B64 encoded hash + $/x', $storedHashedPassword, $matches)) { + + Civi::log()->warning("Denying access to user whose stored password is not in a format we can parse."); return FALSE; } - $salt = substr($setting, 4, 8); - // Hashes must have an 8 character salt. - if (strlen($salt) != 8) { - return FALSE; + [, $identifier, $version, $params, $salt, $hash] = $matches; + + // Map type to algorithm name. Some common ones here, but we don't implement them all. + $algo = [ + '1' => 'md5', + '5' => 'sha256_crypt', + '6' => 'sha512_crypt', + '2' => 'bcrypt', + '2b' => 'bcrypt', + '2x' => 'bcrypt', + '2y' => 'bcrypt', + ][$identifier] ?? ''; + + $version = ltrim($version, '$'); + $parsedParams = []; + if (!empty($params)) { + $parsedParams = []; + foreach (explode(',', (ltrim($params, '$'))) as $kv) { + [$k, $v] = explode('=', $kv); + $parsedParams[$k] = $v; + } } + $params = $parsedParams; + + // salt and hash should be base64 encoded. + $salt = base64_decode(ltrim($salt, '$'), TRUE); + $hash = base64_decode(ltrim($hash, '$'), TRUE); - // Convert the base 2 logarithm into an integer. - $count = 1 << $count_log2; - $hash = hash($algo, $password, TRUE); - do { - $hash = hash($algo, $hash . $password, TRUE); - } while (--$count); - - $len = strlen($hash); - $output = $setting . $this->_password_base64_encode($hash, $len); - // _password_base64_encode() of a 16 byte MD5 will always be 22 characters. - // _password_base64_encode() of a 64 byte sha512 will always be 86 characters. - $expected = 12 + ceil((8 * $len) / 6); - return (strlen($output) == $expected) ? substr($output, 0, self::$hashLength) : FALSE; + // @todo + // Implement a pluggable interface here to handle some of these password types or more. + Civi::log()->warning("Denying access to user whose stored password relies on '$algo' which we have not implemented yet."); + return FALSE; } /** - * This is taken from Drupal 7.91 - * - * Generates a random base 64-encoded salt prefixed with settings for the hash. + * Check a password reset token matches for a User. * - * Proper use of salts may defeat a number of attacks, including: - * - The ability to try candidate passwords against multiple hashes at once. - * - The ability to use pre-hashed lists of candidate passwords. - * - The ability to determine whether two users have the same (or different) - * password without actually having to guess one of the passwords. + * @param string $token + * @param bool $spend + * If TRUE, and the token matches, the token is then reset; so it can only be used once. + * If FALSE no changes are made. * - * @param $count_log2 - * Integer that determines the number of iterations used in the hashing - * process. A larger value is more secure, but takes more time to complete. + * @return NULL|int + * If int, it's the UserID * - * @return string - * A 12 character string containing the iteration count and a random salt. */ - public function _password_generate_salt($count_log2 = NULL): string { + public function checkPasswordResetToken(string $token, bool $spend = TRUE): ?int { + if (!preg_match('/^([0-9a-f]{8})([a-zA-Z0-9]{32})([0-9a-f]+)$/', $token, $matches)) { + // Hacker + Civi::log()->warning("Rejected passwordResetToken with invalid syntax.", compact('token')); + return NULL; + } + + $userID = hexdec($matches[3]); + if (!$userID > 0) { + // Hacker + Civi::log()->warning("Rejected passwordResetToken with invalid userID.", compact('token', 'userID')); + return NULL; + } + + $expiry = hexdec($matches[1]); + if (time() > $expiry) { + // Less serious + Civi::log()->info("Rejected expired passwordResetToken for user $userID"); + return NULL; + } - // Standalone: D7 has this stored as a CMS variable setting. - // @todo use global setting that can be changed in civicrm.settings.php - // For now, we just pick a value half way between our hard-coded min and max. - if ($count_log2 === NULL) { - $count_log2 = (int) ((static::$maxHashCount + static::$minHashCount) / 2); + $storedToken = $matches[1] . $matches[2]; + $matched = User::get(FALSE) + ->addWhere('id', '=', $userID) + ->addWhere('password_reset_token', '=', $storedToken) + ->addWhere('is_active', '=', 1) + ->selectRowCount() + ->execute()->countMatched() === 1; + + if ($matched && $spend) { + $matched = User::update(FALSE) + ->addWhere('id', '=', $userID) + ->addValue('password_reset_token', NULL) + ->execute(); } - $output = '$S$'; - // Ensure that $count_log2 is within set bounds. - $count_log2 = max(static::$minHashCount, min(static::$maxHashCount, $count_log2)); - // We encode the final log2 iteration count in base 64. - $output .= self::ITOA64[$count_log2]; - // 6 bytes is the standard salt for a portable phpass hash. - $output .= $this->_password_base64_encode(random_bytes(6), 6); - return $output; + Civi::log()->info(($matched ? 'Accepted' : 'Rejected') . " passwordResetToken for user $userID"); + return $matched ? $userID : NULL; } /** - * This is taken from Drupal 7.91 - * - * Encodes bytes into printable base 64 using the *nix standard from crypt(). - * - * @param $input - * The string containing bytes to encode. - * @param $count - * The number of characters (bytes) to encode. + * Prepare a password reset workflow email, if configured. * - * @return string - * Encoded string + * @return \CRM_Standaloneusers_WorkflowMessage_PasswordReset|null */ - public function _password_base64_encode($input, $count): string { - $output = ''; - $i = 0; - $itoa64 = self::ITOA64; - do { - $value = ord($input[$i++]); - $output .= $itoa64[$value & 0x3f]; - if ($i < $count) { - $value |= ord($input[$i]) << 8; - } - $output .= $itoa64[($value >> 6) & 0x3f]; - if ($i++ >= $count) { - break; - } - if ($i < $count) { - $value |= ord($input[$i]) << 16; - } - $output .= $itoa64[($value >> 12) & 0x3f]; - if ($i++ >= $count) { - break; - } - $output .= $itoa64[($value >> 18) & 0x3f]; - } while ($i < $count); + public function preparePasswordResetWorkflow(array $user, string $token): ?CRM_Standaloneusers_WorkflowMessage_PasswordReset { + // Find the message template + $tplID = MessageTemplate::get(FALSE) + ->setSelect(['id']) + ->addWhere('workflow_name', '=', 'password_reset') + ->addWhere('is_default', '=', TRUE) + ->addWhere('is_reserved', '=', FALSE) + ->addWhere('is_active', '=', TRUE) + ->execute()->first()['id']; + if (!$tplID) { + // Some sites may deliberately disable this, but it's unusual, so leave a notice in the log. + Civi::log()->notice("There is no active, default password_reset message template, which has prevented emailing a reset to {username}", ['username' => $user['username']]); + return NULL; + } + if (!filter_var($user['uf_name'] ?? '', \FILTER_VALIDATE_EMAIL)) { + Civi::log()->warning("User $user[id] has an invalid email. Failed to send password reset."); + return NULL; + } + + // The template_params are used in the template like {$resetUrlHtml} and {$resetUrlHtml} {$usernamePlaintext} {$usernameHtml} + list($domainFromName, $domainFromEmail) = \CRM_Core_BAO_Domain::getNameAndEmail(TRUE); + $workflowMessage = (new \CRM_Standaloneusers_WorkflowMessage_PasswordReset()) + ->setDataFromUser($user, $token) + ->setFrom("\"$domainFromName\" <$domainFromEmail>"); - return $output; + return $workflowMessage; } } diff --git a/civicrm/ext/standaloneusers/ang/afformX.aff.html b/civicrm/ext/standaloneusers/ang/afformEditRole.aff.html similarity index 100% rename from civicrm/ext/standaloneusers/ang/afformX.aff.html rename to civicrm/ext/standaloneusers/ang/afformEditRole.aff.html diff --git a/civicrm/ext/standaloneusers/ang/afformEditRole.aff.php b/civicrm/ext/standaloneusers/ang/afformEditRole.aff.php new file mode 100644 index 0000000000..589005d657 --- /dev/null +++ b/civicrm/ext/standaloneusers/ang/afformEditRole.aff.php @@ -0,0 +1,22 @@ +<?php +use CRM_Standaloneusers_ExtensionUtil as E; + +return [ + 'type' => 'form', + 'title' => E::ts('Edit Role'), + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/role', + 'permission' => ['access CiviCRM'], + 'redirect' => 'civicrm/admin/roles', + 'create_submission' => TRUE, + 'requires' => [], + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'entity_type' => NULL, + 'join_entity' => NULL, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.html b/civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.html index 739d072112..53e67473d1 100644 --- a/civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.html +++ b/civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.html @@ -3,7 +3,7 @@ <fieldset af-fieldset="User1" class="af-container" af-title="User"> <af-field name="roles" /> <af-field name="username" /> - <af-field name="email" /> + <af-field name="uf_name" /> <af-field name="is_active" /> <af-field name="timezone" /> <af-field name="language" /> diff --git a/civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.json b/civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.json deleted file mode 100644 index a8c6ea005f..0000000000 --- a/civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "form", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Edit User account", - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "summary_contact_type": null, - "icon": "fa-list-alt", - "server_route": "civicrm/admin/user", - "permission": "cms:administer users", - "redirect": "/civicrm/admin/users", - "create_submission": true, - "navigation": null -} diff --git a/civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.php b/civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.php new file mode 100644 index 0000000000..40704a85bd --- /dev/null +++ b/civicrm/ext/standaloneusers/ang/afformEditUserAccount.aff.php @@ -0,0 +1,22 @@ +<?php +use CRM_Standaloneusers_ExtensionUtil as E; + +return [ + 'type' => 'form', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Edit User account'), + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'icon' => 'fa-list-alt', + 'server_route' => 'civicrm/admin/user', + 'permission' => ['cms:administer users'], + 'redirect' => '/civicrm/admin/users', + 'create_submission' => TRUE, + 'navigation' => NULL, +]; diff --git a/civicrm/ext/standaloneusers/ang/afformX.aff.json b/civicrm/ext/standaloneusers/ang/afformX.aff.json deleted file mode 100644 index d7979beb90..0000000000 --- a/civicrm/ext/standaloneusers/ang/afformX.aff.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "type": "form", - "title": "Edit Role", - "icon": "fa-list-alt", - "server_route": "civicrm/admin/role", - "permission": "access CiviCRM", - "redirect": "civicrm/admin/roles", - "create_submission": true, - "requires": [], - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "entity_type": null, - "join_entity": null, - "contact_summary": null, - "summary_contact_type": null, - "navigation": null -} diff --git a/civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.html b/civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.html index fd9a7e7c9d..669ca2e222 100644 --- a/civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.html +++ b/civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.html @@ -1,15 +1,15 @@ <div af-fieldset=""> <div class="af-markup"> - - + + <div class="help"><p>{{:: ts('User accounts allow people to access CiviCRM. What they can access is determined by which roles the users have, and what permissions are granted to those roles.') }}</p> </div> - - + + </div> <div class="af-container af-layout-cols" af-title="Filters"> <af-field name="username" defn="{required: false, input_attrs: {}}" /> - <af-field name="email" defn="{required: false, input_attrs: {}}" /> + <af-field name="uf_name" defn="{required: false, input_attrs: {}}" /> <af-field name="is_active" defn="{label: 'Active'}" /> <af-field name="roles" defn="{input_attrs: {multiple: true}}" /> </div> diff --git a/civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.json b/civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.json deleted file mode 100644 index 0608fbdfe3..0000000000 --- a/civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "type": "search", - "requires": [], - "entity_type": null, - "join_entity": null, - "title": "Administer User Accounts", - "description": "", - "is_dashlet": false, - "is_public": false, - "is_token": false, - "contact_summary": null, - "summary_contact_type": null, - "icon": "fa-users", - "server_route": "civicrm/admin/users", - "permission": "cms:administer users", - "redirect": null, - "create_submission": false, - "navigation": { - "parent": "Users and Permissions", - "label": "User Accounts", - "weight": 0 - } -} diff --git a/civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.php b/civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.php new file mode 100644 index 0000000000..b7226f6d47 --- /dev/null +++ b/civicrm/ext/standaloneusers/ang/afsearchAdministerUserAccounts.aff.php @@ -0,0 +1,26 @@ +<?php +use CRM_Standaloneusers_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'requires' => [], + 'entity_type' => NULL, + 'join_entity' => NULL, + 'title' => E::ts('Administer User Accounts'), + 'description' => '', + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'icon' => 'fa-users', + 'server_route' => 'civicrm/admin/users', + 'permission' => ['cms:administer users'], + 'redirect' => NULL, + 'create_submission' => FALSE, + 'navigation' => [ + 'parent' => 'Users and Permissions', + 'label' => E::ts('User Accounts'), + 'weight' => 0, + ], +]; diff --git a/civicrm/ext/standaloneusers/ang/afsearchUserRoles.aff.json b/civicrm/ext/standaloneusers/ang/afsearchUserRoles.aff.json deleted file mode 100644 index 46224d8692..0000000000 --- a/civicrm/ext/standaloneusers/ang/afsearchUserRoles.aff.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "type": "search", - "title": "User Roles", - "description": "List of roles defined on the system.", - "icon": "fa-graduation-cap", - "server_route": "civicrm/admin/roles", - "permission": "cms:administer users", - "navigation": { - "parent": "Users and Permissions", - "label": "User Roles", - "weight": 0 - }, - "requires": [], - "is_dashlet": false, - "is_public": false, - "is_token": false, - "entity_type": null, - "join_entity": null, - "contact_summary": null, - "summary_contact_type": null, - "redirect": null, - "create_submission": null -} diff --git a/civicrm/ext/standaloneusers/ang/afsearchUserRoles.aff.php b/civicrm/ext/standaloneusers/ang/afsearchUserRoles.aff.php new file mode 100644 index 0000000000..2bd4e2da04 --- /dev/null +++ b/civicrm/ext/standaloneusers/ang/afsearchUserRoles.aff.php @@ -0,0 +1,26 @@ +<?php +use CRM_Standaloneusers_ExtensionUtil as E; + +return [ + 'type' => 'search', + 'title' => E::ts('User Roles'), + 'description' => E::ts('List of roles defined on the system.'), + 'icon' => 'fa-graduation-cap', + 'server_route' => 'civicrm/admin/roles', + 'permission' => ['cms:administer users'], + 'navigation' => [ + 'parent' => 'Users and Permissions', + 'label' => E::ts('User Roles'), + 'weight' => 0, + ], + 'requires' => [], + 'is_dashlet' => FALSE, + 'is_public' => FALSE, + 'is_token' => FALSE, + 'entity_type' => NULL, + 'join_entity' => NULL, + 'contact_summary' => NULL, + 'summary_contact_type' => NULL, + 'redirect' => NULL, + 'create_submission' => NULL, +]; diff --git a/civicrm/ext/standaloneusers/ang/crmChangePassword.ang.php b/civicrm/ext/standaloneusers/ang/crmChangePassword.ang.php new file mode 100644 index 0000000000..427f19a9dd --- /dev/null +++ b/civicrm/ext/standaloneusers/ang/crmChangePassword.ang.php @@ -0,0 +1,17 @@ +<?php +return [ + 'ext' => 'standaloneusers', + 'js' => [ + 'ang/crmChangePassword.js', + // 'ang/crmQueueMonitor/*.js', + // 'ang/crmQueueMonitor/*/*.js', + ], + // 'css' => ['ang/crmQueueMonitor.css'], + 'partials' => ['ang/crmChangePassword'], + 'requires' => ['crmUi', 'crmUtil', 'api4'], + 'basePages' => ['civicrm/admin/user/password'], + 'exports' => [ + // Export the module as an [E]lement + 'crm-change-password' => 'E', + ], +]; diff --git a/civicrm/ext/standaloneusers/ang/crmChangePassword.js b/civicrm/ext/standaloneusers/ang/crmChangePassword.js new file mode 100644 index 0000000000..80d087661b --- /dev/null +++ b/civicrm/ext/standaloneusers/ang/crmChangePassword.js @@ -0,0 +1,112 @@ +(function (angular, $, _) { + "use strict"; + + angular.module('crmChangePassword', CRM.angRequires('crmChangePassword')); + + angular.module('crmChangePassword').component('crmChangePassword', { + templateUrl: '~/crmChangePassword/crmChangePassword.html', + bindings: { + // things listed here become properties on the controller using values from attributes. + hibp: '@', + userId: '@' + }, + controller: function($scope, $timeout, crmApi4) { + var ts = $scope.ts = CRM.ts(null), + ctrl = this; + + console.log('init crmChangePassword component starting'); + // $onInit gets run after the this controller is called, and after the bindings have been applied. + // this.$onInit = function() { console.log('user', ctrl.userId); }; + ctrl.actorPassword = ''; + ctrl.newPassword = ''; + ctrl.newPasswordAgain = ''; + ctrl.busy = ''; + ctrl.pwnd = false; + + let updateAngular = (prop, newVal) => { + $timeout(() => { + console.log("Setting", prop, "to", newVal); + ctrl[prop] = newVal; + }, 0); + }; + + ctrl.attemptChange = () => { + updateAngular('busy', ''); + updateAngular('pwnd', false); + updateAngular('formInactive', true); + if (ctrl.newPassword.length < 8) { + alert(ts("C'mon now, you can do better than that.")); + return; + } + if (ctrl.newPassword != ctrl.newPasswordAgain) { + alert(ts("Passwords do not match")); + return; + } + + let promises = Promise.resolve(null); + if (ctrl.hibp) { + promises = promises.then(() => { + updateAngular('busy', ts('Checking password is not known to have been involved in data breach...')); + return sha1(ctrl.newPassword) + .then(hash => { + if (!hash.match(/^[a-f0-9]+$/)) { + updateAngular('busy', ts('Could not check. Is your browser up-to-date?')); + } + else { + hash = hash.toUpperCase(); + let hashPrefix = hash.substring(0, 5); + return fetch(ctrl.hibp + hashPrefix) + .then(r => r.text()) + .then(hibpResult => { + if (hibpResult && + hibpResult.split(/\r\n/).find(line => hashPrefix + line.replace(/:\d+$/, '') === hash)) { + // e.g. Password123 + updateAngular('pwn', true); + return; + } + updateAngular('busy', ''); + }) + .catch( () => { + updateAngular('busy', ts('Could not perform check; service error.')); + }); + } + }); + }); + } + + promises = promises.then(() => { + updateAngular('busy', ctrl.busy + ts('Changing...')); + // Now submit api request. + const userUpdateParams = { + actorPassword: ctrl.actorPassword, + values: {password: ctrl.newPassword}, + where: [['id', '=', ctrl.userId]] + }; + return crmApi4('User', 'Update', userUpdateParams) + .then(r => updateAngular('busy', ts('Password successfully updated'))) + .catch(e => { + let msg = (e.error_message === 'Authorization failed') ? + ts("Sorry, that didn't work. Perhaps you mistyped your password?") : + e.error_message; + updateAngular('busy', msg); + }); + }); + }; + + // Generate SHA-1 digest for given text. Returns Promise + function sha1(message) { + const encoder = new TextEncoder(); + const data = encoder.encode(message); + // const hashBuffer = + return crypto.subtle.digest('SHA-1', data) + .then(hashBuffer => { + const hashArray = Array.from(new Uint8Array(hashBuffer)); // convert buffer to byte array + const hashHex = hashArray + .map((b) => b.toString(16).padStart(2, "0")) + .join(""); // convert bytes to hex string + return hashHex; + }); + } + } + }); +})(angular, CRM.$, CRM._); diff --git a/civicrm/ext/standaloneusers/ang/crmChangePassword/crmChangePassword.html b/civicrm/ext/standaloneusers/ang/crmChangePassword/crmChangePassword.html new file mode 100644 index 0000000000..d2604837fd --- /dev/null +++ b/civicrm/ext/standaloneusers/ang/crmChangePassword/crmChangePassword.html @@ -0,0 +1,49 @@ +<div> + <form name="changePassword" crm-ui-id-scope> + + <div crm-ui-field="{name: 'actorPassword', title: ts('Enter your current password')}"> + <input + crm-ui-id="actorPassword" + name="actorPassword" + ng-model="$ctrl.actorPassword" + class="crm-form-text" + type=password + /> + </div> + + <div crm-ui-field="{name: 'newPassword', title: ts('Enter a new password')}"> + <input + crm-ui-id="newPassword" + name="newPassword" + ng-model="$ctrl.newPassword" + class="crm-form-text" + type=password + /> + </div> + + <div crm-ui-field="{name: 'newPasswordAgain', title: ts('Re-enter new password')}"> + <input + crm-ui-id="newPasswordAgain" + name="newPasswordAgain" + ng-model="$ctrl.newPasswordAgain" + class="crm-form-text" + type=password + /> + <span class="crm-error" ng-show="$ctrl.newPasswordAgain && $ctrl.newPassword && $ctrl.newPassword !== $ctrl.newPasswordAgain"> + {{ts('Passwords do not match')}} + </span> + </div> + + <button ng-click="$ctrl.attemptChange()" >{{ts('Change Password')}}</button> + + </form> + <div ng-if="$ctrl.busy" >{{$ctrl.busy}}</div> + <div ng-if="$ctrl.pwnd" class="messages error no-popup"> + <h2>{{ts('Known compromised password')}}</h2> + <p>{{ts('The password you entered is known to have been included in data breaches. This means it can no longer be considered secure.')}}</p> + <p>{{ts('Please choose a different password.')}}</p> + <p>{{ts('Also, if you have used that password anywhere else, you should change it as soon as you can.')}}</p> + <p>{{ts('For more information, see:')}} <a href="https://haveibeenpwned.com/FAQs" >haveibeenpwned.com</a></p> + </div> + +</div> diff --git a/civicrm/ext/standaloneusers/ang/crmResetPassword.ang.php b/civicrm/ext/standaloneusers/ang/crmResetPassword.ang.php new file mode 100644 index 0000000000..53d27a7b75 --- /dev/null +++ b/civicrm/ext/standaloneusers/ang/crmResetPassword.ang.php @@ -0,0 +1,17 @@ +<?php +return [ + 'ext' => 'standaloneusers', + 'js' => [ + 'ang/crmResetPassword.js', + // 'ang/crmQueueMonitor/*.js', + // 'ang/crmQueueMonitor/*/*.js', + ], + // 'css' => ['ang/crmQueueMonitor.css'], + 'partials' => ['ang/crmResetPassword'], + 'requires' => ['crmUi', 'crmUtil', 'api4'], + 'basePages' => ['civicrm/login/password'], + 'exports' => [ + // Export the module as an [E]lement + 'crm-reset-password' => 'E', + ], +]; diff --git a/civicrm/ext/standaloneusers/ang/crmResetPassword.js b/civicrm/ext/standaloneusers/ang/crmResetPassword.js new file mode 100644 index 0000000000..2d5db04fd4 --- /dev/null +++ b/civicrm/ext/standaloneusers/ang/crmResetPassword.js @@ -0,0 +1,136 @@ +(function (angular) { + "use strict"; + + angular.module('crmResetPassword', CRM.angRequires('crmResetPassword')); + + angular.module('crmResetPassword').component('crmResetPassword', { + templateUrl: '~/crmResetPassword/crmResetPassword.html', + bindings: { + // things listed here become properties on the controller using values from attributes. + hibp: '@', + token: '@' + }, + controller: function($scope, $timeout, crmApi4) { + var ts = $scope.ts = CRM.ts(null), + ctrl = this; + + // console.log('init crmResetPassword component starting'); + // $onInit gets run after the this controller is called, and after the bindings have been applied. + // this.$onInit = function() { console.log('user', ctrl.userId); }; + + ctrl.completeReset = () => { + ctrl.busy=''; + ctrl.formSubmitted = false; + ctrl.identifier = ''; + ctrl.newPassword = ''; + ctrl.newPasswordAgain = ''; + ctrl.pwnd = false; + ctrl.resetSuccessfullySubmitted=false; + ctrl.token=''; + }; + ctrl.completeReset(); + + let updateAngular = (prop, newVal) => { + $timeout(() => { + console.log("Setting", prop, "to", newVal); + ctrl[prop] = newVal; + }, 0); + }; + ctrl.sendPasswordReset = () => { + updateAngular('busy', ts('Just a moment...')); + updateAngular('formSubmitted', true); + if (!ctrl.identifier) { + alert(ts('Please provide your username/email.')); + return; + } + crmApi4('User', 'sendPasswordReset', { identifier: ctrl.identifier }) + .then(r => { + updateAngular('busy', ''); + updateAngular('resetSuccessfullySubmitted', true); + }) + .catch(e => { + updateAngular('busy', ts('Sorry, something went wrong. Please contact your site administrators.')); + }); + }; + + ctrl.attemptChange = () => { + updateAngular('busy', ''); + updateAngular('formSubmitted', true); + updateAngular('pwnd', false); + if (ctrl.newPassword.length < 8) { + alert(ts("Passwords under 8 characters are simply not secure. Ideally you should use a secure password generator.")); + return; + } + if (ctrl.newPassword != ctrl.newPasswordAgain) { + alert(ts("Passwords do not match")); + return; + } + + let promises = Promise.resolve(null); + if (ctrl.hibp) { + promises = promises.then(() => { + updateAngular('busy', ts('Checking password is not known to have been involved in data breach...')); + return sha1(ctrl.newPassword) + .then(hash => { + if (!hash.match(/^[a-f0-9]+$/)) { + updateAngular('busy', ts('Could not check. Is your browser up-to-date?')); + } + else { + hash = hash.toUpperCase(); + let hashPrefix = hash.substring(0, 5); + return fetch(ctrl.hibp + hashPrefix) + .then(r => r.text()) + .then(hibpResult => { + if (hibpResult && + hibpResult.split(/\r\n/).find(line => hashPrefix + line.replace(/:\d+$/, '') === hash)) { + // e.g. Password123 + updateAngular('pwn', true); + return; + } + updateAngular('busy', ''); + }) + .catch( () => { + updateAngular('busy', ts('Could not perform check; service error.')); + }); + } + }); + }); + } + + promises = promises.then(() => { + updateAngular('busy', ctrl.busy + ts('Changing...')); + updateAngular('formSubmitted', true); + // Now submit api request. + return crmApi4('User', 'passwordReset', { + token: ctrl.token, + password: ctrl.newPassword, + }) + .then(r => { + updateAngular('busy', ts('Password successfully updated. Redirecting to login...')); + $timeout(() => { + window.location = '/civicrm/login'; + }, 1300); + }) + .catch(e => { + updateAngular('token', 'invalid'); + }); + }); + }; + + // Generate SHA-1 digest for given text. Returns Promise + function sha1(message) { + const encoder = new TextEncoder(); + const data = encoder.encode(message); + // const hashBuffer = + return crypto.subtle.digest('SHA-1', data) + .then(hashBuffer => { + const hashArray = Array.from(new Uint8Array(hashBuffer)); // convert buffer to byte array + const hashHex = hashArray + .map((b) => b.toString(16).padStart(2, "0")) + .join(""); // convert bytes to hex string + return hashHex; + }); + } + } + }); +})(angular); diff --git a/civicrm/ext/standaloneusers/ang/crmResetPassword/crmResetPassword.html b/civicrm/ext/standaloneusers/ang/crmResetPassword/crmResetPassword.html new file mode 100644 index 0000000000..26793c848e --- /dev/null +++ b/civicrm/ext/standaloneusers/ang/crmResetPassword/crmResetPassword.html @@ -0,0 +1,61 @@ +<div> + <!-- without a token, we offer for them to generate one. --> + <form name="requestLink" crm-ui-id-scope + ng-if="!$ctrl.formSubmitted && !$ctrl.token"> + + <div crm-ui-field="{name: 'identifier', title: ts('Enter the username or email on your account')}"> + <input + crm-ui-id="identifier" + name="identifier" + ng-model="$ctrl.identifier" + class="crm-form-text" + type=text + /> + </div> + + <button ng-click="$ctrl.sendPasswordReset()" >{{ts('Send Password Reset')}}</button> + </form> + <div ng-if="$ctrl.resetSuccessfullySubmitted" > + <p>{{ts('Thanks. If your username/email matched an active account, we will email you with a special link to provide a new password.')}}</p> + <p>{{ts('The link must be used within an hour, and can only be used once.')}}</p> + </div> + + <div ng-if="$ctrl.busy" >{{$ctrl.busy}}</div> + + <!-- without a token, we offer for them to generate one. --> + <form ng-if="$ctrl.token && $ctrl.token !== 'invalid' && !$ctrl.formSubmitted" name="resetPassword" crm-ui-id-scope > + <div ng=if="$ctrl.token !== 'invalid'" > + <div crm-ui-field="{name: 'newPassword', title: ts('Enter a new password')}"> + <input + crm-ui-id="newPassword" + name="newPassword" + ng-model="$ctrl.newPassword" + class="crm-form-text" + type=password + /> + </div> + + <div crm-ui-field="{name: 'newPasswordAgain', title: ts('Re-enter new password')}"> + <input + crm-ui-id="newPasswordAgain" + name="newPasswordAgain" + ng-model="$ctrl.newPasswordAgain" + class="crm-form-text" + type=password + /> + <span class="crm-error" ng-show="$ctrl.newPasswordAgain && $ctrl.newPassword && $ctrl.newPassword !== $ctrl.newPasswordAgain"> + {{ts('Passwords do not match')}} + </span> + </div> + + <button ng-click="$ctrl.attemptChange()" ng-disabled="$ctrl.formSubmitted">{{ts('Change Password')}}</button> + </div> + </form> + + <div ng-if="$ctrl.token === 'invalid'" > + <p>{{ts("This password reset link has expired or is otherwise invalid.")}}</p> + <p><a href ng-click="$ctrl.completeReset()">{{ts('Send new password reset link')}}</a></p> + </div> + +</div> + diff --git a/civicrm/ext/standaloneusers/info.xml b/civicrm/ext/standaloneusers/info.xml index 4757634038..7e81fed873 100644 --- a/civicrm/ext/standaloneusers/info.xml +++ b/civicrm/ext/standaloneusers/info.xml @@ -15,10 +15,10 @@ <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url> </urls> <releaseDate>2022-11-11</releaseDate> - <version>5.66.2</version> + <version>5.67.0</version> <develStage>alpha</develStage> <compatibility> - <ver>5.66</ver> + <ver>5.67</ver> </compatibility> <requires> <ext>org.civicrm.search_kit</ext> @@ -36,7 +36,9 @@ <angularModule>crmStandaloneusers</angularModule> </civix> <mixins> + <mixin>scan-classes@1.0.0</mixin> <mixin>mgd-php@1.0.0</mixin> + <mixin>ang-php@1.0.0</mixin> <mixin>setting-php@1.0.0</mixin> <mixin>menu-xml@1.0.0</mixin> <mixin>smarty-v2@1.0.1</mixin> diff --git a/civicrm/ext/standaloneusers/managed/SavedSearch_Administer_Users.mgd.php b/civicrm/ext/standaloneusers/managed/SavedSearch_Administer_Users.mgd.php index d4e0e2ac8a..dccaaeb660 100644 --- a/civicrm/ext/standaloneusers/managed/SavedSearch_Administer_Users.mgd.php +++ b/civicrm/ext/standaloneusers/managed/SavedSearch_Administer_Users.mgd.php @@ -21,7 +21,7 @@ return [ 'select' => [ 'id', 'username', - 'email', + 'uf_name', 'is_active', 'when_created', 'when_last_accessed', @@ -82,7 +82,7 @@ return [ ], [ 'type' => 'field', - 'key' => 'email', + 'key' => 'uf_name', 'dataType' => 'String', 'label' => E::ts('Email'), 'sortable' => TRUE, diff --git a/civicrm/ext/standaloneusers/sql/auto_install.sql b/civicrm/ext/standaloneusers/sql/auto_install.sql index 6bec096b99..ec2f3676e9 100644 --- a/civicrm/ext/standaloneusers/sql/auto_install.sql +++ b/civicrm/ext/standaloneusers/sql/auto_install.sql @@ -17,7 +17,7 @@ SET FOREIGN_KEY_CHECKS=0; -DROP TABLE IF EXISTS `civicrm_user`; +DROP TABLE IF EXISTS `civicrm_uf_match`; DROP TABLE IF EXISTS `civicrm_role`; SET FOREIGN_KEY_CHECKS=1; @@ -46,26 +46,33 @@ ENGINE=InnoDB; -- /******************************************************* -- * --- * civicrm_user +-- * civicrm_uf_match -- * --- * A standalone user account +-- * Standalone User Account. In Standalone this is a superset of the original civicrm_uf_match table. -- * -- *******************************************************/ -CREATE TABLE `civicrm_user` ( +CREATE TABLE `civicrm_uf_match` ( `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Unique User ID', - `contact_id` int unsigned COMMENT 'FK to Contact - possibly redundant', + `domain_id` int unsigned NOT NULL COMMENT 'Which Domain is this match entry for', + `uf_id` int unsigned NOT NULL DEFAULT 0 COMMENT 'UF ID. Redundant in Standalone. Needs to be identical to id.', + `uf_name` varchar(255) COMMENT 'Email (e.g. for password resets)', + `contact_id` int unsigned COMMENT 'FK to Contact ID', `username` varchar(60) NOT NULL, - `password` varchar(128) NOT NULL COMMENT 'Hashed password', - `email` varchar(255) NOT NULL COMMENT 'Email (e.g. for password resets)', + `hashed_password` varchar(128) NOT NULL DEFAULT "" COMMENT 'Hashed, not plaintext password', `roles` varchar(128) COMMENT 'FK to Role', `when_created` timestamp DEFAULT CURRENT_TIMESTAMP, `when_last_accessed` timestamp NULL, `when_updated` timestamp NULL, `is_active` tinyint NOT NULL DEFAULT 1, `timezone` varchar(32) NULL COMMENT 'User\'s timezone', - `language` int unsigned COMMENT 'The language for the user.', + `language` varchar(5) COMMENT 'UI language preferred by the given user/contact', + `password_reset_token` varchar(40) COMMENT 'The unspent token', PRIMARY KEY (`id`), + INDEX `I_civicrm_uf_match_uf_id`(uf_id), UNIQUE INDEX `UI_username`(username), - CONSTRAINT FK_civicrm_user_contact_id FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE CASCADE + UNIQUE INDEX `UI_uf_name_domain_id`(uf_name, domain_id), + UNIQUE INDEX `UI_contact_domain_id`(contact_id, domain_id), + CONSTRAINT FK_civicrm_uf_match_domain_id FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain`(`id`), + CONSTRAINT FK_civicrm_uf_match_contact_id FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE SET NULL ) ENGINE=InnoDB; diff --git a/civicrm/ext/standaloneusers/sql/auto_uninstall.sql b/civicrm/ext/standaloneusers/sql/auto_uninstall.sql index f754abde63..e963db9f2a 100644 --- a/civicrm/ext/standaloneusers/sql/auto_uninstall.sql +++ b/civicrm/ext/standaloneusers/sql/auto_uninstall.sql @@ -15,7 +15,7 @@ SET FOREIGN_KEY_CHECKS=0; -DROP TABLE IF EXISTS `civicrm_user`; +DROP TABLE IF EXISTS `civicrm_uf_match`; DROP TABLE IF EXISTS `civicrm_role`; SET FOREIGN_KEY_CHECKS=1; \ No newline at end of file diff --git a/civicrm/ext/standaloneusers/standaloneusers.php b/civicrm/ext/standaloneusers/standaloneusers.php index 9bdb964792..dff4299e3f 100644 --- a/civicrm/ext/standaloneusers/standaloneusers.php +++ b/civicrm/ext/standaloneusers/standaloneusers.php @@ -1,5 +1,10 @@ <?php +// Define default URL to haveibeenpwned service. Set this empty in settings to disable. +if (!defined('CIVICRM_HIBP_URL')) { + define('CIVICRM_HIBP_URL', 'https://api.pwnedpasswords.com/range/'); +} + require_once 'standaloneusers.civix.php'; // phpcs:disable use CRM_Standaloneusers_ExtensionUtil as E; @@ -31,3 +36,10 @@ function standaloneusers_civicrm_install() { function standaloneusers_civicrm_enable() { _standaloneusers_civix_civicrm_enable(); } + +/** + * Implements hook_civicrm_permission(). + */ +function standalone_civicrm_permission(&$permissions) { + $permissions['access password resets'] = ts('Allow users to access the reset password system'); +} diff --git a/civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/ChangePassword.tpl b/civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/ChangePassword.tpl new file mode 100644 index 0000000000..0f2035da6f --- /dev/null +++ b/civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/ChangePassword.tpl @@ -0,0 +1,3 @@ +<crm-angular-js modules="crmChangePassword"> + <crm-change-password hibp="{$hibp|escape}" user-id="{$loggedInUserID|escape}" ></crm-change-password> +</crm-angular-js> diff --git a/civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/Login.tpl b/civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/Login.tpl index 7cc1073bda..4dc2993675 100644 --- a/civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/Login.tpl +++ b/civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/Login.tpl @@ -255,11 +255,11 @@ a:hover, a:focus { <div class="message warning" style="display:none;" id="anonAccessDenied">{ts}You may need to login to access that.{/ts}</div> <form> <div> - <label for="exampleInputEmail1" class="form-label">Username</label> - <input type="email" class="form-control" id="usernameInput" aria-describedby="emailHelp"> + <label for="usernameInput" name=username class="form-label">Username</label> + <input type="text" class="form-control" id="usernameInput" > </div> <div> - <label for="exampleInputPassword1" class="form-label">Password</label> + <label for="passwordInput" class="form-label">Password</label> <input type="password" class="form-control" id="passwordInput"> </div> <div id="error" style="display:none;" class="form-alert">Your username and password do not match</div> diff --git a/civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/ResetPassword.tpl b/civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/ResetPassword.tpl new file mode 100644 index 0000000000..5a594b3356 --- /dev/null +++ b/civicrm/ext/standaloneusers/templates/CRM/Standaloneusers/Page/ResetPassword.tpl @@ -0,0 +1,5 @@ +<crm-angular-js modules="crmResetPassword"> + <crm-reset-password + hibp="{$hibp|escape}" + token="{$token|escape}" ></crm-reset-password> +</crm-angular-js> diff --git a/civicrm/ext/standaloneusers/tests/phpunit/Civi/Standalone/SecurityTest.php b/civicrm/ext/standaloneusers/tests/phpunit/Civi/Standalone/SecurityTest.php index e41312be06..d22c669a22 100644 --- a/civicrm/ext/standaloneusers/tests/phpunit/Civi/Standalone/SecurityTest.php +++ b/civicrm/ext/standaloneusers/tests/phpunit/Civi/Standalone/SecurityTest.php @@ -1,9 +1,9 @@ <?php namespace Civi\Standalone; -use CRM_Standaloneusers_ExtensionUtil as E; use Civi\Test\EndToEndInterface; use Civi\Test\TransactionalInterface; +use Civi\Api4\User; /** * FIXME - Add test description. @@ -49,29 +49,50 @@ class SecurityTest extends \PHPUnit\Framework\TestCase implements EndToEndInterf } public function tearDown():void { - $this->switchBackFromOurUFClasses(TRUE); + $this->deleteStuffWeMade(); + // $this->switchBackFromOurUFClasses(TRUE); parent::tearDown(); } + protected function loginUser($userID) { + $security = Security::singleton(); + $user = \Civi\Api4\User::get(FALSE) + ->addWhere('id', '=', $userID) + ->execute()->first(); + + $contactID = civicrm_api3('UFMatch', 'get', [ + 'sequential' => 1, + 'return' => ['contact_id'], + 'uf_id' => $user['id'], + ])['values'][0]['contact_id'] ?? NULL; + $this->assertNotNull($contactID); + /** @var \Civi\Standalone\Security $security */ + $security->loginAuthenticatedUserRecord($user, FALSE); + } + public function testCreateUser():void { [$contactID, $userID, $security] = $this->createFixtureContactAndUser(); $user = \Civi\Api4\User::get(FALSE) - ->addSelect('*', 'uf_match.*') ->addWhere('id', '=', $userID) - ->addJoin('UFMatch AS uf_match', 'INNER', ['uf_match.uf_id', '=', 'id']) ->execute()->single(); $this->assertEquals('user_one', $user['username']); - $this->assertEquals('user_one@example.org', $user['email']); - $this->assertStringStartsWith('$', $user['password']); + $this->assertEquals($contactID, $user['contact_id']); + $this->assertEquals($userID, $user['id']); + $this->assertEquals($userID, $user['uf_id']); + $this->assertEquals('user_one@example.org', $user['uf_name']); + $this->assertStringStartsWith('$', $user['hashed_password']); - $this->assertTrue($security->checkPassword('secret1', $user['password'])); - $this->assertFalse($security->checkPassword('some other password', $user['password'])); + // Test that the password can be checked ok. + $this->assertTrue($security->checkPassword('secret1', $user['hashed_password'])); + $this->assertFalse($security->checkPassword('some other password', $user['hashed_password'])); } public function testPerms() { [$contactID, $userID, $security] = $this->createFixtureContactAndUser(); + $ufID = \CRM_Core_BAO_UFMatch::getUFId($contactID); + $this->assertEquals($userID, $ufID); // Create a custom role $roleID = \Civi\Api4\Role::create(FALSE) @@ -94,55 +115,319 @@ class SecurityTest extends \PHPUnit\Framework\TestCase implements EndToEndInterf ->addWhere('id', '=', $userID) ->execute(); - $this->switchToOurUFClasses(); + // $this->switchToOurUFClasses(); foreach (['access CiviCRM', 'view all contacts', 'add contacts', 'edit all contacts'] as $allowed) { $this->assertTrue(\CRM_Core_Permission::check([$allowed], $contactID), "Should have '$allowed' permission but don't"); } foreach (['administer CiviCRM', 'access uploaded files'] as $notAllowed) { $this->assertFalse(\CRM_Core_Permission::check([$notAllowed], $contactID), "Should NOT have '$allowed' permission but do"); } - $this->switchBackFromOurUFClasses(); + // $this->switchBackFromOurUFClasses(); } - protected function switchToOurUFClasses() { - if (!empty($this->originalUFPermission)) { - throw new \RuntimeException("are you calling switchToOurUFClasses twice?"); - } - $this->originalUFPermission = \CRM_Core_Config::singleton()->userPermissionClass; - $this->originalUF = \CRM_Core_Config::singleton()->userSystem; - \CRM_Core_Config::singleton()->userPermissionClass = new \CRM_Core_Permission_Standalone(); - \CRM_Core_Config::singleton()->userSystem = new \CRM_Utils_System_Standalone(); - } + // protected function switchToOurUFClasses() { + // return; + // if (!empty($this->originalUFPermission)) { + // throw new \RuntimeException("are you calling switchToOurUFClasses twice?"); + // } + // $this->originalUFPermission = \CRM_Core_Config::singleton()->userPermissionClass; + // $this->originalUF = \CRM_Core_Config::singleton()->userSystem; + // \CRM_Core_Config::singleton()->userPermissionClass = new \CRM_Core_Permission_Standalone(); + // \CRM_Core_Config::singleton()->userSystem = new \CRM_Utils_System_Standalone(); + // } + // + // protected function switchBackFromOurUFClasses($justInCase = FALSE) { + // return; + // if (!$justInCase && empty($this->originalUFPermission)) { + // throw new \RuntimeException("are you calling switchBackFromOurUFClasses() twice?"); + // } + // \CRM_Core_Config::singleton()->userPermissionClass = $this->originalUFPermission; + // \CRM_Core_Config::singleton()->userSystem = $this->originalUF; + // $this->originalUFPermission = $this->originalUF = NULL; + // } - protected function switchBackFromOurUFClasses($justInCase = FALSE) { - if (!$justInCase && empty($this->originalUFPermission)) { - throw new \RuntimeException("are you calling switchBackFromOurUFClasses() twice?"); + /** + * Temporary debugging function + */ + public function dumpUFMatch(string $s = '') { + $d = \CRM_Core_DAO::executeQuery("SELECT * FROM civicrm_uf_match;"); + print "\ndump---------- $s\n"; + foreach ($d->fetchAll() as $row) { + print json_encode($row, JSON_UNESCAPED_SLASHES) . "\n"; } - \CRM_Core_Config::singleton()->userPermissionClass = $this->originalUFPermission; - \CRM_Core_Config::singleton()->userSystem = $this->originalUF; - $this->originalUFPermission = $this->originalUF = NULL; + print "--------------\n"; } + /** + * @return Array[int, int, \Civi\Standalone\Security] + */ public function createFixtureContactAndUser(): array { - $contactID = \Civi\Api4\Contact::create(FALSE) ->setValues([ 'contact_type' => 'Individual', 'display_name' => 'Admin McDemo', ])->execute()->first()['id']; - $security = Security::singleton(); - $params = ['cms_name' => 'user_one', 'cms_pass' => 'secret1', 'notify' => FALSE, 'contactID' => $contactID, 'email' => 'user_one@example.org']; - - $this->switchToOurUFClasses(); + $params = ['cms_name' => 'user_one', 'cms_pass' => 'secret1', 'notify' => FALSE, 'contact_id' => $contactID, 'email' => 'user_one@example.org']; + // $this->switchToOurUFClasses(); $userID = \CRM_Core_BAO_CMSUser::create($params, 'email'); - $this->switchBackFromOurUFClasses(); - + // $this->switchBackFromOurUFClasses(); $this->assertGreaterThan(0, $userID); $this->contactID = $contactID; $this->userID = $userID; + $security = Security::singleton(); return [$contactID, $userID, $security]; } + public function ensureStaffRoleExists() { + $staffRole = \Civi\Api4\Role::get(FALSE) + ->addWhere('name', '=', 'staffRole') + ->execute()->first(); + if (!$staffRole) { + \Civi\Api4\Role::create(FALSE) + ->setValues([ + 'name' => 'staff', + 'label' => 'General staff', + 'permissions' => [ + "access CiviCRM", + "access Contact Dashboard", + "view my contact", + "edit my contact", + "make online contributions", + "view event info", + "register for events", + "authenticate with password", + ], + ])->execute(); + } + } + + public function testUserApi() { + [$contactID, $adminUserID, $security] = $this->createFixtureContactAndUser(); + // Make our main user an admin and log them in. + User::update(FALSE)->addWhere('id', '=', $adminUserID)->addValue('roles:name', ['admin'])->execute(); + $this->loginUser($adminUserID); + $this->ensureStaffRoleExists(); + + // Create a 2nd contact and linked user. + $stafferContactID = \Civi\Api4\Contact::create(FALSE) + ->setValues(['display_name' => 'Test Staffer']) + ->execute()->first()['id']; + /** @var \Civi\Api4\Action\User\Create */ + $userID = User::create(FALSE) + ->setValues([ + 'username' => 'testuser1', + 'password' => 'shhh', + 'contact_id' => $stafferContactID, + 'roles:name' => ['staff'], + 'uf_name' => 'testuser1@example.org', + ]) + ->execute()->first()['id']; + $user = User::get(FALSE)->addWhere('id', '=', $userID)->execute()->first(); + \Civi\Api4\UFMatch::create(FALSE) + ->setValues([ + 'contact_id' => $stafferContactID, + 'uf_id' => $user['id'], + ]) + ->execute(); + ; + $userId = \CRM_Core_BAO_UFMatch::getUFId($stafferContactID); + $this->assertNotNull($userId); + + $this->assertArrayNotHasKey('password', $user); + $this->assertMatchesRegularExpression('/^[$].+[$].+/', $user['hashed_password']); + + // Update to the loaded values should NOT result in the password being changed. + $updatedUser = User::update(FALSE) + ->setValues($user) + ->addWhere('id', '=', $user['id']) + ->setReload(TRUE) + ->execute()->first(); + $this->assertEquals($user['hashed_password'], $updatedUser['hashed_password']); + + // Ditto save + $updated = User::save(FALSE) + ->setRecords([$user]) + ->setReload(TRUE) + ->execute()->first(); + $updatedUser = User::get(FALSE)->addWhere('id', '=', $user['id'])->execute()->first(); + $this->assertEquals($user['hashed_password'], $updatedUser['hashed_password']); + + // Test we can force saving a raw password + $updatedUser = User::update(FALSE) + ->setReload(TRUE) + ->addValue('hashed_password', '$shhh') + ->addWhere('id', '=', $user['id']) + ->execute()->first(); + $this->assertEquals('$shhh', $updatedUser['hashed_password']); + + // Now move on to tests with checkPermissions:TRUE + + // Check we are allowed to update this user's password if we provide our own, since we have 'cms:administer users' + // ...by password + $previousHash = $updatedUser['hashed_password']; + $updatedUser = User::update(TRUE) + ->addValue('password', 'topSecret') + ->addWhere('id', '=', $user['id']) + ->setActorPassword('secret1') + ->setReload(TRUE) + ->execute()->first(); + $this->assertNotEquals($previousHash, $updatedUser['hashed_password'], "Expected that the password was changed, but it wasn't."); + $previousHash = $updatedUser['hashed_password']; + + // ...but NOT by hashed_password + $previousHash = $updatedUser['hashed_password']; + try { + $updatedUser = User::update(TRUE) + ->addValue('hashed_password', '$someNefariousHash') + ->addWhere('id', '=', $user['id']) + ->setActorPassword('secret1') + ->execute(); + $this->fail("Expected UnauthorizedException got none."); + } + catch (\Civi\API\Exception\UnauthorizedException $e) { + $this->assertEquals('Not allowed to change hashed_password', $e->getMessage()); + } + + // Check that if we don't supply OUR correct password, we're not allowed to update the user's password. + try { + User::update(TRUE) + ->addValue('password', 'anotherNewPassword') + ->addWhere('id', '=', $user['id']) + ->setActorPassword('wrong pass') + ->execute(); + $this->fail("Expected UnauthorizedException got none."); + } + catch (\Civi\API\Exception\UnauthorizedException $e) { + $this->assertEquals('Incorrect password', $e->getMessage()); + } + + // Check that if we don't supply OUR password at all, we're not allowed to update the user's password. + try { + User::update(TRUE) + ->addValue('password', 'anotherNewPassword') + ->addWhere('id', '=', $user['id']) + ->execute(); + $this->fail("Expected UnauthorizedException got none."); + } + catch (\Civi\API\Exception\UnauthorizedException $e) { + $this->assertEquals('Unauthorized', $e->getMessage()); + } + + // Now login as the user in question who only has the 'staff' role. + $this->loginUser($user['id']); + + // Check we are allowed to update our own password if we provide the current one. + $updatedUser = User::update(TRUE) + ->setActorPassword('topSecret') + ->addValue('password', 'ourNewSecret') + ->addWhere('id', '=', $user['id']) + ->setReload(TRUE) + ->execute()->first(); + $this->assertNotEquals($previousHash, $updatedUser['hashed_password'], "Expected that the password was changed, but it wasn't."); + $previousHash = $updatedUser['hashed_password']; + + // Check that if we don't supply OUR correct password, we're not allowed to update our password. + try { + User::update(TRUE) + ->addValue('password', 'anotherNewPassword') + ->addWhere('id', '=', $user['id']) + ->setActorPassword('wrong pass') + ->execute(); + $this->fail("Expected UnauthorizedException got none."); + } + catch (\Civi\API\Exception\UnauthorizedException $e) { + $this->assertEquals('Incorrect password', $e->getMessage()); + } + + // Check that if we don't supply OUR password at all, we're not allowed to update the user's password. + try { + User::update(TRUE) + ->addValue('password', 'anotherNewPassword') + ->addWhere('id', '=', $user['id']) + ->execute(); + $this->fail("Expected UnauthorizedException got none."); + } + catch (\Civi\API\Exception\UnauthorizedException $e) { + $this->assertEquals('Unauthorized', $e->getMessage()); + } + + // Check that we're not allowed to update the admin user's password, since we are not an admin. + try { + User::update(TRUE) + ->addValue('password', 'anotherNewPassword') + ->addWhere('id', '=', $adminUserID) + ->setActorPassword('ourNewSecret') + ->execute(); + $this->fail("Expected UnauthorizedException got none."); + } + catch (\Civi\API\Exception\UnauthorizedException $e) { + $this->assertEquals("You are not permitted to change other users' accounts.", $e->getMessage()); + } + + $this->deleteStuffWeMade(); + } + + public function testForgottenPassword() { + + /** @var Security $security */ + [$contactID, $userID, $security] = $this->createFixtureContactAndUser(); + + // Create token. + $token = \Civi\Api4\Action\User\SendPasswordReset::updateToken($userID); + $this->assertMatchesRegularExpression('/^([0-9a-f]{8}[a-zA-Z0-9]{32})([0-9a-f]+)$/', $token); + + // Fake an expired token + $old = dechex(time() - 1); + $this->assertNull($security->checkPasswordResetToken($old . substr($token, 9))); + + // Check token fails if contact ID is different. + $this->assertNull($security->checkPasswordResetToken($token . '0')); + + // Check it works, but only once. + $extractedUserID = $security->checkPasswordResetToken($token); + $this->assertEquals($userID, $extractedUserID); + $this->assertNull($security->checkPasswordResetToken($token)); + + // OK, let's change that password. + $token = \Civi\Api4\Action\User\SendPasswordReset::updateToken($userID); + + // Attempt to change the user's password using this token to authenticate. + $result = User::passwordReset(TRUE) + ->setToken($token) + ->setPassword('fingersCrossed') + ->execute(); + + $this->assertEquals(1, $result['success']); + $user = User::get(FALSE)->addWhere('id', '=', $userID)->execute()->single(); + $this->assertTrue($security->checkPassword('fingersCrossed', $user['hashed_password'])); + + // Should not work a 2nd time with same token. + try { + User::passwordReset(TRUE) + ->setToken($token) + ->setPassword('oooh') + ->execute(); + $this->fail("Should not have been able to reuse token"); + } + catch (\Exception $e) { + $this->assertEquals('Invalid token.', $e->getMessage()); + } + + // Check the message template generation + $token = \Civi\Api4\Action\User\SendPasswordReset::updateToken($userID); + $workflow = $security->preparePasswordResetWorkflow($user, $token); + $this->assertNotNull($workflow); + $result = $workflow->renderTemplate(); + + $this->assertMatchesRegularExpression(';https?://[^/]+/civicrm/login/password.*' . $token . ';', $result['text']); + $this->assertMatchesRegularExpression(';https?://[^/]+/civicrm/login/password.*' . $token . ';', $result['html']); + $this->assertEquals('Password reset link for Demonstrators Anonymous', $result['subject']); + } + + protected function deleteStuffWeMade() { + User::delete(FALSE)->addWhere('username', '=', 'testuser1')->execute(); + } + } diff --git a/civicrm/ext/standaloneusers/xml/Menu/standaloneusers.xml b/civicrm/ext/standaloneusers/xml/Menu/standaloneusers.xml index e82ee26f44..118d3d766e 100644 --- a/civicrm/ext/standaloneusers/xml/Menu/standaloneusers.xml +++ b/civicrm/ext/standaloneusers/xml/Menu/standaloneusers.xml @@ -11,4 +11,16 @@ <page_callback>CRM_Standaloneusers_Page_Login::logout</page_callback> <access_arguments>*always allow*</access_arguments> </item> + <item> + <path>civicrm/admin/user/password</path> + <page_callback>CRM_Standaloneusers_Page_ChangePassword</page_callback> + <title>Change Password</title> + <access_arguments>access CiviCRM</access_arguments> + </item> + <item> + <path>civicrm/login/password</path> + <page_callback>CRM_Standaloneusers_Page_ResetPassword</page_callback> + <title>Reset Password</title> + <access_arguments>access password resets</access_arguments> + </item> </menu> diff --git a/civicrm/ext/standaloneusers/xml/schema/CRM/Standaloneusers/User.entityType.php b/civicrm/ext/standaloneusers/xml/schema/CRM/Standaloneusers/User.entityType.php index 5ef16e5b9d..65c36187b9 100644 --- a/civicrm/ext/standaloneusers/xml/schema/CRM/Standaloneusers/User.entityType.php +++ b/civicrm/ext/standaloneusers/xml/schema/CRM/Standaloneusers/User.entityType.php @@ -5,6 +5,6 @@ return [ [ 'name' => 'User', 'class' => 'CRM_Standaloneusers_DAO_User', - 'table' => 'civicrm_user', + 'table' => 'civicrm_uf_match', ], ]; diff --git a/civicrm/ext/standaloneusers/xml/schema/CRM/Standaloneusers/User.xml b/civicrm/ext/standaloneusers/xml/schema/CRM/Standaloneusers/User.xml index 4cb23909f5..4b2e5be0ea 100644 --- a/civicrm/ext/standaloneusers/xml/schema/CRM/Standaloneusers/User.xml +++ b/civicrm/ext/standaloneusers/xml/schema/CRM/Standaloneusers/User.xml @@ -3,8 +3,8 @@ <table> <base>CRM/Standaloneusers</base> <class>User</class> - <name>civicrm_user</name> - <comment>A standalone user account</comment> + <name>civicrm_uf_match</name> + <comment>Standalone User Account. In Standalone this is a superset of the original civicrm_uf_match table.</comment> <labelField>username</labelField> <searchField>username</searchField> <descriptionField>email</descriptionField> @@ -16,28 +16,81 @@ <field> <name>id</name> + <title>UF Match ID</title> <type>int unsigned</type> <required>true</required> <comment>Unique User ID</comment> <html> <type>Number</type> </html> + <add>5.67</add> </field> <primaryKey> <name>id</name> <autoincrement>true</autoincrement> </primaryKey> - + <field> + <name>domain_id</name> + <title>Domain ID</title> + <type>int unsigned</type> + <required>true</required> + <comment>Which Domain is this match entry for</comment> + <pseudoconstant> + <table>civicrm_domain</table> + <keyColumn>id</keyColumn> + <labelColumn>name</labelColumn> + </pseudoconstant> + <html> + <label>Domain</label> + </html> + <add>3.0</add> + </field> + <foreignKey> + <name>domain_id</name> + <table>civicrm_domain</table> + <key>id</key> + <add>3.0</add> + </foreignKey> + <field> + <name>uf_id</name> + <title>CMS ID</title> + <type>int unsigned</type> + <required>true</required> + <default>0</default> + <comment>UF ID. Redundant in Standalone. Needs to be identical to id.</comment> + <add>1.1</add> + </field> + <index> + <name>I_civicrm_uf_match_uf_id</name> + <fieldName>uf_id</fieldName> + <add>3.3</add> + </index> + <field> + <name>uf_name</name> + <title>User Email</title> + <type>varchar</type> + <length>255</length> + <comment>Email (e.g. for password resets)</comment> + <html> + <type>Email</type> + </html> + </field> <field> <name>contact_id</name> + <title>Contact ID</title> <type>int unsigned</type> - <comment>FK to Contact - possibly redundant</comment> + <comment>FK to Contact ID</comment> + <html> + <label>Contact</label> + </html> + <add>1.1</add> </field> <foreignKey> <name>contact_id</name> <table>civicrm_contact</table> <key>id</key> - <onDelete>CASCADE</onDelete> + <add>1.1</add> + <onDelete>SET NULL</onDelete> </foreignKey> <field> @@ -57,22 +110,13 @@ </index> <field> - <name>password</name> + <name>hashed_password</name> <type>varchar</type> <required>true</required> + <default>""</default> <length>128</length> - <comment>Hashed password</comment> - </field> - - <field> - <name>email</name> - <type>varchar</type> - <required>true</required> - <length>255</length> - <comment>Email (e.g. for password resets)</comment> - <html> - <type>Text</type> - </html> + <readonly>true</readonly> + <comment>Hashed, not plaintext password</comment> </field> <field> @@ -135,15 +179,32 @@ <field> <name>language</name> - <type>int unsigned</type> - <title>Language</title> - <pseudoconstant> - <optionGroupName>languages</optionGroupName> - </pseudoconstant> - <html> - <type>Select</type> - </html> - <comment>The language for the user.</comment> + <title>Preferred Language</title> + <type>varchar</type> + <length>5</length> + <comment>UI language preferred by the given user/contact</comment> + <add>2.1</add> + </field> + <index> + <name>UI_uf_name_domain_id</name> + <fieldName>uf_name</fieldName> + <fieldName>domain_id</fieldName> + <unique>true</unique> + <add>2.1</add> + </index> + <index> + <name>UI_contact_domain_id</name> + <fieldName>contact_id</fieldName> + <fieldName>domain_id</fieldName> + <unique>true</unique> + <add>1.6</add> + </index> + <field> + <name>password_reset_token</name> + <title>Password Reset Token</title> + <comment>The unspent token</comment> + <type>varchar</type> + <length>40</length> + <readonly>true</readonly> </field> - </table> diff --git a/civicrm/managed/contactSummary/SavedSearch_Contact_Summary_Notes.mgd.php b/civicrm/managed/contactSummary/SavedSearch_Contact_Summary_Notes.mgd.php new file mode 100644 index 0000000000..b9a376ab58 --- /dev/null +++ b/civicrm/managed/contactSummary/SavedSearch_Contact_Summary_Notes.mgd.php @@ -0,0 +1,424 @@ +<?php + +return [ + [ + 'name' => 'SavedSearch_Contact_Summary_Notes', + 'entity' => 'SavedSearch', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Contact_Summary_Notes', + 'label' => ts('Contact Summary Notes'), + 'form_values' => NULL, + 'mapping_id' => NULL, + 'search_custom_id' => NULL, + 'api_entity' => 'Note', + 'api_params' => [ + 'version' => 4, + 'select' => [ + 'id', + 'subject', + 'note', + 'note_date', + 'modified_date', + 'contact_id.sort_name', + 'GROUP_CONCAT(UNIQUE Note_EntityFile_File_01.file_name) AS GROUP_CONCAT_Note_EntityFile_File_01_file_name', + 'COUNT(Note_Note_entity_id_01.id) AS COUNT_Note_Note_entity_id_01_id', + ], + 'orderBy' => [], + 'where' => [], + 'groupBy' => [ + 'id', + ], + 'join' => [ + [ + 'File AS Note_EntityFile_File_01', + 'LEFT', + 'EntityFile', + [ + 'id', + '=', + 'Note_EntityFile_File_01.entity_id', + ], + [ + 'Note_EntityFile_File_01.entity_table', + '=', + "'civicrm_note'", + ], + ], + [ + 'Note AS Note_Note_entity_id_01', + 'LEFT', + [ + 'id', + '=', + 'Note_Note_entity_id_01.entity_id', + ], + [ + 'Note_Note_entity_id_01.entity_table', + '=', + "'civicrm_note'", + ], + ], + ], + 'having' => [], + ], + 'expires_date' => NULL, + 'description' => NULL, + ], + 'match' => [ + 'name', + ], + ], + ], + [ + 'name' => 'SavedSearch_Contact_Summary_Notes_SearchDisplay_Contact_Summary_Notes_Tab', + 'entity' => 'SearchDisplay', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Contact_Summary_Notes_Tab', + 'label' => ts('Contact Summary Notes Tab'), + 'saved_search_id.name' => 'Contact_Summary_Notes', + 'type' => 'table', + 'settings' => [ + 'description' => NULL, + 'sort' => [ + ['note_date', 'DESC'], + ], + 'limit' => 25, + 'pager' => [ + 'hide_single' => TRUE, + 'show_count' => FALSE, + 'expose_limit' => TRUE, + ], + 'placeholder' => 5, + 'columns' => [ + [ + 'type' => 'field', + 'key' => 'subject', + 'dataType' => 'String', + 'label' => ts('Subject'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'note', + 'dataType' => 'Text', + 'label' => ts('Note'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'note_date', + 'dataType' => 'Timestamp', + 'label' => ts('Note Date'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'modified_date', + 'dataType' => 'Timestamp', + 'label' => ts('Modified'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'contact_id.sort_name', + 'dataType' => 'String', + 'label' => ts('Created By'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'GROUP_CONCAT_Note_EntityFile_File_01_file_name', + 'dataType' => 'String', + 'label' => ts('Attachments'), + 'sortable' => TRUE, + 'link' => [ + 'path' => '[GROUP_CONCAT_Note_EntityFile_File_01_url]', + 'entity' => '', + 'action' => '', + 'join' => '', + 'target' => '', + ], + 'icons' => [ + [ + 'field' => 'Note_EntityFile_File_01.icon', + 'side' => 'left', + ], + ], + 'cssRules' => [ + [ + 'crm-image-popup', + 'Note_EntityFile_File_01.is_image', + '=', + TRUE, + ], + ], + ], + [ + 'size' => 'btn-xs', + 'links' => [ + [ + 'path' => 'civicrm/note?action=add&reset=1&entity_table=civicrm_note&entity_id=[id]', + 'icon' => 'fa-comment-o', + 'text' => '0', + 'style' => 'default', + 'condition' => [ + 'COUNT_Note_Note_entity_id_01_id', + 'IS EMPTY', + ], + 'task' => '', + 'entity' => '', + 'action' => '', + 'join' => '', + 'target' => 'crm-popup', + ], + [ + 'path' => 'civicrm/contact/view/note/comments#?parent_id=[id]', + 'icon' => 'fa-comments', + 'text' => '[COUNT_Note_Note_entity_id_01_id]', + 'style' => 'info', + 'condition' => [ + 'COUNT_Note_Note_entity_id_01_id', + 'IS NOT EMPTY', + ], + 'task' => '', + 'entity' => '', + 'action' => '', + 'join' => '', + 'target' => 'crm-popup', + ], + ], + 'type' => 'buttons', + 'alignment' => '', + 'label' => ts('Comments'), + ], + [ + 'size' => 'btn-xs', + 'links' => [ + [ + 'icon' => 'fa-external-link', + 'text' => ts('View'), + 'style' => 'default', + 'condition' => [], + 'task' => '', + 'entity' => 'Note', + 'action' => 'view', + 'join' => '', + 'target' => 'crm-popup', + ], + [ + 'icon' => 'fa-pencil', + 'text' => ts('Edit'), + 'style' => 'default', + 'condition' => [], + 'task' => '', + 'entity' => 'Note', + 'action' => 'update', + 'join' => '', + 'target' => 'crm-popup', + ], + [ + 'icon' => 'fa-trash', + 'text' => ts('Delete'), + 'style' => 'danger', + 'condition' => [], + 'task' => '', + 'entity' => 'Note', + 'action' => 'delete', + 'join' => '', + 'target' => 'crm-popup', + ], + ], + 'type' => 'buttons', + 'alignment' => 'text-right', + ], + ], + 'actions' => FALSE, + 'classes' => [ + 'table', + 'table-striped', + ], + 'headerCount' => FALSE, + 'toolbar' => [ + [ + 'text' => ts('Add Note'), + 'icon' => 'fa-plus', + 'style' => 'primary', + 'entity' => 'Note', + 'action' => 'add', + 'target' => 'crm-popup', + ], + ], + ], + 'acl_bypass' => FALSE, + ], + 'match' => [ + 'name', + 'saved_search_id', + ], + ], + ], + [ + 'name' => 'SavedSearch_Contact_Summary_Notes_SearchDisplay_Note_Comments', + 'entity' => 'SearchDisplay', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Note_Comments', + 'label' => ts('Note Comments'), + 'saved_search_id.name' => 'Contact_Summary_Notes', + 'type' => 'table', + 'settings' => [ + 'description' => NULL, + 'sort' => [ + ['note_date', 'DESC'], + ], + 'limit' => 25, + 'pager' => [ + 'hide_single' => TRUE, + 'show_count' => TRUE, + 'expose_limit' => TRUE, + ], + 'placeholder' => 5, + 'columns' => [ + [ + 'type' => 'field', + 'key' => 'subject', + 'dataType' => 'String', + 'label' => ts('Subject'), + 'sortable' => TRUE, + 'editable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'note', + 'dataType' => 'Text', + 'label' => ts('Note'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'note_date', + 'dataType' => 'Timestamp', + 'label' => ts('Note Date'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'modified_date', + 'dataType' => 'Timestamp', + 'label' => ts('Modified'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'contact_id.sort_name', + 'dataType' => 'String', + 'label' => ts('Created By'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'GROUP_CONCAT_Note_EntityFile_File_01_file_name', + 'dataType' => 'String', + 'label' => ts('Attachments'), + 'sortable' => TRUE, + 'link' => [ + 'path' => '[GROUP_CONCAT_Note_EntityFile_File_01_url]', + 'entity' => '', + 'action' => '', + 'join' => '', + 'target' => '', + ], + 'icons' => [ + [ + 'field' => 'Note_EntityFile_File_01.icon', + 'side' => 'left', + ], + ], + 'cssRules' => [ + [ + 'crm-image-popup', + 'Note_EntityFile_File_01.is_image', + '=', + TRUE, + ], + ], + ], + [ + 'size' => 'btn-xs', + 'links' => [ + [ + 'icon' => 'fa-external-link', + 'text' => ts('View'), + 'style' => 'default', + 'condition' => [], + 'task' => '', + 'entity' => 'Note', + 'action' => 'view', + 'join' => '', + 'target' => 'crm-popup', + ], + [ + 'icon' => 'fa-pencil', + 'text' => ts('Edit'), + 'style' => 'default', + 'condition' => [], + 'task' => '', + 'entity' => 'Note', + 'action' => 'update', + 'join' => '', + 'target' => 'crm-popup', + ], + [ + 'icon' => 'fa-trash', + 'text' => ts('Delete'), + 'style' => 'danger', + 'condition' => [], + 'task' => '', + 'entity' => 'Note', + 'action' => 'delete', + 'join' => '', + 'target' => 'crm-popup', + ], + ], + 'type' => 'buttons', + 'alignment' => 'text-right', + ], + ], + 'actions' => FALSE, + 'classes' => [ + 'table', + 'table-striped', + ], + 'headerCount' => FALSE, + 'toolbar' => [ + [ + 'text' => ts('Add Comment'), + 'icon' => 'fa-plus', + 'style' => 'primary', + 'entity' => 'Note', + 'action' => 'add', + 'target' => 'crm-popup', + ], + ], + ], + 'acl_bypass' => FALSE, + ], + 'match' => [ + 'name', + 'saved_search_id', + ], + ], + ], +]; diff --git a/civicrm/managed/contactSummary/SavedSearch_Contact_Summary_Relationships.mgd.php b/civicrm/managed/contactSummary/SavedSearch_Contact_Summary_Relationships.mgd.php new file mode 100644 index 0000000000..c2739138b7 --- /dev/null +++ b/civicrm/managed/contactSummary/SavedSearch_Contact_Summary_Relationships.mgd.php @@ -0,0 +1,480 @@ +<?php + +// Conditionally add join only if CiviCase is enabled +$civiCaseEnabled = CRM_Core_Component::isEnabled('CiviCase'); +$joins = [ + [ + 'Contact AS RelationshipCache_Contact_far_contact_id_01', + 'LEFT', + ['far_contact_id', '=', 'RelationshipCache_Contact_far_contact_id_01.id'], + ], +]; +if ($civiCaseEnabled) { + $joins[] = [ + 'Case AS RelationshipCache_Case_case_id_01', + 'LEFT', + ['case_id', '=', 'RelationshipCache_Case_case_id_01.id'], + ]; +} + +return [ + [ + 'name' => 'SavedSearch_Contact_Summary_Relationships', + 'entity' => 'SavedSearch', + 'cleanup' => 'unused', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Contact_Summary_Relationships', + 'label' => ts('Contact Summary Relationships'), + 'api_entity' => 'RelationshipCache', + 'api_params' => [ + 'version' => 4, + 'select' => [ + 'near_relation:label', + 'RelationshipCache_Contact_far_contact_id_01.display_name', + 'start_date', + 'end_date', + 'RelationshipCache_Contact_far_contact_id_01.address_primary.city', + 'RelationshipCache_Contact_far_contact_id_01.address_primary.state_province_id:label', + 'RelationshipCache_Contact_far_contact_id_01.email_primary.email', + 'RelationshipCache_Contact_far_contact_id_01.phone_primary.phone', + 'permission_near_to_far:label', + 'permission_far_to_near:label', + 'is_active', + ], + 'orderBy' => [], + 'where' => [], + 'groupBy' => [], + 'join' => $joins, + 'having' => [], + ], + ], + 'match' => [ + 'name', + ], + ], + ], + [ + 'name' => 'SavedSearch_Contact_Summary_Relationships_SearchDisplay_Contact_Summary_Relationships_Tab', + 'entity' => 'SearchDisplay', + 'cleanup' => 'unused', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Contact_Summary_Relationships_Active', + 'label' => ts('Contact Summary Relationships Active'), + 'saved_search_id.name' => 'Contact_Summary_Relationships', + 'type' => 'table', + 'settings' => [ + 'description' => NULL, + 'sort' => [], + 'limit' => 50, + 'pager' => [ + 'hide_single' => TRUE, + 'expose_limit' => TRUE, + ], + 'placeholder' => 5, + 'columns' => [ + [ + 'type' => 'field', + 'key' => 'near_relation:label', + 'dataType' => 'String', + 'label' => ts('Relationship'), + 'sortable' => TRUE, + 'icons' => [ + [ + 'field' => 'permission_far_to_near:icon', + 'side' => 'left', + ], + ], + ], + [ + 'type' => 'field', + 'key' => 'RelationshipCache_Contact_far_contact_id_01.display_name', + 'dataType' => 'String', + 'label' => ts('With'), + 'sortable' => TRUE, + 'icons' => [ + [ + 'field' => 'RelationshipCache_Contact_far_contact_id_01.contact_sub_type:icon', + 'side' => 'left', + ], + [ + 'field' => 'RelationshipCache_Contact_far_contact_id_01.contact_type:icon', + 'side' => 'left', + ], + [ + 'field' => 'permission_near_to_far:icon', + 'side' => 'right', + ], + ], + 'link' => [ + 'path' => '', + 'entity' => 'Contact', + 'action' => 'view', + 'join' => 'RelationshipCache_Contact_far_contact_id_01', + 'target' => '_blank', + ], + 'title' => ts('View Related Contact'), + ], + [ + 'type' => 'field', + 'key' => 'start_date', + 'dataType' => 'Date', + 'label' => ts('Dates'), + 'sortable' => TRUE, + 'rewrite' => '[start_date] - [end_date]', + ], + [ + 'type' => 'field', + 'key' => 'RelationshipCache_Contact_far_contact_id_01.address_primary.city', + 'dataType' => 'String', + 'label' => ts('City'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'RelationshipCache_Contact_far_contact_id_01.address_primary.state_province_id:label', + 'dataType' => 'Integer', + 'label' => ts('State/Prov'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'RelationshipCache_Contact_far_contact_id_01.email_primary.email', + 'dataType' => 'String', + 'label' => ts('Email'), + 'sortable' => TRUE, + 'icons' => [ + [ + 'icon' => 'fa-ban', + 'side' => 'left', + 'if' => [ + 'RelationshipCache_Contact_far_contact_id_01.do_not_email', + '=', + TRUE, + ], + ], + ], + ], + [ + 'type' => 'field', + 'key' => 'RelationshipCache_Contact_far_contact_id_01.phone_primary.phone', + 'dataType' => 'String', + 'label' => ts('Phone'), + 'sortable' => TRUE, + 'icons' => [ + [ + 'icon' => 'fa-ban', + 'side' => 'left', + 'if' => [ + 'RelationshipCache_Contact_far_contact_id_01.do_not_phone', + '=', + TRUE, + ], + ], + ], + ], + [ + 'text' => '', + 'style' => 'default', + 'size' => 'btn-xs', + 'icon' => 'fa-bars', + 'links' => [ + [ + 'entity' => 'Relationship', + 'action' => 'view', + 'join' => '', + 'target' => 'crm-popup', + 'icon' => 'fa-external-link', + 'text' => ts('View Relationship'), + 'style' => 'default', + 'path' => '', + 'task' => '', + 'condition' => [], + ], + [ + 'entity' => 'Relationship', + 'action' => 'update', + 'join' => '', + 'target' => 'crm-popup', + 'icon' => 'fa-pencil', + 'text' => ts('Update Relationship'), + 'style' => 'default', + 'path' => '', + 'task' => '', + 'condition' => [], + ], + [ + 'task' => 'disable', + 'entity' => 'Relationship', + 'join' => '', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => ts('Disable Relationship'), + 'style' => 'default', + 'path' => '', + 'action' => '', + 'condition' => [ + 'is_active', + '=', + TRUE, + ], + ], + [ + 'entity' => 'Relationship', + 'action' => 'delete', + 'join' => '', + 'target' => 'crm-popup', + 'icon' => 'fa-trash', + 'text' => ts('Delete Relationship'), + 'style' => 'danger', + 'path' => '', + 'task' => '', + 'condition' => [], + ], + [ + 'entity' => 'Case', + 'action' => 'view', + 'join' => 'RelationshipCache_Case_case_id_01', + 'target' => '', + 'icon' => 'fa-folder-open', + 'text' => ts('Manage Case'), + 'style' => 'default', + 'condition' => [], + ], + ], + 'type' => 'menu', + 'alignment' => 'text-right', + ], + ], + 'actions' => FALSE, + 'classes' => [ + 'table', + 'table-striped', + ], + 'toolbar' => [ + [ + 'action' => 'add', + 'entity' => 'Relationship', + 'text' => ts('Add Relationship'), + 'icon' => 'fa-plus', + 'style' => 'primary', + 'target' => 'crm-popup', + 'join' => '', + 'path' => '', + 'task' => '', + 'condition' => [], + ], + ], + ], + ], + 'match' => [ + 'name', + 'saved_search_id', + ], + ], + ], + [ + 'name' => 'SavedSearch_Contact_Summary_Relationships_SearchDisplay_Contact_Summary_Relationships_Inactive', + 'entity' => 'SearchDisplay', + 'cleanup' => 'unused', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Contact_Summary_Relationships_Inactive', + 'label' => ts('Contact Summary Relationships Inactive'), + 'saved_search_id.name' => 'Contact_Summary_Relationships', + 'type' => 'table', + 'settings' => [ + 'description' => ts('These relationships are Disabled OR have a past End Date.'), + 'sort' => [], + 'limit' => 50, + 'pager' => [ + 'hide_single' => TRUE, + 'expose_limit' => TRUE, + ], + 'placeholder' => 5, + 'columns' => [ + [ + 'type' => 'field', + 'key' => 'near_relation:label', + 'dataType' => 'String', + 'label' => ts('Relationship'), + 'sortable' => TRUE, + 'icons' => [ + [ + 'field' => 'permission_far_to_near:icon', + 'side' => 'left', + ], + ], + ], + [ + 'type' => 'field', + 'key' => 'RelationshipCache_Contact_far_contact_id_01.display_name', + 'dataType' => 'String', + 'label' => ts('With'), + 'sortable' => TRUE, + 'icons' => [ + [ + 'field' => 'RelationshipCache_Contact_far_contact_id_01.contact_sub_type:icon', + 'side' => 'left', + ], + [ + 'field' => 'RelationshipCache_Contact_far_contact_id_01.contact_type:icon', + 'side' => 'left', + ], + [ + 'field' => 'permission_near_to_far:icon', + 'side' => 'right', + ], + ], + 'link' => [ + 'path' => '', + 'entity' => 'Contact', + 'action' => 'view', + 'join' => 'RelationshipCache_Contact_far_contact_id_01', + 'target' => '_blank', + ], + 'title' => ts('View Related Contact'), + ], + [ + 'type' => 'field', + 'key' => 'start_date', + 'dataType' => 'Date', + 'label' => ts('Dates'), + 'sortable' => TRUE, + 'rewrite' => '[start_date] - [end_date]', + ], + [ + 'type' => 'field', + 'key' => 'RelationshipCache_Contact_far_contact_id_01.address_primary.city', + 'dataType' => 'String', + 'label' => ts('City'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'RelationshipCache_Contact_far_contact_id_01.address_primary.state_province_id:label', + 'dataType' => 'Integer', + 'label' => ts('State/Prov'), + 'sortable' => TRUE, + ], + [ + 'type' => 'field', + 'key' => 'RelationshipCache_Contact_far_contact_id_01.email_primary.email', + 'dataType' => 'String', + 'label' => ts('Email'), + 'sortable' => TRUE, + 'icons' => [ + [ + 'icon' => 'fa-ban', + 'side' => 'left', + 'if' => [ + 'RelationshipCache_Contact_far_contact_id_01.do_not_email', + '=', + TRUE, + ], + ], + ], + ], + [ + 'type' => 'field', + 'key' => 'RelationshipCache_Contact_far_contact_id_01.phone_primary.phone', + 'dataType' => 'String', + 'label' => ts('Phone'), + 'sortable' => TRUE, + 'icons' => [ + [ + 'icon' => 'fa-ban', + 'side' => 'left', + 'if' => [ + 'RelationshipCache_Contact_far_contact_id_01.do_not_phone', + '=', + TRUE, + ], + ], + ], + ], + [ + 'text' => '', + 'style' => 'default', + 'size' => 'btn-xs', + 'icon' => 'fa-bars', + 'links' => [ + [ + 'entity' => 'Relationship', + 'action' => 'view', + 'join' => '', + 'target' => 'crm-popup', + 'icon' => 'fa-external-link', + 'text' => ts('View Relationship'), + 'style' => 'default', + 'path' => '', + 'task' => '', + 'condition' => [], + ], + [ + 'entity' => 'Relationship', + 'action' => 'update', + 'join' => '', + 'target' => 'crm-popup', + 'icon' => 'fa-pencil', + 'text' => ts('Update Relationship'), + 'style' => 'default', + 'path' => '', + 'task' => '', + 'condition' => [], + ], + [ + 'task' => 'enable', + 'entity' => 'Relationship', + 'join' => '', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => ts('Enable Relationship'), + 'style' => 'default', + 'path' => '', + 'action' => '', + 'condition' => [ + 'is_active', + '=', + FALSE, + ], + ], + [ + 'entity' => 'Relationship', + 'action' => 'delete', + 'join' => '', + 'target' => 'crm-popup', + 'icon' => 'fa-trash', + 'text' => ts('Delete Relationship'), + 'style' => 'danger', + 'path' => '', + 'task' => '', + 'condition' => [], + ], + ], + 'type' => 'menu', + 'alignment' => 'text-right', + ], + ], + 'actions' => FALSE, + 'classes' => [ + 'table', + 'table-striped', + 'disabled', + ], + ], + ], + 'match' => [ + 'name', + 'saved_search_id', + ], + ], + ], +]; diff --git a/civicrm/mixin/mgd-php@1/mixin.php b/civicrm/mixin/mgd-php@1/mixin.php index 990ed89061..064d82dbae 100644 --- a/civicrm/mixin/mgd-php@1/mixin.php +++ b/civicrm/mixin/mgd-php@1/mixin.php @@ -26,7 +26,7 @@ return function ($mixInfo, $bootCache) { // Optimization: if managed entities were requested for specific module(s), // check name and return early if not applicable. - if (is_array($event->modules) && !in_array($mixInfo->longName, $event->modules, TRUE)) { + if ($event->modules && !in_array($mixInfo->longName, $event->modules, TRUE)) { return; } diff --git a/civicrm/packages/Smarty/Smarty.class.php b/civicrm/packages/Smarty/Smarty.class.php index e5b6e3118a..716f551340 100644 --- a/civicrm/packages/Smarty/Smarty.class.php +++ b/civicrm/packages/Smarty/Smarty.class.php @@ -1126,131 +1126,149 @@ class Smarty */ function fetch($resource_name, $cache_id = null, $compile_id = null, $display = false) { - static $_cache_info = array(); + if (preg_match('/^(\s+)?string:/', $resource_name)) { + $old_security = $this->security; + $this->security = TRUE; + } + try { + static $_cache_info = []; $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(isset($this->error_reporting) - ? $this->error_reporting : error_reporting() & ~E_NOTICE); + ? $this->error_reporting : error_reporting() & ~E_NOTICE); if (!$this->debugging && $this->debugging_ctrl == 'URL') { - $_query_string = $this->request_use_auto_globals ? $_SERVER['QUERY_STRING'] : $GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING']; - if (@strstr($_query_string, $this->_smarty_debug_id)) { - if (@strstr($_query_string, $this->_smarty_debug_id . '=on')) { - // enable debugging for this browser session - @setcookie('SMARTY_DEBUG', true); - $this->debugging = true; - } elseif (@strstr($_query_string, $this->_smarty_debug_id . '=off')) { - // disable debugging for this browser session - @setcookie('SMARTY_DEBUG', false); - $this->debugging = false; - } else { - // enable debugging for this page - $this->debugging = true; - } - } else { - $this->debugging = (bool)($this->request_use_auto_globals ? @$_COOKIE['SMARTY_DEBUG'] : @$GLOBALS['HTTP_COOKIE_VARS']['SMARTY_DEBUG']); + $_query_string = $this->request_use_auto_globals ? $_SERVER['QUERY_STRING'] : $GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING']; + if (@strstr($_query_string, $this->_smarty_debug_id)) { + if (@strstr($_query_string, $this->_smarty_debug_id . '=on')) { + // enable debugging for this browser session + @setcookie('SMARTY_DEBUG', TRUE); + $this->debugging = TRUE; + } + elseif (@strstr($_query_string, $this->_smarty_debug_id . '=off')) { + // disable debugging for this browser session + @setcookie('SMARTY_DEBUG', FALSE); + $this->debugging = FALSE; } + else { + // enable debugging for this page + $this->debugging = TRUE; + } + } + else { + $this->debugging = (bool) ($this->request_use_auto_globals ? @$_COOKIE['SMARTY_DEBUG'] : @$GLOBALS['HTTP_COOKIE_VARS']['SMARTY_DEBUG']); + } } if ($this->debugging) { - // capture time for debugging info - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $_debug_start_time = smarty_core_get_microtime($_params, $this); - $this->_smarty_debug_info[] = array('type' => 'template', - 'filename' => $resource_name, - 'depth' => 0); - $_included_tpls_idx = count($this->_smarty_debug_info) - 1; + // capture time for debugging info + $_params = []; + require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); + $_debug_start_time = smarty_core_get_microtime($_params, $this); + $this->_smarty_debug_info[] = [ + 'type' => 'template', + 'filename' => $resource_name, + 'depth' => 0 + ]; + $_included_tpls_idx = count($this->_smarty_debug_info) - 1; } if (!isset($compile_id)) { - $compile_id = $this->compile_id; + $compile_id = $this->compile_id; } $this->_compile_id = $compile_id; $this->_inclusion_depth = 0; if ($this->caching) { - // save old cache_info, initialize cache_info - array_push($_cache_info, $this->_cache_info); - $this->_cache_info = array(); - $_params = array( - 'tpl_file' => $resource_name, - 'cache_id' => $cache_id, - 'compile_id' => $compile_id, - 'results' => null - ); - require_once(SMARTY_CORE_DIR . 'core.read_cache_file.php'); - if (smarty_core_read_cache_file($_params, $this)) { - $_smarty_results = $_params['results']; - if (!empty($this->_cache_info['insert_tags'])) { - $_params = array('plugins' => $this->_cache_info['insert_tags']); - require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); - smarty_core_load_plugins($_params, $this); - $_params = array('results' => $_smarty_results); - require_once(SMARTY_CORE_DIR . 'core.process_cached_inserts.php'); - $_smarty_results = smarty_core_process_cached_inserts($_params, $this); - } - if (!empty($this->_cache_info['cache_serials'])) { - $_params = array('results' => $_smarty_results); - require_once(SMARTY_CORE_DIR . 'core.process_compiled_include.php'); - $_smarty_results = smarty_core_process_compiled_include($_params, $this); - } + // save old cache_info, initialize cache_info + array_push($_cache_info, $this->_cache_info); + $this->_cache_info = []; + $_params = [ + 'tpl_file' => $resource_name, + 'cache_id' => $cache_id, + 'compile_id' => $compile_id, + 'results' => NULL + ]; + require_once(SMARTY_CORE_DIR . 'core.read_cache_file.php'); + if (smarty_core_read_cache_file($_params, $this)) { + $_smarty_results = $_params['results']; + if (!empty($this->_cache_info['insert_tags'])) { + $_params = ['plugins' => $this->_cache_info['insert_tags']]; + require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); + smarty_core_load_plugins($_params, $this); + $_params = ['results' => $_smarty_results]; + require_once(SMARTY_CORE_DIR . 'core.process_cached_inserts.php'); + $_smarty_results = smarty_core_process_cached_inserts($_params, $this); + } + if (!empty($this->_cache_info['cache_serials'])) { + $_params = ['results' => $_smarty_results]; + require_once(SMARTY_CORE_DIR . 'core.process_compiled_include.php'); + $_smarty_results = smarty_core_process_compiled_include($_params, $this); + } - if ($display) { - if ($this->debugging) - { - // capture time for debugging info - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = smarty_core_get_microtime($_params, $this) - $_debug_start_time; - require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php'); - $_smarty_results .= smarty_core_display_debug_console($_params, $this); - } - if ($this->cache_modified_check) { - $_server_vars = ($this->request_use_auto_globals) ? $_SERVER : $GLOBALS['HTTP_SERVER_VARS']; - $_last_modified_date = @substr($_server_vars['HTTP_IF_MODIFIED_SINCE'], 0, strpos($_server_vars['HTTP_IF_MODIFIED_SINCE'], 'GMT') + 3); - $_gmt_mtime = gmdate('D, d M Y H:i:s', $this->_cache_info['timestamp']).' GMT'; - if (empty($this->_cache_info['insert_tags']) - && !$this->_cache_serials - && $_gmt_mtime == $_last_modified_date) { - if (php_sapi_name()=='cgi') - header('Status: 304 Not Modified'); - else - header('HTTP/1.1 304 Not Modified'); - - } else { - header('Last-Modified: '.$_gmt_mtime); - echo $_smarty_results; - } - } else { - echo $_smarty_results; - } - error_reporting($_smarty_old_error_level); - // restore initial cache_info - $this->_cache_info = array_pop($_cache_info); - return true; - } else { - error_reporting($_smarty_old_error_level); - // restore initial cache_info - $this->_cache_info = array_pop($_cache_info); - return $_smarty_results; + if ($display) { + if ($this->debugging) { + // capture time for debugging info + $_params = []; + require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); + $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = smarty_core_get_microtime($_params, $this) - $_debug_start_time; + require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php'); + $_smarty_results .= smarty_core_display_debug_console($_params, $this); + } + if ($this->cache_modified_check) { + $_server_vars = ($this->request_use_auto_globals) ? $_SERVER : $GLOBALS['HTTP_SERVER_VARS']; + $_last_modified_date = @substr($_server_vars['HTTP_IF_MODIFIED_SINCE'], 0, strpos($_server_vars['HTTP_IF_MODIFIED_SINCE'], 'GMT') + 3); + $_gmt_mtime = gmdate('D, d M Y H:i:s', $this->_cache_info['timestamp']) . ' GMT'; + if (empty($this->_cache_info['insert_tags']) + && !$this->_cache_serials + && $_gmt_mtime == $_last_modified_date) { + if (php_sapi_name() == 'cgi') { + header('Status: 304 Not Modified'); + } + else { + header('HTTP/1.1 304 Not Modified'); + } + } - } else { - $this->_cache_info['template'][$resource_name] = true; - if ($this->cache_modified_check && $display) { - header('Last-Modified: '.gmdate('D, d M Y H:i:s', time()).' GMT'); + else { + header('Last-Modified: ' . $_gmt_mtime); + echo $_smarty_results; } + } + else { + echo $_smarty_results; + } + error_reporting($_smarty_old_error_level); + // restore initial cache_info + $this->_cache_info = array_pop($_cache_info); + if (isset($old_security)) { + $this->security = $old_security; + } + return TRUE; + } + else { + error_reporting($_smarty_old_error_level); + // restore initial cache_info + $this->_cache_info = array_pop($_cache_info); + return $_smarty_results; } + } + else { + $this->_cache_info['template'][$resource_name] = TRUE; + if ($this->cache_modified_check && $display) { + header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT'); + } + } } // load filters that are marked as autoload if (count($this->autoload_filters)) { - foreach ($this->autoload_filters as $_filter_type => $_filters) { - foreach ($_filters as $_filter) { - $this->load_filter($_filter_type, $_filter); - } + foreach ($this->autoload_filters as $_filter_type => $_filters) { + foreach ($_filters as $_filter) { + $this->load_filter($_filter_type, $_filter); } + } } $_smarty_compile_path = $this->_get_compile_path($resource_name); @@ -1258,71 +1276,92 @@ class Smarty // if we just need to display the results, don't perform output // buffering - for speed $_cache_including = $this->_cache_including; - $this->_cache_including = false; + $this->_cache_including = FALSE; if ($display && !$this->caching && count($this->_plugins['outputfilter']) == 0) { - if ($this->_is_compiled($resource_name, $_smarty_compile_path) - || $this->_compile_resource($resource_name, $_smarty_compile_path)) - { - include($_smarty_compile_path); - } - } else { - ob_start(); - if ($this->_is_compiled($resource_name, $_smarty_compile_path) - || $this->_compile_resource($resource_name, $_smarty_compile_path)) - { - include($_smarty_compile_path); - } - $_smarty_results = ob_get_contents(); - ob_end_clean(); - - foreach ((array)$this->_plugins['outputfilter'] as $_output_filter) { - $_smarty_results = call_user_func_array($_output_filter[0], array($_smarty_results, &$this)); - } + if ($this->_is_compiled($resource_name, $_smarty_compile_path) + || $this->_compile_resource($resource_name, $_smarty_compile_path)) { + include($_smarty_compile_path); + } + } + else { + ob_start(); + if ($this->_is_compiled($resource_name, $_smarty_compile_path) + || $this->_compile_resource($resource_name, $_smarty_compile_path)) { + include($_smarty_compile_path); + } + $_smarty_results = ob_get_contents(); + ob_end_clean(); + + foreach ((array) $this->_plugins['outputfilter'] as $_output_filter) { + $_smarty_results = call_user_func_array($_output_filter[0], [ + $_smarty_results, + &$this + ]); + } } if ($this->caching) { - $_params = array('tpl_file' => $resource_name, - 'cache_id' => $cache_id, - 'compile_id' => $compile_id, - 'results' => $_smarty_results); - require_once(SMARTY_CORE_DIR . 'core.write_cache_file.php'); - smarty_core_write_cache_file($_params, $this); - require_once(SMARTY_CORE_DIR . 'core.process_cached_inserts.php'); - $_smarty_results = smarty_core_process_cached_inserts($_params, $this); - - if ($this->_cache_serials) { - // strip nocache-tags from output - $_smarty_results = preg_replace('!(\{/?nocache\:[0-9a-f]{32}#\d+\})!s' - ,'' - ,$_smarty_results); - } - // restore initial cache_info - $this->_cache_info = array_pop($_cache_info); + $_params = [ + 'tpl_file' => $resource_name, + 'cache_id' => $cache_id, + 'compile_id' => $compile_id, + 'results' => $_smarty_results + ]; + require_once(SMARTY_CORE_DIR . 'core.write_cache_file.php'); + smarty_core_write_cache_file($_params, $this); + require_once(SMARTY_CORE_DIR . 'core.process_cached_inserts.php'); + $_smarty_results = smarty_core_process_cached_inserts($_params, $this); + + if ($this->_cache_serials) { + // strip nocache-tags from output + $_smarty_results = preg_replace('!(\{/?nocache\:[0-9a-f]{32}#\d+\})!s' + , '' + , $_smarty_results); + } + // restore initial cache_info + $this->_cache_info = array_pop($_cache_info); } $this->_cache_including = $_cache_including; if ($display) { - if (isset($_smarty_results)) { echo $_smarty_results; } - if ($this->debugging) { - // capture time for debugging info - $_params = array(); - require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = (smarty_core_get_microtime($_params, $this) - $_debug_start_time); - require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php'); - echo smarty_core_display_debug_console($_params, $this); + if (isset($_smarty_results)) { + echo $_smarty_results; + } + if ($this->debugging) { + // capture time for debugging info + $_params = []; + require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); + $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = (smarty_core_get_microtime($_params, $this) - $_debug_start_time); + require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php'); + echo smarty_core_display_debug_console($_params, $this); + } + error_reporting($_smarty_old_error_level); + if (isset($old_security)) { + $this->security = $old_security; + } + return; + } + else { + error_reporting($_smarty_old_error_level); + if (isset($_smarty_results)) { + if (isset($old_security)) { + $this->security = $old_security; } - error_reporting($_smarty_old_error_level); - return; - } else { - error_reporting($_smarty_old_error_level); - if (isset($_smarty_results)) { return $_smarty_results; } + return $_smarty_results; + } + } + } + finally { + if (isset($old_security)) { + $this->security = $old_security; } + } } - /** - * load configuration values - * - * @param string $file + /** + * load configuration values + * + * @param string $file * @param string $section * @param string $scope */ @@ -1721,8 +1760,8 @@ class Smarty function _run_mod_handler() { $_args = func_get_args(); - list($_modifier_name, $_map_array) = array_splice($_args, 0, 2); - list($_func_name, $_tpl_file, $_tpl_line) = + [$_modifier_name, $_map_array] = array_splice($_args, 0, 2); + [$_func_name, $_tpl_file, $_tpl_line] = $this->_plugins['modifier'][$_modifier_name]; $_var = $_args[0]; diff --git a/civicrm/packages/smarty3/composer.json b/civicrm/packages/smarty3/composer.json new file mode 100644 index 0000000000..1ede79e07f --- /dev/null +++ b/civicrm/packages/smarty3/composer.json @@ -0,0 +1,5 @@ +{ + "require": { + "smarty/smarty": "^3" + } +} diff --git a/civicrm/packages/smarty3/composer.lock b/civicrm/packages/smarty3/composer.lock new file mode 100644 index 0000000000..35d1f6f73a --- /dev/null +++ b/civicrm/packages/smarty3/composer.lock @@ -0,0 +1,82 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "83550a9ebc5d42d3e7dd91ce83602f18", + "packages": [ + { + "name": "smarty/smarty", + "version": "v3.1.48", + "source": { + "type": "git", + "url": "https://github.com/smarty-php/smarty.git", + "reference": "2fc443806cdcaee4441be4d0bb09f8fa56a17f2c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/smarty-php/smarty/zipball/2fc443806cdcaee4441be4d0bb09f8fa56a17f2c", + "reference": "2fc443806cdcaee4441be4d0bb09f8fa56a17f2c", + "shasum": "" + }, + "require": { + "php": "^5.2 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^6.5 || ^5.7 || ^4.8", + "smarty/smarty-lexer": "^3.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "libs/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0" + ], + "authors": [ + { + "name": "Monte Ohrt", + "email": "monte@ohrt.com" + }, + { + "name": "Uwe Tews", + "email": "uwe.tews@googlemail.com" + }, + { + "name": "Rodney Rehm", + "email": "rodney.rehm@medialize.de" + } + ], + "description": "Smarty - the compiling PHP template engine", + "homepage": "http://www.smarty.net", + "keywords": [ + "templating" + ], + "support": { + "forum": "http://www.smarty.net/forums/", + "irc": "irc://irc.freenode.org/smarty", + "issues": "https://github.com/smarty-php/smarty/issues", + "source": "https://github.com/smarty-php/smarty/tree/v3.1.48" + }, + "time": "2023-03-28T19:45:54+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.3.0" +} diff --git a/civicrm/packages/smarty3/vendor/autoload.php b/civicrm/packages/smarty3/vendor/autoload.php new file mode 100644 index 0000000000..46e1ea73de --- /dev/null +++ b/civicrm/packages/smarty3/vendor/autoload.php @@ -0,0 +1,12 @@ +<?php + +// autoload.php @generated by Composer + +if (PHP_VERSION_ID < 50600) { + echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; + exit(1); +} + +require_once __DIR__ . '/composer/autoload_real.php'; + +return ComposerAutoloaderInit2a6bb78d85473d0f030161a9c7ee73e2::getLoader(); diff --git a/civicrm/packages/smarty3/vendor/composer/ClassLoader.php b/civicrm/packages/smarty3/vendor/composer/ClassLoader.php new file mode 100644 index 0000000000..afef3fa2ad --- /dev/null +++ b/civicrm/packages/smarty3/vendor/composer/ClassLoader.php @@ -0,0 +1,572 @@ +<?php + +/* + * This file is part of Composer. + * + * (c) Nils Adermann <naderman@naderman.de> + * Jordi Boggiano <j.boggiano@seld.be> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Autoload; + +/** + * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. + * + * $loader = new \Composer\Autoload\ClassLoader(); + * + * // register classes with namespaces + * $loader->add('Symfony\Component', __DIR__.'/component'); + * $loader->add('Symfony', __DIR__.'/framework'); + * + * // activate the autoloader + * $loader->register(); + * + * // to enable searching the include path (eg. for PEAR packages) + * $loader->setUseIncludePath(true); + * + * In this example, if you try to use a class in the Symfony\Component + * namespace or one of its children (Symfony\Component\Console for instance), + * the autoloader will first look for the class under the component/ + * directory, and it will then fallback to the framework/ directory if not + * found before giving up. + * + * This class is loosely based on the Symfony UniversalClassLoader. + * + * @author Fabien Potencier <fabien@symfony.com> + * @author Jordi Boggiano <j.boggiano@seld.be> + * @see https://www.php-fig.org/psr/psr-0/ + * @see https://www.php-fig.org/psr/psr-4/ + */ +class ClassLoader +{ + /** @var ?string */ + private $vendorDir; + + // PSR-4 + /** + * @var array[] + * @psalm-var array<string, array<string, int>> + */ + private $prefixLengthsPsr4 = array(); + /** + * @var array[] + * @psalm-var array<string, array<int, string>> + */ + private $prefixDirsPsr4 = array(); + /** + * @var array[] + * @psalm-var array<string, string> + */ + private $fallbackDirsPsr4 = array(); + + // PSR-0 + /** + * @var array[] + * @psalm-var array<string, array<string, string[]>> + */ + private $prefixesPsr0 = array(); + /** + * @var array[] + * @psalm-var array<string, string> + */ + private $fallbackDirsPsr0 = array(); + + /** @var bool */ + private $useIncludePath = false; + + /** + * @var string[] + * @psalm-var array<string, string> + */ + private $classMap = array(); + + /** @var bool */ + private $classMapAuthoritative = false; + + /** + * @var bool[] + * @psalm-var array<string, bool> + */ + private $missingClasses = array(); + + /** @var ?string */ + private $apcuPrefix; + + /** + * @var self[] + */ + private static $registeredLoaders = array(); + + /** + * @param ?string $vendorDir + */ + public function __construct($vendorDir = null) + { + $this->vendorDir = $vendorDir; + } + + /** + * @return string[] + */ + public function getPrefixes() + { + if (!empty($this->prefixesPsr0)) { + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); + } + + return array(); + } + + /** + * @return array[] + * @psalm-return array<string, array<int, string>> + */ + public function getPrefixesPsr4() + { + return $this->prefixDirsPsr4; + } + + /** + * @return array[] + * @psalm-return array<string, string> + */ + public function getFallbackDirs() + { + return $this->fallbackDirsPsr0; + } + + /** + * @return array[] + * @psalm-return array<string, string> + */ + public function getFallbackDirsPsr4() + { + return $this->fallbackDirsPsr4; + } + + /** + * @return string[] Array of classname => path + * @psalm-return array<string, string> + */ + public function getClassMap() + { + return $this->classMap; + } + + /** + * @param string[] $classMap Class to filename map + * @psalm-param array<string, string> $classMap + * + * @return void + */ + public function addClassMap(array $classMap) + { + if ($this->classMap) { + $this->classMap = array_merge($this->classMap, $classMap); + } else { + $this->classMap = $classMap; + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, either + * appending or prepending to the ones previously set for this prefix. + * + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + * + * @return void + */ + public function add($prefix, $paths, $prepend = false) + { + if (!$prefix) { + if ($prepend) { + $this->fallbackDirsPsr0 = array_merge( + (array) $paths, + $this->fallbackDirsPsr0 + ); + } else { + $this->fallbackDirsPsr0 = array_merge( + $this->fallbackDirsPsr0, + (array) $paths + ); + } + + return; + } + + $first = $prefix[0]; + if (!isset($this->prefixesPsr0[$first][$prefix])) { + $this->prefixesPsr0[$first][$prefix] = (array) $paths; + + return; + } + if ($prepend) { + $this->prefixesPsr0[$first][$prefix] = array_merge( + (array) $paths, + $this->prefixesPsr0[$first][$prefix] + ); + } else { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $this->prefixesPsr0[$first][$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, either + * appending or prepending to the ones previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function addPsr4($prefix, $paths, $prepend = false) + { + if (!$prefix) { + // Register directories for the root namespace. + if ($prepend) { + $this->fallbackDirsPsr4 = array_merge( + (array) $paths, + $this->fallbackDirsPsr4 + ); + } else { + $this->fallbackDirsPsr4 = array_merge( + $this->fallbackDirsPsr4, + (array) $paths + ); + } + } elseif (!isset($this->prefixDirsPsr4[$prefix])) { + // Register directories for a new namespace. + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } elseif ($prepend) { + // Prepend directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + (array) $paths, + $this->prefixDirsPsr4[$prefix] + ); + } else { + // Append directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $this->prefixDirsPsr4[$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, + * replacing any others previously set for this prefix. + * + * @param string $prefix The prefix + * @param string[]|string $paths The PSR-0 base directories + * + * @return void + */ + public function set($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr0 = (array) $paths; + } else { + $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, + * replacing any others previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param string[]|string $paths The PSR-4 base directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function setPsr4($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr4 = (array) $paths; + } else { + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } + } + + /** + * Turns on searching the include path for class files. + * + * @param bool $useIncludePath + * + * @return void + */ + public function setUseIncludePath($useIncludePath) + { + $this->useIncludePath = $useIncludePath; + } + + /** + * Can be used to check if the autoloader uses the include path to check + * for classes. + * + * @return bool + */ + public function getUseIncludePath() + { + return $this->useIncludePath; + } + + /** + * Turns off searching the prefix and fallback directories for classes + * that have not been registered with the class map. + * + * @param bool $classMapAuthoritative + * + * @return void + */ + public function setClassMapAuthoritative($classMapAuthoritative) + { + $this->classMapAuthoritative = $classMapAuthoritative; + } + + /** + * Should class lookup fail if not found in the current class map? + * + * @return bool + */ + public function isClassMapAuthoritative() + { + return $this->classMapAuthoritative; + } + + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + * + * @return void + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + + /** + * Registers this instance as an autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not + * + * @return void + */ + public function register($prepend = false) + { + spl_autoload_register(array($this, 'loadClass'), true, $prepend); + + if (null === $this->vendorDir) { + return; + } + + if ($prepend) { + self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; + } else { + unset(self::$registeredLoaders[$this->vendorDir]); + self::$registeredLoaders[$this->vendorDir] = $this; + } + } + + /** + * Unregisters this instance as an autoloader. + * + * @return void + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + + if (null !== $this->vendorDir) { + unset(self::$registeredLoaders[$this->vendorDir]); + } + } + + /** + * Loads the given class or interface. + * + * @param string $class The name of the class + * @return true|null True if loaded, null otherwise + */ + public function loadClass($class) + { + if ($file = $this->findFile($class)) { + includeFile($file); + + return true; + } + + return null; + } + + /** + * Finds the path to the file where the class is defined. + * + * @param string $class The name of the class + * + * @return string|false The path if found, false otherwise + */ + public function findFile($class) + { + // class map lookup + if (isset($this->classMap[$class])) { + return $this->classMap[$class]; + } + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { + return false; + } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } + + $file = $this->findFileWithExtension($class, '.php'); + + // Search for Hack files if we are running on HHVM + if (false === $file && defined('HHVM_VERSION')) { + $file = $this->findFileWithExtension($class, '.hh'); + } + + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { + // Remember that this class does not exist. + $this->missingClasses[$class] = true; + } + + return $file; + } + + /** + * Returns the currently registered loaders indexed by their corresponding vendor directories. + * + * @return self[] + */ + public static function getRegisteredLoaders() + { + return self::$registeredLoaders; + } + + /** + * @param string $class + * @param string $ext + * @return string|false + */ + private function findFileWithExtension($class, $ext) + { + // PSR-4 lookup + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; + + $first = $class[0]; + if (isset($this->prefixLengthsPsr4[$first])) { + $subPath = $class; + while (false !== $lastPos = strrpos($subPath, '\\')) { + $subPath = substr($subPath, 0, $lastPos); + $search = $subPath . '\\'; + if (isset($this->prefixDirsPsr4[$search])) { + $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); + foreach ($this->prefixDirsPsr4[$search] as $dir) { + if (file_exists($file = $dir . $pathEnd)) { + return $file; + } + } + } + } + } + + // PSR-4 fallback dirs + foreach ($this->fallbackDirsPsr4 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + return $file; + } + } + + // PSR-0 lookup + if (false !== $pos = strrpos($class, '\\')) { + // namespaced class name + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) + . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); + } else { + // PEAR-like class name + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; + } + + if (isset($this->prefixesPsr0[$first])) { + foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { + if (0 === strpos($class, $prefix)) { + foreach ($dirs as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + } + } + } + + // PSR-0 fallback dirs + foreach ($this->fallbackDirsPsr0 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + + // PSR-0 include paths. + if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { + return $file; + } + + return false; + } +} + +/** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + * + * @param string $file + * @return void + * @private + */ +function includeFile($file) +{ + include $file; +} diff --git a/civicrm/packages/smarty3/vendor/composer/InstalledVersions.php b/civicrm/packages/smarty3/vendor/composer/InstalledVersions.php new file mode 100644 index 0000000000..c6b54af7ba --- /dev/null +++ b/civicrm/packages/smarty3/vendor/composer/InstalledVersions.php @@ -0,0 +1,352 @@ +<?php + +/* + * This file is part of Composer. + * + * (c) Nils Adermann <naderman@naderman.de> + * Jordi Boggiano <j.boggiano@seld.be> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer; + +use Composer\Autoload\ClassLoader; +use Composer\Semver\VersionParser; + +/** + * This class is copied in every Composer installed project and available to all + * + * See also https://getcomposer.org/doc/07-runtime.md#installed-versions + * + * To require its presence, you can require `composer-runtime-api ^2.0` + * + * @final + */ +class InstalledVersions +{ + /** + * @var mixed[]|null + * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null + */ + private static $installed; + + /** + * @var bool|null + */ + private static $canGetVendors; + + /** + * @var array[] + * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> + */ + private static $installedByVendor = array(); + + /** + * Returns a list of all package names which are present, either by being installed, replaced or provided + * + * @return string[] + * @psalm-return list<string> + */ + public static function getInstalledPackages() + { + $packages = array(); + foreach (self::getInstalled() as $installed) { + $packages[] = array_keys($installed['versions']); + } + + if (1 === \count($packages)) { + return $packages[0]; + } + + return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); + } + + /** + * Returns a list of all package names with a specific type e.g. 'library' + * + * @param string $type + * @return string[] + * @psalm-return list<string> + */ + public static function getInstalledPackagesByType($type) + { + $packagesByType = array(); + + foreach (self::getInstalled() as $installed) { + foreach ($installed['versions'] as $name => $package) { + if (isset($package['type']) && $package['type'] === $type) { + $packagesByType[] = $name; + } + } + } + + return $packagesByType; + } + + /** + * Checks whether the given package is installed + * + * This also returns true if the package name is provided or replaced by another package + * + * @param string $packageName + * @param bool $includeDevRequirements + * @return bool + */ + public static function isInstalled($packageName, $includeDevRequirements = true) + { + foreach (self::getInstalled() as $installed) { + if (isset($installed['versions'][$packageName])) { + return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); + } + } + + return false; + } + + /** + * Checks whether the given package satisfies a version constraint + * + * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: + * + * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') + * + * @param VersionParser $parser Install composer/semver to have access to this class and functionality + * @param string $packageName + * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package + * @return bool + */ + public static function satisfies(VersionParser $parser, $packageName, $constraint) + { + $constraint = $parser->parseConstraints($constraint); + $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); + + return $provided->matches($constraint); + } + + /** + * Returns a version constraint representing all the range(s) which are installed for a given package + * + * It is easier to use this via isInstalled() with the $constraint argument if you need to check + * whether a given version of a package is installed, and not just whether it exists + * + * @param string $packageName + * @return string Version constraint usable with composer/semver + */ + public static function getVersionRanges($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + $ranges = array(); + if (isset($installed['versions'][$packageName]['pretty_version'])) { + $ranges[] = $installed['versions'][$packageName]['pretty_version']; + } + if (array_key_exists('aliases', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); + } + if (array_key_exists('replaced', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); + } + if (array_key_exists('provided', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); + } + + return implode(' || ', $ranges); + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['version'])) { + return null; + } + + return $installed['versions'][$packageName]['version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getPrettyVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['pretty_version'])) { + return null; + } + + return $installed['versions'][$packageName]['pretty_version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference + */ + public static function getReference($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['reference'])) { + return null; + } + + return $installed['versions'][$packageName]['reference']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. + */ + public static function getInstallPath($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @return array + * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} + */ + public static function getRootPackage() + { + $installed = self::getInstalled(); + + return $installed[0]['root']; + } + + /** + * Returns the raw installed.php data for custom implementations + * + * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. + * @return array[] + * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} + */ + public static function getRawData() + { + @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + self::$installed = include __DIR__ . '/installed.php'; + } else { + self::$installed = array(); + } + } + + return self::$installed; + } + + /** + * Returns the raw data of all installed.php which are currently loaded for custom implementations + * + * @return array[] + * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> + */ + public static function getAllRawData() + { + return self::getInstalled(); + } + + /** + * Lets you reload the static array from another file + * + * This is only useful for complex integrations in which a project needs to use + * this class but then also needs to execute another project's autoloader in process, + * and wants to ensure both projects have access to their version of installed.php. + * + * A typical case would be PHPUnit, where it would need to make sure it reads all + * the data it needs from this class, then call reload() with + * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure + * the project in which it runs can then also use this class safely, without + * interference between PHPUnit's dependencies and the project's dependencies. + * + * @param array[] $data A vendor/composer/installed.php data set + * @return void + * + * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data + */ + public static function reload($data) + { + self::$installed = $data; + self::$installedByVendor = array(); + } + + /** + * @return array[] + * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> + */ + private static function getInstalled() + { + if (null === self::$canGetVendors) { + self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); + } + + $installed = array(); + + if (self::$canGetVendors) { + foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { + if (isset(self::$installedByVendor[$vendorDir])) { + $installed[] = self::$installedByVendor[$vendorDir]; + } elseif (is_file($vendorDir.'/composer/installed.php')) { + $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; + if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { + self::$installed = $installed[count($installed) - 1]; + } + } + } + } + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + self::$installed = require __DIR__ . '/installed.php'; + } else { + self::$installed = array(); + } + } + $installed[] = self::$installed; + + return $installed; + } +} diff --git a/civicrm/packages/smarty3/vendor/composer/LICENSE b/civicrm/packages/smarty3/vendor/composer/LICENSE new file mode 100644 index 0000000000..f27399a042 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/composer/LICENSE @@ -0,0 +1,21 @@ + +Copyright (c) Nils Adermann, Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/civicrm/packages/smarty3/vendor/composer/autoload_classmap.php b/civicrm/packages/smarty3/vendor/composer/autoload_classmap.php new file mode 100644 index 0000000000..913dc1aaf6 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/composer/autoload_classmap.php @@ -0,0 +1,183 @@ +<?php + +// autoload_classmap.php @generated by Composer + +$vendorDir = dirname(__DIR__); +$baseDir = dirname($vendorDir); + +return array( + 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', + 'Smarty' => $vendorDir . '/smarty/smarty/libs/Smarty.class.php', + 'SmartyBC' => $vendorDir . '/smarty/smarty/libs/SmartyBC.class.php', + 'SmartyCompilerException' => $vendorDir . '/smarty/smarty/libs/sysplugins/smartycompilerexception.php', + 'SmartyException' => $vendorDir . '/smarty/smarty/libs/sysplugins/smartyexception.php', + 'Smarty_Autoloader' => $vendorDir . '/smarty/smarty/libs/Autoloader.php', + 'Smarty_CacheResource' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_cacheresource.php', + 'Smarty_CacheResource_Custom' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_cacheresource_custom.php', + 'Smarty_CacheResource_KeyValueStore' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php', + 'Smarty_Data' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_data.php', + 'Smarty_Internal_Block' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_block.php', + 'Smarty_Internal_CacheResource_File' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php', + 'Smarty_Internal_CompileBase' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compilebase.php', + 'Smarty_Internal_Compile_Append' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_append.php', + 'Smarty_Internal_Compile_Assign' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_assign.php', + 'Smarty_Internal_Compile_Block' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php', + 'Smarty_Internal_Compile_Block_Child' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_child.php', + 'Smarty_Internal_Compile_Block_Parent' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_parent.php', + 'Smarty_Internal_Compile_Blockclose' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php', + 'Smarty_Internal_Compile_Break' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_break.php', + 'Smarty_Internal_Compile_Call' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_call.php', + 'Smarty_Internal_Compile_Capture' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php', + 'Smarty_Internal_Compile_CaptureClose' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php', + 'Smarty_Internal_Compile_Child' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_child.php', + 'Smarty_Internal_Compile_Config_Load' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_config_load.php', + 'Smarty_Internal_Compile_Continue' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php', + 'Smarty_Internal_Compile_Debug' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_debug.php', + 'Smarty_Internal_Compile_Else' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php', + 'Smarty_Internal_Compile_Elseif' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php', + 'Smarty_Internal_Compile_Eval' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_eval.php', + 'Smarty_Internal_Compile_Extends' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_extends.php', + 'Smarty_Internal_Compile_For' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php', + 'Smarty_Internal_Compile_Forclose' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php', + 'Smarty_Internal_Compile_Foreach' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php', + 'Smarty_Internal_Compile_Foreachclose' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php', + 'Smarty_Internal_Compile_Foreachelse' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php', + 'Smarty_Internal_Compile_Forelse' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php', + 'Smarty_Internal_Compile_Function' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_function.php', + 'Smarty_Internal_Compile_Functionclose' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_function.php', + 'Smarty_Internal_Compile_If' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php', + 'Smarty_Internal_Compile_Ifclose' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php', + 'Smarty_Internal_Compile_Include' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_include.php', + 'Smarty_Internal_Compile_Include_Php' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_include_php.php', + 'Smarty_Internal_Compile_Insert' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_insert.php', + 'Smarty_Internal_Compile_Ldelim' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php', + 'Smarty_Internal_Compile_Make_Nocache' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_make_nocache.php', + 'Smarty_Internal_Compile_Nocache' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php', + 'Smarty_Internal_Compile_Nocacheclose' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php', + 'Smarty_Internal_Compile_Parent' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_parent.php', + 'Smarty_Internal_Compile_Private_Block_Plugin' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_block_plugin.php', + 'Smarty_Internal_Compile_Private_ForeachSection' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_foreachsection.php', + 'Smarty_Internal_Compile_Private_Function_Plugin' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_function_plugin.php', + 'Smarty_Internal_Compile_Private_Modifier' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php', + 'Smarty_Internal_Compile_Private_Object_Block_Function' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php', + 'Smarty_Internal_Compile_Private_Object_Function' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php', + 'Smarty_Internal_Compile_Private_Php' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_php.php', + 'Smarty_Internal_Compile_Private_Print_Expression' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_print_expression.php', + 'Smarty_Internal_Compile_Private_Registered_Block' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_block.php', + 'Smarty_Internal_Compile_Private_Registered_Function' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_function.php', + 'Smarty_Internal_Compile_Private_Special_Variable' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_special_variable.php', + 'Smarty_Internal_Compile_Rdelim' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_rdelim.php', + 'Smarty_Internal_Compile_Section' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_section.php', + 'Smarty_Internal_Compile_Sectionclose' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_section.php', + 'Smarty_Internal_Compile_Sectionelse' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_section.php', + 'Smarty_Internal_Compile_Setfilter' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_setfilter.php', + 'Smarty_Internal_Compile_Setfilterclose' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_setfilter.php', + 'Smarty_Internal_Compile_Shared_Inheritance' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_shared_inheritance.php', + 'Smarty_Internal_Compile_While' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_while.php', + 'Smarty_Internal_Compile_Whileclose' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_while.php', + 'Smarty_Internal_Config_File_Compiler' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_config_file_compiler.php', + 'Smarty_Internal_Configfilelexer' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_configfilelexer.php', + 'Smarty_Internal_Configfileparser' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_configfileparser.php', + 'Smarty_Internal_Data' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_data.php', + 'Smarty_Internal_Debug' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_debug.php', + 'Smarty_Internal_ErrorHandler' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_errorhandler.php', + 'Smarty_Internal_Extension_Handler' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php', + 'Smarty_Internal_Method_AddAutoloadFilters' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_addautoloadfilters.php', + 'Smarty_Internal_Method_AddDefaultModifiers' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_adddefaultmodifiers.php', + 'Smarty_Internal_Method_Append' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_append.php', + 'Smarty_Internal_Method_AppendByRef' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_appendbyref.php', + 'Smarty_Internal_Method_AssignByRef' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_assignbyref.php', + 'Smarty_Internal_Method_AssignGlobal' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_assignglobal.php', + 'Smarty_Internal_Method_ClearAllAssign' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallassign.php', + 'Smarty_Internal_Method_ClearAllCache' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallcache.php', + 'Smarty_Internal_Method_ClearAssign' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearassign.php', + 'Smarty_Internal_Method_ClearCache' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcache.php', + 'Smarty_Internal_Method_ClearCompiledTemplate' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcompiledtemplate.php', + 'Smarty_Internal_Method_ClearConfig' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearconfig.php', + 'Smarty_Internal_Method_CompileAllConfig' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_compileallconfig.php', + 'Smarty_Internal_Method_CompileAllTemplates' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_compilealltemplates.php', + 'Smarty_Internal_Method_ConfigLoad' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_configload.php', + 'Smarty_Internal_Method_CreateData' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_createdata.php', + 'Smarty_Internal_Method_GetAutoloadFilters' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getautoloadfilters.php', + 'Smarty_Internal_Method_GetConfigVariable' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvariable.php', + 'Smarty_Internal_Method_GetConfigVars' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvars.php', + 'Smarty_Internal_Method_GetDebugTemplate' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getdebugtemplate.php', + 'Smarty_Internal_Method_GetDefaultModifiers' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getdefaultmodifiers.php', + 'Smarty_Internal_Method_GetGlobal' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getglobal.php', + 'Smarty_Internal_Method_GetRegisteredObject' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getregisteredobject.php', + 'Smarty_Internal_Method_GetStreamVariable' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getstreamvariable.php', + 'Smarty_Internal_Method_GetTags' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php', + 'Smarty_Internal_Method_GetTemplateVars' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_gettemplatevars.php', + 'Smarty_Internal_Method_Literals' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php', + 'Smarty_Internal_Method_LoadFilter' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_loadfilter.php', + 'Smarty_Internal_Method_LoadPlugin' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_loadplugin.php', + 'Smarty_Internal_Method_MustCompile' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_mustcompile.php', + 'Smarty_Internal_Method_RegisterCacheResource' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registercacheresource.php', + 'Smarty_Internal_Method_RegisterClass' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerclass.php', + 'Smarty_Internal_Method_RegisterDefaultConfigHandler' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultconfighandler.php', + 'Smarty_Internal_Method_RegisterDefaultPluginHandler' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php', + 'Smarty_Internal_Method_RegisterDefaultTemplateHandler' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php', + 'Smarty_Internal_Method_RegisterFilter' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerfilter.php', + 'Smarty_Internal_Method_RegisterObject' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerobject.php', + 'Smarty_Internal_Method_RegisterPlugin' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerplugin.php', + 'Smarty_Internal_Method_RegisterResource' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerresource.php', + 'Smarty_Internal_Method_SetAutoloadFilters' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_setautoloadfilters.php', + 'Smarty_Internal_Method_SetDebugTemplate' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_setdebugtemplate.php', + 'Smarty_Internal_Method_SetDefaultModifiers' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_setdefaultmodifiers.php', + 'Smarty_Internal_Method_UnloadFilter' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unloadfilter.php', + 'Smarty_Internal_Method_UnregisterCacheResource' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unregistercacheresource.php', + 'Smarty_Internal_Method_UnregisterFilter' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterfilter.php', + 'Smarty_Internal_Method_UnregisterObject' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterobject.php', + 'Smarty_Internal_Method_UnregisterPlugin' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterplugin.php', + 'Smarty_Internal_Method_UnregisterResource' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterresource.php', + 'Smarty_Internal_Nocache_Insert' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_nocache_insert.php', + 'Smarty_Internal_ParseTree' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree.php', + 'Smarty_Internal_ParseTree_Code' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_code.php', + 'Smarty_Internal_ParseTree_Dq' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dq.php', + 'Smarty_Internal_ParseTree_DqContent' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dqcontent.php', + 'Smarty_Internal_ParseTree_Tag' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_tag.php', + 'Smarty_Internal_ParseTree_Template' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_template.php', + 'Smarty_Internal_ParseTree_Text' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_text.php', + 'Smarty_Internal_Resource_Eval' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_eval.php', + 'Smarty_Internal_Resource_Extends' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_extends.php', + 'Smarty_Internal_Resource_File' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_file.php', + 'Smarty_Internal_Resource_Php' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_php.php', + 'Smarty_Internal_Resource_Registered' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_registered.php', + 'Smarty_Internal_Resource_Stream' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_stream.php', + 'Smarty_Internal_Resource_String' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_string.php', + 'Smarty_Internal_Runtime_CacheModify' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cachemodify.php', + 'Smarty_Internal_Runtime_CacheResourceFile' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php', + 'Smarty_Internal_Runtime_Capture' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php', + 'Smarty_Internal_Runtime_CodeFrame' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php', + 'Smarty_Internal_Runtime_FilterHandler' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php', + 'Smarty_Internal_Runtime_Foreach' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_foreach.php', + 'Smarty_Internal_Runtime_GetIncludePath' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_getincludepath.php', + 'Smarty_Internal_Runtime_Inheritance' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php', + 'Smarty_Internal_Runtime_Make_Nocache' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_make_nocache.php', + 'Smarty_Internal_Runtime_TplFunction' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_tplfunction.php', + 'Smarty_Internal_Runtime_UpdateCache' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php', + 'Smarty_Internal_Runtime_UpdateScope' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatescope.php', + 'Smarty_Internal_Runtime_WriteFile' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php', + 'Smarty_Internal_SmartyTemplateCompiler' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php', + 'Smarty_Internal_Template' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_template.php', + 'Smarty_Internal_TemplateBase' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php', + 'Smarty_Internal_TemplateCompilerBase' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php', + 'Smarty_Internal_Templatelexer' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_templatelexer.php', + 'Smarty_Internal_Templateparser' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php', + 'Smarty_Internal_TestInstall' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_testinstall.php', + 'Smarty_Internal_Undefined' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php', + 'Smarty_Resource' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_resource.php', + 'Smarty_Resource_Custom' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_resource_custom.php', + 'Smarty_Resource_Recompiled' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php', + 'Smarty_Resource_Uncompiled' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_resource_uncompiled.php', + 'Smarty_Security' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_security.php', + 'Smarty_Template_Cached' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_template_cached.php', + 'Smarty_Template_Compiled' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_template_compiled.php', + 'Smarty_Template_Config' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_template_config.php', + 'Smarty_Template_Resource_Base' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php', + 'Smarty_Template_Source' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_template_source.php', + 'Smarty_Undefined_Variable' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_undefined_variable.php', + 'Smarty_Variable' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_variable.php', + 'TPC_yyStackEntry' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_configfileparser.php', + 'TP_yyStackEntry' => $vendorDir . '/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php', +); diff --git a/civicrm/packages/smarty3/vendor/composer/autoload_namespaces.php b/civicrm/packages/smarty3/vendor/composer/autoload_namespaces.php new file mode 100644 index 0000000000..15a2ff3ad6 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ +<?php + +// autoload_namespaces.php @generated by Composer + +$vendorDir = dirname(__DIR__); +$baseDir = dirname($vendorDir); + +return array( +); diff --git a/civicrm/packages/smarty3/vendor/composer/autoload_psr4.php b/civicrm/packages/smarty3/vendor/composer/autoload_psr4.php new file mode 100644 index 0000000000..3890ddc240 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/composer/autoload_psr4.php @@ -0,0 +1,9 @@ +<?php + +// autoload_psr4.php @generated by Composer + +$vendorDir = dirname(__DIR__); +$baseDir = dirname($vendorDir); + +return array( +); diff --git a/civicrm/packages/smarty3/vendor/composer/autoload_real.php b/civicrm/packages/smarty3/vendor/composer/autoload_real.php new file mode 100644 index 0000000000..a74f0f6d26 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/composer/autoload_real.php @@ -0,0 +1,38 @@ +<?php + +// autoload_real.php @generated by Composer + +class ComposerAutoloaderInit2a6bb78d85473d0f030161a9c7ee73e2 +{ + private static $loader; + + public static function loadClassLoader($class) + { + if ('Composer\Autoload\ClassLoader' === $class) { + require __DIR__ . '/ClassLoader.php'; + } + } + + /** + * @return \Composer\Autoload\ClassLoader + */ + public static function getLoader() + { + if (null !== self::$loader) { + return self::$loader; + } + + require __DIR__ . '/platform_check.php'; + + spl_autoload_register(array('ComposerAutoloaderInit2a6bb78d85473d0f030161a9c7ee73e2', 'loadClassLoader'), true, true); + self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); + spl_autoload_unregister(array('ComposerAutoloaderInit2a6bb78d85473d0f030161a9c7ee73e2', 'loadClassLoader')); + + require __DIR__ . '/autoload_static.php'; + call_user_func(\Composer\Autoload\ComposerStaticInit2a6bb78d85473d0f030161a9c7ee73e2::getInitializer($loader)); + + $loader->register(true); + + return $loader; + } +} diff --git a/civicrm/packages/smarty3/vendor/composer/autoload_static.php b/civicrm/packages/smarty3/vendor/composer/autoload_static.php new file mode 100644 index 0000000000..a02f2b6981 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/composer/autoload_static.php @@ -0,0 +1,193 @@ +<?php + +// autoload_static.php @generated by Composer + +namespace Composer\Autoload; + +class ComposerStaticInit2a6bb78d85473d0f030161a9c7ee73e2 +{ + public static $classMap = array ( + 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', + 'Smarty' => __DIR__ . '/..' . '/smarty/smarty/libs/Smarty.class.php', + 'SmartyBC' => __DIR__ . '/..' . '/smarty/smarty/libs/SmartyBC.class.php', + 'SmartyCompilerException' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smartycompilerexception.php', + 'SmartyException' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smartyexception.php', + 'Smarty_Autoloader' => __DIR__ . '/..' . '/smarty/smarty/libs/Autoloader.php', + 'Smarty_CacheResource' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_cacheresource.php', + 'Smarty_CacheResource_Custom' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_cacheresource_custom.php', + 'Smarty_CacheResource_KeyValueStore' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php', + 'Smarty_Data' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_data.php', + 'Smarty_Internal_Block' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_block.php', + 'Smarty_Internal_CacheResource_File' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php', + 'Smarty_Internal_CompileBase' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compilebase.php', + 'Smarty_Internal_Compile_Append' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_append.php', + 'Smarty_Internal_Compile_Assign' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_assign.php', + 'Smarty_Internal_Compile_Block' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php', + 'Smarty_Internal_Compile_Block_Child' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_child.php', + 'Smarty_Internal_Compile_Block_Parent' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_parent.php', + 'Smarty_Internal_Compile_Blockclose' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php', + 'Smarty_Internal_Compile_Break' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_break.php', + 'Smarty_Internal_Compile_Call' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_call.php', + 'Smarty_Internal_Compile_Capture' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php', + 'Smarty_Internal_Compile_CaptureClose' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php', + 'Smarty_Internal_Compile_Child' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_child.php', + 'Smarty_Internal_Compile_Config_Load' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_config_load.php', + 'Smarty_Internal_Compile_Continue' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php', + 'Smarty_Internal_Compile_Debug' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_debug.php', + 'Smarty_Internal_Compile_Else' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php', + 'Smarty_Internal_Compile_Elseif' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php', + 'Smarty_Internal_Compile_Eval' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_eval.php', + 'Smarty_Internal_Compile_Extends' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_extends.php', + 'Smarty_Internal_Compile_For' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php', + 'Smarty_Internal_Compile_Forclose' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php', + 'Smarty_Internal_Compile_Foreach' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php', + 'Smarty_Internal_Compile_Foreachclose' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php', + 'Smarty_Internal_Compile_Foreachelse' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php', + 'Smarty_Internal_Compile_Forelse' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php', + 'Smarty_Internal_Compile_Function' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_function.php', + 'Smarty_Internal_Compile_Functionclose' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_function.php', + 'Smarty_Internal_Compile_If' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php', + 'Smarty_Internal_Compile_Ifclose' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php', + 'Smarty_Internal_Compile_Include' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_include.php', + 'Smarty_Internal_Compile_Include_Php' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_include_php.php', + 'Smarty_Internal_Compile_Insert' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_insert.php', + 'Smarty_Internal_Compile_Ldelim' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php', + 'Smarty_Internal_Compile_Make_Nocache' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_make_nocache.php', + 'Smarty_Internal_Compile_Nocache' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php', + 'Smarty_Internal_Compile_Nocacheclose' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php', + 'Smarty_Internal_Compile_Parent' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_parent.php', + 'Smarty_Internal_Compile_Private_Block_Plugin' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_block_plugin.php', + 'Smarty_Internal_Compile_Private_ForeachSection' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_foreachsection.php', + 'Smarty_Internal_Compile_Private_Function_Plugin' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_function_plugin.php', + 'Smarty_Internal_Compile_Private_Modifier' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php', + 'Smarty_Internal_Compile_Private_Object_Block_Function' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php', + 'Smarty_Internal_Compile_Private_Object_Function' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php', + 'Smarty_Internal_Compile_Private_Php' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_php.php', + 'Smarty_Internal_Compile_Private_Print_Expression' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_print_expression.php', + 'Smarty_Internal_Compile_Private_Registered_Block' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_block.php', + 'Smarty_Internal_Compile_Private_Registered_Function' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_function.php', + 'Smarty_Internal_Compile_Private_Special_Variable' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_special_variable.php', + 'Smarty_Internal_Compile_Rdelim' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_rdelim.php', + 'Smarty_Internal_Compile_Section' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_section.php', + 'Smarty_Internal_Compile_Sectionclose' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_section.php', + 'Smarty_Internal_Compile_Sectionelse' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_section.php', + 'Smarty_Internal_Compile_Setfilter' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_setfilter.php', + 'Smarty_Internal_Compile_Setfilterclose' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_setfilter.php', + 'Smarty_Internal_Compile_Shared_Inheritance' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_shared_inheritance.php', + 'Smarty_Internal_Compile_While' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_while.php', + 'Smarty_Internal_Compile_Whileclose' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_compile_while.php', + 'Smarty_Internal_Config_File_Compiler' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_config_file_compiler.php', + 'Smarty_Internal_Configfilelexer' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_configfilelexer.php', + 'Smarty_Internal_Configfileparser' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_configfileparser.php', + 'Smarty_Internal_Data' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_data.php', + 'Smarty_Internal_Debug' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_debug.php', + 'Smarty_Internal_ErrorHandler' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_errorhandler.php', + 'Smarty_Internal_Extension_Handler' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php', + 'Smarty_Internal_Method_AddAutoloadFilters' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_addautoloadfilters.php', + 'Smarty_Internal_Method_AddDefaultModifiers' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_adddefaultmodifiers.php', + 'Smarty_Internal_Method_Append' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_append.php', + 'Smarty_Internal_Method_AppendByRef' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_appendbyref.php', + 'Smarty_Internal_Method_AssignByRef' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_assignbyref.php', + 'Smarty_Internal_Method_AssignGlobal' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_assignglobal.php', + 'Smarty_Internal_Method_ClearAllAssign' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallassign.php', + 'Smarty_Internal_Method_ClearAllCache' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallcache.php', + 'Smarty_Internal_Method_ClearAssign' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearassign.php', + 'Smarty_Internal_Method_ClearCache' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcache.php', + 'Smarty_Internal_Method_ClearCompiledTemplate' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcompiledtemplate.php', + 'Smarty_Internal_Method_ClearConfig' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_clearconfig.php', + 'Smarty_Internal_Method_CompileAllConfig' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_compileallconfig.php', + 'Smarty_Internal_Method_CompileAllTemplates' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_compilealltemplates.php', + 'Smarty_Internal_Method_ConfigLoad' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_configload.php', + 'Smarty_Internal_Method_CreateData' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_createdata.php', + 'Smarty_Internal_Method_GetAutoloadFilters' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getautoloadfilters.php', + 'Smarty_Internal_Method_GetConfigVariable' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvariable.php', + 'Smarty_Internal_Method_GetConfigVars' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvars.php', + 'Smarty_Internal_Method_GetDebugTemplate' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getdebugtemplate.php', + 'Smarty_Internal_Method_GetDefaultModifiers' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getdefaultmodifiers.php', + 'Smarty_Internal_Method_GetGlobal' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getglobal.php', + 'Smarty_Internal_Method_GetRegisteredObject' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getregisteredobject.php', + 'Smarty_Internal_Method_GetStreamVariable' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_getstreamvariable.php', + 'Smarty_Internal_Method_GetTags' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php', + 'Smarty_Internal_Method_GetTemplateVars' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_gettemplatevars.php', + 'Smarty_Internal_Method_Literals' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php', + 'Smarty_Internal_Method_LoadFilter' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_loadfilter.php', + 'Smarty_Internal_Method_LoadPlugin' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_loadplugin.php', + 'Smarty_Internal_Method_MustCompile' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_mustcompile.php', + 'Smarty_Internal_Method_RegisterCacheResource' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registercacheresource.php', + 'Smarty_Internal_Method_RegisterClass' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerclass.php', + 'Smarty_Internal_Method_RegisterDefaultConfigHandler' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultconfighandler.php', + 'Smarty_Internal_Method_RegisterDefaultPluginHandler' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php', + 'Smarty_Internal_Method_RegisterDefaultTemplateHandler' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php', + 'Smarty_Internal_Method_RegisterFilter' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerfilter.php', + 'Smarty_Internal_Method_RegisterObject' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerobject.php', + 'Smarty_Internal_Method_RegisterPlugin' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerplugin.php', + 'Smarty_Internal_Method_RegisterResource' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_registerresource.php', + 'Smarty_Internal_Method_SetAutoloadFilters' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_setautoloadfilters.php', + 'Smarty_Internal_Method_SetDebugTemplate' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_setdebugtemplate.php', + 'Smarty_Internal_Method_SetDefaultModifiers' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_setdefaultmodifiers.php', + 'Smarty_Internal_Method_UnloadFilter' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unloadfilter.php', + 'Smarty_Internal_Method_UnregisterCacheResource' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unregistercacheresource.php', + 'Smarty_Internal_Method_UnregisterFilter' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterfilter.php', + 'Smarty_Internal_Method_UnregisterObject' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterobject.php', + 'Smarty_Internal_Method_UnregisterPlugin' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterplugin.php', + 'Smarty_Internal_Method_UnregisterResource' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterresource.php', + 'Smarty_Internal_Nocache_Insert' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_nocache_insert.php', + 'Smarty_Internal_ParseTree' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree.php', + 'Smarty_Internal_ParseTree_Code' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_code.php', + 'Smarty_Internal_ParseTree_Dq' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dq.php', + 'Smarty_Internal_ParseTree_DqContent' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dqcontent.php', + 'Smarty_Internal_ParseTree_Tag' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_tag.php', + 'Smarty_Internal_ParseTree_Template' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_template.php', + 'Smarty_Internal_ParseTree_Text' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_text.php', + 'Smarty_Internal_Resource_Eval' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_eval.php', + 'Smarty_Internal_Resource_Extends' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_extends.php', + 'Smarty_Internal_Resource_File' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_file.php', + 'Smarty_Internal_Resource_Php' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_php.php', + 'Smarty_Internal_Resource_Registered' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_registered.php', + 'Smarty_Internal_Resource_Stream' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_stream.php', + 'Smarty_Internal_Resource_String' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_resource_string.php', + 'Smarty_Internal_Runtime_CacheModify' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cachemodify.php', + 'Smarty_Internal_Runtime_CacheResourceFile' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php', + 'Smarty_Internal_Runtime_Capture' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php', + 'Smarty_Internal_Runtime_CodeFrame' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php', + 'Smarty_Internal_Runtime_FilterHandler' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php', + 'Smarty_Internal_Runtime_Foreach' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_foreach.php', + 'Smarty_Internal_Runtime_GetIncludePath' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_getincludepath.php', + 'Smarty_Internal_Runtime_Inheritance' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php', + 'Smarty_Internal_Runtime_Make_Nocache' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_make_nocache.php', + 'Smarty_Internal_Runtime_TplFunction' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_tplfunction.php', + 'Smarty_Internal_Runtime_UpdateCache' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php', + 'Smarty_Internal_Runtime_UpdateScope' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatescope.php', + 'Smarty_Internal_Runtime_WriteFile' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php', + 'Smarty_Internal_SmartyTemplateCompiler' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php', + 'Smarty_Internal_Template' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_template.php', + 'Smarty_Internal_TemplateBase' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php', + 'Smarty_Internal_TemplateCompilerBase' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php', + 'Smarty_Internal_Templatelexer' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_templatelexer.php', + 'Smarty_Internal_Templateparser' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php', + 'Smarty_Internal_TestInstall' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_testinstall.php', + 'Smarty_Internal_Undefined' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php', + 'Smarty_Resource' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_resource.php', + 'Smarty_Resource_Custom' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_resource_custom.php', + 'Smarty_Resource_Recompiled' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php', + 'Smarty_Resource_Uncompiled' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_resource_uncompiled.php', + 'Smarty_Security' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_security.php', + 'Smarty_Template_Cached' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_template_cached.php', + 'Smarty_Template_Compiled' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_template_compiled.php', + 'Smarty_Template_Config' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_template_config.php', + 'Smarty_Template_Resource_Base' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php', + 'Smarty_Template_Source' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_template_source.php', + 'Smarty_Undefined_Variable' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_undefined_variable.php', + 'Smarty_Variable' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_variable.php', + 'TPC_yyStackEntry' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_configfileparser.php', + 'TP_yyStackEntry' => __DIR__ . '/..' . '/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php', + ); + + public static function getInitializer(ClassLoader $loader) + { + return \Closure::bind(function () use ($loader) { + $loader->classMap = ComposerStaticInit2a6bb78d85473d0f030161a9c7ee73e2::$classMap; + + }, null, ClassLoader::class); + } +} diff --git a/civicrm/packages/smarty3/vendor/composer/installed.json b/civicrm/packages/smarty3/vendor/composer/installed.json new file mode 100644 index 0000000000..28e063454c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/composer/installed.json @@ -0,0 +1,72 @@ +{ + "packages": [ + { + "name": "smarty/smarty", + "version": "v3.1.48", + "version_normalized": "3.1.48.0", + "source": { + "type": "git", + "url": "https://github.com/smarty-php/smarty.git", + "reference": "2fc443806cdcaee4441be4d0bb09f8fa56a17f2c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/smarty-php/smarty/zipball/2fc443806cdcaee4441be4d0bb09f8fa56a17f2c", + "reference": "2fc443806cdcaee4441be4d0bb09f8fa56a17f2c", + "shasum": "" + }, + "require": { + "php": "^5.2 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^6.5 || ^5.7 || ^4.8", + "smarty/smarty-lexer": "^3.1" + }, + "time": "2023-03-28T19:45:54+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "classmap": [ + "libs/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0" + ], + "authors": [ + { + "name": "Monte Ohrt", + "email": "monte@ohrt.com" + }, + { + "name": "Uwe Tews", + "email": "uwe.tews@googlemail.com" + }, + { + "name": "Rodney Rehm", + "email": "rodney.rehm@medialize.de" + } + ], + "description": "Smarty - the compiling PHP template engine", + "homepage": "http://www.smarty.net", + "keywords": [ + "templating" + ], + "support": { + "forum": "http://www.smarty.net/forums/", + "irc": "irc://irc.freenode.org/smarty", + "issues": "https://github.com/smarty-php/smarty/issues", + "source": "https://github.com/smarty-php/smarty/tree/v3.1.48" + }, + "install-path": "../smarty/smarty" + } + ], + "dev": true, + "dev-package-names": [] +} diff --git a/civicrm/packages/smarty3/vendor/composer/installed.php b/civicrm/packages/smarty3/vendor/composer/installed.php new file mode 100644 index 0000000000..ca12393808 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/composer/installed.php @@ -0,0 +1,32 @@ +<?php return array( + 'root' => array( + 'name' => '__root__', + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', + 'reference' => '368f389d2c2328203c4ef229541c3b801432c1de', + 'type' => 'library', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev' => true, + ), + 'versions' => array( + '__root__' => array( + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', + 'reference' => '368f389d2c2328203c4ef229541c3b801432c1de', + 'type' => 'library', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'smarty/smarty' => array( + 'pretty_version' => 'v3.1.48', + 'version' => '3.1.48.0', + 'reference' => '2fc443806cdcaee4441be4d0bb09f8fa56a17f2c', + 'type' => 'library', + 'install_path' => __DIR__ . '/../smarty/smarty', + 'aliases' => array(), + 'dev_requirement' => false, + ), + ), +); diff --git a/civicrm/packages/smarty3/vendor/composer/platform_check.php b/civicrm/packages/smarty3/vendor/composer/platform_check.php new file mode 100644 index 0000000000..201e2fcde7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/composer/platform_check.php @@ -0,0 +1,26 @@ +<?php + +// platform_check.php @generated by Composer + +$issues = array(); + +if (!(PHP_VERSION_ID >= 50200)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 5.2.0". You are running ' . PHP_VERSION . '.'; +} + +if ($issues) { + if (!headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + if (!ini_get('display_errors')) { + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { + fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); + } elseif (!headers_sent()) { + echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; + } + } + trigger_error( + 'Composer detected issues in your platform: ' . implode(' ', $issues), + E_USER_ERROR + ); +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/CHANGELOG.md b/civicrm/packages/smarty3/vendor/smarty/smarty/CHANGELOG.md new file mode 100644 index 0000000000..d1eb51e036 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/CHANGELOG.md @@ -0,0 +1,3526 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [3.1.48] - 2023-03-28 + +### Security +- Fixed Cross site scripting vulnerability in Javascript escaping. This addresses CVE-2023-28447. + +### Fixed +- Output buffer is now cleaned for internal PHP errors as well, not just for Exceptions [#514](https://github.com/smarty-php/smarty/issues/514) + +## [3.1.47] - 2022-09-14 + +### Security +- Applied appropriate javascript and html escaping in mailto plugin to counter injection attacks [#454](https://github.com/smarty-php/smarty/issues/454) + +### Fixed +- Fixed use of `rand()` without a parameter in math function [#794](https://github.com/smarty-php/smarty/issues/794) +- Fixed unselected year/month/day not working in html_select_date [#395](https://github.com/smarty-php/smarty/issues/395) +- Updated requirement contraint for 'php' in composer.json to correctly reflect that Smarty3 does not support PHP8. Please upgrade to Smarty4 to use PHP8. + +## [3.1.46] - 2022-08-01 + +### Fixed +- Fixed problems with smarty_mb_str_replace [#549](https://github.com/smarty-php/smarty/issues/549) +- Fixed second parameter of unescape modifier not working [#777](https://github.com/smarty-php/smarty/issues/777) + +## [3.1.45] - 2022-05-17 + +### Security +- Prevent PHP injection through malicious block name or include file name. This addresses CVE-2022-29221 + +### Fixed +- Math equation `max(x, y)` didn't work anymore [#721](https://github.com/smarty-php/smarty/issues/721) + +## [3.1.44] - 2022-01-18 + +### Fixed +- Fixed illegal characters bug in math function security check [#702](https://github.com/smarty-php/smarty/issues/702) + +## [3.1.43] - 2022-01-10 + +### Security +- Prevent evasion of the `static_classes` security policy. This addresses CVE-2021-21408 + +## [3.1.42] - 2022-01-10 + +### Security +- Prevent arbitrary PHP code execution through maliciously crafted expression for the math function. This addresses CVE-2021-29454 + +## [3.1.41] - 2022-01-09 + +### Security +- Rewrote the mailto function to not use `eval` when encoding with javascript + +## [3.1.40] - 2021-10-13 + +### Changed +- modifier escape now triggers a E_USER_NOTICE when an unsupported escape type is used https://github.com/smarty-php/smarty/pull/649 + +### Security +- More advanced javascript escaping to handle https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements thanks to m-haritonov + +## [3.1.39] - 2021-02-17 + +### Security +- Prevent access to `$smarty.template_object` in sandbox mode. This addresses CVE-2021-26119. +- Fixed code injection vulnerability by using illegal function names in `{function name='blah'}{/function}`. This addresses CVE-2021-26120. + +## [3.1.38] - 2021-01-08 + +### Fixed +- Smarty::SMARTY_VERSION wasn't updated https://github.com/smarty-php/smarty/issues/628 + +## [3.1.37] - 2021-01-07 + +### Changed +- Changed error handlers and handling of undefined constants for php8-compatibility (set $errcontext argument optional) https://github.com/smarty-php/smarty/issues/605 +- Changed expected error levels in unit tests for php8-compatibility +- Travis unit tests now run for all php versions >= 5.3, including php8 +- Travis runs on Xenial where possible + +### Fixed +- PHP5.3 compatibility fixes +- Brought lexer source functionally up-to-date with compiled version + +## [3.1.36] - 2020-04-14 + +### Fixed + - Smarty::SMARTY_VERSION wasn't updated in v3.1.35 https://github.com/smarty-php/smarty/issues/584 + +## [3.1.35] - 2020-04-14 + - remove whitespaces after comments https://github.com/smarty-php/smarty/issues/447 + - fix foreachelse on arrayiterators https://github.com/smarty-php/smarty/issues/506 + - fix files contained in git export archive for package maintainers https://github.com/smarty-php/smarty/issues/325 + - throw SmartyException when setting caching attributes for cacheable plugin https://github.com/smarty-php/smarty/issues/457 + - fix errors that occured where isset was replaced with null check such as https://github.com/smarty-php/smarty/issues/453 + - unit tests are now in the repository + +## 3.1.34 release - 05.11.2019 +13.01.2020 + - fix typo in exception message (JercSi) + - fix typehint warning with callable (bets4breakfast) + - add travis badge and compatability info to readme (matks) + - fix stdClass cast when compiling foreach (carpii) + - fix wrong set/get methods for memcached (IT-Experte) + - fix pborm assigning value to object variables in smarty_internal_compile_assign (Hunman) + - exclude error_reporting.ini from git export (glensc) + +## 3.1.34-dev-6 - +30.10.2018 + - bugfix a nested subblock in an inheritance child template was not replace by + outer level block with same name in same child template https://github.com/smarty-php/smarty/issues/500 + +29.10.2018 + - bugfix Smarty::$php_handling == PHP_PASSTHRU (default) did eat the "\n" (newline) character if it did directly followed + a PHP tag like "?>" or other https://github.com/smarty-php/smarty/issues/501 + +14.10.2018 + - bugfix autoloader exit shortcut https://github.com/smarty-php/smarty/issues/467 + +11.10.2018 + - bugfix {insert} not works when caching is enabled and included template is present + https://github.com/smarty-php/smarty/issues/496 + - bugfix in date-format modifier; NULL at date string or default_date did not produce correct output + https://github.com/smarty-php/smarty/pull/458 + +09.10.2018 + - bugfix fix of 26.8.2017 https://github.com/smarty-php/smarty/issues/327 + modifier is applied to sum expression https://github.com/smarty-php/smarty/issues/491 + - bugfix indexed arrays could not be defined "array(...)"" + +18.09.2018 + - bugfix large plain text template sections without a Smarty tag > 700kB could + could fail in version 3.1.32 and 3.1.33 because PHP preg_match() restrictions + https://github.com/smarty-php/smarty/issues/488 + +## 3.1.33 release - 12.09.2018 +## 3.1.33-dev-12 - +03.09.2018 + - bugfix {foreach} using new style property access like {$item@property} on + Smarty 2 style named foreach loop could produce errors https://github.com/smarty-php/smarty/issues/484 + +31.08.2018 + - bugfix some custom left and right delimiters like '{^' '^}' did not work + https://github.com/smarty-php/smarty/issues/450 https://github.com/smarty-php/smarty/pull/482 + + - reformating for PSR-2 coding standards https://github.com/smarty-php/smarty/pull/483 + + - bugfix on Windows absolute filepathes did fail if the drive letter was followed by a linux DIRECTORY_SEPARATOR + like C:/ at Smarty > 3.1.33-dev-5 https://github.com/smarty-php/smarty/issues/451 + + - PSR-2 code style fixes for config and template file Lexer/Parser generated with + the Smarty Lexer/Parser generator from https://github.com/smarty-php/smarty-lexer + https://github.com/smarty-php/smarty/pull/483 + +26.08.2018 + - bugfix/enhancement {capture} allow variable as capture block name in Smarty special variable + like $smarty.capture.$foo https://github.com/smarty-php/smarty/issues/478 https://github.com/smarty-php/smarty/pull/481 + +## 3.1.33-dev-6 - +19.08.2018 + - fix PSR-2 coding standards and PHPDoc blocks https://github.com/smarty-php/smarty/pull/452 + https://github.com/smarty-php/smarty/pull/475 + https://github.com/smarty-php/smarty/pull/473 + - bugfix PHP5.2 compatibility https://github.com/smarty-php/smarty/pull/472 + +## 3.1.33-dev-4 - +17.05.2018 + - bugfix strip-block produces different output in Smarty v3.1.32 https://github.com/smarty-php/smarty/issues/436 + - bugfix Smarty::compileAllTemplates ignores `$extension` parameter https://github.com/smarty-php/smarty/issues/437 + https://github.com/smarty-php/smarty/pull/438 + - improvement do not compute total property in {foreach} if not needed https://github.com/smarty-php/smarty/issues/443 + - bugfix plugins may not be loaded when setMergeCompiledIncludes is true https://github.com/smarty-php/smarty/issues/435 + +26.04.2018 + - bugfix regarding Security Vulnerability did not solve the problem under Linux. + Security issue CVE-2018-16831 + +## 3.1.32 - (24.04.2018) +24.04.2018 + - bugfix possible Security Vulnerability in Smarty_Security class. + +26.03.2018 + - bugfix plugins may not be loaded if {function} or {block} tags are executed in nocache mode + https://github.com/smarty-php/smarty/issues/371 + +26.03.2018 + - new feature {parent} = {$smarty.block.parent} {child} = {$smarty.block.child} + +23.03.2018 + - bugfix preg_replace could fail on large content resulting in a blank page https://github.com/smarty-php/smarty/issues/417 + +21.03.2018 + - bugfix {$smarty.section...} used outside {section}{/section} showed incorrect values if {section}{/section} was called inside + another loop https://github.com/smarty-php/smarty/issues/422 + - bugfix short form of {section} attributes did not work https://github.com/smarty-php/smarty/issues/428 + +17.03.2018 + - improvement Smarty::compileAllTemplates() exit with a non-zero status code if max errors is reached https://github.com/smarty-php/smarty/pull/402 + +16.03.2018 + - bugfix extends resource did not work with user defined left/right delimiter https://github.com/smarty-php/smarty/issues/419 + +22.11.2017 + - bugfix {break} and {continue} could fail if {foreach}{/foreach} did contain other + looping tags like {for}, {section} and {while} https://github.com/smarty-php/smarty/issues/323 + +20.11.2017 + - bugfix rework of newline spacing between tag code and template text. + now again identical with Smarty2 (forum topic 26878) + - replacement of " by ' + +05.11.2017 + - lexer/parser optimization + - code cleanup and optimizations + - bugfix {$smarty.section.name.loop} used together with {$smarty.section.name.total} could produce + wrong results (forum topic 27041) + +26.10.2017 + - bugfix Smarty version was not filled in header comment of compiled and cached files + - optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR + - deprecate functions Smarty::muteExpectedErrors() and Smarty::unmuteExpectedErrors() + as Smarty does no longer use error suppression like @filemtime(). + for backward compatibility code is moved from Smarty class to an external class and still can be + called. + - correction of PHPDoc blocks + - minor code cleanup + +21.10.2017 + - bugfix custom delimiters could fail since modification of version 3.1.32-dev-23 + https://github.com/smarty-php/smarty/issues/394 + +18.10.2017 + - bugfix fix implementation of unclosed block tag in double quoted string of 12.10.2017 + https://github.com/smarty-php/smarty/issues/396 https://github.com/smarty-php/smarty/issues/397 + https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392 + +12.10.2017 + - bugfix $smarty.block.child and $smarty.block.parent could not be used like any + $smarty special variable https://github.com/smarty-php/smarty/issues/393 + - unclosed block tag in double quoted string must throw compiler exception. + https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392 + +07.10.2017 + - bugfix modification of 9.8.2017 did fail on some recursive + tag nesting. https://github.com/smarty-php/smarty/issues/389 + +26.8.2017 + - bugfix chained modifier failed when last modifier parameter is a signed value + https://github.com/smarty-php/smarty/issues/327 + - bugfix templates filepath with multibyte characters did not work + https://github.com/smarty-php/smarty/issues/385 + - bugfix {make_nocache} did display code if the template did not contain other nocache code + https://github.com/smarty-php/smarty/issues/369 + +09.8.2017 + - improvement repeated delimiter like {{ and }} will be treated as literal + https://groups.google.com/forum/#!topic/smarty-developers/h9r82Bx4KZw + +05.8.2017 + - bugfix wordwrap modifier could fail if used in nocache code. + converted plugin file shared.mb_wordwrap.php into modifier.mb_wordwrap.php + - cleanup of _getSmartyObj() + +31.7.2017 + - Call clearstatcache() after mkdir() failure https://github.com/smarty-php/smarty/pull/379 + +30.7.2017 + - rewrite mkdir() bugfix to retry automatically see https://github.com/smarty-php/smarty/pull/377 + https://github.com/smarty-php/smarty/pull/379 + +21.7.2017 + - security possible PHP code injection on custom resources at display() or fetch() + calls if the resource does not sanitize the template name + - bugfix fix 'mkdir(): File exists' error on create directory from parallel + processes https://github.com/smarty-php/smarty/pull/377 + - bugfix solve preg_match() hhvm parameter problem https://github.com/smarty-php/smarty/pull/372 + +27.5.2017 + - bugfix change compiled code for registered function and modifiers to called as callable to allow closures + https://github.com/smarty-php/smarty/pull/368, https://github.com/smarty-php/smarty/issues/273 + - bugfix https://github.com/smarty-php/smarty/pull/368 did break the default plugin handler + - improvement replace phpversion() by PHP_VERSION constant. + https://github.com/smarty-php/smarty/pull/363 + +21.5.2017 + - performance store flag for already required shared plugin functions in static variable or + Smarty's $_cache to improve performance when plugins are often called + https://github.com/smarty-php/smarty/commit/51e0d5cd405d764a4ea257d1bac1fb1205f74528#commitcomment-22280086 + - bugfix remove special treatment of classes implementing ArrayAccess in {foreach} + https://github.com/smarty-php/smarty/issues/332 + - bugfix remove deleted files by clear_cache() and clear_compiled_template() from + ACP cache if present, add some is_file() checks to avoid possible warnings on filemtime() + caused by above functions. + https://github.com/smarty-php/smarty/issues/341 + - bugfix version 3.1.31 did fail under PHP 5.2 + https://github.com/smarty-php/smarty/issues/365 + +19.5.2017 + - change properties $accessMap and $obsoleteProperties from private to protected + https://github.com/smarty-php/smarty/issues/351 + - new feature The named capture buffers can now be accessed also as array + See NEWS_FEATURES.txt https://github.com/smarty-php/smarty/issues/366 + - improvement check if ini_get() and ini_set() not disabled + https://github.com/smarty-php/smarty/pull/362 + +24.4.2017 + - fix spelling https://github.com/smarty-php/smarty/commit/e3eda8a5f5653d8abb960eb1bc47e3eca679b1b4#commitcomment-21803095 + +17.4.2017 + - correct generated code on empty() and isset() call, observe change PHP behaviour since PHP 5.5 + https://github.com/smarty-php/smarty/issues/347 + +14.4.2017 + - merge pull requests https://github.com/smarty-php/smarty/pull/349, https://github.com/smarty-php/smarty/pull/322 and https://github.com/smarty-php/smarty/pull/337 to fix spelling and annotation + +13.4.2017 + - bugfix array_merge() parameter should be checked https://github.com/smarty-php/smarty/issues/350 + +## 3.1.31 - (14.12.2016) + 23.11.2016 + - move template object cache into static variables + + 19.11.2016 + - bugfix inheritance root child templates containing nested {block}{/block} could call sub-bock content from parent + template https://github.com/smarty-php/smarty/issues/317 + - change version checking + + 11.11.2016 + - bugfix when Smarty is using a cached template object on Smarty::fetch() or Smarty::isCached() the inheritance data + must be removed https://github.com/smarty-php/smarty/issues/312 + - smaller speed optimization + + 08.11.2016 + - add bootstrap file to load and register Smarty_Autoloader. Change composer.json to make it known to composer + + 07.11.2016 + - optimization of lexer speed https://github.com/smarty-php/smarty/issues/311 + + 27.10.2016 + - bugfix template function definitions array has not been cached between Smarty::fetch() and Smarty::display() calls + https://github.com/smarty-php/smarty/issues/301 + + 23.10.2016 + - improvement/bugfix when Smarty::fetch() is called on a template object the inheritance and tplFunctions property + should be copied to the called template object + + 21.10.2016 + - bugfix for compile locking touched timestamp of old compiled file was not restored on compilation error https://github.com/smarty-php/smarty/issues/308 + + 20.10.2016 + - bugfix nocache code was not removed in cache file when subtemplate did contain PHP short tags in text but no other + nocache code https://github.com/smarty-php/smarty/issues/300 + + 19.10.2016 + - bugfix {make_nocache $var} did fail when variable value did contain '\' https://github.com/smarty-php/smarty/issues/305 + - bugfix {make_nocache $var} remove spaces from variable value https://github.com/smarty-php/smarty/issues/304 + + 12.10.2016 + - bugfix {include} with template names including variable or constants could fail after bugfix from + 28.09.2016 https://github.com/smarty-php/smarty/issues/302 + + 08.10.2016 + - optimization move runtime extension for template functions into Smarty objects + + 29.09.2016 + - improvement new Smarty::$extends_recursion property to disable execution of {extends} in templates called by extends resource + https://github.com/smarty-php/smarty/issues/296 + + 28.09.2016 + - bugfix the generated code for calling a subtemplate must pass the template resource name in single quotes https://github.com/smarty-php/smarty/issues/299 + - bugfix nocache hash was not removed for <?xml ?> tags in subtemplates https://github.com/smarty-php/smarty/issues/300 + + 27.09.2016 + - bugfix when Smarty does use an internally cached template object on Smarty::fetch() calls + the template and config variables must be cleared https://github.com/smarty-php/smarty/issues/297 + + 20.09.2016 + - bugfix some $smarty special template variables are no longer accessed as real variable. + using them on calls like {if isset($smarty.foo)} or {if empty($smarty.foo)} will fail + http://www.smarty.net/forums/viewtopic.php?t=26222 + - temporary fix for https://github.com/smarty-php/smarty/issues/293 main reason still under investigation + - improvement new tags {block_parent} {block_child} in template inheritance + + 19.09.2016 + - optimization clear compiled and cached folder completely on detected version change + - cleanup convert cache resource file method clear into runtime extension + + 15.09.2016 + - bugfix assigning a variable in if condition by function like {if $value = array_shift($array)} the function got called twice https://github.com/smarty-php/smarty/issues/291 + - bugfix function plugins called with assign attribute like {foo assign='bar'} did not output returned content because + because assumption was made that it was assigned to a variable https://github.com/smarty-php/smarty/issues/292 + - bugfix calling $smarty->isCached() on a not existing cache file with $smarty->cache_locking = true; could cause a 10 second delay http://www.smarty.net/forums/viewtopic.php?t=26282 + - improvement make Smarty::clearCompiledTemplate() on custom resource independent from changes of templateId computation + + 11.09.2016 + - improvement {math} misleading E_USER_WARNING messages when parameter value = null https://github.com/smarty-php/smarty/issues/288 + - improvement move often used code snippets into methods + - performance Smarty::configLoad() did load unneeded template source object + + 09.09.2016 + - bugfix/optimization {foreach} did not execute the {foreachelse} when iterating empty objects https://github.com/smarty-php/smarty/pull/287 + - bugfix {foreach} must keep the @properties when restoring a saved $item variable as the properties might be used outside {foreach} https://github.com/smarty-php/smarty/issues/267 + - improvement {foreach} observe {break n} and {continue n} nesting levels when restoring saved $item and $key variables + + 08.09.2016 + - bugfix implement wrapper for removed method getConfigVariable() https://github.com/smarty-php/smarty/issues/286 + + 07.09.2016 + - bugfix using nocache like attribute with value true like {plugin nocache=true} did not work https://github.com/smarty-php/smarty/issues/285 + - bugfix uppercase TRUE, FALSE and NULL did not work when security was enabled https://github.com/smarty-php/smarty/issues/282 + - bugfix when {foreach} was looping over an object the total property like {$item@total} did always return 1 https://github.com/smarty-php/smarty/issues/281 + - bugfix {capture}{/capture} did add in 3.1.30 unintended additional blank lines https://github.com/smarty-php/smarty/issues/268 + + 01.09.2016 + - performance require_once should be called only once for shared plugins https://github.com/smarty-php/smarty/issues/280 + + 26.08.2016 + - bugfix change of 23.08.2016 failed on linux when use_include_path = true + + 23.08.2016 + - bugfix remove constant DS as shortcut for DIRECTORY_SEPARATOR as the user may have defined it to something else https://github.com/smarty-php/smarty/issues/277 + + 20.08-2016 + - bugfix {config_load ... scope="global"} shall not throw an arror but fallback to scope="smarty" https://github.com/smarty-php/smarty/issues/274 + - bugfix {make_nocache} failed when using composer autoloader https://github.com/smarty-php/smarty/issues/275 + + 14.08.2016 + - bugfix $smarty_>debugging = true; did E_NOTICE messages when {eval} tag was used https://github.com/smarty-php/smarty/issues/266 + - bugfix Class 'Smarty_Internal_Runtime_ValidateCompiled' not found when upgrading from some older Smarty versions with existing + compiled or cached template files https://github.com/smarty-php/smarty/issues/269 + - optimization remove unneeded call to update acopes when {assign} scope and template scope was local (default) + +## 3.1.30 - (07.08.2016) + + 07.08.2016 + - bugfix update of 04.08.2016 was incomplete + + 05.08.2016 + - bugfix compiling of templates failed when the Smarty delimiter did contain '/' https://github.com/smarty-php/smarty/issues/264 + - updated error checking at template and config default handler + + 04.08.2016 + - improvement move template function source parameter into extension + + 26.07.2016 + - optimization unneeded loading of compiled resource + + 24.07.2016 + - regression this->addPluginsDir('/abs/path/to/dir') adding absolute path without trailing '/' did fail https://github.com/smarty-php/smarty/issues/260 + + 23.07.2016 + - bugfix setTemplateDir('/') and setTemplateDir('') did create wrong absolute filepath https://github.com/smarty-php/smarty/issues/245 + - optimization of filepath normalization + - improvement remove double function declaration in plugin shared.escape_special_cars.php https://github.com/smarty-php/smarty/issues/229 + + 19.07.2016 + - bugfix multiple {include} with relative filepath within {block}{/block} could fail https://github.com/smarty-php/smarty/issues/246 + - bugfix {math} shell injection vulnerability patch provided by Tim Weber + + 18.07.2016 + - bugfix {foreach} if key variable and item@key attribute have been used both the key variable was not updated https://github.com/smarty-php/smarty/issues/254 + - bugfix modifier on plugins like {plugin|modifier ... } did fail when the plugin does return an array https://github.com/smarty-php/smarty/issues/228 + - bugfix avoid opcache_invalidate to result in ErrorException when opcache.restrict_api is not empty https://github.com/smarty-php/smarty/pull/244 + - bugfix multiple {include} with relative filepath within {block}{/block} could fail https://github.com/smarty-php/smarty/issues/246 + + 14.07.2016 + - bugfix wrong parameter on compileAllTemplates() and compileAllConfig() https://github.com/smarty-php/smarty/issues/231 + + 13.07.2016 + - bugfix PHP 7 compatibility on registered compiler plugins https://github.com/smarty-php/smarty/issues/241 + - update testInstall() https://github.com/smarty-php/smarty/issues/248https://github.com/smarty-php/smarty/issues/248 + - bugfix enable debugging could fail when template objects did already exists https://github.com/smarty-php/smarty/issues/237 + - bugfix template function data should be merged when loading subtemplate https://github.com/smarty-php/smarty/issues/240 + - bugfix wrong parameter on compileAllTemplates() https://github.com/smarty-php/smarty/issues/231 + + 12.07.2016 + - bugfix {foreach} item variable must be created also on empty from array https://github.com/smarty-php/smarty/issues/238 and https://github.com/smarty-php/smarty/issues/239 + - bugfix enableSecurity() must init cache flags https://github.com/smarty-php/smarty/issues/247 + + 27.05.2016 + - bugfix/improvement of compileAlltemplates() follow symlinks in template folder (PHP >= 5.3.1) https://github.com/smarty-php/smarty/issues/224 + clear internal cache and expension handler for each template to avoid possible conflicts https://github.com/smarty-php/smarty/issues/231 + + 16.05.2016 + - optimization {foreach} compiler and processing + - broken PHP 5.3 and 5.4 compatibility + + 15.05.2016 + - optimization and cleanup of resource code + + 10.05.2016 + - optimization of inheritance processing + + 07.05.2016 + -bugfix Only variables should be assigned by reference https://github.com/smarty-php/smarty/issues/227 + + 02.05.2016 + - enhancement {block} tag names can now be variable https://github.com/smarty-php/smarty/issues/221 + + 01.05.2016 + - bugfix same relative filepath at {include} called from template in different folders could display wrong sub-template + + 29.04.2016 + - bugfix {strip} remove space on linebreak between html tags https://github.com/smarty-php/smarty/issues/213 + + 24.04.2016 + - bugfix nested {include} with relative file path could fail when called in {block} ... {/block} https://github.com/smarty-php/smarty/issues/218 + + 14.04.2016 + - bugfix special variable {$smarty.capture.name} was not case sensitive on name https://github.com/smarty-php/smarty/issues/210 + - bugfix the default template handler must calculate the source uid https://github.com/smarty-php/smarty/issues/205 + + 13.04.2016 + - bugfix template inheritance status must be saved when calling sub-templates https://github.com/smarty-php/smarty/issues/215 + + 27.03.2016 + - bugfix change of 11.03.2016 cause again {capture} data could not been seen in other templates with {$smarty.capture.name} https://github.com/smarty-php/smarty/issues/153 + + 11.03.2016 + - optimization of capture and security handling + - improvement $smarty->clearCompiledTemplate() should return on recompiled or uncompiled resources + + 10.03.2016 + - optimization of resource processing + + 09.03.2016 + - improvement rework of 'scope' attribute handling see see NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/194 + https://github.com/smarty-php/smarty/issues/186 https://github.com/smarty-php/smarty/issues/179 + - bugfix correct Autoloader update of 2.3.2014 https://github.com/smarty-php/smarty/issues/199 + + 04.03.2016 + - bugfix change from 01.03.2016 will cause $smarty->isCached(..) failure if called multiple time for same template + (forum topic 25935) + + 02.03.2016 + - revert autoloader optimizations because of unexplainable warning when using plugins https://github.com/smarty-php/smarty/issues/199 + + 01.03.2016 + - bugfix template objects must be cached on $smarty->fetch('foo.tpl) calls incase the template is fetched + multiple times (forum topic 25909) + + 25.02.2016 + - bugfix wrong _realpath with 4 or more parent-directories https://github.com/smarty-php/smarty/issues/190 + - optimization of _realpath + - bugfix instanceof expression in template code must be treated as value https://github.com/smarty-php/smarty/issues/191 + + 20.02.2016 + - bugfix {strip} must keep space between hmtl tags. Broken by changes of 10.2.2016 https://github.com/smarty-php/smarty/issues/184 + - new feature/bugfix {foreach}{section} add 'properties' attribute to force compilation of loop properties + see NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/189 + + 19.02.2016 + - revert output buffer flushing on display, echo content again because possible problems when PHP files had + characters (newline} after ?> at file end https://github.com/smarty-php/smarty/issues/187 + + 14.02.2016 + - new tag {make_nocache} read NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/110 + - optimization of sub-template processing + - bugfix using extendsall as default resource and {include} inside {block} tags could produce unexpected results https://github.com/smarty-php/smarty/issues/183 + - optimization of tag attribute compiling + - optimization make compiler tag object cache static for higher compilation speed + + 11.02.2016 + - improvement added KnockoutJS comments to trimwhitespace outputfilter https://github.com/smarty-php/smarty/issues/82 + https://github.com/smarty-php/smarty/pull/181 + + 10.02.2016 + - bugfix {strip} must keep space on output creating smarty tags within html tags https://github.com/smarty-php/smarty/issues/177 + - bugfix wrong precedence on special if conditions like '$foo is ... by $bar' could cause wrong code https://github.com/smarty-php/smarty/issues/178 + - improvement because of ambiguities the inline constant support has been removed from the $foo.bar syntax https://github.com/smarty-php/smarty/issues/149 + - bugfix other {strip} error with output tags between hmtl https://github.com/smarty-php/smarty/issues/180 + + 09.02.2016 + - move some code from parser into compiler + - reformat all code for unique style + - update/bugfix scope attribute handling reworked. Read the newfeatures.txt file + + 05.02.2016 + - improvement internal compiler changes + + 01.02.2016 + - bugfix {foreach} compilation failed when $smarty->merge_compiled_includes = true and pre-filters are used. + + 29.01.2016 + - bugfix implement replacement code for _tag_stack property https://github.com/smarty-php/smarty/issues/151 + + 28.01.2016 + - bugfix allow windows network filepath or wrapper (forum topic 25876) https://github.com/smarty-php/smarty/issues/170 + - bugfix if fetch('foo.tpl') is called on a template object the $parent parameter should default to the calling template object https://github.com/smarty-php/smarty/issues/152 + + 27.01.2016 + - revert bugfix compiling {section} did create warning + - bugfix {$smarty.section.customer.loop} did throw compiler error https://github.com/smarty-php/smarty/issues/161 + update of yesterdays fix + - bugfix string resource could inject code at {block} or inline subtemplates through PHP comments https://github.com/smarty-php/smarty/issues/157 + - bugfix output filters did not observe nocache code flhttps://github.com/smarty-php/smarty/issues/154g https://github.com/smarty-php/smarty/issues/160 + - bugfix {extends} with relative file path did not work https://github.com/smarty-php/smarty/issues/154 + https://github.com/smarty-php/smarty/issues/158 + - bugfix {capture} data could not been seen in other templates with {$smarty.capture.name} https://github.com/smarty-php/smarty/issues/153 + + 26.01.2016 + - improvement observe Smarty::$_CHARSET in debugging console https://github.com/smarty-php/smarty/issues/169 + - bugfix compiling {section} did create warning + - bugfix {$smarty.section.customer.loop} did throw compiler error https://github.com/smarty-php/smarty/issues/161 + + 02.01.2016 + - update scope handling + - optimize block plugin compiler + - improvement runtime checks if registered block plugins are callable + + 01.01.2016 + - remove Smarty::$resource_cache_mode property + + 31.12.2015 + - optimization of {assign}, {if} and {while} compiled code + + 30.12.2015 + - bugfix plugin names starting with "php" did not compile https://github.com/smarty-php/smarty/issues/147 + + 29.12.2015 + - bugfix Smarty::error_reporting was not observed when display() or fetch() was called on template objects https://github.com/smarty-php/smarty/issues/145 + + 28.12.2015 + - optimization of {foreach} code size and processing + + 27.12.2015 + - improve inheritance code + - update external methods + - code fixes + - PHPdoc updates + + 25.12.2015 + - compile {block} tag code and its processing into classes + - optimization replace hhvm extension by inline code + - new feature If ACP is enabled force an apc_compile_file() when compiled or cached template was updated + + 24.12.2015 + - new feature Compiler does now observe the template_dir setting and will create separate compiled files if required + - bugfix post filter did fail on template inheritance https://github.com/smarty-php/smarty/issues/144 + + 23.12.2015 + - optimization move internal method decodeProperties back into template object + - optimization move subtemplate processing back into template object + - new feature Caching does now observe the template_dir setting and will create separate cache files if required + + 22.12.2015 + - change $xxx_dir properties from private to protected in case Smarty class gets extended + - code optimizations + + 21.12.2015 + - bugfix a filepath starting with '/' or '\' on windows should normalize to the root dir + of current working drive https://github.com/smarty-php/smarty/issues/134 + - optimization of filepath normalization + - bugfix {strip} must remove all blanks between html tags https://github.com/smarty-php/smarty/issues/136 + + - 3.1.29 - (21.12.2015) + 21.12.2015 + - optimization improve speed of filetime checks on extends and extendsall resource + + 20.12.2015 + - bugfix failure when the default resource type was set to 'extendsall' https://github.com/smarty-php/smarty/issues/123 + - update compilation of Smarty special variables + - bugfix add addition check for OS type on normalization of file path https://github.com/smarty-php/smarty/issues/134 + - bugfix the source uid of the extendsall resource must contain $template_dir settings https://github.com/smarty-php/smarty/issues/123 + + 19.12.2015 + - bugfix using $smarty.capture.foo in expressions could fail https://github.com/smarty-php/smarty/pull/138 + - bugfix broken PHP 5.2 compatibility https://github.com/smarty-php/smarty/issues/139 + - remove no longer used code + - improvement make sure that compiled and cache templates never can contain a trailing '?>? + + 18.12.2015 + - bugfix regression when modifier parameter was followed by math https://github.com/smarty-php/smarty/issues/132 + + 17.12.2015 + - bugfix {$smarty.capture.nameFail} did lowercase capture name https://github.com/smarty-php/smarty/issues/135 + - bugfix using {block append/prepend} on same block in multiple levels of inheritance templates could fail (forum topic 25827) + - bugfix text content consisting of just a single '0' like in {if true}0{/if} was suppressed (forum topic 25834) + + 16.12.2015 + - bugfix {foreach} did fail if from atrribute is a Generator class https://github.com/smarty-php/smarty/issues/128 + - bugfix direct access $smarty->template_dir = 'foo'; should call Smarty::setTemplateDir() https://github.com/smarty-php/smarty/issues/121 + + 15.12.2015 + - bugfix {$smarty.cookies.foo} did return the $_COOKIE array not the 'foo' value https://github.com/smarty-php/smarty/issues/122 + - bugfix a call to clearAllCache() and other should clear all internal template object caches (forum topic 25828) + + 14.12.2015 + - bugfix {$smarty.config.foo} broken in 3.1.28 https://github.com/smarty-php/smarty/issues/120 + - bugfix multiple calls of {section} with same name droped E_NOTICE error https://github.com/smarty-php/smarty/issues/118 + + - 3.1.28 - (13.12.2015) + 13.12.2015 + - bugfix {foreach} and {section} with uppercase characters in name attribute did not work (forum topic 25819) + - bugfix $smarty->debugging_ctrl = 'URL' did not work (forum topic 25811) + - bugfix Debug Console could display incorrect data when using subtemplates + + 09.12.2015 + - bugfix Smarty did fail under PHP 7.0.0 with use_include_path = true; + + 09.12.2015 + - bugfix {strip} should exclude some html tags from stripping, related to fix for https://github.com/smarty-php/smarty/issues/111 + + 08.12.2015 + - bugfix internal template function data got stored in wrong compiled file https://github.com/smarty-php/smarty/issues/114 + + 05.12.2015 + -bugfix {strip} should insert a single space https://github.com/smarty-php/smarty/issues/111 + + 25.11.2015 + -bugfix a left delimter like '[%' did fail on [%$var_[%$variable%]%] (forum topic 25798) + + 02.11.2015 + - bugfix {include} with variable file name like {include file="foo_`$bar`.tpl"} did fail in 3.1.28-dev https://github.com/smarty-php/smarty/issues/102 + + 01.11.2015 + - update config file processing + + 31.10.2015 + - bugfix add missing $trusted_dir property to SmartyBC class (forum topic 25751) + + 29.10.2015 + - improve template scope handling + + 24.10.2015 + - more optimizations of template processing + - bugfix Error when using {include} within {capture} https://github.com/smarty-php/smarty/issues/100 + + 21.10.2015 + - move some code into runtime extensions + + 18.10.2015 + - optimize filepath normalization + - rework of template inheritance + - speed and size optimizations + - bugfix under HHVM temporary cache file must only be created when caches template was updated + - fix compiled code for new {block} assign attribute + - update code generated by template function call handler + + 18.09.2015 + - bugfix {if $foo instanceof $bar} failed to compile if 2nd value is a variable https://github.com/smarty-php/smarty/issues/92 + + 17.09.2015 + - bugfix {foreach} first attribute was not correctly reset since commit 05a8fa2 of 02.08.2015 https://github.com/smarty-php/smarty/issues/90 + + 16.09.2015 + - update compiler by moving no longer needed properties, code optimizations and other + + 14.09.2015 + - optimize autoloader + - optimize subtemplate handling + - update template inheritance processing + - move code of {call} processing back into Smarty_Internal_Template class + - improvement invalidate OPCACHE for cleared compiled and cached template files (forum topic 25557) + - bugfix unintended multiple debug windows (forum topic 25699) + + 30.08.2015 + - size optimization move some runtime functions into extension + - optimize inline template processing + - optimization merge inheritance child and parent templates into one compiled template file + + 29.08.2015 + - improvement convert template inheritance into runtime processing + - bugfix {$smarty.block.parent} did always reference the root parent block https://github.com/smarty-php/smarty/issues/68 + + 23.08.2015 + - introduce Smarty::$resource_cache_mode and cache template object of {include} inside loop + - load seldom used Smarty API methods dynamically to reduce memory footprint + - cache template object of {include} if same template is included several times + - convert debug console processing to object + - use output buffers for better performance and less memory usage + - optimize nocache hash processing + - remove not really needed properties + - optimize rendering + - move caching to Smarty::_cache + - remove properties with redundant content + - optimize Smarty::templateExists() + - optimize use_include_path processing + - relocate properties for size optimization + - remove redundant code + - bugfix compiling super globals like {$smarty.get.foo} did fail in the master branch https://github.com/smarty-php/smarty/issues/77 + + 06.08.2015 + - avoid possible circular object references caused by parser/lexer objects + - rewrite compileAll... utility methods + - commit several internal improvements + - bugfix Smarty failed when compile_id did contain "|" + + 03.08.2015 + - rework clear cache methods + - bugfix compileAllConfig() was broken since 3.1.22 because of the changes in config file processing + - improve getIncludePath() to return directory if no file was given + + 02.08.2015 + - optimization and code cleanup of {foreach} and {section} compiler + - rework {capture} compiler + + 01.08.2015 + - update DateTime object can be instance of DateTimeImmutable since PHP5.5 https://github.com/smarty-php/smarty/pull/75 + - improvement show resource type and start of template source instead of uid on eval: and string: resource (forum topic 25630) + + 31.07.2015 + - optimize {foreach} and {section} compiler + + 29.07.2015 + - optimize {section} compiler for speed and size of compiled code + + 28.07.2015 + - update for PHP 7 compatibility + + 26.07.2015 + - improvement impement workaround for HHVM PHP incompatibillity https://github.com/facebook/hhvm/issues/4797 + + 25.07.2015 + - bugfix parser did hang on text starting <?something https://github.com/smarty-php/smarty/issues/74 + + 20.07.2015 + - bugfix config files got recompiled on each request + - improvement invalidate PHP 5.5 opcache for recompiled and cached templates https://github.com/smarty-php/smarty/issues/72 + + 12.07.2015 + - optimize {extends} compilation + + 10.07.2015 + - bugfix force file: resource in demo resource.extendsall.php + + 08.07.2015 + - bugfix convert each word of class names to ucfirst in in compiler. (forum topic 25588) + + 07.07.2015 + - improvement allow fetch() or display() called on a template object to get output from other template + like $template->fetch('foo.tpl') https://github.com/smarty-php/smarty/issues/70 + - improvement Added $limit parameter to regex_replace modifier #71 + - new feature multiple indices on file: resource + + 06.07.2015 + - optimize {block} compilation + - optimization get rid of __get and __set in source object + + 01.07.2015 + - optimize compile check handling + - update {foreach} compiler + - bugfix debugging console did not display string values containing \n, \r or \t correctly https://github.com/smarty-php/smarty/issues/66 + - optimize source resources + + 28.06.2015 + - move $smarty->enableSecurity() into Smarty_Security class + - optimize security isTrustedResourceDir() + - move auto load filter methods into extension + - move $smarty->getTemplateVars() into extension + - move getStreamVariable() into extension + - move $smarty->append() and $smarty->appendByRef() into extension + - optimize autoloader + - optimize file path normalization + - bugfix PATH_SEPARATOR was replaced by mistake in autoloader + - remove redundant code + + 27.06.2015 + - bugfix resolve naming conflict between custom Smarty delimiter '<%' and PHP ASP tags https://github.com/smarty-php/smarty/issues/64 + - update $smarty->_realpath for relative path not starting with './' + - update Smarty security with new realpath handling + - update {include_php} with new realpath handling + - move $smarty->loadPlugin() into extension + - minor compiler optimizations + - bugfix allow function plugins with name ending with 'close' https://github.com/smarty-php/smarty/issues/52 + - rework of $smarty->clearCompiledTemplate() and move it to its own extension + + 19.06.2015 + - improvement allow closures as callback at $smarty->registerFilter() https://github.com/smarty-php/smarty/issues/59 + + - 3.1.27- (18.06.2015) + 18.06.2015 + - bugfix another update on file path normalization failed on path containing something like "/.foo/" https://github.com/smarty-php/smarty/issues/56 + + - 3.1.26- (18.06.2015) + 18.06.2015 + - bugfix file path normalization failed on path containing something like "/.foo/" https://github.com/smarty-php/smarty/issues/56 + + 17.06.2015 + - bugfix calling a plugin with nocache option but no other attributes like {foo nocache} caused call to undefined function https://github.com/smarty-php/smarty/issues/55 + + - 3.1.25- (15.06.2015) + 15.06.2015 + - optimization of smarty_cachereource_keyvaluestore.php code + + 14.06.2015 + - bugfix a relative sub template path could fail if template_dir path did contain /../ https://github.com/smarty-php/smarty/issues/50 + - optimization rework of path normalization + - bugfix an output tag with variable, modifier followed by an operator like {$foo|modifier+1} did fail https://github.com/smarty-php/smarty/issues/53 + + 13.06.2015 + - bugfix a custom cache resource using smarty_cachereource_keyvaluestore.php did fail if php.ini mbstring.func_overload = 2 (forum topic 25568) + + 11.06.2015 + - bugfix the lexer could hang on very large quoted strings (forum topic 25570) + + 08.06.2015 + - bugfix using {$foo} as array index like $bar.{$foo} or in double quoted string like "some {$foo} thing" failed https://github.com/smarty-php/smarty/issues/49 + + 04.06.2015 + - bugfix possible error message on unset() while compiling {block} tags https://github.com/smarty-php/smarty/issues/46 + + 01.06.2015 + - bugfix <?xml ... ?> including template variables broken since 3.1.22 https://github.com/smarty-php/smarty/issues/47 + + 27.05.2015 + - bugfix {include} with variable file name must not create by default individual cache file (since 3.1.22) https://github.com/smarty-php/smarty/issues/43 + + 24.05.2015 + - bugfix if condition string 'neq' broken due to a typo https://github.com/smarty-php/smarty/issues/42 + + - 3.1.24- (23.05.2015) + 23.05.2015 + - improvement on php_handling to allow very large PHP sections, better error handling + - improvement allow extreme large comment sections (forum 25538) + + 21.05.2015 + - bugfix broken PHP 5.2 compatibility when compiling <?php tags https://github.com/smarty-php/smarty/issues/40 + - bugfix named {foreach} comparison like $smarty.foreach.foobar.index > 1 did compile into wrong code https://github.com/smarty-php/smarty/issues/41 + + 19.05.2015 + - bugfix compiler did overwrite existing variable value when setting the nocache attribute https://github.com/smarty-php/smarty/issues/39 + - bugfix output filter trimwhitespace could run into the pcre.backtrack_limit on large output (code.google issue 220) + - bugfix compiler could run into the pcre.backtrack_limit on larger comment or {php} tag sections (forum 25538) + + 18.05.2015 + - improvement introduce shortcuts in lexer/parser rules for most frequent terms for higher + compilation speed + + 16.05.2015 + - bugfix {php}{/php} did work just for single lines https://github.com/smarty-php/smarty/issues/33 + - improvement remove not needed ?><?php transitions from compiled code + - improvement reduce number of lexer tokens on operators and if conditions + - improvement higher compilation speed by modified lexer/parser generator at "smarty/smarty-lexer" + + 13.05.2015 + - improvement remove not needed ?><?php transitions from compiled code + - improvement of debugging: + - use fresh Smarty object to display the debug console because of possible problems when the Smarty + was extended or Smarty properties had been modified in the class source + - display Smarty version number + - Truncate lenght of Origin display and extend strin value display to 80 character + - bugfix in Smarty_Security 'nl2br' should be a trusted modifier, not PHP function (code.google issue 223) + + 12.05.2015 + - bugfix {$smarty.constant.TEST} did fail on undefined constant https://github.com/smarty-php/smarty/issues/28 + - bugfix access to undefined config variable like {#undef#} did fail https://github.com/smarty-php/smarty/issues/29 + - bugfix in nested {foreach} saved item attributes got overwritten https://github.com/smarty-php/smarty/issues/33 + + - 3.1.23 - (12.05.2015) + 12.05.2015 + - bugfix of smaller performance issue introduce in 3.1.22 when caching is enabled + - bugfix missig entry for smarty-temmplate-config in autoloader + + - 3.1.22 - tag was deleted because 3.1.22 did fail caused by the missing entry for smarty-temmplate-config in autoloader + 10.05.2015 + - bugfix custom cache resource did not observe compile_id and cache_id when $cache_locking == true + - bugfix cache lock was not handled correctly after timeout when $cache_locking == true + - improvement added constants for $debugging + + 07.05.2015 + - improvement of the debugging console. Read NEW_FEATURES.txt + - optimization of resource class loading + + 06.05.2015 + - bugfix in 3.1.22-dev cache resource must not be loaded for subtemplates + - bugfix/improvement in 3.1.22-dev cache locking did not work as expected + + 05.05.2015 + - optimization on cache update when main template is modified + - optimization move <?php ?> handling from parser to new compiler module + + 05.05.2015 + - bugfix code could be messed up when {tags} are used in multiple attributes https://github.com/smarty-php/smarty/issues/23 + + 04.05.2015 + - bugfix Smarty_Resource::parseResourceName incompatible with Google AppEngine (https://github.com/smarty-php/smarty/issues/22) + - improvement use is_file() checks to avoid errors suppressed by @ which could still cause problems (https://github.com/smarty-php/smarty/issues/24) + + 28.04.2015 + - bugfix plugins of merged subtemplates not loaded in 3.1.22-dev (forum topic 25508) 2nd fix + + 28.04.2015 + - bugfix plugins of merged subtemplates not loaded in 3.1.22-dev (forum topic 25508) + + 23.04.2015 + - bugfix a nocache template variable used as parameter at {insert} was by mistake cached + + 20.04.2015 + - bugfix at a template function containing nocache code a parmeter could overwrite a template variable of same name + + 27.03.2015 + - bugfix Smarty_Security->allow_constants=false; did also disable true, false and null (change of 16.03.2015) + - improvement added a whitelist for trusted constants to security Smarty_Security::$trusted_constants (forum topic 25471) + + 20.03.2015 + - bugfix make sure that function properties get saved only in compiled files containing the fuction definition {forum topic 25452} + - bugfix correct update of global variable values on exit of template functions. (reported under Smarty Developers) + + 16.03.2015 + - bugfix problems with {function}{/function} and {call} tags in different subtemplate cache files {forum topic 25452} + - bugfix Smarty_Security->allow_constants=false; did not disallow direct usage of defined constants like {SMARTY_DIR} {forum topic 25457} + - bugfix {block}{/block} tags did not work inside double quoted strings https://github.com/smarty-php/smarty/issues/18 + + + 15.03.2015 + - bugfix $smarty->compile_check must be restored before rendering of a just updated cache file {forum 25452} + + 14.03.2015 + - bugfix {nocache} {/nocache} tags corrupted code when used within a nocache section caused by a nocache template variable. + + - bugfix template functions defined with {function} in an included subtemplate could not be called in nocache + mode with {call... nocache} if the subtemplate had it's own cache file {forum 25452} + + 10.03.2015 + - bugfix {include ... nocache} whith variable file or compile_id attribute was not executed in nocache mode. + + 12.02.2015 + - bugfix multiple Smarty::fetch() of same template when $smarty->merge_compiled_includes = true; could cause function already defined error + + 11.02.2015 + - bugfix recursive {includes} did create E_NOTICE message when $smarty->merge_compiled_includes = true; (github issue #16) + + 22.01.2015 + - new feature security can now control access to static methods and properties + see also NEW_FEATURES.txt + + 21.01.2015 + - bugfix clearCompiledTemplates(), clearAll() and clear() could try to delete whole drive at wrong path permissions because realpath() fail (forum 25397) + - bugfix 'self::' and 'parent::' was interpreted in template syntax as static class + + 04.01.2015 + - push last weeks changes to github + + - different optimizations + - improvement automatically create different versions of compiled templates and config files depending + on property settings. + - optimization restructure template processing by moving code into classes it better belongs to + - optimization restructure config file processing + + 31.12.2014 + - bugfix use function_exists('mb_get_info') for setting Smarty::$_MBSTRING. + Function mb_split could be overloaded depending on php.ini mbstring.func_overload + + + 29.12.2014 + - new feature security can now limit the template nesting level by property $max_template_nesting + see also NEW_FEATURES.txt (forum 25370) + + 29.12.2014 + - new feature security can now disable special $smarty variables listed in property $disabled_special_smarty_vars + see also NEW_FEATURES.txt (forum 25370) + + 27.12.2014 + - bugfix clear internal _is_file_cache when plugins_dir was modified + + 13.12.2014 + - improvement optimization of lexer and parser resulting in a up to 30% higher compiling speed + + 11.12.2014 + - bugfix resolve parser ambiguity between constant print tag {CONST} and other smarty tags after change of 09.12.2014 + + 09.12.2014 + - bugfix variables $null, $true and $false did not work after the change of 12.11.2014 (forum 25342) + - bugfix call of template function by a variable name did not work after latest changes (forum 25342) + + 23.11.2014 + - bugfix a plugin with attached modifier could fail if the tag was immediately followed by another Smarty tag (since 3.1.21) (forum 25326) + + 13.11.2014 + - improvement move autoload code into Autoloader.php. Use Composer autoloader when possible + + 12.11.2014 + - new feature added support of namespaces to template code + + 08.11.2014 - 10.11.2014 + - bugfix subtemplate called in nocache mode could be called with wrong compile_id when it did change on one of the calling templates + - improvement add code of template functions called in nocache mode dynamically to cache file (related to bugfix of 01.11.2014) + - bugfix Debug Console did not include all data from merged compiled subtemplates + + 04.11.2014 + - new feature $smarty->debugging = true; => overwrite existing Debug Console window (old behaviour) + $smarty->debugging = 2; => individual Debug Console window by template name + + 03.11.2014 + - bugfix Debug Console did not show included subtemplates since 3.1.17 (forum 25301) + - bugfix Modifier debug_print_var did not limit recursion or prevent recursive object display at Debug Console + (ATTENTION: parameter order has changed to be able to specify maximum recursion) + - bugfix Debug consol did not include subtemplate information with $smarty->merge_compiled_includes = true + - improvement The template variables are no longer displayed as objects on the Debug Console + - improvement $smarty->createData($parent = null, $name = null) new optional name parameter for display at Debug Console + - addition of some hooks for future extension of Debug Console + + 01.11.2014 + - bugfix and enhancement on subtemplate {include} and template {function} tags. + * Calling a template which has a nocache section could fail if it was called from a cached and a not cached subtemplate. + * Calling the same subtemplate cached and not cached with the $smarty->merge_compiled_includes enabled could cause problems + * Many smaller related changes + + 30.10.2014 + - bugfix access to class constant by object like {$object::CONST} or variable class name {$class::CONST} did not work (forum 25301) + + 26.10.2014 + - bugfix E_NOTICE message was created during compilation when ASP tags '<%' or '%>' are in template source text + - bugfix merge_compiled_includes option failed when caching enables and same subtemplate was included cached and not cached + + - 3.1.21 - (18.10.2014) + 18.10.2014 + - composer moved to github + + 17.10.2014 + - bugfix on $php_handling security and optimization of smarty_internal_parsetree (Thue Kristensen) + + 16.10.2014 + - bugfix composer.json update + + 15.10.2014 + - bugfix calling a new created cache file with fetch() and Smarty::CACHING_LIFETIME_SAVED multiple times did fail (forum 22350) + + 14.10.2014 + - bugfix any tag placed within "<script language=php>" will throw a security exception to close all thinkable holes + - bugfix classmap in root composer.json should start at "libs/..." + - improvement cache is_file(file_exists) results of loadPlugin() to avoid unnecessary calls during compilation (Issue 201} + + 12.10.2014 + - bugfix a comment like "<script{*foo*} language=php>" bypassed $php_handling checking (Thue Kristensen) + - bugfix change of 08.10.2014 could create E_NOTICE meassage when using "<?php" tags + - bugfix "<script language=php>" with $php_handling PHP_PASSTHRU was executed in {nocache} sections + + - 3.1.20 - (09.10.2014) + 08.10.2014 + - bugfix security mode of "<script language=php>" must be controlled by $php_handling property (Thue Kristensen) + + 01.10.2014 + - bugfix template resource of inheritance blocks could get invalid if the default resource type is not 'file'(Issue 202) + - bugfix existing child {block} tag must override parent {block} tag append / prepend setting (topic 25259) + + 02.08.2014 + - bugfix modifier wordwrap did output break string wrong if first word was exceeding length with cut = true (topic 25193) + + 24.07.2014 + - bugfix cache clear when cache folder does not exist + + 16.07.2014 + - enhancement remove BOM automatically from template source (topic 25161) + + 04.07.2014 + - bugfix the bufix of 02.06.2014 broke correct handling of child templates with same name but different template folders in extends resource (issue 194 and topic 25099) + + - 3.1.19 - (30.06.2014) + 20.06.2014 + - bugfix template variables could not be passed as parameter in {include} when the include was in a {nocache} section (topic 25131) + + 17.06.2014 + - bugfix large template text of some charsets could cause parsing errors (topic 24630) + + 08.06.2014 + - bugfix registered objects did not work after spelling fixes of 06.06.2014 + - bugfix {block} tags within {literal} .. {/literal} got not displayed correctly (topic 25024) + - bugfix UNC WINDOWS PATH like "\\psf\path\to\dir" did not work as template directory (Issue 192) + - bugfix {html_image} security check did fail on files relative to basedir (Issue 191) + + 06.06.2014 + - fixed PHPUnit outputFilterTrimWhitespaceTests.php assertion of test result + - fixed spelling, PHPDoc , minor errors, code cleanup + + 02.06.2014 + - using multiple cwd with relative template dirs could result in identical compiled file names. (issue 194 and topic 25099) + + 19.04.2014 + - bugfix calling createTemplate(template, data) with empty data array caused notice of array to string conversion (Issue 189) + - bugfix clearCompiledTemplate() did not delete files on WINDOWS when a compile_id was specified + + 18.04.2014 + - revert bugfix of 5.4.2014 because %-e date format is not supported on all operating systems + + - 3.1.18 - (07.04.2014) + 06.04.2014 + - bugfix template inheritance fail when using custom resource after patch of 8.3.2014 (Issue 187) + - bugfix update of composer file (Issue 168 and 184) + + 05.04.2014 + - bugfix default date format leads to extra spaces when displaying dates with single digit days (Issue 165) + + 26.03.2014 + - bugfix Smart_Resource_Custom should not lowercase the resource name (Issue 183) + + 24.03.2014 + - bugfix using a {foreach} property like @iteration could fail when used in inheritance parent templates (Issue 182) + + 20.03.2014 + - bugfix $smarty->auto_literal and mbsting.func_overload 2, 6 or 7 did fail (forum topic 24899) + + 18.03.2014 + - revert change of 17.03.2014 + +17.03.2014 + - bugfix $smarty->auto_literal and mbsting.func_overload 2, 6 or 7 did fail (forum topic 24899) + + 15.03.2014 + - bugfix Smarty_CacheResource_Keyvaluestore did use different keys on read/writes and clearCache() calls (Issue 169) + + 13.03.2014 + - bugfix clearXxx() change of 27.1.2014 did not work when specifing cache_id or compile_id (forum topic 24868 and 24867) + + - 3.1.17 - + 08.03.2014 + - bugfix relative file path {include} within {block} of child templates did throw exception on first call (Issue 177) + + 17.02.2014 + - bugfix Smarty failed when executing PHP on HHVM (Hip Hop 2.4) because uniqid('',true) does return string with ',' (forum topic 20343) + + 16.02.2014 + - bugfix a '//' or '\\' in template_dir path could produce wrong path on relative filepath in {include} (Issue 175) + + 05.02.2014 + - bugfix shared.literal_compiler_param.php did throw an exception when literal did contain a '-' (smarty-developers group) + + 27.01.2014 + - bugfix $smarty->debugging = true; did show the variable of the $smarty object not the variables used in display() call (forum topic 24764) + - bugfix clearCompiledTemplate(), clearAll() and clear() should use realpath to avoid possible exception from RecursiveDirectoryIterator (Issue 171) + + 26.01.2014 + - bugfix undo block nesting checks for {nocache} for reasons like forum topic 23280 (forum topic 24762) + + 18.01.2014 + - bugfix the compiler did fail when using template inheritance and recursive {include} (smarty-developers group) + + 11.01.2014 + - bugfix "* }" (spaces before right delimiter) was interpreted by mistake as comment end tag (Issue 170) + - internals content cache should be clear when updating cache file + + 08.01.2014 + - bugfix Smarty_CacheResource_Custom did not handle template resource type specifications on clearCache() calls (Issue 169) + - bugfix SmartyBC.class.php should use require_once to load Smarty.class.php (forum topic 24683) + + - 3.1.16 - + 15.12.2013 + - bugfix {include} with {block} tag handling (forum topic 24599, 24594, 24682) (Issue 161) + Read 3.1.16_RELEASE_NOTES for more details + - enhancement additional debug output at $smarty->_parserdebug = true; + + 07.11.2013 + - bugfix too restrictive handling of {include} within {block} tags. 3.1.15 did throw errors where 3.1.14 did not (forum topic 24599) + - bugfix compiler could fail if PHP mbstring.func_overload is enabled (Issue 164) + + 28.10.2013 + - bugfix variable resource name at custom resource plugin did not work within {block} tags (Issue 163) + - bugfix notice "Trying to get property of non-object" removed (Issue 163) + - bugfix correction of modifier capitalize fix from 3.10.2013 (issue 159) + - bugfix multiple {block}s with same name in parent did not work (forum topic 24631) + + 20.10.2013 + - bugfix a variable file name at {extends} tag did fail (forum topic 24618) + + 14.10.2013 + - bugfix yesterdays fix could result in an undefined variable + + 13.10.2013 + - bugfix variable names on {include} in template inheritance did unextepted error message (forum topic 24594) (Issue 161) +.- bugfix relative includes with same name like {include './foo.tpl'} from different folder failed (forum topic 24590)(Issue 161) + + 04.10.2013 + - bugfix variable file names at {extends} had been disbabled by mistake with the rewrite of + template inheritance of 24.08.2013 (forum topic 24585) + +03.10.2013 + - bugfix loops using modifier capitalize did eat up memory (issue 159) + + - Smarty 3.1.15 - +01.10.2013 + - use current delimiters in compiler error messages (issue 157) + - improvement on performance when using error handler and multiple template folders (issue 152) + +17.09.2013 + - improvement added patch for additional SmartyCompilerException properties for better access to source information (forum topic 24559) + +16.09.2013 + - bugfix recompiled templates did not show on first request with zend opcache cache (forum topic 24320) + +13.09.2013 + - bugfix html_select_time defaulting error for the Meridian dropdown (forum topic 24549) + +09.09.2012 +- bugfix incorrect compiled code with array(object,method) callback at registered Variable Filter (forum topic 24542) + +27.08.2013 +- bugfix delimiter followed by linebreak did not work as auto literal after update from 24.08.2013 (forum topic 24518) + +24.08.2013 +- bugfix and enhancement + Because several recent problems with template inheritance the {block} tag compiler has been rewriten + - Error messages shown now the correct child template file and line number + - The compiler could fail on some larger UTF-8 text block (forum topic 24455) + - The {strip} tag can now be placed outside {block} tags in child templates (forum topic 24289) +- change SmartyException::$escape is now false by default +- change PHP traceback has been remove for SmartyException and SmartyCompilerException + +14.08.2013 +- bugfix compiled filepath of config file did not observe different config_dir (forum topic 24493) + +13.08.2013 +- bugfix the internal resource cache did not observe config_dir changes (forum topic 24493) + +12.08.2013 +- bugfix internal $tmpx variables must be unique over all inheritance templates (Issue 149) + +10.08.2013 +- bugfix a newline was eaten when a <?xml ... ?> was passed by a Smarty variable and caching was enabled (forum topic 24482) + +29.07.2013 +- bugfix headers already send warning thrown when using 'SMARTY_DEBUG=on' from URL (Issue 148) + +27.07.2013 +- enhancement allow access to properties of registered opjects for Smarty2 BC (forum topic 24344) + +26.07.2013 +- bugfix template inheritance nesting problem (forum topic 24387) + +15.7.2013 +- update code generated by PSR-2 standards fixer which introduced PHP 5.4 incompatibilities of 14.7.2013 + +14.7.2013 +- bugfix increase of internal maximum parser stacksize to allow more complex tag code {forum topic 24426} +- update for PHP 5.4 compatibility +- reformat source to PSR-2 standard + +12.7.2013 +- bugfix Do not remove '//' from file path at normalization (Issue 142) + +2.7.2013 +- bugfix trimwhitespace would replace captured items in wrong order (forum topic 24387) + +## Smarty-3.1.14 - +27.06.2013 +- bugfix removed PHP 5.5 deprecated preg_replace /e option in modifier capitalize (forum topic 24389) + +17.06.2013 +- fixed spelling in sources and documentation (from smarty-developers forum Veres Lajos) +- enhancement added constant SMARTY::CLEAR_EXPIRED for the change of 26.05.2013 (forum topic 24310) +- bugfix added smarty_security.php to composer.json (Issue 135) + +26.05.2013 +- enhancement an expire_time of -1 in clearCache() and clearAllCache() will delete outdated cache files + by their individual cache_lifetime used at creation (forum topic 24310) + +21.05.2013 +- bugfix modifier strip_tags:true was compiled into wrong code (Forum Topic 24287) +- bugfix /n after ?> in Smarty.class.php did start output buffering (Issue 138) + +25.04.2013 +- bugfix escape and wordrap modifier could be compiled into wrong code when used in {nocache}{/nocache} + section but caching is disabled (Forum Topic 24260) + +05.04.2013 +- bugfix post filter must not run when compiling inheritance child blocks (Forum Topic 24094) +- bugfix after the fix for Issue #130 compiler exceptions got double escaped (Forum Topic 24199) + +28.02.2013 +- bugfix nocache blocks could be lost when using CACHING_LIFETIME_SAVED (Issue #133) +- bugfix Compile ID gets nulled when compiling child blocks (Issue #134) + + +24.01.2013 +- bugfix wrong tag type in smarty_internal_templatecompilerbase.php could cause wrong plugin search order (Forum Topic 24028) + +## Smarty-3.1.13 - +13.01.2013 +- enhancement allow to disable exception message escaping by SmartyException::$escape = false; (Issue #130) + +09.01.2013 +- bugfix compilation did fail when a prefilter did modify an {extends} tag c +- bugfix template inheritance could fail if nested {block} tags in childs did contain {$smarty.block.child} (Issue #127) +- bugfix template inheritance could fail if {block} tags in childs did have similar name as used plugins (Issue #128) +- added abstract method declaration doCompile() in Smarty_Internal_TemplateCompilerBase (Forum Topic 23969) + +06.01.2013 +- Allow '://' URL syntax in template names of stream resources (Issue #129) + +27.11.2012 +- bugfix wrong variable usage in smarty_internal_utility.php (Issue #125) + +26.11.2012 +- bugfix global variable assigned within template function are not seen after template function exit (Forum Topic 23800) + +24.11.2012 +- made SmartyBC loadable via composer (Issue #124) + +20.11.2012 +- bugfix assignGlobal() called from plugins did not work (Forum Topic 23771) + +13.11.2012 +- adding attribute "strict" to html_options, html_checkboxes, html_radios to only print disabled/readonly attributes if their values are true or "disabled"/"readonly" (Issue #120) + +01.11.2012 +- bugfix muteExcpetedErrors() would screw up for non-readable paths (Issue #118) + +## Smarty-3.1.12 - +14.09.2012 +- bugfix template inheritance failed to compile with delimiters {/ and /} (Forum Topic 23008) + +11.09.2012 +- bugfix escape Smarty exception messages to avoid possible script execution + +10.09.2012 +- bugfix tag option flags and shorttag attributes did not work when rdel started with '=' (Forum Topic 22979) + +31.08.2012 +- bugfix resolving relative paths broke in some circumstances (Issue #114) + +22.08.2012 +- bugfix test MBString availability through mb_split, as it could've been compiled without regex support (--enable-mbregex). + Either we get MBstring's full package, or we pretend it's not there at all. + +21.08.2012 +- bugfix $auto_literal = false did not work with { block} tags in child templates + (problem was reintroduced after fix in 3.1.7)(Forum Topic 20581) + +17.08.2012 +- bugfix compiled code of nocache sections could contain wrong escaping (Forum Topic 22810) + +15.08.2012 +- bugfix template inheritance did produce wrong code if subtemplates with {block} was + included several times (from smarty-developers forum) + +14.08.2012 +- bugfix PHP5.2 compatibility compromised by SplFileInfo::getBasename() (Issue 110) + +01.08.2012 +- bugfix avoid PHP error on $smarty->configLoad(...) with invalid section specification (Forum Topic 22608) + +30.07.2012 +-bugfix {assign} in a nocache section should not overwrite existing variable values + during compilation (issue 109) + +28.07.2012 +- bugfix array access of config variables did not work (Forum Topic 22527) + +19.07.2012 +- bugfix the default plugin handler did create wrong compiled code for static class methods + from external script files (issue 108) + +## Smarty-3.1.11 - +30.06.2012 +- bugfix {block.. hide} did not work as nested child (Forum Topic 22216) + +25.06.2012 +- bugfix the default plugin handler did not allow static class methods for modifier (issue 85) + +24.06.2012 +- bugfix escape modifier support for PHP < 5.2.3 (Forum Topic 21176) + +11.06.2012 +- bugfix the patch for Topic 21856 did break tabs between tag attributes (Forum Topic 22124) + +## Smarty-3.1.10 - +09.06.2012 +- bugfix the compiler did ignore registered compiler plugins for closing tags (Forum Topic 22094) +- bugfix the patch for Topic 21856 did break multiline tags (Forum Topic 22124) + +## Smarty-3.1.9 - +07.06.2012 +- bugfix fetch() and display() with relative paths (Issue 104) +- bugfix treat "0000-00-00" as 0 in modifier.date_format (Issue 103) + +24.05.2012 +- bugfix Smarty_Internal_Write_File::writeFile() could cause race-conditions on linux systems (Issue 101) +- bugfix attribute parameter names of plugins may now contain also "-" and ":" (Forum Topic 21856) +- bugfix add compile_id to cache key of of source (Issue 97) + +22.05.2012 +- bugfix recursive {include} within {section} did fail (Smarty developer group) + +12.05.2012 +- bugfix {html_options} did not properly escape values (Issue 98) + +03.05.2012 +- bugfix make HTTP protocall version variable (issue 96) + +02.05.2012 +- bugfix {nocache}{block}{plugin}... did produce wrong compiled code when caching is disabled (Forum Topic 21572, issue 95) + +12.04.2012 +- bugfix Smarty did eat the linebreak after the <?xml...?> closing tag (Issue 93) +- bugfix concurrent cache updates could create a warning (Forum Topic 21403) + +08.04.2012 +- bugfix "\\" was not escaped correctly when generating nocache code (Forum Topic 21364) + +30.03.2012 +- bugfix template inheritance did not throw exception when a parent template was deleted (issue 90) + +27.03.2012 +- bugfix prefilter did run multiple times on inline subtemplates compiled into several main templates (Forum Topic 21325) +- bugfix implement Smarty2's behaviour of variables assigned by reference in SmartyBC. {assign} will affect all references. + (issue 88) + +21.03.2012 +- bugfix compileAllTemplates() and compileAllConfig() did not return the number of compiled files (Forum Topic 21286) + +13.03.2012 +- correction of yesterdays bugfix (Forum Topic 21175 and 21182) + +12.03.2012 +- bugfix a double quoted string of "$foo" did not compile into PHP "$foo" (Forum Topic 21175) +- bugfix template inheritance did set $merge_compiled_includes globally true + +03.03.2012 +- optimization of compiling speed when same modifier was used several times + +02.03.2012 +- enhancement the default plugin handler can now also resolve undefined modifier (Smarty::PLUGIN_MODIFIER) + (Issue 85) + +## Smarty-3.1.8 - +19.02.2012 +- bugfix {include} could result in a fatal error if used in appended or prepended nested {block} tags + (reported by mh and Issue 83) +- enhancement added Smarty special variable $smarty.template_object to return the current template object (Forum Topic 20289) + + +07.02.2012 +- bugfix increase entropy of internal function names in compiled and cached template files (Forum Topic 20996) +- enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000) + +06.02.2012 +- improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980) +- bugfix fetch('extends:foo.tpl') always yielded $source->exists == true (Forum Topic 20980) +- added modifier unescape:"url", fix (Forum Topic 20980) +- improvement replaced some calls of preg_replace with str_replace (Issue 73) + +30.01.2012 +- bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated + +27.01.2012 +- bugfix Smarty did not a template name of "0" (Forum Topic 20895) + +20.01.2012 +- bugfix typo in Smarty_Internal_Get_IncludePath did cause runtime overhead (Issue 74) +- improvment remove unneeded assigments (Issue 75 and 76) +- fixed typo in template parser +- bugfix output filter must not run before writing cache when template does contain nocache code (Issue 71) + +02.01.2012 +- bugfix {block foo nocache} did not load plugins within child {block} in nocache mode (Forum Topic 20753) + +29.12.2011 +- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility (Forum Topic 20724) +- bugfix embedded quotes in single quoted strings did not compile correctly in {nocache} sections (Forum Topic 20730) + +28.12.2011 +- bugfix Smarty's internal header code must be excluded from postfilters (issue 71) + +22.12.2011 +- bugfix the new lexer of 17.12.2011 did fail if mbstring.func_overload != 0 (issue 70) (Forum Topic 20680) +- bugfix template inheritace did fail if mbstring.func_overload != 0 (issue 70) (Forum Topic 20680) + +20.12.2011 +- bugfix template inheritance: {$smarty.block.child} in nested child {block} tags did not return + content after {$smarty.block.child} (Forum Topic 20564) + +## Smarty-3.1.7 - +18.12.2011 +- bugfix strings ending with " in multiline strings of config files failed to compile (issue #67) +- added chaining to Smarty_Internal_Templatebase +- changed unloadFilter() to not return a boolean in favor of chaining and API conformity +- bugfix unregisterObject() raised notice when object to unregister did not exist +- changed internals to use Smarty::$_MBSTRING ($_CHARSET, $_DATE_FORMAT) for better unit testing +- added Smarty::$_UTF8_MODIFIER for proper PCRE charset handling (Forum Topic 20452) +- added Smarty_Security::isTrustedUri() and Smarty_Security::$trusted_uri to validate + remote resource calls through {fetch} and {html_image} (Forum Topic 20627) + +17.12.2011 +- improvement of compiling speed by new handling of plain text blocks in the lexer/parser (issue #68) + +16.12.2011 +- bugfix the source exits flag and timestamp was not setup when template was in php include path (issue #69) + +9.12.2011 +- bugfix {capture} tags around recursive {include} calls did throw exception (Forum Topic 20549) +- bugfix $auto_literal = false did not work with { block} tags in child templates (Forum Topic 20581) +- bugfix template inheritance: do not include code of {include} in overloaded {block} into compiled + parent template (Issue #66} +- bugfix template inheritance: {$smarty.block.child} in nested child {block} tags did not return expected + result (Forum Topic 20564) + +## Smarty-3.1.6 - +30.11.2011 +- bugfix is_cache() for individual cached subtemplates with $smarty->caching = CACHING_OFF did produce + an exception (Forum Topic 20531) + +29.11.2011 +- bugfix added exception if the default plugin handler did return a not static callback (Forum Topic 20512) + +25.11.2011 +- bugfix {html_select_date} and {html_slecet_time} did not default to current time if "time" was not specified + since r4432 (issue 60) + +24.11.2011 +- bugfix a subtemplate later used as main template did use old variable values + +21.11.2011 +- bugfix cache file could include unneeded modifier plugins under certain condition + +18.11.2011 +- bugfix declare all directory properties private to map direct access to getter/setter also on extended Smarty class + +16.11.2011 +- bugfix Smarty_Resource::load() did not always return a proper resource handler (Forum Topic 20414) +- added escape argument to html_checkboxes and html_radios (Forum Topic 20425) + +## Smarty-3.1.5 - +14.11.2011 +- bugfix allow space between function name and open bracket (forum topic 20375) + +09.11.2011 +- bugfix different behaviour of uniqid() on cygwin. See https://bugs.php.net/bug.php?id=34908 + (forum topic 20343) + +01.11.2011 +- bugfix {if} and {while} tags without condition did not throw a SmartyCompilerException (Issue #57) +- bugfix multiline strings in config files could fail on longer strings (reopened Issue #55) + +22.10.2011 +- bugfix smarty_mb_from_unicode() would not decode unicode-points properly +- bugfix use catch Exception instead UnexpectedValueException in + clearCompiledTemplate to be PHP 5.2 compatible + +21.10.2011 +- bugfix apostrophe in plugins_dir path name failed (forum topic 20199) +- improvement sha1() for array keys longer than 150 characters +- add Smarty::$allow_ambiguous_resources to activate unique resource handling (Forum Topic 20128) + +20.10.2011 +- @silenced unlink() in Smarty_Internal_Write_File since debuggers go haywire without it. +- bugfix Smarty::clearCompiledTemplate() threw an Exception if $cache_id was not present in $compile_dir when $use_sub_dirs = true. +- bugfix {html_select_date} and {html_select_time} did not properly handle empty time arguments (Forum Topic 20190) +- improvement removed unnecessary sha1() + +19.10.2011 +- revert PHP4 constructor message +- fixed PHP4 constructor message + +## Smarty-3.1.4 - +19.10.2011 +- added exception when using PHP4 style constructor + +16.10.2011 +- bugfix testInstall() did not propery check cache_dir and compile_dir + +15.10.2011 +- bugfix Smarty_Resource and Smarty_CacheResource runtime caching (Forum Post 75264) + +14.10.2011 +- bugfix unique_resource did not properly apply to compiled resources (Forum Topic 20128) +- add locking to custom resources (Forum Post 75252) +- add Smarty_Internal_Template::clearCache() to accompany isCached() fetch() etc. + +13.10.2011 +- add caching for config files in Smarty_Resource +- bugfix disable of caching after isCached() call did not work (Forum Topic 20131) +- add concept unique_resource to combat potentially ambiguous template_resource values when custom resource handlers are used (Forum Topic 20128) +- bugfix multiline strings in config files could fail on longer strings (Issue #55) + +11.10.2011 +- add runtime checks for not matching {capture}/{/capture} calls (Forum Topic 20120) + +10.10.2011 +- bugfix variable name typo in {html_options} and {html_checkboxes} (Issue #54) +- bugfix <?xml> tag did create wrong output when caching enabled and the tag was in included subtemplate +- bugfix Smarty_CacheResource_mysql example was missing strtotime() calls + +## Smarty-3.1.3 - +07.10.2011 +- improvement removed html comments from {mailto} (Forum Topic 20092) +- bugfix testInstall() would not show path to internal plugins_dir (Forum Post 74627) +- improvement testInstall() now showing resolved paths and checking the include_path if necessary +- bugfix html_options plugin did not handle object values properly (Issue #49, Forum Topic 20049) +- improvement html_checkboxes and html_radios to accept null- and object values, and label_ids attribute +- improvement removed some unnecessary count()s +- bugfix parent pointer was not set when fetch() for other template was called on template object + +06.10.2011 +- bugfix switch lexer internals depending on mbstring.func_overload +- bugfix start_year and end_year of {html_select_date} did not use current year as offset base (Issue #53) + +05.10.2011 +- bugfix of problem introduced with r4342 by replacing strlen() with isset() +- add environment configuration issue with mbstring.func_overload Smarty cannot compensate for (Issue #45) +- bugfix nofilter tag option did not disable default modifier +- bugfix html_options plugin did not handle null- and object values properly (Issue #49, Forum Topic 20049) + +04.10.2011 +- bugfix assign() in plugins called in subtemplates did change value also in parent template +- bugfix of problem introduced with r4342 on math plugin +- bugfix output filter should not run on individually cached subtemplates +- add unloadFilter() method +- bugfix has_nocache_code flag was not reset before compilation + +## Smarty-3.1.2 - +03.10.2011 +- improvement add internal $joined_template_dir property instead computing it on the fly several times + +01.10.2011 +- improvement replaced most in_array() calls by more efficient isset() on array_flip()ed haystacks +- improvement replaced some strlen($foo) > 3 calls by isset($foo[3]) +- improvement Smarty_Internal_Utility::clearCompiledTemplate() removed redundant strlen()s + +29.09.2011 +- improvement of Smarty_Internal_Config::loadConfigVars() dropped the in_array for index look up + +28.09.2011 +- bugfix on template functions called nocache calling other template functions + +27.09.2011 +- bugfix possible warning "attempt to modify property of non-object" in {section} (issue #34) +- added chaining to Smarty_Internal_Data so $smarty->assign('a',1)->assign('b',2); is possible now +- bugfix remove race condition when a custom resource did change timestamp during compilation +- bugfix variable property did not work on objects variable in template +- bugfix smarty_make_timestamp() failed to process DateTime objects properly +- bugfix wrong resource could be used on compile check of custom resource + +26.09.2011 +- bugfix repeated calls to same subtemplate did not make use of cached template object + +24.09.2011 +- removed internal muteExpectedErrors() calls in favor of having the implementor call this once from his application +- optimized muteExpectedErrors() to pass errors to the latest registered error handler, if appliccable +- added compile_dir and cache_dir to list of muted directories +- improvment better error message for undefined templates at {include} + +23.09.2011 +- remove unused properties +- optimization use real function instead anonymous function for preg_replace_callback +- bugfix a relative {include} in child template blocks failed +- bugfix direct setting of $template_dir, $config_dir, $plugins_dir in __construct() of an + extended Smarty class created problems +- bugfix error muting was not implemented for cache locking + +## Smarty 3.1.1 - +22.09.2011 +- bugfix {foreachelse} does fail if {section} was nested inside {foreach} +- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true + +21.09.2011 +- bugfix look for mixed case plugin file names as in 3.0 if not found try all lowercase +- added $error_muting to suppress error messages even for badly implemented error_handlers +- optimized autoloader +- reverted ./ and ../ handling in fetch() and display() - they're allowed again + +20.09.2011 +- bugfix removed debug echo output while compiling template inheritance +- bugfix relative paths in $template_dir broke relative path resolving in {include "../foo.tpl"} +- bugfix {include} did not work inside nested {block} tags +- bugfix {assign} with scope root and global did not work in all cases + +19.09.2011 +- bugfix regression in Smarty_CacheReource_KeyValueStore introduced by r4261 +- bugfix output filter shall not run on included subtemplates + +18.09.2011 +- bugfix template caching did not care about file.tpl in different template_dir +- bugfix {include $file} was broken when merge_compiled_incluges = true +- bugfix {include} was broken when merge_compiled_incluges = true and same indluded template + was used in different main templates in one compilation run +- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar} +- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true + +17.09.2011 +- bugfix lock_id for file resource would create invalid filepath +- bugfix resource caching did not care about file.tpl in different template_dir + +## Smarty 3.1.0 - +15/09/2011 +- optimization of {foreach}; call internal _count() method only when "total" or "last" {foreach} properties are used + +11/09/2011 +- added unregisterObject() method + +06/09/2011 +- bugfix isset() did not work in templates on config variables + +03/09/2011 +- bugfix createTemplate() must default to cache_id and compile_id of Smarty object +- bugfix Smarty_CacheResource_KeyValueStore must include $source->uid in cache filepath to keep templates with same + name but different folders separated +- added cacheresource.apc.php example in demo folder + +02/09/2011 +- bugfix cache lock file must use absolute filepath + +01/09/2011 +- update of cache locking + +30/08/2011 +- added locking mechanism to CacheResource API (implemented with File and KeyValueStores) + +28/08/2011 +- bugfix clearCompileTemplate() did not work for specific template subfolder or resource + +27/08/2011 +- bugfix {$foo|bar+1} did create syntax error + +26/08/2011 +- bugfix when generating nocache code which contains double \ +- bugfix handle race condition if cache file was deleted between filemtime and include + +17/08/2011 +- bugfix CacheResource_Custom bad internal fetch() call + +15/08/2011 +- bugfix CacheResource would load content twice for KeyValueStore and Custom handlers + +06/08/2011 +- bugfix {include} with scope attribute could execute in wrong scope +- optimization of compile_check processing + +03/08/2011 +- allow comment tags to comment {block} tags out in child templates + +26/07/2011 +- bugfix experimental getTags() method did not work + +24/07/2011 +- sure opened output buffers are closed on exception +- bugfix {foreach} did not work on IteratorAggregate + +22/07/2011 +- clear internal caches on clearAllCache(), clearCache(), clearCompiledTemplate() + +21/07/2011 +- bugfix value changes of variable values assigned to Smarty object could not be seen on repeated $smarty->fetch() calls + +17/07/2011 +- bugfix {$smarty.block.child} did drop a notice at undefined child + +15/07/2011 +- bugfix individual cache_lifetime of {include} did not work correctly inside {block} tags +- added caches for Smarty_Internal_TemplateSource and Smarty_Internal_TemplateCompiled to reduce I/O for multiple cache_id rendering + +14/07/2011 +- made Smarty::loadPlugin() respect the include_path if required + +13/07/2011 +- optimized internal file write functionality +- bugfix PHP did eat line break on nocache sections +- fixed typo of Smarty_Security properties $allowed_modifiers and $disabled_modifiers + +06/07/2011 +- bugfix variable modifier must run befor gereral filtering/escaping + +04/07/2011 +- bugfix use (?P<name>) syntax at preg_match as some pcre libraries failed on (?<name>) +- some performance improvement when using generic getter/setter on template objects + +30/06/2011 +- bugfix generic getter/setter of Smarty properties used on template objects did throw exception +- removed is_dir and is_readable checks from directory setters for better performance + +28/06/2011 +- added back support of php template resource as undocumented feature +- bugfix automatic recompilation on version change could drop undefined index notice on old 3.0 cache and compiled files +- update of README_3_1_DEV.txt and moved into the distribution folder +- improvement show first characters of eval and string templates instead sha1 Uid in debug window + +## Smarty 3.1-RC1 - +25/06/2011 +- revert change of 17/06/2011. $_smarty varibale removed. call loadPlugin() from inside plugin code if required +- code cleanup, remove no longer used properties and methods +- update of PHPdoc comments + +23/06/2011 +- bugfix {html_select_date} would not respect current time zone + +19/06/2011 +- added $errors argument to testInstall() functions to suppress output. +- added plugin-file checks to testInstall() + +18/06/2011 +- bugfix mixed use of same subtemplate inline and not inline in same script could cause a warning during compilation + +17/06/2011 +- bugfix/change use $_smarty->loadPlugin() when loading nested depending plugins via loadPlugin +- bugfix {include ... inline} within {block}...{/block} did fail + +16/06/2011 +- bugfix do not overwrite '$smarty' template variable when {include ... scope=parent} is called +- bugfix complete empty inline subtemplates did fail + +15/06/2011 +- bugfix template variables where not accessable within inline subtemplates + +12/06/2011 +- bugfix removed unneeded merging of template variable when fetching includled subtemplates + +10/06/2011 +- made protected properties $template_dir, $plugins_dir, $cache_dir, $compile_dir, $config_dir accessible via magic methods + +09/06/2011 +- fix smarty security_policy issue in plugins {html_image} and {fetch} + +05/06/2011 +- update of SMARTY_VERSION +- bugfix made getTags() working again + +04/06/2011 +- allow extends resource in file attribute of {extends} tag + +03/06/2011 +- added {setfilter} tag to set filters for variable output +- added escape_html property to control autoescaping of variable output + +27/05/2011 +- added allowed/disabled tags and modifiers in security for sandboxing + +23/05/2011 +- added base64: and urlencode: arguments to eval and string resource types + +22/05/2011 +- made time-attribute of {html_select_date} and {html_select_time} accept arrays as defined by attributes prefix and field_array + +13/05/2011 +- remove setOption / getOption calls from SamrtyBC class + +02/05/2011 +- removed experimental setOption() getOption() methods +- output returned content also on opening tag calls of block plugins +- rewrite of default plugin handler +- compile code of variable filters for better performance + +20/04/2011 +- allow {php} {include_php} tags and PHP_ALLOW handling only with the SmartyBC class +- removed support of php template resource + +20/04/2011 +- added extendsall resource example +- optimization of template variable access +- optimization of subtemplate handling {include} +- optimization of template class + +01/04/2011 +- bugfix quote handling in capitalize modifier + +28/03/2011 +- bugfix stripslashes() requried when using PCRE e-modifier + +04/03/2011 +- upgrade to new PHP_LexerGenerator version 0.4.0 for better performance + +27/02/2011 +- ignore .svn folders when clearing cache and compiled files +- string resources do not need a modify check + +26/02/2011 +- replaced smarty_internal_wrapper by SmartyBC class +- load utility functions as static methods instead through __call() +- bugfix in extends resource when subresources are used +- optimization of modify checks + +25/02/2011 +- use $smarty->error_unassigned to control NOTICE handling on unassigned variables + +21/02/2011 +- added new new compile_check mode COMPILECHECK_CACHEMISS +- corrected new cloning behaviour of createTemplate() +- do no longer store the compiler object as property in the compile_tag classes to avoid possible memory leaks + during compilation + +19/02/2011 +- optimizations on merge_compiled_includes handling +- a couple of optimizations and bugfixes related to new resource structure + +17/02/2011 +- changed ./ and ../ behaviour + +14/02/2011 +- added {block ... hide} option to suppress block if no child is defined + +13/02/2011 +- update handling of recursive subtemplate calls +- bugfix replace $smarty->triggerError() by exception in smarty_internal_resource_extends.php + +12/02/2011 +- new class Smarty_Internal_TemplateBase with shared methods of Smarty and Template objects +- optimizations of template processing +- made register... methods permanet +- code for default_plugin_handler +- add automatic recompilation at version change + +04/02/2011 +- change in Smarty_CacheResource_Custom +- bugfix cache_lifetime did not compile correctly at {include} after last update +- moved isCached processing into CacheResource class +- bugfix new CacheResource API did not work with disabled compile_check + +03/02/2011 +- handle template content as function to improve speed on multiple calls of same subtemplate and isCached()/display() calls +- bugfixes and improvents in the new resource API +- optimizations of template class code + +25/01/2011 +- optimized function html_select_time + +22/01/2011 +- added Smarty::$use_include_path configuration directive for Resource API + +21/01/2011 +- optimized function html_select_date + +19/01/2011 +- optimized outputfilter trimwhitespace + +18/01/2011 +- bugfix Config to use Smarty_Resource to fetch sources +- optimized Smarty_Security's isTrustedDir() and isTrustedPHPDir() + +17/01/2011 +- bugfix HTTP headers for CGI SAPIs + +16/01/2011 +- optimized internals of Smarty_Resource and Smarty_CacheResource + +14/01/2011 +- added modifiercompiler escape to improve performance of escaping html, htmlall, url, urlpathinfo, quotes, javascript +- added support to choose template_dir to load from: [index]filename.tpl + +12/01/2011 +- added unencode modifier to revert results of encode modifier +- added to_charset and from_charset modifier for character encoding + +11/01/2011 +- added SMARTY_MBSTRING to generalize MBString detection +- added argument $lc_rest to modifier.capitalize to lower-case anything but the first character of a word +- changed strip modifier to consider unicode white-space, too +- changed wordwrap modifier to accept UTF-8 strings +- changed count_sentences modifier to consider unicode characters and treat sequences delimited by ? and ! as sentences, too +- added argument $double_encode to modifier.escape (applies to html and htmlall only) +- changed escape modifier to be UTF-8 compliant +- changed textformat block to be UTF-8 compliant +- optimized performance of mailto function +- fixed spacify modifier so characters are not prepended and appended, made it unicode compatible +- fixed truncate modifier to properly use mb_string if possible +- removed UTF-8 frenzy from count_characters modifier +- fixed count_words modifier to treat "hello-world" as a single word like str_count_words() does +- removed UTF-8 frenzy from upper modifier +- removed UTF-8 frenzy from lower modifier + +01/01/2011 +- optimize smarty_modified_escape for hex, hexentity, decentity. + +28/12/2010 +- changed $tpl_vars, $config_vars and $parent to belong to Smarty_Internal_Data +- added Smarty::registerCacheResource() for dynamic cache resource object registration + +27/12/2010 +- added Smarty_CacheResource API and refactored existing cache resources accordingly +- added Smarty_CacheResource_Custom and Smarty_CacheResource_Mysql + +26/12/2010 +- added Smarty_Resource API and refactored existing resources accordingly +- added Smarty_Resource_Custom and Smarty_Resource_Mysql +- bugfix Smarty::createTemplate() to return properly cloned template instances + +24/12/2010 +- optimize smarty_function_escape_special_chars() for PHP >= 5.2.3 + +## SVN 3.0 trunk - +14/05/2011 +- bugfix error handling at stream resources + +13/05/2011 +- bugfix condition starting with "-" did fail at {if} and {while} tags + +22/04/2011 +- bugfix allow only fixed string as file attribute at {extends} tag + +01/04/2011 +- bugfix do not run filters and default modifier when displaying the debug template +- bugfix of embedded double quotes within multi line strings (""") + +29/03/2011 +- bugfix on error message in smarty_internal_compile_block.php +- bugfix mb handling in strip modifier +- bugfix for Smarty2 style registered compiler function on unnamed attribute passing like {tag $foo $bar} + +17/03/2011 +- bugfix on default {function} parameters when {function} was used in nocache sections +- bugfix on compiler object destruction. compiler_object property was by mistake unset. + +09/03/2011 +-bugfix a variable filter should run before modifiers on an output tag (see change of 23/07/2010) + +08/03/2011 +- bugfix loading config file without section should load only defaults + +03/03/2011 +- bugfix "smarty" template variable was not recreated when cached templated had expired +- bugfix internal rendered_content must be cleared after subtemplate was included + +01/03/2011 +- bugfix replace modifier did not work in 3.0.7 on systems without multibyte support +- bugfix {$smarty.template} could return in 3.0.7 parent template name instead of + child name when it needed to compile + +25/02/2011 +- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar} + +24/02/2011 +- bugfix $smarty->clearCache('some.tpl') did by mistake cache the template object + +18/02/2011 +- bugfix removed possible race condition when isCached() was called for an individually cached subtemplate +- bugfix force default debug.tpl to be loaded by the file resource + +17/02/2011 +-improvement not to delete files starting with '.' from cache and template_c folders on clearCompiledTemplate() and clearCache() + +16/02/2011 +-fixed typo in exception message of Smarty_Internal_Template +-improvement allow leading spaces on } tag closing if auto_literal is enabled + +13/02/2011 +- bufix replace $smarty->triggerError() by exception +- removed obsolete {popup_init..} plugin from demo templates +- bugfix replace $smarty->triggerError() by exception in smarty_internal_resource_extends.php + +## Smarty 3.0.7 - +09/02/2011 +- patched vulnerability when using {$smarty.template} + +01/02/2011 +- removed assert() from config and template parser + +31/01/2011 +- bugfix the lexer/parser did fail on special characters like VT + +16/01/2011 +-bugfix of ArrayAccess object handling in internal _count() method +-bugfix of Iterator object handling in internal _count() method + +14/01/2011 +-bugfix removed memory leak while processing compileAllTemplates + +12/01/2011 +- bugfix in {if} and {while} tag compiler when using assignments as condition and nocache mode + +10/01/2011 +- bugfix when using {$smarty.block.child} and name of {block} was in double quoted string +- bugfix updateParentVariables() was called twice when leaving {include} processing + +- bugfix mb_str_replace in replace and escape modifiers work with utf8 + +31/12/2010 +- bugfix dynamic configuration of $debugging_crtl did not work +- bugfix default value of $config_read_hidden changed to false +- bugfix format of attribute array on compiler plugins +- bugfix getTemplateVars() could return value from wrong scope + +28/12/2010 +- bugfix multiple {append} tags failed to compile. + +22/12/2010 +- update do not clone the Smarty object an internal createTemplate() calls to increase performance + +21/12/2010 +- update html_options to support class and id attrs + +17/12/2010 +- bugfix added missing support of $cache_attrs for registered plugins + +15/12/2010 +- bugfix assignment as condition in {while} did drop an E_NOTICE + +14/12/2010 +- bugfix when passing an array as default parameter at {function} tag + +13/12/2010 +- bugfix {$smarty.template} in child template did not return right content +- bugfix Smarty3 did not search the PHP include_path for template files + +## Smarty 3.0.6 - + +12/12/2010 +- bugfix fixed typo regarding yesterdays change to allow streamWrapper + +11/12/2010 +- bugfix nested block tags in template inheritance child templates did not work correctly +- bugfix {$smarty.current_dir} in child template did not point to dir of child template +- bugfix changed code when writing temporary compiled files to allow stream_wrapper + +06/12/2010 +- bugfix getTemplateVars() should return 'null' instead dropping E_NOTICE on an unassigned variable + +05/12/2010 +- bugfix missing declaration of $smarty in Smarty class +- bugfix empty($foo) in {if} did drop a notice when $foo was not assigned + +01/12/2010 +- improvement of {debug} tag output + +27/11/2010 +-change run output filter before cache file is written. (same as in Smarty2) + +24/11/2011 +-bugfix on parser at !$foo|modifier +-change parser logic when assignments used as condition in {if] and {while} to allow assign to array element + +23/11/2011 +-bugfix allow integer as attribute name in plugin calls +-change trimm whitespace from error message, removed long list of expected tokens + +22/11/2010 +- bugfix on template inheritance when an {extends} tag was inserted by a prefilter +- added error message for illegal variable file attributes at {extends...} tags + +## Smarty 3.0.5 - + + +19/11/2010 +- bugfix on block plugins with modifiers + +18/11/2010 +- change on handling of unassigned template variable -- default will drop E_NOTICE +- bugfix on Smarty2 wrapper load_filter() did not work + +17/11/2010 +- bugfix on {call} with variable function name +- bugfix on {block} if name did contain '-' +- bugfix in function.fetch.php , referece to undefined $smarty + +16/11/2010 +- bugfix whitespace in front of "<?php" in smarty_internal_compile_private_block_plugin.php +- bugfix {$smarty.now} did compile incorrectly +- bugfix on reset(),end(),next(),prev(),current() within templates +- bugfix on default parameter for {function} + +15/11/2010 +- bugfix when using {$smarty.session} as object +- bugfix scoping problem on $smarty object passed to filters +- bugfix captured content could not be accessed globally +- bugfix Smarty2 wrapper functions could not be call from within plugins + +## Smarty 3.0.4 - + +14/11/2010 +- bugfix isset() did not allow multiple parameter +- improvment of some error messages +- bugfix html_image did use removed property $request_use_auto_globals +- small performace patch in Smarty class + +13/11/2010 +- bugfix overloading problem when $smarty->fetch()/display() have been used in plugins + (introduced with 3.0.2) +- code cleanup + +## Smarty 3.0.3 - + +13/11/2010 +- bugfix on {debug} +- reverted location of loadPlugin() to Smarty class +- fixed comments in plugins +- fixed internal_config (removed unwanted code line) +- improvement remove last linebreak from {function} definition + +## Smarty 3.0.2 - + +12/11/2010 +- reactivated $error_reporting property handling +- fixed typo in compile_continue +- fixed security in {fetch} plugin +- changed back plugin parameters to two. second is template object + with transparent access to Smarty object +- fixed {config_load} scoping form compile time to run time + +## Smarty 3.0.0 - + + + +11/11/2010 +- major update including some API changes + +10/11/2010 +- observe compile_id also for config files + +09/11/2010 +-bugfix on complex expressions as start value for {for} tag +request_use_auto_globals +04/11/2010 +- bugfix do not allow access of dynamic and private object members of assigned objects when + security is enabled. + +01/11/2010 +- bugfix related to E_NOTICE change. {if empty($foo)} did fail when $foo contained a string + +28/10/2010 +- bugfix on compiling modifiers within $smarty special vars like {$smarty.post.{$foo|lower}} + +27/10/2010 +- bugfix default parameter values did not work for template functions included with {include} + +25/10/2010 +- bugfix for E_NOTICE change, array elements did not work as modifier parameter + +20/10/2010 +- bugfix for the E_NOTICE change + +19/10/2010 +- change Smarty does no longer mask out E_NOTICE by default during template processing + +13/10/2010 +- bugfix removed ambiguity between ternary and stream variable in template syntax +- bugfix use caching properties of template instead of smarty object when compiling child {block} +- bugfix {*block}...{/block*} did throw an exception in template inheritance +- bugfix on template inheritance using nested eval or string resource in {extends} tags +- bugfix on output buffer handling in isCached() method + +## RC4 - + +01/10/2010 +- added {break} and {continue} tags for flow control of {foreach},{section},{for} and {while} loops +- change of 'string' resource. It's no longer evaluated and compiled files are now stored +- new 'eval' resource which evaluates a template without saving the compiled file +- change in isCached() method to allow multiple calls for the same template + +25/09/2010 +- bugfix on some compiling modifiers + +24/09/2010 +- bugfix merge_compiled_includes flag was not restored correctly in {block} tag + +22/09/2010 +- bugfix on default modifier + +18/09/2010 +- bugfix untility compileAllConfig() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS +- bugfix on templateExists() for extends resource + +17/09/2010 +- bugfix {$smarty.template} and {$smarty.current_dir} did not compile correctly within {block} tags +- bugfix corrected error message on missing template files in extends resource +- bugfix untility compileAllTemplates() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS + +16/09/2010 +- bugfix when a doublequoted modifier parameter did contain Smarty tags and ':' + +15/09/2010 +- bugfix resolving conflict between '<%'/'%>' as custom Smarty delimiter and ASP tags +- use ucfirst for resource name on internal resource class names + +12/09/2010 +- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results) + +10/09/2010 +- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results) + +08/09/2010 +- allow multiple template inheritance branches starting in subtemplates + +07/09/2010 +- bugfix {counter} and {cycle} plugin assigned result to smarty variable not in local(template) scope +- bugfix templates containing just {strip} {/strip} tags did produce an error + + +23/08/2010 +- fixed E_STRICT errors for uninitialized variables + +22/08/2010 +- added attribute cache_id to {include} tag + +13/08/2010 +- remove exception_handler property from Smarty class +- added Smarty's own exceptions SmartyException and SmartyCompilerException + +09/08/2010 +- bugfix on modifier with doublequoted strings as parameter containing embedded tags + +06/08/2010 +- bugfix when cascading some modifier like |strip|strip_tags modifier + +05/08/2010 +- added plugin type modifiercompiler to produce compiled modifier code +- changed standard modifier plugins to the compiling versions whenever possible +- bugfix in nocache sections {include} must not cache the subtemplate + +02/08/2010 +- bugfix strip did not work correctly in conjunction with comment lines + +31/07/2010 +- bugfix on nocache attribute at {assign} and {append} + +30/07/2010 +- bugfix passing scope attributes in doublequoted strings did not work at {include} {assign} and {append} + +25/07/2010 +- another bugfix of change from 23/07/2010 when compiling modifier + +24/07/2010 +- bugfix of change from 23/07/2010 when compiling modifier + +23/07/2010 +- changed execution order. A variable filter does now run before modifiers on output of variables +- bugfix use always { and } as delimiter for debug.tpl + + +22/07/2010 +- bugfix in templateExists() method + +20/07/2010 +- fixed handling of { strip } tag with whitespaces + +15/07/2010 +- bufix {$smarty.template} does include now the relative path, not just filename + +## RC3 - + + + + +15/07/2010 +- make the date_format modifier work also on objects of the DateTime class +- implementation of parsetrees in the parser to close security holes and remove unwanted empty line in HTML output + +08/07/2010 +- bugfix on assigning multidimensional arrays within templates +- corrected bugfix for truncate modifier + +07/07/2010 +- bugfix the truncate modifier needs to check if the string is utf-8 encoded or not +- bugfix support of script files relative to trusted_dir + +06/07/2010 +- create exception on recursive {extends} calls +- fixed reported line number at "unexpected closing tag " exception +- bugfix on escape:'mail' modifier +- drop exception if 'item' variable is equal 'from' variable in {foreach} tag + +01/07/2010 +- removed call_user_func_array calls for optimization of compiled code when using registered modifiers and plugins + +25/06/2010 +- bugfix escaping " when block tags are used within doublequoted strings + +24/06/2010 +- replace internal get_time() calls with standard PHP5 microtime(true) calls in Smarty_Internal_Utility +- added $smarty->register->templateClass() and $smarty->unregister->templateClass() methods for supporting static classes with namespace + + +22/06/2010 +- allow spaces between typecast and value in template syntax +- bugfix get correct count of traversables in {foreach} tag + +21/06/2010 +- removed use of PHP shortags SMARTY_PHP_PASSTHRU mode +- improved speed of cache->clear() when a compile_id was specified and use_sub_dirs is true + +20/06/2010 +- replace internal get_time() calls with standard PHP5 microtime(true) calls +- closed security hole when php.ini asp_tags = on + +18/06/2010 +- added __toString method to the Smarty_Variable class + + +14/06/2010 +- make handling of Smarty comments followed by newline BC to Smarty2 + + +## RC2 - + + + +13/06/2010 +- bugfix Smarty3 did not handle hexadecimals like 0x0F as numerical value +- bugifx Smarty3 did not accept numerical constants like .1 or 2. (without a leading or trailing digit) + +11/06/2010 +- bugfix the lexer did fail on larger {literal} ... {/literal} sections + +03/06/2010 +- bugfix on calling template functions like Smarty tags + +01/06/2010 +- bugfix on template functions used with template inheritance +- removed /* vim: set expandtab: */ comments +- bugfix of auto literal problem introduce with fix of 31/05/2010 + +31/05/2010 +- bugfix the parser did not allow some smarty variables with special name like $for, $if, $else and others. + +27/05/2010 +- bugfix on object chaining using variable properties +- make scope of {counter} and {cycle} tags again global as in Smarty2 + +26/05/2010 +- bugfix removed decrepated register_resource call in smarty_internal_template.php + +25/05/2010 +- rewrite of template function handling to improve speed +- bugfix on file dependency when merge_compiled_includes = true + + +16/05/2010 +- bugfix when passing parameter with numeric name like {foo 1='bar' 2='blar'} + +14/05/2010 +- bugfix compile new config files if compile_check and force_compile = false +- added variable static classes names to template syntax + +11/05/2010 +- bugfix make sure that the cache resource is loaded in all conditions when template methods getCached... are called externally +- reverted the change 0f 30/04/2010. With the exception of forward references template functions can be again called by a standard tag. + +10/05/2010 +- bugfix on {foreach} and {for} optimizations of 27/04/2010 + +09/05/2010 +- update of template and config file parser because of minor parser generator bugs + +07/05/2010 +- bugfix on {insert} + +06/05/2010 +- bugfix when merging compiled templates and objects are passed as parameter of the {include} tag + +05/05/2010 +- bugfix on {insert} to cache parameter +- implementation of $smarty->default_modifiers as in Smarty2 +- bugfix on getTemplateVars method + +01/05/2010 +- bugfix on handling of variable method names at object chaning + +30/04/2010 +- bugfix when comparing timestamps in sysplugins/smarty_internal_config.php +- work around of a substr_compare bug in older PHP5 versions +- bugfix on template inheritance for tag names starting with "block" +- bugfix on {function} tag with name attribute in doublequoted strings +- fix to make calling of template functions unambiguously by madatory usage of the {call} tag + +## RC1 - + +27/04/2010 +- change default of $debugging_ctrl to 'NONE' +- optimization of compiled code of {foreach} and {for} loops +- change of compiler for config variables + +27/04/2010 +- bugfix in $smarty->cache->clear() method. (do not cache template object) + + +17/04/2010 +- security fix in {math} plugin + + +12/04/2010 +- bugfix in smarty_internal_templatecompilerbase (overloaded property) +- removed parser restrictions in using true,false and null as ID + +07/04/2010 +- bugfix typo in smarty_internal_templatecompilerbase + +31/03/2010 +- compile locking by touching old compiled files to avoid concurrent compilations + +29/03/2010 +- bugfix allow array definitions as modifier parameter +- bugfix observe compile_check property when loading config files +- added the template object as third filter parameter + +25/03/2010 +- change of utility->compileAllTemplates() log messages +- bugfix on nocache code in {function} tags +- new method utility->compileAllConfig() to compile all config files + +24/03/2010 +- bugfix on register->modifier() error messages + +23/03/2010 +- bugfix on template inheritance when calling multiple child/parent relations +- bugfix on caching mode SMARTY_CACHING_LIFETIME_SAVED and cache_lifetime = 0 + +22/03/2010 +- bugfix make directory separator operating system independend in compileAllTemplates() + +21/03/2010 +- removed unused code in compileAllTemplates() + +19/03/2010 +- bugfix for multiple {/block} tags on same line + +17/03/2010 +- bugfix make $smarty->cache->clear() function independent from caching status + +16/03/2010 +- bugfix on assign attribute at registered template objects +- make handling of modifiers on expression BC to Smarty2 + +15/03/2010 +- bugfix on block plugin calls + +11/03/2010 +- changed parsing of <?php and ?> back to Smarty2 behaviour + +08/03/2010 +- bugfix on uninitialized properties in smarty_internal_template +- bugfix on $smarty->disableSecurity() + +04/03/2010 +- bugfix allow uppercase chars in registered resource names +- bugfix on accessing chained objects of static classes + +01/03/2010 +- bugfix on nocache code in {block} tags if child template was included by {include} + +27/02/2010 +- allow block tags inside double quoted string + +26/02/2010 +- cache modified check implemented +- support of access to a class constant from an object (since PHP 5.3) + +24/02/2010 +- bugfix on expressions in doublequoted string enclosed in backticks +- added security property $static_classes for static class security + +18/02/2010 +- bugfix on parsing Smarty tags inside <?xml ... ?> +- bugfix on truncate modifier + +17/02/2010 +- removed restriction that modifiers did require surrounding parenthesis in some cases +- added {$smarty.block.child} special variable for template inheritance + +16/02/2010 +- bugfix on <?xml ... ?> tags for all php_handling modes +- bugfix on parameter of variablefilter.htmlspecialchars.php plugin + +14/02/2010 +- added missing _plugins property in smarty.class.php +- bugfix $smarty.const... inside doublequoted strings and backticks was compiled into wrong PHP code + +12/02/2010 +- bugfix on nested {block} tags +- changed Smarty special variable $smarty.parent to $smarty.block.parent +- added support of nested {bock} tags + +10/02/2010 +- avoid possible notice on $smarty->cache->clear(...), $smarty->clear_cache(....) +- allow Smarty tags inside <? ... ?> tags in SMARTY_PHP_QUOTE and SMARTY_PHP_PASSTHRU mode +- bugfix at new "for" syntax like {for $x=1 to 10 step 2} + +09/02/2010 +- added $smarty->_tag_stack for tracing block tag hierarchy + +08/02/2010 +- bugfix use template fullpath at §smarty->cache->clear(...), $smarty->clear_cache(....) +- bugfix of cache filename on extended templates when force_compile=true + +07/02/2010 +- bugfix on changes of 05/02/2010 +- preserve line endings type form template source +- API changes (see README file) + +05/02/2010 +- bugfix on modifier and block plugins with same name + +02/02/2010 +- retaining newlines at registered functions and function plugins + +01/25/2010 +- bugfix cache resource was not loaded when caching was globally off but enabled at a template object +- added test that $_SERVER['SCRIPT_NAME'] does exist in Smarty.class.php + +01/22/2010 +- new method $smarty->createData([$parent]) for creating a data object (required for bugfixes below) +- bugfix config_load() method now works also on a data object +- bugfix get_config_vars() method now works also on a data and template objects +- bugfix clear_config() method now works also on a data and template objects + +01/19/2010 +- bugfix on plugins if same plugin was called from a nocache section first and later from a cached section + + +###beta 7### + + +01/17/2010 +- bugfix on $smarty.const... in double quoted strings + +01/16/2010 +- internal change of config file lexer/parser on handling of section names +- bugfix on registered objects (format parameter of register_object was not handled correctly) + +01/14/2010 +- bugfix on backslash within single quoted strings +- bugfix allow absolute filepath for config files +- bugfix on special Smarty variable $smarty.cookies +- revert handling of newline on no output tags like {if...} +- allow special characters in config file section names for Smarty2 BC + +01/13/2010 +- bugfix on {if} tags + +01/12/2010 +- changed back modifier handling in parser. Some restrictions still apply: + if modifiers are used in side {if...} expression or in mathematical expressions + parentheses must be used. +- bugfix the {function..} tag did not accept the name attribute in double quotes +- closed possible security hole at <?php ... ?> tags +- bugfix of config file parser on large config files + + +###beta 6#### + +01/11/2010 +- added \n to the compiled code of the {if},{else},{elseif},{/if} tags to get output of newlines as expected by the template source +- added missing support of insert plugins +- added optional nocache attribute to {block} tags in parent template +- updated <?php...?> handling supporting now heredocs and newdocs. (thanks to Thue Jnaus Kristensen) + +01/09/2010 +- bugfix on nocache {block} tags in parent templates + +01/08/2010 +- bugfix on variable filters. filter/nofilter attributes did not work on output statements + +01/07/2010 +- bugfix on file dependency at template inheritance +- bugfix on nocache code at template inheritance + +01/06/2010 +- fixed typo in smarty_internal_resource_registered +- bugfix for custom delimiter at extends resource and {extends} tag + +01/05/2010 +- bugfix sha1() calculations at extends resource and some general improvments on sha1() handling + + +01/03/2010 +- internal change on building cache files + +01/02/2010 +- update cached_timestamp at the template object after cache file is written to avoid possible side effects +- use internally always SMARTY_CACHING_LIFETIME_* constants + +01/01/2010 +- bugfix for obtaining plugins which must be included (related to change of 12/30/2009) +- bugfix for {php} tag (trow an exception if allow_php_tag = false) + +12/31/2009 +- optimization of generated code for doublequoted strings containing variables +- rewrite of {function} tag handling + - can now be declared in an external subtemplate + - can contain nocache sections (nocache_hash handling) + - can be called in noccache sections (nocache_hash handling) + - new {call..} tag to call template functions with a variable name {call name=$foo} +- fixed nocache_hash handling in merged compiled templates + +12/30/2009 +- bugfix for plugins defined in the script as smarty_function_foo + +12/29/2009 +- use sha1() for filepath encoding +- updates on nocache_hash handling +- internal change on merging some data +- fixed cache filename for custom resources + +12/28/2009 +- update for security fixes +- make modifier plugins always trusted +- fixed bug loading modifiers in child template at template inheritance + +12/27/2009 +--- this is a major update with a couple of internal changes --- +- new config file lexer/parser (thanks to Thue Jnaus Kristensen) +- template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen) +- fix on registered plugins with different type but same name +- rewrite of plugin handling (optimized execution speed) +- closed a security hole regarding PHP code injection into cache files +- fixed bug in clear cache handling +- Renamed a couple of internal classes +- code cleanup for merging compiled templates +- couple of runtime optimizations (still not all done) +- update of getCachedTimestamp() +- fixed bug on modifier plugins at nocache output + +12/19/2009 +- bugfix on comment lines in config files + +12/17/2009 +- bugfix of parent/global variable update at included/merged subtemplates +- encode final template filepath into filename of compiled and cached files +- fixed {strip} handling in auto literals + +12/16/2009 +- update of changelog +- added {include file='foo.tpl' inline} inline option to merge compiled code of subtemplate into the calling template + +12/14/2009 +- fixed sideefect of last modification (objects in array index did not work anymore) + +12/13/2009 +- allow boolean negation ("!") as operator on variables outside {if} tag + +12/12/2009 +- bugfix on single quotes inside {function} tag +- fix short append/prepend attributes in {block} tags + +12/11/2009 +- bugfix on clear_compiled_tpl (avoid possible warning) + +12/10/2009 +- bugfix on {function} tags and template inheritance + +12/05/2009 +- fixed problem when a cached file was fetched several times +- removed unneeded lexer code + +12/04/2009 +- added max attribute to for loop +- added security mode allow_super_globals + +12/03/2009 +- template inheritance: child templates can now call functions defined by the {function} tag in the parent template +- added {for $foo = 1 to 5 step 2} syntax +- bugfix for {$foo.$x.$y.$z} + +12/01/2009 +- fixed parsing of names of special formated tags like if,elseif,while,for,foreach +- removed direct access to constants in templates because of some syntax problems +- removed cache resource plugin for mysql from the distribution +- replaced most hard errors (exceptions) by softerrors(trigger_error) in plugins +- use $template_class property for template class name when compiling {include},{eval} and {extends} tags + +11/30/2009 +- map 'true' to SMARTY_CACHING_LIFETIME_CURRENT for the $smarty->caching parameter +- allow {function} tags within {block} tags + +11/28/2009 +- ignore compile_id at debug template +- added direct access to constants in templates +- some lexer/parser optimizations + +11/27/2009 +- added cache resource MYSQL plugin + +11/26/2009 +- bugfix on nested doublequoted strings +- correct line number on unknown tag error message +- changed {include} compiled code +- fix on checking dynamic varibales with error_unassigned = true + +11/25/2009 +- allow the following writing for boolean: true, TRUE, True, false, FALSE, False +- {strip} tag functionality rewritten + +11/24/2009 +- bugfix for $smarty->config_overwrite = false + +11/23/2009 +- suppress warnings on unlink caused by race conditions +- correct line number on unknown tag error message + +------- beta 5 +11/23/2009 +- fixed configfile parser for text starting with a numeric char +- the default_template_handler_func may now return a filepath to a template source + +11/20/2009 +- bugfix for empty config files +- convert timestamps of registered resources to integer + +11/19/2009 +- compiled templates are no longer touched with the filemtime of template source + +11/18/2009 +- allow integer as attribute name in plugin calls + +------- beta 4 +11/18/2009 +- observe umask settings when setting file permissions +- avoide unneeded cache file creation for subtemplates which did occur in some situations +- make $smarty->_current_file available during compilation for Smarty2 BC + +11/17/2009 +- sanitize compile_id and cache_id (replace illegal chars with _) +- use _dir_perms and _file_perms properties at file creation +- new constant SMARTY_RESOURCE_DATE_FORMAT (default '%b %e, %Y') which is used as default format in modifier date_format +- added {foreach $array as $key=>$value} syntax +- renamed extend tag and resource to extends: {extends file='foo.tol'} , $smarty->display('extends:foo.tpl|bar.tpl); +- bugfix cycle plugin + +11/15/2009 +- lexer/parser optimizations on quoted strings + +11/14/2009 +- bugfix on merging compiled templates when source files got removed or renamed. +- bugfix modifiers on registered object tags +- fixed locaion where outputfilters are running +- fixed config file definitions at EOF +- fix on merging compiled templates with nocache sections in nocache includes +- parser could run into a PHP error on wrong file attribute + +11/12/2009 +- fixed variable filenames in {include_php} and {insert} +- added scope to Smarty variables in the {block} tag compiler +- fix on nocache code in child {block} tags + +11/11/2009 +- fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables +- removed checking for reserved variables +- changed debugging handling + +11/10/2009 +- fixed preg_qoute on delimiters + +11/09/2009 +- lexer/parser bugfix +- new SMARTY_SPL_AUTOLOAD constant to control the autoloader option +- bugfix for {function} block tags in included templates + +11/08/2009 +- fixed alphanumeric array index +- bugfix on complex double quoted strings + +11/05/2009 +- config_load method can now be called on data and template objects + +11/04/2009 +- added typecasting support for template variables +- bugfix on complex indexed special Smarty variables + +11/03/2009 +- fixed parser error on objects with special smarty vars +- fixed file dependency for {incude} inside {block} tag +- fixed not compiling on non existing compiled templates when compile_check = false +- renamed function names of autoloaded Smarty methods to Smarty_Method_.... +- new security_class property (default is Smarty_Security) + +11/02/2009 +- added neq,lte,gte,mod as aliases to if conditions +- throw exception on illegal Smarty() constructor calls + +10/31/2009 +- change of filenames in sysplugins folder for internal spl_autoload function +- lexer/parser changed for increased compilation speed + +10/27/2009 +- fixed missing quotes in include_php.php + +10/27/2009 +- fixed typo in method.register_resource +- pass {} through as literal + +10/26/2009 +- merge only compiled subtemplates into the compiled code of the main template + +10/24/2009 +- fixed nocache vars at internal block tags +- fixed merging of recursive includes + +10/23/2009 +- fixed nocache var problem + +10/22/2009 +- fix trimwhitespace outputfilter parameter + +10/21/2009 +- added {$foo++}{$foo--} syntax +- buxfix changed PHP "if (..):" to "if (..){" because of possible bad code when concenating PHP tags +- autoload Smarty internal classes +- fixed file dependency for config files +- some code optimizations +- fixed function definitions on some autoloaded methods +- fixed nocache variable inside if condition of {if} tag + +10/20/2009 +- check at compile time for variable filter to improve rendering speed if no filter is used +- fixed bug at combination of {elseif} tag and {...} in double quoted strings of static class parameter + +10/19/2009 +- fixed compiled template merging on variable double quoted strings as name +- fixed bug in caching mode 2 and cache_lifetime -1 +- fixed modifier support on block tags + +10/17/2009 +- remove ?>\n<?php and ?><?php sequences from compiled template + +10/15/2009 +- buxfix on assigning array elements inside templates +- parser bugfix on array access + +10/15/2009 +- allow bit operator '&' inside {if} tag +- implementation of ternary operator + +10/13/2009 +- do not recompile evaluated templates if reused just with other data +- recompile config files when config properties did change +- some lexer/parser otimizations + +10/11/2009 +- allow {block} tags inside included templates +- bugfix for resource plugins in Smarty2 format +- some optimizations of internal.template.php + +10/11/2009 +- fixed bug when template with same name is used with different data objects +- fixed bug with double quoted name attribute at {insert} tag +- reenabled assign_by_ref and append_by_ref methods + +10/07/2009 +- removed block nesting checks for {capture} + +10/05/2009 +- added support of "isinstance" to {if} tag + +10/03/2009 +- internal changes to improve performance +- fix registering of filters for classes + +10/01/2009 +- removed default timezone setting +- reactivated PHP resource for simple PHP templates. Must set allow_php_templates = true to enable +- {PHP} tag can be enabled by allow_php_tag = true + +09/30/2009 +- fixed handling template_exits method for all resource types +- bugfix for other cache resources than file +- the methods assign_by_ref is now wrapped to assign, append_by_ref to append +- allow arrays of variables pass in display, fetch and createTemplate calls + $data = array('foo'=>'bar','foo2'=>'blar'); + $smarty->display('my.tpl',$data); + +09/29/2009 +- changed {php} tag handling +- removed support of Smarty::instance() +- removed support of PHP resource type +- improved execution speed of {foreach} tags +- fixed bug in {section} tag + +09/23/2009 +- improvements and bugfix on {include} tag handling +NOTICE: existing compiled template and cache files must be deleted + +09/19/2009 +- replace internal "eval()" calls by "include" during rendering process +- speed improvment for templates which have included subtemplates + the compiled code of included templates is merged into the compiled code of the parent template +- added logical operator "xor" for {if} tag +- changed parameter ordering for Smarty2 BC + fetch($template, $cache_id = null, $compile_id = null, $parent = null) + display($template, $cache_id = null, $compile_id = null, $parent = null) + createTemplate($template, $cache_id = null, $compile_id = null, $parent = null) +- property resource_char_set is now replaced by constant SMARTY_RESOURCE_CHAR_SET +- fixed handling of classes in registered blocks +- speed improvement of lexer on text sections + +09/01/2009 +- dropped nl2br as plugin +- added '<>' as comparission operator in {if} tags +- cached caching_lifetime property to cache_liftime for backward compatibility with Smarty2. + {include} optional attribute is also now cache_lifetime +- fixed trigger_error method (moved into Smarty class) +- version is now Beta!!! + + +08/30/2009 +- some speed optimizations on loading internal plugins + + +08/29/2009 +- implemented caching of registered Resources +- new property 'auto_literal'. if true(default) '{ ' and ' }' interpreted as literal, not as Smarty delimiter + + +08/28/2009 +- Fix on line breaks inside {if} tags + +08/26/2009 +- implemented registered resources as in Smarty2. NOTE: caching does not work yet +- new property 'force_cache'. if true it forces the creation of a new cache file +- fixed modifiers on arrays +- some speed optimization on loading internal classes + + +08/24/2009 +- fixed typo in lexer definition for '!==' operator +- bugfix - the ouput of plugins was not cached +- added global variable SCRIPT_NAME + +08/21/2009 +- fixed problems whitespace in conjuction with custom delimiters +- Smarty tags can now be used as value anywhere + +08/18/2009 +- definition of template class name moded in internal.templatebase.php +- whitespace parser changes + +08/12/2009 +- fixed parser problems + +08/11/2009 +- fixed parser problems with custom delimiter + +08/10/2009 +- update of mb support in plugins + + +08/09/2009 +- fixed problems with doublequoted strings at name attribute of {block} tag +- bugfix at scope attribute of {append} tag + +08/08/2009 +- removed all internal calls of Smarty::instance() +- fixed code in double quoted strings + +08/05/2009 +- bugfix mb_string support +- bugfix of \n.\t etc in double quoted strings + +07/29/2009 +- added syntax for variable config vars like #$foo# + +07/28/2009 +- fixed parsing of $smarty.session vars containing objects + +07/22/2009 +- fix of "$" handling in double quoted strings + +07/21/2009 +- fix that {$smarty.current_dir} return correct value within {block} tags. + +07/20/2009 +- drop error message on unmatched {block} {/block} pairs + +07/01/2009 +- fixed smarty_function_html_options call in plugin function.html_select_date.php (missing ,) + +06/24/2009 +- fixed smarty_function_html_options call in plugin function.html_select_date.php + +06/22/2009 +- fix on \n and spaces inside smarty tags +- removed request_use_auto_globals propert as it is no longer needed because Smarty 3 will always run under PHP 5 + + +06/18/2009 +- fixed compilation of block plugins when caching enabled +- added $smarty.current_dir which returns the current working directory + +06/14/2009 +- fixed array access on super globals +- allow smarty tags within xml tags + +06/13/2009 +- bugfix at extend resource: create unique files for compiled template and cache for each combination of template files +- update extend resource to handle appen and prepend block attributes +- instantiate classes of plugins instead of calling them static + +06/03/2009 +- fixed repeat at block plugins + +05/25/2009 +- fixed problem with caching of compiler plugins + +05/14/2009 +- fixed directory separator handling + +05/09/2009 +- syntax change for stream variables +- fixed bug when using absolute template filepath and caching + +05/08/2009 +- fixed bug of {nocache} tag in included templates + +05/06/2009 +- allow that plugins_dir folder names can end without directory separator + +05/05/2009 +- fixed E_STRICT incompabilities +- {function} tag bug fix +- security policy definitions have been moved from plugins folder to file Security.class.php in libs folder +- added allow_super_global configuration to security + +04/30/2009 +- functions defined with the {function} tag now always have global scope + +04/29/2009 +- fixed problem with directory setter methods +- allow that cache_dir can end without directory separator + +04/28/2009 +- the {function} tag can no longer overwrite standard smarty tags +- inherit functions defined by the {fuction} tag into subtemplates +- added {while <statement>} sytax to while tag + +04/26/2009 +- added trusted stream checking to security +- internal changes at file dependency check for caching + +04/24/2009 +- changed name of {template} tag to {function} +- added new {template} tag + +04/23/2009 +- fixed access of special smarty variables from included template + +04/22/2009 +- unified template stream syntax with standard Smarty resource syntax $smarty->display('mystream:mytemplate') + +04/21/2009 +- change of new style syntax for forach. Now: {foreach $array as $var} like in PHP + +04/20/2009 +- fixed "$foo.bar ..." variable replacement in double quoted strings +- fixed error in {include} tag with variable file attribute + +04/18/2009 +- added stream resources ($smarty->display('mystream://mytemplate')) +- added stream variables {$mystream:myvar} + +04/14/2009 +- fixed compile_id handling on {include} tags +- fixed append/prepend attributes in {block} tag +- added {if 'expression' is in 'array'} syntax +- use crc32 as hash for compiled config files. + +04/13/2009 +- fixed scope problem with parent variables when appending variables within templates. +- fixed code for {block} without childs (possible sources for notice errors removed) + +04/12/2009 +- added append and prepend attribute to {block} tag + +04/11/2009 +- fixed variables in 'file' attribute of {extend} tag +- fixed problems in modifiers (if mb string functions not present) + +04/10/2009 +- check if mb string functions available otherwise fallback to normal string functions +- added global variable scope SMARTY_GLOBAL_SCOPE +- enable 'variable' filter by default +- fixed {$smarty.block.parent.foo} +- implementation of a 'variable' filter as replacement for default modifier + +04/09/2009 +- fixed execution of filters defined by classes +- compile the always the content of {block} tags to make shure that the filters are running over it +- syntax corrections on variable object property +- syntax corrections on array access in dot syntax + +04/08/2009 +- allow variable object property + +04/07/2009 +- changed variable scopes to SMARTY_LOCAL_SCOPE, SMARTY_PARENT_SCOPE, SMARTY_ROOT_SCOPE to avoid possible conflicts with user constants +- Smarty variable global attribute replaced with scope attribute + +04/06/2009 +- variable scopes LOCAL_SCOPE, PARENT_SCOPE, ROOT_SCOPE +- more getter/setter methods + +04/05/2009 +- replaced new array looping syntax {for $foo in $array} with {foreach $foo in $array} to avoid confusion +- added append array for short form of assign {$foo[]='bar'} and allow assignments to nested arrays {$foo['bla']['blue']='bar'} + +04/04/2009 +- make output of template default handlers cachable and save compiled source +- some fixes on yesterdays update + +04/03/2006 +- added registerDefaultTemplateHandler method and functionallity +- added registerDefaultPluginHandler method and functionallity +- added {append} tag to extend Smarty array variabled + +04/02/2009 +- added setter/getter methods +- added $foo@first and $foo@last properties at {for} tag +- added $set_timezone (true/false) property to setup optionally the default time zone + +03/31/2009 +- bugfix smarty.class and internal.security_handler +- added compile_check configuration +- added setter/getter methods + +03/30/2009 +- added all major setter/getter methods + +03/28/2009 +- {block} tags can be nested now +- md5 hash function replace with crc32 for speed optimization +- file order for exted resource inverted +- clear_compiled_tpl and clear_cache_all will not touch .svn folder any longer + +03/27/2009 +- added extend resource + +03/26/2009 +- fixed parser not to create error on `word` in double quoted strings +- allow PHP array(...) +- implemented $smarty.block.name.parent to access parent block content +- fixed smarty.class + + +03/23/2009 +- fixed {foreachelse} and {forelse} tags + +03/22/2009 +- fixed possible sources for notice errors +- rearrange SVN into distribution and development folders + +03/21/2009 +- fixed exceptions in function plugins +- fixed notice error in Smarty.class.php +- allow chained objects to span multiple lines +- fixed error in modifiers + +03/20/2009 +- moved /plugins folder into /libs folder +- added noprint modifier +- autoappend a directory separator if the xxxxx_dir definition have no trailing one + +03/19/2009 +- allow array definition as modifier parameter +- changed modifier to use multi byte string funktions. + +03/17/2009 +- bugfix + +03/15/2009 +- added {include_php} tag for BC +- removed @ error suppression +- bugfix fetch did always repeat output of first call when calling same template several times +- PHPunit tests extended + +03/13/2009 +- changed block syntax to be Smarty like {block:titel} -> {block name=titel} +- compiling of {block} and {extend} tags rewriten for better performance +- added special Smarty variable block ($smarty.block.foo} returns the parent definition of block foo +- optimization of {block} tag compiled code. +- fixed problem with escaped double quotes in double quoted strings + +03/12/2009 +- added support of template inheritance by {extend } and {block } tags. +- bugfix comments within literals +- added scope attribuie to {include} tag + +03/10/2009 +- couple of bugfixes and improvements +- PHPunit tests extended + +03/09/2009 +- added support for global template vars. {assign_global...} $smarty->assign_global(...) +- added direct_access_security +- PHPunit tests extended +- added missing {if} tag conditions like "is div by" etc. + +03/08/2009 +- splitted up the Compiler class to make it easier to use a coustom compiler +- made default plugins_dir relative to Smarty root and not current working directory +- some changes to make the lexer parser better configurable +- implemented {section} tag for Smarty2 BC + +03/07/2009 +- fixed problem with comment tags +- fixed problem with #xxxx in double quoted string +- new {while} tag implemented +- made lexer and paser class configurable as $smarty property +- Smarty method get_template_vars implemented +- Smarty method get_registered_object implemented +- Smarty method trigger_error implemented +- PHPunit tests extended + +03/06/2009 +- final changes on config variable handling +- parser change - unquoted strings will by be converted into single quoted strings +- PHPunit tests extended +- some code cleanup +- fixed problem on catenate strings with expression +- update of count_words modifier +- bugfix on comment tags + + +03/05/2009 +- bugfix on <?xml...> tag with caching enabled +- changes on exception handling (by Monte) + +03/04/2009 +- added support for config variables +- bugfix on <?xml...> tag + +03/02/2009 +- fixed unqouted strings within modifier parameter +- bugfix parsing of mofifier parameter + +03/01/2009 +- modifier chaining works now as in Smarty2 + +02/28/2009 +- changed handling of unqouted strings + +02/26/2009 +- bugfix +- changed $smarty.capture.foo to be global for Smarty2 BC. + +02/24/2009 +- bugfix {php} {/php} tags for backward compatibility +- bugfix for expressions on arrays +- fixed usage of "null" value +- added $smarty.foreach.foo.first and $smarty.foreach.foo.last + +02/06/2009 +- bugfix for request variables without index for example $smarty.get +- experimental solution for variable functions in static class + +02/05/2009 +- update of popup plugin +- added config variables to template parser (load config functions still missing) +- parser bugfix for empty quoted strings + +02/03/2009 +- allow array of objects as static class variabales. +- use htmlentities at source output at template errors. + +02/02/2009 +- changed search order on modifiers to look at plugins folder first +- parser bug fix for modifier on array elements $foo.bar|modifier +- parser bug fix on single quoted srings +- internal: splitted up compiler plugin files + +02/01/2009 +- allow method chaining on static classes +- special Smarty variables $smarty.... implemented +- added {PHP} {/PHP} tags for backward compatibility + +01/31/2009 +- added {math} plugin for Smarty2 BC +- added template_exists method +- changed Smarty3 method enable_security() to enableSecurity() to follow camelCase standards + +01/30/2009 +- bugfix in single quoted strings +- changed syntax for variable property access from $foo:property to $foo@property because of ambiguous syntax at modifiers + +01/29/2009 +- syntax for array definition changed from (1,2,3) to [1,2,3] to remove ambiguous syntax +- allow {for $foo in [1,2,3]} syntax +- bugfix in double quoted strings +- allow <?xml...?> tags in template even if short_tags are enabled + +01/28/2009 +- fixed '!==' if condition. + +01/28/2009 +- added support of {strip} {/strip} tag. + +01/27/2009 +- bug fix on backticks in double quoted strings at objects + +01/25/2009 +- Smarty2 modfiers added to SVN + +01/25/2009 +- bugfix allow arrays at object properties in Smarty syntax +- the template object is now passed as additional parameter at plugin calls +- clear_compiled_tpl method completed + +01/20/2009 +- access to class constants implemented ( class::CONSTANT ) +- access to static class variables implemented ( class::$variable ) +- call of static class methods implemented ( class::method() ) + +01/16/2009 +- reallow leading _ in variable names {$_var} +- allow array of objects {$array.index->method()} syntax +- finished work on clear_cache and clear_cache_all methods + +01/11/2009 +- added support of {literal} tag +- added support of {ldelim} and {rdelim} tags +- make code compatible to run with E_STRICT error setting + +01/08/2009 +- moved clear_assign and clear_all_assign to internal.templatebase.php +- added assign_by_ref, append and append_by_ref methods + +01/02/2009 +- added load_filter method +- fished work on filter handling +- optimization of plugin loading + +12/30/2008 +- added compiler support of registered object +- added backtick support in doubled quoted strings for backward compatibility +- some minor bug fixes and improvments + +12/23/2008 +- fixed problem of not working "not" operator in if-expressions +- added handling of compiler function plugins +- finished work on (un)register_compiler_function method +- finished work on (un)register_modifier method +- plugin handling from plugins folder changed for modifier plugins + deleted - internal.modifier.php +- added modifier chaining to parser + +12/17/2008 +- finished (un)register_function method +- finished (un)register_block method +- added security checking for PHP functions in PHP templates +- plugin handling from plugins folder rewritten + new - internal.plugin_handler.php + deleted - internal.block.php + deleted - internal.function.php +- removed plugin checking from security handler + +12/16/2008 + +- new start of this change_log file diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/COMPOSER_RELEASE_NOTES.txt b/civicrm/packages/smarty3/vendor/smarty/smarty/COMPOSER_RELEASE_NOTES.txt new file mode 100644 index 0000000000..0644719c9a --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/COMPOSER_RELEASE_NOTES.txt @@ -0,0 +1,31 @@ + + +Starting with Smarty 3.1.21 Composer has been configured to load the packages from github. + +******************************************************************************* +* * +* NOTE: Because of this change you must clear your local composer cache with * +* the "composer clearcache" command * +* * +******************************************************************************* + +To get the latest stable version use + "require": { + "smarty/smarty": "~3.1" + } +in your composer.json file. + +To get the trunk version use + "require": { + "smarty/smarty": "~3.1@dev" + } + +The "smarty/smarty" package will start at libs/.... subfolder. + +To retrieve the development and documentation folders add + "require-dev": { + "smarty/smarty-dev": "~3.1@dev" + } + +If you are using (include) the composer generated autoloader.php which is located +in the /vendor folder it is no longer needed to require the Smarty.class.php file. \ No newline at end of file diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/INHERITANCE_RELEASE_NOTES.txt b/civicrm/packages/smarty3/vendor/smarty/smarty/INHERITANCE_RELEASE_NOTES.txt new file mode 100644 index 0000000000..67936a81ad --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/INHERITANCE_RELEASE_NOTES.txt @@ -0,0 +1,91 @@ +3.1.3" +New tags for inheritance parent and chilD +{parent} == {$smarty.block.parent} +{child} == {$smarty.block.child} +Both tags support the assign attribute like +{child assign=foo} + +3.1.31 +New tags for inheritance parent and child +{block_parent} == {$smarty.block.parent} +{block_child} == {$smarty.block.child} + +Since 3.1.28 you can mix inheritance by extends resource with the {extends} tag. +A template called by extends resource can extend a subtemplate or chain buy the {extends} tag. +Since 3.1.31 this feature can be turned off by setting the new Smarty property Smarty::$extends_recursion to false. + +3.1.28 +Starting with version 3.1.28 template inheritance is no longer a compile time process. +All {block} tag parent/child relations are resolved at run time. +This does resolve all known existing restrictions (see below). + +The $smarty::$inheritance_merge_compiled_includes property has been removed. +Any access to it is ignored. + +New features: + +Any code outside root {block} tags in child templates is now executed but any output will be ignored. + + {extends 'foo.tpl'} + {$bar = 'on'} // assigns variable $bar seen in parent templates + {block 'buh'}{/block} + + {extends 'foo.tpl'} + {$bar} // the output of variable bar is ignored + {block 'buh'}{/block} + +{block} tags can be dynamically en/disabled by conditions. + + {block 'root'} + {if $foo} + {block 'v1'} + .... + {/block} + {else} + {block 'v1'} + .... + {/block} + {/if} + {/block} + +{block} tags can have variable names. + + {block $foo} + .... + {/block} + +Starting with 3.1.28 you can mix inheritance by extends resource with the {extends} tag. +A template called by extends resource can extend a subtemplate or chain buy the {extends} tag. + +NOTE There is a BC break. If you used the extends resource {extends} tags have been ignored. + +THE FOLLOWING RESTRICTIONS ARE NO LONGER EXISTING: +In Smarty 3.1 template inheritance is a compile time process. All the extending of {block} tags +is done at compile time and the parent and child templates are compiled in a single compiled template. +{include} subtemplate could also {block} tags. Such subtemplate could not compiled by it's own because +it could be used in other context where the {block} extended with a different result. For that reasion +the compiled code of {include} subtemplates gets also merged in compiled inheritance template. + +Merging the code into a single compile template has some drawbacks. +1. You could not use variable file names in {include} Smarty would use the {include} of compilation time. +2. You could not use individual compile_id in {include} +3. Separate caching of subtemplate was not possible +4. Any change of the template directory structure between calls was not necessarily seen. + +Starting with 3.1.15 some of the above conditions got checked and resulted in an exception. It turned out +that a couple of users did use some of above and now got exceptions. + +To resolve this starting with 3.1.16 there is a new configuration parameter $inheritance_merge_compiled_includes. +For most backward compatibility its default setting is true. +With this setting all {include} subtemplate will be merge into the compiled inheritance template, but the above cases +could be rejected by exception. + + +If $smarty->inheritance_merge_compiled_includes = false; {include} subtemplate will not be merged.You must now manually merge all {include} subtemplate which do contain {block} tags. This is done by setting the "inline" option. +{include file='foo.bar' inline} + +1. In case of a variable file name like {include file=$foo inline} you must use the variable in a compile_id $smarty->compile_id = $foo; +2. If you use individual compile_id in {include file='foo.tpl' compile_id=$bar inline} it must be used in the global compile_id as well $smarty->compile_id = $bar; +3. If call templates with different template_dir configurations and a parent could same named child template from different folders + you must make the folder name part of the compile_id. + diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/LICENSE b/civicrm/packages/smarty3/vendor/smarty/smarty/LICENSE new file mode 100644 index 0000000000..595e5993da --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/LICENSE @@ -0,0 +1,179 @@ +Smarty: the PHP compiling template engine + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3.0 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU Lesser General Public License below for more details. + + + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/NEW_FEATURES.txt b/civicrm/packages/smarty3/vendor/smarty/smarty/NEW_FEATURES.txt new file mode 100644 index 0000000000..0b2cae1e0d --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/NEW_FEATURES.txt @@ -0,0 +1,291 @@ + + +This file contains a brief description of new features which have been added to Smarty 3.1 + +Smarty 3.1.33-dev + Variable capture name in Smarty special variable + ================================================ + {$smarty.capture.$foo} can now be used to access the content of a named + capture block + +Smarty 3.1.32 + New tags for inheritance parent and child + ========================================= + {parent} == {$smarty.block.parent} + {child} == {$smarty.block.child} + Both tags support the assign attribute like + {child assign=foo} + + Deprecate functions Smarty::muteExpectedErrors() and Smarty::unmuteExpectedErrors() + =================================================================================== + These functions to start a special error handler are no longer needed as Smarty does + no longer use error suppression like @filemtime(). + For backward compatibility the functions still can be called. + + Using literals containing Smarty's left and right delimiter + =========================================================== + New Methods + $smarty->setLiterals(array $literals) + $smarty->addLiterals(array $literals) + to define literals containing Smarty delimiter. This can avoid the need for extreme usage + of {literal} {/literal} tags. + A) Treat '{{' and '}}' as literal + If Smarty::$auto_literal is enabled + {{ foo }} + will be treated now as literal. (This does apply for any number of delimiter repeatations). + However {{foo}} is not an literal but will be interpreted as a recursive Smarty tag. + If you use + $smarty->setLiterals(array('{{','}}')); + {{foo}} is now a literal as well. + NOTE: In the last example nested Smarty tags starting with '{{' or ending with '}}' will not + work any longer, but this should be very very raw occouring restriction. + B) Example 2 + Assume your delimiter are '<-' , '->' and '<--' , '-->' shall be literals + $smarty->setLiterals(array('<--','-->')); + + + The capture buffers can now be accessed as array + ================================================ + {capture name='foo'} + bah + {\capture} + {capture name='buh'} + blar + {\capture} + {foreach $smarty.capture as $name => $buffer} + .... + {/foreach} + +Smarty 3.1.31 + New tags for inheritance parent and child + ========================================= + {block_parent} == {$smarty.block.parent} + {block_child} == {$smarty.block.child} + +Smarty 3.1.30 + + Loop optimization {foreach} and {section} + ========================================= + Smarty does optimize the {foreach} and {section} loops by removing code for not needed loop + properties. + The compiler collects needed properties by scanning the current template for $item@property, + $smarty.foreach.name.property and $smarty.section.name.property. + The compiler does not know if additional properties will be needed outside the current template scope. + Additional properties can be generated by adding them with the property attribute. + + Example: + index.tpl + {foreach $from as $item properties=[iteration, index]} + {include 'sub.tpl'} + {$item.total} + {/foreach} + + sub.tpl + {$item.index} {$item.iteration} {$item.total} + + In above example code for the 'total' property is automatically generated as $item.total is used in + index.tpl. Code for 'iteration' and 'index' must be added with properties=[iteration, index]. + + New tag {make_nocache} + ====================== + Syntax: {make_nocache $foo} + + This tag makes a variable which does exists normally only while rendering the compiled template + available in the cached template for use in not cached expressions. + + Expample: + {foreach from=$list item=item} + <li>{$item.name} {make_nocache $item}{if $current==$item.id} ACTIVE{/if}</li> + {/foreach} + + The {foreach} loop is rendered while processing the compiled template, but $current is a nocache + variable. Normally the {if $current==$item.id} would fail as the $item variable is unknown in the cached template. {make_nocache $item} does make the current $item value known in thee cached template. + + {make_nocache} is ignored when caching is disabled or the variable does exists as nocache variable. + + NOTE: if the variable value does contain objects these must have the __set_state method implemented. + + + Scope Attributes + ================ + The scope handling has been updated to cover all cases of variable assignments in templates. + + The tags {assign}, {append} direct assignments like {$foo = ...}, {$foo[...]= ...} support + the following optional scope attributes: + scope='parent' - the variable will be assigned in the current template and if the template + was included by {include} the calling template + scope='tpl_root' - the variable will be assigned in the outermost root template called by $smarty->display() + or $smarty->fetch() and is bubbled up all {include} sub-templates to the current template. + scope='smarty' - the variable will be assigned in the Smarty object and is bubbled up all {include} sub-templates + to the current template. + scope='global' - the variable will be assigned as Smarty object global variable and is bubbled up all {include} + sub-templates to the current template. + scope='root' - the variable will be assigned if a data object was used for variable definitions in the data + object or in the Smarty object otherwise and is bubbled up all {include} sub-templates to the + current template. + scope='local' - this scope has only a meaning if the tag is called within a template {function}. + The variable will be assigned in the local scope of the template function and the + template which did call the template function. + + + The {config_load} tag supports all of the above except the global scope. + + The scope attribute can be used also with the {include} tag. + Supported scope are parent, tpl_root, smarty, global and root. + A scope used together with the {include} tag will cause that with some exceptions any variable + assignment within that sub-template will update/assign the variable in other scopes according + to the above rules. It does include also variables assigned by plugins, tags supporting the assign=foo attribute and direct assignments in {if} and {while} like {if $foo=$bar}. + Excluded are the key and value variables of {foreach}, {for} loop variables , variables passed by attributes + in {include} and direct increments/decrements like {$foo++}, {$foo--} + + Note: The scopes should be used only to the extend really need. If a variable value assigned in an included + sub-template should be returned to the calling sub-template just use {$foo='bar' scope='parent'}. + Use scopes only with variables for which it's realy needed. Avoid general scope settings with the + {include} tag as it can have a performance impact. + + The {assign}, {append}, {config_load} and {$foo...=...} tags have a new option flag 'noscope'.Thi + Example: {$foo='bar' noscope} This will assign $foo only in the current template and any scope settings + at {include} is ignored. + + + Caching + ======= + Caching does now observe the template_dir setting and will create separate cache files if required + + Compiled Templates + ================== + The template_dir setting is now encoded in the uid of the file name. + The content of the compiled template may depend on the template_dir search order + {include .... inline} is used or $smarty->merge_compiled_includes is enabled + + APC + === + If APC is enabled force an apc_compile_file() when compiled or cached template was updated + +Smarty 3.1.28 + + OPCACHE + ======= + Smarty does now invalidate automatically updated and cleared compiled or cached template files in OPCACHE. + Correct operation is no longer dependent on OPCACHE configuration settings. + + Template inheritance + ==================== + Template inheritance is now processed in run time. + See the INHERITANCE_RELEASE_NOTES + + Modifier regex_replace + ====================== + An optional limit parameter was added + + fetch() and display() + ===================== + The fetch() and display() methods of the template object accept now optionally the same parameter + as the corresponding Smarty methods to get the content of another template. + Example: + $template->display(); Does display template of template object + $template->display('foo.tpl'); Does display template 'foo.bar' + + File: resource + ============== + Multiple template_dir entries can now be selected by a comma separated list of indices. + The template_dir array is searched in the order of the indices. (Could be used to change the default search order) + Example: + $smarty->display('[1],[0]foo.bar'); + + Filter support + ============== + Optional filter names + An optional filter name was added to $smarty->registerFilter(). It can be used to unregister a filter by name. + - $smarty->registerFilter('output', $callback, 'name'); + $smarty->unregister('output', 'name'); + + Closures + $smarty->registerFilter() does now accept closures. + - $smarty->registerFilter('pre', function($source) {return $source;}); + If no optional filter name was specified it gets the default name 'closure'. + If you register multiple closures register each with a unique filter name. + - $smarty->registerFilter('pre', function($source) {return $source;}, 'closure_1'); + - $smarty->registerFilter('pre', function($source) {return $source;}, 'closure_2'); + + +Smarty 3.1.22 + + Namespace support within templates + ================================== + Within templates you can now use namespace specifications on: + - Constants like foo\bar\FOO + - Class names like foo\bar\Baz::FOO, foo\bar\Baz::$foo, foo\bar\Baz::foo() + - PHP function names like foo\bar\baz() + + Security + ======== + - disable special $smarty variable - + The Smarty_Security class has the new property $disabled_special_smarty_vars. + It's an array which can be loaded with the $smarty special variable names like + 'template_object', 'template', 'current_dir' and others which will be disabled. + Note: That this security check is performed at compile time. + + - limit template nesting - + Property $max_template_nesting of Smarty_Security does set the maximum template nesting level. + The main template is level 1. The nesting level is checked at run time. When the maximum will be exceeded + an Exception will be thrown. The default setting is 0 which does disable this check. + + - trusted static methods - + The Smarty_Security class has the new property $trusted_static_methods to restrict access to static methods. + It's an nested array of trusted class and method names. + Format: + array ( + 'class_1' => array('method_1', 'method_2'), // allowed methods + 'class_2' => array(), // all methods of class allowed + ) + To disable access for all methods of all classes set $trusted_static_methods = null; + The default value is an empty array() which does enables all methods of all classes, but for backward compatibility + the setting of $static_classes will be checked. + Note: That this security check is performed at compile time. + + - trusted static properties - + The Smarty_Security class has the new property $trusted_static_properties to restrict access to static properties. + It's an nested array of trusted class and property names. + Format: + array ( + 'class_1' => array('prop_1', 'prop_2'), // allowed properties listed + 'class_2' => array(), // all properties of class allowed + } + To disable access for all properties of all classes set $trusted_static_properties = null; + The default value is an empty array() which does enables all properties of all classes, but for backward compatibility + the setting of $static_classes will be checked. + Note: That this security check is performed at compile time. + + - trusted constants . + The Smarty_Security class has the new property $trusted_constants to restrict access to constants. + It's an array of trusted constant names. + Format: + array ( + 'SMARTY_DIR' , // allowed constant + } + If the array is empty (default) the usage of constants can be controlled with the + Smarty_Security::$allow_constants property (default true) + + + + Compiled Templates + ================== + Smarty does now automatically detects a change of the $merge_compiled_includes and $escape_html + property and creates different compiled templates files depending on the setting. + + Same applies to config files and the $config_overwrite, $config_booleanize and + $config_read_hidden properties. + + Debugging + ========= + The layout of the debug window has been changed for better readability + + New class constants + Smarty::DEBUG_OFF + Smarty::DEBUG_ON + Smarty::DEBUG_INDIVIDUAL + have been introduced for setting the $debugging property. + + Smarty::DEBUG_INDIVIDUAL will create for each display() and fetch() call an individual debug window. + diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/README b/civicrm/packages/smarty3/vendor/smarty/smarty/README new file mode 100644 index 0000000000..9a71519bd7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/README @@ -0,0 +1,575 @@ +Smarty 3.x + +Author: Monte Ohrt <monte at ohrt dot com > +Author: Uwe Tews + +AN INTRODUCTION TO SMARTY 3 + +NOTICE FOR 3.1 release: + +Please see the SMARTY_3.1_NOTES.txt file that comes with the distribution. + +NOTICE for 3.0.5 release: + +Smarty now follows the PHP error_reporting level by default. If PHP does not mask E_NOTICE and you try to access an unset template variable, you will now get an E_NOTICE warning. To revert to the old behavior: + +$smarty->error_reporting = E_ALL & ~E_NOTICE; + +NOTICE for 3.0 release: + +IMPORTANT: Some API adjustments have been made between the RC4 and 3.0 release. +We felt it is better to make these now instead of after a 3.0 release, then have to +immediately deprecate APIs in 3.1. Online documentation has been updated +to reflect these changes. Specifically: + +---- API CHANGES RC4 -> 3.0 ---- + +$smarty->register->* +$smarty->unregister->* +$smarty->utility->* +$samrty->cache->* + +Have all been changed to local method calls such as: + +$smarty->clearAllCache() +$smarty->registerFoo() +$smarty->unregisterFoo() +$smarty->testInstall() +etc. + +Registration of function, block, compiler, and modifier plugins have been +consolidated under two API calls: + +$smarty->registerPlugin(...) +$smarty->unregisterPlugin(...) + +Registration of pre, post, output and variable filters have been +consolidated under two API calls: + +$smarty->registerFilter(...) +$smarty->unregisterFilter(...) + +Please refer to the online documentation for all specific changes: + +http://www.smarty.net/documentation + +---- + +The Smarty 3 API has been refactored to a syntax geared +for consistency and modularity. The Smarty 2 API syntax is still supported, but +will throw a deprecation notice. You can disable the notices, but it is highly +recommended to adjust your syntax to Smarty 3, as the Smarty 2 syntax must run +through an extra rerouting wrapper. + +Basically, all Smarty methods now follow the "fooBarBaz" camel case syntax. Also, +all Smarty properties now have getters and setters. So for example, the property +$smarty->cache_dir can be set with $smarty->setCacheDir('foo/') and can be +retrieved with $smarty->getCacheDir(). + +Some of the Smarty 3 APIs have been revoked such as the "is*" methods that were +just duplicate functions of the now available "get*" methods. + +Here is a rundown of the Smarty 3 API: + +$smarty->fetch($template, $cache_id = null, $compile_id = null, $parent = null) +$smarty->display($template, $cache_id = null, $compile_id = null, $parent = null) +$smarty->isCached($template, $cache_id = null, $compile_id = null) +$smarty->createData($parent = null) +$smarty->createTemplate($template, $cache_id = null, $compile_id = null, $parent = null) +$smarty->enableSecurity() +$smarty->disableSecurity() +$smarty->setTemplateDir($template_dir) +$smarty->addTemplateDir($template_dir) +$smarty->templateExists($resource_name) +$smarty->loadPlugin($plugin_name, $check = true) +$smarty->loadFilter($type, $name) +$smarty->setExceptionHandler($handler) +$smarty->addPluginsDir($plugins_dir) +$smarty->getGlobal($varname = null) +$smarty->getRegisteredObject($name) +$smarty->getDebugTemplate() +$smarty->setDebugTemplate($tpl_name) +$smarty->assign($tpl_var, $value = null, $nocache = false) +$smarty->assignGlobal($varname, $value = null, $nocache = false) +$smarty->assignByRef($tpl_var, &$value, $nocache = false) +$smarty->append($tpl_var, $value = null, $merge = false, $nocache = false) +$smarty->appendByRef($tpl_var, &$value, $merge = false) +$smarty->clearAssign($tpl_var) +$smarty->clearAllAssign() +$smarty->configLoad($config_file, $sections = null) +$smarty->getVariable($variable, $_ptr = null, $search_parents = true, $error_enable = true) +$smarty->getConfigVariable($variable) +$smarty->getStreamVariable($variable) +$smarty->getConfigVars($varname = null) +$smarty->clearConfig($varname = null) +$smarty->getTemplateVars($varname = null, $_ptr = null, $search_parents = true) +$smarty->clearAllCache($exp_time = null, $type = null) +$smarty->clearCache($template_name, $cache_id = null, $compile_id = null, $exp_time = null, $type = null) + +$smarty->registerPlugin($type, $tag, $callback, $cacheable = true, $cache_attr = array()) + +$smarty->registerObject($object_name, $object_impl, $allowed = array(), $smarty_args = true, $block_methods = array()) + +$smarty->registerFilter($type, $function_name) +$smarty->registerResource($resource_type, $function_names) +$smarty->registerDefaultPluginHandler($function_name) +$smarty->registerDefaultTemplateHandler($function_name) + +$smarty->unregisterPlugin($type, $tag) +$smarty->unregisterObject($object_name) +$smarty->unregisterFilter($type, $function_name) +$smarty->unregisterResource($resource_type) + +$smarty->compileAllTemplates($extension = '.tpl', $force_compile = false, $time_limit = 0, $max_errors = null) +$smarty->clearCompiledTemplate($resource_name = null, $compile_id = null, $exp_time = null) +$smarty->testInstall() + +// then all the getters/setters, available for all properties. Here are a few: + +$caching = $smarty->getCaching(); // get $smarty->caching +$smarty->setCaching(true); // set $smarty->caching +$smarty->setDeprecationNotices(false); // set $smarty->deprecation_notices +$smarty->setCacheId($id); // set $smarty->cache_id +$debugging = $smarty->getDebugging(); // get $smarty->debugging + + +FILE STRUCTURE + +The Smarty 3 file structure is similar to Smarty 2: + +/libs/ + Smarty.class.php +/libs/sysplugins/ + internal.* +/libs/plugins/ + function.mailto.php + modifier.escape.php + ... + +A lot of Smarty 3 core functionality lies in the sysplugins directory; you do +not need to change any files here. The /libs/plugins/ folder is where Smarty +plugins are located. You can add your own here, or create a separate plugin +directory, just the same as Smarty 2. You will still need to create your own +/cache/, /templates/, /templates_c/, /configs/ folders. Be sure /cache/ and +/templates_c/ are writable. + +The typical way to use Smarty 3 should also look familiar: + +require('Smarty.class.php'); +$smarty = new Smarty; +$smarty->assign('foo','bar'); +$smarty->display('index.tpl'); + + +However, Smarty 3 works completely different on the inside. Smarty 3 is mostly +backward compatible with Smarty 2, except for the following items: + +*) Smarty 3 is PHP 5 only. It will not work with PHP 4. +*) The {php} tag is disabled by default. Enable with $smarty->allow_php_tag=true. +*) Delimiters surrounded by whitespace are no longer treated as Smarty tags. + Therefore, { foo } will not compile as a tag, you must use {foo}. This change + Makes Javascript/CSS easier to work with, eliminating the need for {literal}. + This can be disabled by setting $smarty->auto_literal = false; +*) The Smarty 3 API is a bit different. Many Smarty 2 API calls are deprecated + but still work. You will want to update your calls to Smarty 3 for maximum + efficiency. + + +There are many things that are new to Smarty 3. Here are the notable items: + +LEXER/PARSER +============ + +Smarty 3 now uses a lexing tokenizer for its parser/compiler. Basically, this +means Smarty has some syntax additions that make life easier such as in-template +math, shorter/intuitive function parameter options, infinite function recursion, +more accurate error handling, etc. + + +WHAT IS NEW IN SMARTY TEMPLATE SYNTAX +===================================== + +Smarty 3 allows expressions almost anywhere. Expressions can include PHP +functions as long as they are not disabled by the security policy, object +methods and properties, etc. The {math} plugin is no longer necessary but +is still supported for BC. + +Examples: +{$x+$y} will output the sum of x and y. +{$foo = strlen($bar)} function in assignment +{assign var=foo value= $x+$y} in attributes +{$foo = myfunct( ($x+$y)*3 )} as function parameter +{$foo[$x+3]} as array index + +Smarty tags can be used as values within other tags. +Example: {$foo={counter}+3} + +Smarty tags can also be used inside double quoted strings. +Example: {$foo="this is message {counter}"} + +You can define arrays within templates. +Examples: +{assign var=foo value=[1,2,3]} +{assign var=foo value=['y'=>'yellow','b'=>'blue']} +Arrays can be nested. +{assign var=foo value=[1,[9,8],3]} + +There is a new short syntax supported for assigning variables. +Example: {$foo=$bar+2} + +You can assign a value to a specific array element. If the variable exists but +is not an array, it is converted to an array before the new values are assigned. +Examples: +{$foo['bar']=1} +{$foo['bar']['blar']=1} + +You can append values to an array. If the variable exists but is not an array, +it is converted to an array before the new values are assigned. +Example: {$foo[]=1} + +You can use a PHP-like syntax for accessing array elements, as well as the +original "dot" notation. +Examples: +{$foo[1]} normal access +{$foo['bar']} +{$foo['bar'][1]} +{$foo[$x+$x]} index may contain any expression +{$foo[$bar[1]]} nested index +{$foo[section_name]} smarty section access, not array access! + +The original "dot" notation stays, and with improvements. +Examples: +{$foo.a.b.c} => $foo['a']['b']['c'] +{$foo.a.$b.c} => $foo['a'][$b]['c'] with variable index +{$foo.a.{$b+4}.c} => $foo['a'][$b+4]['c'] with expression as index +{$foo.a.{$b.c}} => $foo['a'][$b['c']] with nested index + +note that { and } are used to address ambiguties when nesting the dot syntax. + +Variable names themselves can be variable and contain expressions. +Examples: +$foo normal variable +$foo_{$bar} variable name containing other variable +$foo_{$x+$y} variable name containing expressions +$foo_{$bar}_buh_{$blar} variable name with multiple segments +{$foo_{$x}} will output the variable $foo_1 if $x has a value of 1. + +Object method chaining is implemented. +Example: {$object->method1($x)->method2($y)} + +{for} tag added for looping (replacement for {section} tag): +{for $x=0, $y=count($foo); $x<$y; $x++} .... {/for} +Any number of statements can be used separated by comma as the first +initial expression at {for}. + +{for $x = $start to $end step $step} ... {/for}is in the SVN now . +You can use also +{for $x = $start to $end} ... {/for} +In this case the step value will be automatically 1 or -1 depending on the start and end values. +Instead of $start and $end you can use any valid expression. +Inside the loop the following special vars can be accessed: +$x@iteration = number of iteration +$x@total = total number of iterations +$x@first = true on first iteration +$x@last = true on last iteration + + +The Smarty 2 {section} syntax is still supported. + +New shorter {foreach} syntax to loop over an array. +Example: {foreach $myarray as $var}...{/foreach} + +Within the foreach loop, properties are access via: + +$var@key foreach $var array key +$var@iteration foreach current iteration count (1,2,3...) +$var@index foreach current index count (0,1,2...) +$var@total foreach $var array total +$var@first true on first iteration +$var@last true on last iteration + +The Smarty 2 {foreach} tag syntax is still supported. + +NOTE: {$bar[foo]} still indicates a variable inside of a {section} named foo. +If you want to access an array element with index foo, you must use quotes +such as {$bar['foo']}, or use the dot syntax {$bar.foo}. + +while block tag is now implemented: +{while $foo}...{/while} +{while $x lt 10}...{/while} + +Direct access to PHP functions: +Just as you can use PHP functions as modifiers directly, you can now access +PHP functions directly, provided they are permitted by security settings: +{time()} + +There is a new {function}...{/function} block tag to implement a template function. +This enables reuse of code sequences like a plugin function. It can call itself recursively. +Template function must be called with the new {call name=foo...} tag. + +Example: + +Template file: +{function name=menu level=0} + <ul class="level{$level}"> + {foreach $data as $entry} + {if is_array($entry)} + <li>{$entry@key}</li> + {call name=menu data=$entry level=$level+1} + {else} + <li>{$entry}</li> + {/if} + {/foreach} + </ul> +{/function} + +{$menu = ['item1','item2','item3' => ['item3-1','item3-2','item3-3' => + ['item3-3-1','item3-3-2']],'item4']} + +{call name=menu data=$menu} + + +Generated output: + * item1 + * item2 + * item3 + o item3-1 + o item3-2 + o item3-3 + + item3-3-1 + + item3-3-2 + * item4 + +The function tag itself must have the "name" attribute. This name is the tag +name when calling the function. The function tag may have any number of +additional attributes. These will be default settings for local variables. + +New {nocache} block function: +{nocache}...{/nocache} will declare a section of the template to be non-cached +when template caching is enabled. + +New nocache attribute: +You can declare variable/function output as non-cached with the nocache attribute. +Examples: + +{$foo nocache=true} +{$foo nocache} /* same */ + +{foo bar="baz" nocache=true} +{foo bar="baz" nocache} /* same */ + +{time() nocache=true} +{time() nocache} /* same */ + +Or you can also assign the variable in your script as nocache: +$smarty->assign('foo',$something,true); // third param is nocache setting +{$foo} /* non-cached */ + +$smarty.current_dir returns the directory name of the current template. + +You can use strings directly as templates with the "string" resource type. +Examples: +$smarty->display('string:This is my template, {$foo}!'); // php +{include file="string:This is my template, {$foo}!"} // template + + + +VARIABLE SCOPE / VARIABLE STORAGE +================================= + +In Smarty 2, all assigned variables were stored within the Smarty object. +Therefore, all variables assigned in PHP were accessible by all subsequent +fetch and display template calls. + +In Smarty 3, we have the choice to assign variables to the main Smarty object, +to user-created data objects, and to user-created template objects. +These objects can be chained. The object at the end of a chain can access all +variables belonging to that template and all variables within the parent objects. +The Smarty object can only be the root of a chain, but a chain can be isolated +from the Smarty object. + +All known Smarty assignment interfaces will work on the data and template objects. + +Besides the above mentioned objects, there is also a special storage area for +global variables. + +A Smarty data object can be created as follows: +$data = $smarty->createData(); // create root data object +$data->assign('foo','bar'); // assign variables as usual +$data->config_load('my.conf'); // load config file + +$data= $smarty->createData($smarty); // create data object having a parent link to +the Smarty object + +$data2= $smarty->createData($data); // create data object having a parent link to +the $data data object + +A template object can be created by using the createTemplate method. It has the +same parameter assignments as the fetch() or display() method. +Function definition: +function createTemplate($template, $cache_id = null, $compile_id = null, $parent = null) + +The first parameter can be a template name, a smarty object or a data object. + +Examples: +$tpl = $smarty->createTemplate('mytpl.tpl'); // create template object not linked to any parent +$tpl->assign('foo','bar'); // directly assign variables +$tpl->config_load('my.conf'); // load config file + +$tpl = $smarty->createTemplate('mytpl.tpl',$smarty); // create template having a parent link to the Smarty object +$tpl = $smarty->createTemplate('mytpl.tpl',$data); // create template having a parent link to the $data object + +The standard fetch() and display() methods will implicitly create a template object. +If the $parent parameter is not specified in these method calls, the template object +is will link back to the Smarty object as it's parent. + +If a template is called by an {include...} tag from another template, the +subtemplate links back to the calling template as it's parent. + +All variables assigned locally or from a parent template are accessible. If the +template creates or modifies a variable by using the {assign var=foo...} or +{$foo=...} tags, these new values are only known locally (local scope). When the +template exits, none of the new variables or modifications can be seen in the +parent template(s). This is same behavior as in Smarty 2. + +With Smarty 3, we can assign variables with a scope attribute which allows the +availablility of these new variables or modifications globally (ie in the parent +templates.) + +Possible scopes are local, parent, root and global. +Examples: +{assign var=foo value='bar'} // no scope is specified, the default 'local' +{$foo='bar'} // same, local scope +{assign var=foo value='bar' scope='local'} // same, local scope + +{assign var=foo value='bar' scope='parent'} // Values will be available to the parent object +{$foo='bar' scope='parent'} // (normally the calling template) + +{assign var=foo value='bar' scope='root'} // Values will be exported up to the root object, so they can +{$foo='bar' scope='root'} // be seen from all templates using the same root. + +{assign var=foo value='bar' scope='global'} // Values will be exported to global variable storage, +{$foo='bar' scope='global'} // they are available to any and all templates. + + +The scope attribute can also be attached to the {include...} tag. In this case, +the specified scope will be the default scope for all assignments within the +included template. + + +PLUGINS +======= + +Smarty 3 plugins follow the same coding rules as in Smarty 2. +The main difference is that the template object is now passed in place of the smarty object. +The smarty object can be still be accessed through $template->smarty. + +smarty_plugintype_name (array $params, Smarty_Internal_Template $template) + +The Smarty 2 plugins are still compatible as long as they do not make use of specific Smarty 2 internals. + + +TEMPLATE INHERITANCE: +===================== + +With template inheritance you can define blocks, which are areas that can be +overridden by child templates, so your templates could look like this: + +parent.tpl: +<html> + <head> + <title>{block name='title'}My site name{/block}</title> + </head> + <body> + <h1>{block name='page-title'}Default page title{/block}</h1> + <div id="content"> + {block name='content'} + Default content + {/block} + </div> + </body> +</html> + +child.tpl: +{extends file='parent.tpl'} +{block name='title'} +Child title +{/block} + +grandchild.tpl: +{extends file='child.tpl'} +{block name='title'}Home - {$smarty.block.parent}{/block} +{block name='page-title'}My home{/block} +{block name='content'} + {foreach $images as $img} + <img src="{$img.url}" alt="{$img.description}" /> + {/foreach} +{/block} + +We redefined all the blocks here, however in the title block we used {$smarty.block.parent}, +which tells Smarty to insert the default content from the parent template in its place. +The content block was overridden to display the image files, and page-title has also be +overridden to display a completely different title. + +If we render grandchild.tpl we will get this: +<html> + <head> + <title>Home - Child title</title> + </head> + <body> + <h1>My home</h1> + <div id="content"> + <img src="/example.jpg" alt="image" /> + <img src="/example2.jpg" alt="image" /> + <img src="/example3.jpg" alt="image" /> + </div> + </body> +</html> + +NOTE: In the child templates everything outside the {extends} or {block} tag sections +is ignored. + +The inheritance tree can be as big as you want (meaning you can extend a file that +extends another one that extends another one and so on..), but be aware that all files +have to be checked for modifications at runtime so the more inheritance the more overhead you add. + +Instead of defining the parent/child relationships with the {extends} tag in the child template you +can use the resource as follow: + +$smarty->display('extends:parent.tpl|child.tpl|grandchild.tpl'); + +Child {block} tags may optionally have a append or prepend attribute. In this case the parent block content +is appended or prepended to the child block content. + +{block name='title' append} My title {/block} + + +PHP STREAMS: +============ + +(see online documentation) + +VARIBLE FILTERS: +================ + +(see online documentation) + + +STATIC CLASS ACCESS AND NAMESPACE SUPPORT +========================================= + +You can register a class with optional namespace for the use in the template like: + +$smarty->register->templateClass('foo','name\name2\myclass'); + +In the template you can use it like this: +{foo::method()} etc. + + +======================= + +Please look through it and send any questions/suggestions/etc to the forums. + +http://www.phpinsider.com/smarty-forum/viewtopic.php?t=14168 + +Monte and Uwe diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/README.md b/civicrm/packages/smarty3/vendor/smarty/smarty/README.md new file mode 100644 index 0000000000..b57969c48c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/README.md @@ -0,0 +1,78 @@ +# Smarty 3 template engine +[smarty.net](https://www.smarty.net/) + +[](https://travis-ci.org/smarty-php/smarty) + +## Documentation + +For documentation see +[www.smarty.net/docs/en/](https://www.smarty.net/docs/en/) + +## Requirements + +Smarty can be run with PHP 5.2 to PHP 7.4. + +## Distribution repository + +> Smarty 3.1.28 introduces run time template inheritance + +> Read the NEW_FEATURES and INHERITANCE_RELEASE_NOTES file for recent extensions to Smarty 3.1 functionality + +Smarty versions 3.1.11 or later are now on GitHub and can be installed with Composer. + + +The "smarty/smarty" package will start at libs/.... subfolder. + +To get the latest stable version of Smarty 3.1 use: + +```json +"require": { + "smarty/smarty": "~3.1" +} +``` + +in your composer.json file. + +To get the trunk version use: + +```json +"require": { + "smarty/smarty": "~3.1@dev" +} +``` + +For a specific version use something like: + +```json +"require": { + "smarty/smarty": "3.1.19" +} +``` + +PHPUnit test can be installed by corresponding composer entries like: + +```json +"require": { + "smarty/smarty-phpunit": "3.1.19" +} +``` + +Similar applies for the lexer/parser generator. + +```json +"require": { + "smarty/smarty-lexer": "3.1.19" +} +``` + +Or you could use: + +```json +"require": { + "smarty/smarty-dev": "3.1.19" +} +``` + +Which is a wrapper to install all 3 packages. + +Composer can also be used for Smarty2 versions 2.6.24 to 2.6.30. diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/SECURITY.md b/civicrm/packages/smarty3/vendor/smarty/smarty/SECURITY.md new file mode 100644 index 0000000000..d98ea01897 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/SECURITY.md @@ -0,0 +1,19 @@ +# Security Policy + +## Supported Versions + +Smarty currently supports the latest minor version of Smarty 3 and Smarty 4. (Smarty 4 has not been released yet.) + +| Version | Supported | +| ------- | ------------------ | +| 4.0.x | :white_check_mark: | +| 3.1.x | :white_check_mark: | +| < 3.1 | :x: | + +## Reporting a Vulnerability + + If you have discovered a security issue with Smarty, please contact us at mail [at] simonwisselink.nl. Do not + disclose your findings publicly and PLEASE PLEASE do not file an Issue. + +We will try to confirm the vulnerability and develop a fix if appropriate. When we release the fix, we will publish +a security release. Please let us know if you want to be credited. diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_2_BC_NOTES.txt b/civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_2_BC_NOTES.txt new file mode 100644 index 0000000000..fd36bd33b7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_2_BC_NOTES.txt @@ -0,0 +1,109 @@ += Known incompatibilities with Smarty 2 = + +== Syntax == + +Smarty 3 API has a new syntax. Much of the Smarty 2 syntax is supported +by a wrapper but deprecated. See the README that comes with Smarty 3 for more +information. + +The {$array|@mod} syntax has always been a bit confusing, where an "@" is required +to apply a modifier to an array instead of the individual elements. Normally you +always want the modifier to apply to the variable regardless of its type. In Smarty 3, +{$array|mod} and {$array|@mod} behave identical. It is safe to drop the "@" and the +modifier will still apply to the array. If you really want the modifier to apply to +each array element, you must loop the array in-template, or use a custom modifier that +supports array iteration. Most smarty functions already escape values where necessary +such as {html_options} + +== PHP Version == +Smarty 3 is PHP 5 only. It will not work with PHP 4. + +== {php} Tag == +The {php} tag is disabled by default. The use of {php} tags is +deprecated. It can be enabled with $smarty->allow_php_tag=true. + +But if you scatter PHP code which belongs together into several +{php} tags it may not work any longer. + +== Delimiters and whitespace == +Delimiters surrounded by whitespace are no longer treated as Smarty tags. +Therefore, { foo } will not compile as a tag, you must use {foo}. This change +Makes Javascript/CSS easier to work with, eliminating the need for {literal}. +This can be disabled by setting $smarty->auto_literal = false; + +== Unquoted Strings == +Smarty 2 was a bit more forgiving (and ambiguous) when it comes to unquoted strings +in parameters. Smarty3 is more restrictive. You can still pass strings without quotes +so long as they contain no special characters. (anything outside of A-Za-z0-9_) + +For example filename strings must be quoted +<source lang="smarty"> +{include file='path/foo.tpl'} +</source> + +== Extending the Smarty class == +Smarty 3 makes use of the __construct method for initialization. If you are extending +the Smarty class, its constructor is not called implicitly if the your child class defines +its own constructor. In order to run Smarty's constructor, a call to parent::__construct() +within your child constructor is required. + +<source lang="php"> +class MySmarty extends Smarty { + function __construct() { + parent::__construct(); + + // your initialization code goes here + + } +} +</source> + +== Autoloader == +Smarty 3 does register its own autoloader with spl_autoload_register. If your code has +an existing __autoload function then this function must be explicitly registered on +the __autoload stack. See http://us3.php.net/manual/en/function.spl-autoload-register.php +for further details. + +== Plugin Filenames == +Smarty 3 optionally supports the PHP spl_autoloader. The autoloader requires filenames +to be lower case. Because of this, Smarty plugin file names must also be lowercase. +In Smarty 2, mixed case file names did work. + +== Scope of Special Smarty Variables == +In Smarty 2 the special Smarty variables $smarty.section... and $smarty.foreach... +had global scope. If you had loops with the same name in subtemplates you could accidentally +overwrite values of parent template. + +In Smarty 3 these special Smarty variable have only local scope in the template which +is defining the loop. If you need their value in a subtemplate you have to pass them +as parameter. +<source lang="smarty"> +{include file='path/foo.tpl' index=$smarty.section.foo.index} +</source> + +== SMARTY_RESOURCE_CHAR_SET == +Smarty 3 sets the constant SMARTY_RESOURCE_CHAR_SET to utf-8 as default template charset. +This is now used also on modifiers like escape as default charset. If your templates use +other charsets make sure that you define the constant accordingly. Otherwise you may not +get any output. + +== newline at {if} tags == +A \n was added to the compiled code of the {if},{else},{elseif},{/if} tags to get output of newlines as expected by the template source. +If one of the {if} tags is at the line end you will now get a newline in the HTML output. + +== trigger_error() == +The API function trigger_error() has been removed because it did just map to PHP trigger_error. +However it's still included in the Smarty2 API wrapper. + +== Smarty constants == +The constants +SMARTY_PHP_PASSTHRU +SMARTY_PHP_QUOTE +SMARTY_PHP_REMOVE +SMARTY_PHP_ALLOW +have been replaced with class constants +Smarty::PHP_PASSTHRU +Smarty::PHP_QUOTE +Smarty::PHP_REMOVE +Smarty::PHP_ALLOW + diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_3.0_BC_NOTES.txt b/civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_3.0_BC_NOTES.txt new file mode 100644 index 0000000000..24bdec61a5 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_3.0_BC_NOTES.txt @@ -0,0 +1,24 @@ +== Smarty2 backward compatibility == +All Smarty2 specific API functions and deprecated functionality has been moved +to the SmartyBC class. + +== {php} Tag == +The {php} tag is no longer available in the standard Smarty calls. +The use of {php} tags is deprecated and only available in the SmartyBC class. + +== {include_php} Tag == +The {include_php} tag is no longer available in the standard Smarty calls. +The use of {include_php} tags is deprecated and only available in the SmartyBC class. + +== php template resource == +The support of the php template resource is removed. + +== $cache_dir, $compile_dir, $config_dir, $template_dir access == +The mentioned properties can't be accessed directly any longer. You must use +corresponding getter/setters like addConfigDir(), setConfigDir(), getConfigDir() + +== obsolete Smarty class properties == +The following no longer used properties are removed: +$allow_php_tag +$allow_php_template +$deprecation_notices \ No newline at end of file diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_3.1_NOTES.txt b/civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_3.1_NOTES.txt new file mode 100644 index 0000000000..d7c23ccc40 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/SMARTY_3.1_NOTES.txt @@ -0,0 +1,306 @@ +Smarty 3.1 Notes +================ + +Smarty 3.1 is a departure from 2.0 compatibility. Most notably, all +backward compatibility has been moved to a separate class file named +SmartyBC.class.php. If you require compatibility with 2.0, you will +need to use this class. + +Some differences from 3.0 are also present. 3.1 begins the journey of +requiring setters/getters for property access. So far this is only +implemented on the five directory properties: template_dir, +plugins_dir, configs_dir, compile_dir and cache_dir. These properties +are now protected, it is required to use the setters/getters instead. +That said, direct property access will still work, however slightly +slower since they will now fall through __set() and __get() and in +turn passed through the setter/getter methods. 3.2 will exhibit a full +list of setter/getter methods for all (currently) public properties, +so code-completion in your IDE will work as expected. + +There is absolutely no PHP allowed in templates any more. All +deprecated features of Smarty 2.0 are gone. Again, use the SmartyBC +class if you need any backward compatibility. + +Internal Changes + + Full UTF-8 Compatibility + +The plugins shipped with Smarty 3.1 have been rewritten to fully +support UTF-8 strings if Multibyte String is available. Without +MBString UTF-8 cannot be handled properly. For those rare cases where +templates themselves have to juggle encodings, the new modifiers +to_charset and from_charset may come in handy. + + Plugin API and Performance + +All Plugins (modifiers, functions, blocks, resources, +default_template_handlers, etc) are now receiving the +Smarty_Internal_Template instance, where they were supplied with the +Smarty instance in Smarty 3.0. *. As The Smarty_Internal_Template +mimics the behavior of Smarty, this API simplification should not +require any changes to custom plugins. + +The plugins shipped with Smarty 3.1 have been rewritten for better +performance. Most notably {html_select_date} and {html_select_time} +have been improved vastly. Performance aside, plugins have also been +reviewed and generalized in their API. {html_select_date} and +{html_select_time} now share almost all available options. + +The escape modifier now knows the $double_encode option, which will +prevent entities from being encoded again. + +The capitalize modifier now know the $lc_rest option, which makes sure +all letters following a capital letter are lower-cased. + +The count_sentences modifier now accepts (.?!) as +legitimate endings of a sentence - previously only (.) was +accepted + +The new unescape modifier is there to reverse the effects of the +escape modifier. This applies to the escape formats html, htmlall and +entity. + + default_template_handler_func + +The invocation of $smarty->$default_template_handler_func had to be +altered. Instead of a Smarty_Internal_Template, the fifth argument is +now provided with the Smarty instance. New footprint: + + +/** + * Default Template Handler + * + * called when Smarty's file: resource is unable to load a requested file + * + * @param string $type resource type (e.g. "file", "string", "eval", "resource") + * @param string $name resource name (e.g. "foo/bar.tpl") + * @param string &$content template's content + * @param integer &$modified template's modification time + * @param Smarty $smarty Smarty instance + * @return string|boolean path to file or boolean true if $content and $modified + * have been filled, boolean false if no default template + * could be loaded + */ +function default_template_handler_func($type, $name, &$content, &$modified, Smarty $smarty) { + if (false) { + // return corrected filepath + return "/tmp/some/foobar.tpl"; + } elseif (false) { + // return a template directly + $content = "the template source"; + $modified = time(); + return true; + } else { + // tell smarty that we failed + return false; + } +} + + Stuff done to the compiler + +Many performance improvements have happened internally. One notable +improvement is that all compiled templates are now handled as PHP +functions. This speeds up repeated templates tremendously, as each one +calls an (in-memory) PHP function instead of performing another file +include/scan. + +New Features + + Template syntax + + {block}..{/block} + +The {block} tag has a new hide option flag. It does suppress the block +content if no corresponding child block exists. +EXAMPLE: +parent.tpl +{block name=body hide} child content "{$smarty.block.child}" was +inserted {block} +In the above example the whole block will be suppressed if no child +block "body" is existing. + + {setfilter}..{/setfilter} + +The new {setfilter} block tag allows the definition of filters which +run on variable output. +SYNTAX: +{setfilter filter1|filter2|filter3....} +Smarty3 will lookup up matching filters in the following search order: +1. variable filter plugin in plugins_dir. +2. a valid modifier. A modifier specification will also accept +additional parameter like filter2:'foo' +3. a PHP function +{/setfilter} will turn previous filter setting off again. +{setfilter} tags can be nested. +EXAMPLE: +{setfilter filter1} + {$foo} + {setfilter filter2} + {$bar} + {/setfilter} + {$buh} +{/setfilter} +{$blar} +In the above example filter1 will run on the output of $foo, filter2 +on $bar, filter1 again on $buh and no filter on $blar. +NOTES: +- {$foo nofilter} will suppress the filters +- These filters will run in addition to filters defined by +registerFilter('variable',...), autoLoadFilter('variable',...) and +defined default modifier. +- {setfilter} will effect only the current template, not included +subtemplates. + + Resource API + +Smarty 3.1 features a new approach to resource management. The +Smarty_Resource API allows simple, yet powerful integration of custom +resources for templates and configuration files. It offers simple +functions for loading data from a custom resource (e.g. database) as +well as define new template types adhering to the special +non-compiling (e,g, plain php) and non-compile-caching (e.g. eval: +resource type) resources. + +See demo/plugins/resource.mysql.php for an example custom database +resource. + +Note that old-fashioned registration of callbacks for resource +management has been deprecated but is still possible with SmartyBC. + + CacheResource API + +In line with the Resource API, the CacheResource API offers a more +comfortable handling of output-cache data. With the +Smarty_CacheResource_Custom accessing databases is made simple. With +the introduction of Smarty_CacheResource_KeyValueStore the +implementation of resources like memcache or APC became a no-brainer; +simple hash-based storage systems are now supporting hierarchical +output-caches. + +See demo/plugins/cacheresource.mysql.php for an example custom +database CacheResource. +See demo/plugins/cacheresource.memcache.php for an example custom +memcache CacheResource using the KeyValueStore helper. + +Note that old-fashioned registration of $cache_handler is not possible +anymore. As the functionality had not been ported to Smarty 3.0.x +properly, it has been dropped from 3.1 completely. + +Locking facilities have been implemented to avoid concurrent cache +generation. Enable cache locking by setting +$smarty->cache_locking = true; + + Relative Paths in Templates (File-Resource) + +As of Smarty 3.1 {include file="../foo.tpl"} and {include +file="./foo.tpl"} will resolve relative to the template they're in. +Relative paths are available with {include file="..."} and +{extends file="..."}. As $smarty->fetch('../foo.tpl') and +$smarty->fetch('./foo.tpl') cannot be relative to a template, an +exception is thrown. + + Addressing a specific $template_dir + +Smarty 3.1 introduces the $template_dir index notation. +$smarty->fetch('[foo]bar.tpl') and {include file="[foo]bar.tpl"} +require the template bar.tpl to be loaded from $template_dir['foo']; +Smarty::setTemplateDir() and Smarty::addTemplateDir() offer ways to +define indexes along with the actual directories. + + Mixing Resources in extends-Resource + +Taking the php extends: template resource one step further, it is now +possible to mix resources within an extends: call like +$smarty->fetch("extends:file:foo.tpl|db:bar.tpl"); + +To make eval: and string: resources available to the inheritance +chain, eval:base64:TPL_STRING and eval:urlencode:TPL_STRING have been +introduced. Supplying the base64 or urlencode flags will trigger +decoding the TPL_STRING in with either base64_decode() or urldecode(). + + extends-Resource in template inheritance + +Template based inheritance may now inherit from php's extends: +resource like {extends file="extends:foo.tpl|db:bar.tpl"}. + + New Smarty property escape_html + +$smarty->escape_html = true will autoescape all template variable +output by calling htmlspecialchars({$output}, ENT_QUOTES, +SMARTY_RESOURCE_CHAR_SET). +NOTE: +This is a compile time option. If you change the setting you must make +sure that the templates get recompiled. + + New option at Smarty property compile_check + +The automatic recompilation of modified templates can now be +controlled by the following settings: +$smarty->compile_check = COMPILECHECK_OFF (false) - template files +will not be checked +$smarty->compile_check = COMPILECHECK_ON (true) - template files will +always be checked +$smarty->compile_check = COMPILECHECK_CACHEMISS - template files will +be checked if caching is enabled and there is no existing cache file +or it has expired + + Automatic recompilation on Smarty version change + +Templates will now be automatically recompiled on Smarty version +changes to avoide incompatibillities in the compiled code. Compiled +template checked against the current setting of the SMARTY_VERSION +constant. + + default_config_handler_func() + +Analogous to the default_template_handler_func() +default_config_handler_func() has been introduced. + + default_plugin_handler_func() + +An optional default_plugin_handler_func() can be defined which gets called +by the compiler on tags which can't be resolved internally or by plugins. +The default_plugin_handler() can map tags to plugins on the fly. + +New getters/setters + +The following setters/getters will be part of the official +documentation, and will be strongly recommended. Direct property +access will still work for the foreseeable future... it will be +transparently routed through the setters/getters, and consequently a +bit slower. + +array|string getTemplateDir( [string $index] ) +replaces $smarty->template_dir; and $smarty->template_dir[$index]; +Smarty setTemplateDir( array|string $path ) +replaces $smarty->template_dir = "foo"; and $smarty->template_dir = +array("foo", "bar"); +Smarty addTemplateDir( array|string $path, [string $index]) +replaces $smarty->template_dir[] = "bar"; and +$smarty->template_dir[$index] = "bar"; + +array|string getConfigDir( [string $index] ) +replaces $smarty->config_dir; and $smarty->config_dir[$index]; +Smarty setConfigDir( array|string $path ) +replaces $smarty->config_dir = "foo"; and $smarty->config_dir = +array("foo", "bar"); +Smarty addConfigDir( array|string $path, [string $index]) +replaces $smarty->config_dir[] = "bar"; and +$smarty->config_dir[$index] = "bar"; + +array getPluginsDir() +replaces $smarty->plugins_dir; +Smarty setPluginsDir( array|string $path ) +replaces $smarty->plugins_dir = "foo"; +Smarty addPluginsDir( array|string $path ) +replaces $smarty->plugins_dir[] = "bar"; + +string getCompileDir() +replaces $smarty->compile_dir; +Smarty setCompileDir( string $path ) +replaces $smarty->compile_dir = "foo"; + +string getCacheDir() +replaces $smarty->cache_dir; +Smarty setCacheDir( string $path ) +replaces $smarty->cache_dir; diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/composer.json b/civicrm/packages/smarty3/vendor/smarty/smarty/composer.json new file mode 100644 index 0000000000..22f92083fa --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/composer.json @@ -0,0 +1,46 @@ +{ + "name": "smarty/smarty", + "type": "library", + "description": "Smarty - the compiling PHP template engine", + "keywords": [ + "templating" + ], + "homepage": "http://www.smarty.net", + "license": "LGPL-3.0", + "authors": [ + { + "name": "Monte Ohrt", + "email": "monte@ohrt.com" + }, + { + "name": "Uwe Tews", + "email": "uwe.tews@googlemail.com" + }, + { + "name": "Rodney Rehm", + "email": "rodney.rehm@medialize.de" + } + ], + "support": { + "irc": "irc://irc.freenode.org/smarty", + "issues": "https://github.com/smarty-php/smarty/issues", + "forum": "http://www.smarty.net/forums/" + }, + "require": { + "php": "^5.2 || ^7.0" + }, + "autoload": { + "classmap": [ + "libs/" + ] + }, + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^6.5 || ^5.7 || ^4.8", + "smarty/smarty-lexer": "^3.1" + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/configs/test.conf b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/configs/test.conf new file mode 100644 index 0000000000..5eac748ec3 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/configs/test.conf @@ -0,0 +1,5 @@ +title = Welcome to Smarty! +cutoff_size = 40 + +[setup] +bold = true diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/index.php b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/index.php new file mode 100644 index 0000000000..3aed37168e --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/index.php @@ -0,0 +1,35 @@ +<?php +/** + * Example Application + * + * @package Example-application + */ +require '../libs/Smarty.class.php'; +$smarty = new Smarty; +//$smarty->force_compile = true; +$smarty->debugging = true; +$smarty->caching = true; +$smarty->cache_lifetime = 120; +$smarty->assign("Name", "Fred Irving Johnathan Bradley Peppergill", true); +$smarty->assign("FirstName", array("John", "Mary", "James", "Henry")); +$smarty->assign("LastName", array("Doe", "Smith", "Johnson", "Case")); +$smarty->assign( + "Class", + array( + array("A", "B", "C", "D"), + array("E", "F", "G", "H"), + array("I", "J", "K", "L"), + array("M", "N", "O", "P") + ) +); +$smarty->assign( + "contacts", + array( + array("phone" => "1", "fax" => "2", "cell" => "3"), + array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234") + ) +); +$smarty->assign("option_values", array("NY", "NE", "KS", "IA", "OK", "TX")); +$smarty->assign("option_output", array("New York", "Nebraska", "Kansas", "Iowa", "Oklahoma", "Texas")); +$smarty->assign("option_selected", "NE"); +$smarty->display('index.tpl'); diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.apc.php b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.apc.php new file mode 100644 index 0000000000..7867cc5989 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.apc.php @@ -0,0 +1,85 @@ +<?php + +/** + * APC CacheResource + * CacheResource Implementation based on the KeyValueStore API to use + * memcache as the storage resource for Smarty's output caching. + * * + * + * @package CacheResource-examples + * @author Uwe Tews + */ +class Smarty_CacheResource_Apc extends Smarty_CacheResource_KeyValueStore +{ + /** + * Smarty_CacheResource_Apc constructor. + * + * @throws \Exception + */ + public function __construct() + { + // test if APC is present + if (!function_exists('apc_cache_info')) { + throw new Exception('APC Template Caching Error: APC is not installed'); + } + } + + /** + * Read values for a set of keys from cache + * + * @param array $keys list of keys to fetch + * + * @return array list of values with the given keys used as indexes + * @return boolean true on success, false on failure + */ + protected function read(array $keys) + { + $_res = array(); + $res = apc_fetch($keys); + foreach ($res as $k => $v) { + $_res[ $k ] = $v; + } + return $_res; + } + + /** + * Save values for a set of keys to cache + * + * @param array $keys list of values to save + * @param int $expire expiration time + * + * @return boolean true on success, false on failure + */ + protected function write(array $keys, $expire = null) + { + foreach ($keys as $k => $v) { + apc_store($k, $v, $expire); + } + return true; + } + + /** + * Remove values from cache + * + * @param array $keys list of keys to delete + * + * @return boolean true on success, false on failure + */ + protected function delete(array $keys) + { + foreach ($keys as $k) { + apc_delete($k); + } + return true; + } + + /** + * Remove *all* values from cache + * + * @return boolean true on success, false on failure + */ + protected function purge() + { + return apc_clear_cache('user'); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.memcache.php b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.memcache.php new file mode 100644 index 0000000000..71fe9d3f11 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.memcache.php @@ -0,0 +1,99 @@ +<?php + +/** + * Memcache CacheResource + * CacheResource Implementation based on the KeyValueStore API to use + * memcache as the storage resource for Smarty's output caching. + * Note that memcache has a limitation of 256 characters per cache-key. + * To avoid complications all cache-keys are translated to a sha1 hash. + * + * @package CacheResource-examples + * @author Rodney Rehm + */ +class Smarty_CacheResource_Memcache extends Smarty_CacheResource_KeyValueStore +{ + /** + * memcache instance + * + * @var Memcache + */ + protected $memcache = null; + + /** + * Smarty_CacheResource_Memcache constructor. + */ + public function __construct() + { + if (class_exists('Memcached')) { + $this->memcache = new Memcached(); + } else { + $this->memcache = new Memcache(); + } + $this->memcache->addServer('127.0.0.1', 11211); + } + + /** + * Read values for a set of keys from cache + * + * @param array $keys list of keys to fetch + * + * @return array list of values with the given keys used as indexes + * @return boolean true on success, false on failure + */ + protected function read(array $keys) + { + $res = array(); + foreach ($keys as $key) { + $k = sha1($key); + $res[$key] = $this->memcache->get($k); + } + return $res; + } + + /** + * Save values for a set of keys to cache + * + * @param array $keys list of values to save + * @param int $expire expiration time + * + * @return boolean true on success, false on failure + */ + protected function write(array $keys, $expire = null) + { + foreach ($keys as $k => $v) { + $k = sha1($k); + if (class_exists('Memcached')) { + $this->memcache->set($k, $v, $expire); + } else { + $this->memcache->set($k, $v, 0, $expire); + } + } + return true; + } + + /** + * Remove values from cache + * + * @param array $keys list of keys to delete + * + * @return boolean true on success, false on failure + */ + protected function delete(array $keys) + { + foreach ($keys as $k) { + $k = sha1($k); + $this->memcache->delete($k); + } + return true; + } + + /** + * Remove *all* values from cache + * + * @return boolean true on success, false on failure + */ + protected function purge() + { + return $this->memcache->flush(); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.mysql.php b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.mysql.php new file mode 100644 index 0000000000..c5037eb13c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.mysql.php @@ -0,0 +1,183 @@ +<?php + +/** + * MySQL CacheResource + * CacheResource Implementation based on the Custom API to use + * MySQL as the storage resource for Smarty's output caching. + * Table definition: + * <pre>CREATE TABLE IF NOT EXISTS `output_cache` ( + * `id` CHAR(40) NOT NULL COMMENT 'sha1 hash', + * `name` VARCHAR(250) NOT NULL, + * `cache_id` VARCHAR(250) NULL DEFAULT NULL, + * `compile_id` VARCHAR(250) NULL DEFAULT NULL, + * `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + * `content` LONGTEXT NOT NULL, + * PRIMARY KEY (`id`), + * INDEX(`name`), + * INDEX(`cache_id`), + * INDEX(`compile_id`), + * INDEX(`modified`) + * ) ENGINE = InnoDB;</pre> + * + * @package CacheResource-examples + * @author Rodney Rehm + */ +class Smarty_CacheResource_Mysql extends Smarty_CacheResource_Custom +{ + /** + * @var \PDO + */ + protected $db; + + /** + * @var \PDOStatement + */ + protected $fetch; + + /** + * @var \PDOStatement + */ + protected $fetchTimestamp; + + /** + * @var \PDOStatement + */ + protected $save; + + /** + * Smarty_CacheResource_Mysql constructor. + * + * @throws \SmartyException + */ + public function __construct() + { + try { + $this->db = new PDO("mysql:dbname=test;host=127.0.0.1", "smarty"); + } catch (PDOException $e) { + throw new SmartyException('Mysql Resource failed: ' . $e->getMessage()); + } + $this->fetch = $this->db->prepare('SELECT modified, content FROM output_cache WHERE id = :id'); + $this->fetchTimestamp = $this->db->prepare('SELECT modified FROM output_cache WHERE id = :id'); + $this->save = $this->db->prepare( + 'REPLACE INTO output_cache (id, name, cache_id, compile_id, content) + VALUES (:id, :name, :cache_id, :compile_id, :content)' + ); + } + + /** + * fetch cached content and its modification time from data source + * + * @param string $id unique cache content identifier + * @param string $name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param string $content cached content + * @param integer $mtime cache modification timestamp (epoch) + * + * @return void + */ + protected function fetch($id, $name, $cache_id, $compile_id, &$content, &$mtime) + { + $this->fetch->execute(array('id' => $id)); + $row = $this->fetch->fetch(); + $this->fetch->closeCursor(); + if ($row) { + $content = $row[ 'content' ]; + $mtime = strtotime($row[ 'modified' ]); + } else { + $content = null; + $mtime = null; + } + } + + /** + * Fetch cached content's modification timestamp from data source + * + * @note implementing this method is optional. Only implement it if modification times can be accessed faster than + * loading the complete cached content. + * + * @param string $id unique cache content identifier + * @param string $name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * + * @return integer|boolean timestamp (epoch) the template was modified, or false if not found + */ + protected function fetchTimestamp($id, $name, $cache_id, $compile_id) + { + $this->fetchTimestamp->execute(array('id' => $id)); + $mtime = strtotime($this->fetchTimestamp->fetchColumn()); + $this->fetchTimestamp->closeCursor(); + return $mtime; + } + + /** + * Save content to cache + * + * @param string $id unique cache content identifier + * @param string $name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param integer|null $exp_time seconds till expiration time in seconds or null + * @param string $content content to cache + * + * @return boolean success + */ + protected function save($id, $name, $cache_id, $compile_id, $exp_time, $content) + { + $this->save->execute( + array('id' => $id, + 'name' => $name, + 'cache_id' => $cache_id, + 'compile_id' => $compile_id, + 'content' => $content,) + ); + return !!$this->save->rowCount(); + } + + /** + * Delete content from cache + * + * @param string $name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param integer|null $exp_time seconds till expiration or null + * + * @return integer number of deleted caches + */ + protected function delete($name, $cache_id, $compile_id, $exp_time) + { + // delete the whole cache + if ($name === null && $cache_id === null && $compile_id === null && $exp_time === null) { + // returning the number of deleted caches would require a second query to count them + $query = $this->db->query('TRUNCATE TABLE output_cache'); + return -1; + } + // build the filter + $where = array(); + // equal test name + if ($name !== null) { + $where[] = 'name = ' . $this->db->quote($name); + } + // equal test compile_id + if ($compile_id !== null) { + $where[] = 'compile_id = ' . $this->db->quote($compile_id); + } + // range test expiration time + if ($exp_time !== null) { + $where[] = 'modified < DATE_SUB(NOW(), INTERVAL ' . intval($exp_time) . ' SECOND)'; + } + // equal test cache_id and match sub-groups + if ($cache_id !== null) { + $where[] = + '(cache_id = ' . + $this->db->quote($cache_id) . + ' OR cache_id LIKE ' . + $this->db->quote($cache_id . '|%') . + ')'; + } + // run delete query + $query = $this->db->query('DELETE FROM output_cache WHERE ' . join(' AND ', $where)); + return $query->rowCount(); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.pdo.php b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.pdo.php new file mode 100644 index 0000000000..a80cd698e9 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.pdo.php @@ -0,0 +1,346 @@ +<?php + +/** + * PDO Cache Handler + * Allows you to store Smarty Cache files into your db. + * Example table : + * CREATE TABLE `smarty_cache` ( + * `id` char(40) NOT NULL COMMENT 'sha1 hash', + * `name` varchar(250) NOT NULL, + * `cache_id` varchar(250) DEFAULT NULL, + * `compile_id` varchar(250) DEFAULT NULL, + * `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + * `expire` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + * `content` mediumblob NOT NULL, + * PRIMARY KEY (`id`), + * KEY `name` (`name`), + * KEY `cache_id` (`cache_id`), + * KEY `compile_id` (`compile_id`), + * KEY `modified` (`modified`), + * KEY `expire` (`expire`) + * ) ENGINE=InnoDB + * Example usage : + * $cnx = new PDO("mysql:host=localhost;dbname=mydb", "username", "password"); + * $smarty->setCachingType('pdo'); + * $smarty->loadPlugin('Smarty_CacheResource_Pdo'); + * $smarty->registerCacheResource('pdo', new Smarty_CacheResource_Pdo($cnx, 'smarty_cache')); + * + * @author Beno!t POLASZEK - 2014 + */ +class Smarty_CacheResource_Pdo extends Smarty_CacheResource_Custom +{ + /** + * @var string[] + */ + protected $fetchStatements = array('default' => 'SELECT %2$s + FROM %1$s + WHERE 1 + AND id = :id + AND cache_id IS NULL + AND compile_id IS NULL', + 'withCacheId' => 'SELECT %2$s + FROM %1$s + WHERE 1 + AND id = :id + AND cache_id = :cache_id + AND compile_id IS NULL', + 'withCompileId' => 'SELECT %2$s + FROM %1$s + WHERE 1 + AND id = :id + AND compile_id = :compile_id + AND cache_id IS NULL', + 'withCacheIdAndCompileId' => 'SELECT %2$s + FROM %1$s + WHERE 1 + AND id = :id + AND cache_id = :cache_id + AND compile_id = :compile_id'); + + /** + * @var string + */ + protected $insertStatement = 'INSERT INTO %s + + SET id = :id, + name = :name, + cache_id = :cache_id, + compile_id = :compile_id, + modified = CURRENT_TIMESTAMP, + expire = DATE_ADD(CURRENT_TIMESTAMP, INTERVAL :expire SECOND), + content = :content + + ON DUPLICATE KEY UPDATE + name = :name, + cache_id = :cache_id, + compile_id = :compile_id, + modified = CURRENT_TIMESTAMP, + expire = DATE_ADD(CURRENT_TIMESTAMP, INTERVAL :expire SECOND), + content = :content'; + + /** + * @var string + */ + protected $deleteStatement = 'DELETE FROM %1$s WHERE %2$s'; + + /** + * @var string + */ + protected $truncateStatement = 'TRUNCATE TABLE %s'; + + /** + * @var string + */ + protected $fetchColumns = 'modified, content'; + + /** + * @var string + */ + protected $fetchTimestampColumns = 'modified'; + + /** + * @var \PDO + */ + protected $pdo; + + /** + * @var + */ + protected $table; + + /** + * @var null + */ + protected $database; + + /** + * Constructor + * + * @param PDO $pdo PDO : active connection + * @param string $table : table (or view) name + * @param string $database : optional - if table is located in another db + * + * @throws \SmartyException + */ + public function __construct(PDO $pdo, $table, $database = null) + { + if (is_null($table)) { + throw new SmartyException("Table name for caching can't be null"); + } + $this->pdo = $pdo; + $this->table = $table; + $this->database = $database; + $this->fillStatementsWithTableName(); + } + + /** + * Fills the table name into the statements. + * + * @return $this Current Instance + * @access protected + */ + protected function fillStatementsWithTableName() + { + foreach ($this->fetchStatements as &$statement) { + $statement = sprintf($statement, $this->getTableName(), '%s'); + } + $this->insertStatement = sprintf($this->insertStatement, $this->getTableName()); + $this->deleteStatement = sprintf($this->deleteStatement, $this->getTableName(), '%s'); + $this->truncateStatement = sprintf($this->truncateStatement, $this->getTableName()); + return $this; + } + + /** + * Gets the fetch statement, depending on what you specify + * + * @param string $columns : the column(s) name(s) you want to retrieve from the database + * @param string $id unique cache content identifier + * @param string|null $cache_id cache id + * @param string|null $compile_id compile id + * + * @access protected + * @return \PDOStatement + */ + protected function getFetchStatement($columns, $id, $cache_id = null, $compile_id = null) + { + $args = array(); + if (!is_null($cache_id) && !is_null($compile_id)) { + $query = $this->fetchStatements[ 'withCacheIdAndCompileId' ] and + $args = array('id' => $id, 'cache_id' => $cache_id, 'compile_id' => $compile_id); + } elseif (is_null($cache_id) && !is_null($compile_id)) { + $query = $this->fetchStatements[ 'withCompileId' ] and + $args = array('id' => $id, 'compile_id' => $compile_id); + } elseif (!is_null($cache_id) && is_null($compile_id)) { + $query = $this->fetchStatements[ 'withCacheId' ] and $args = array('id' => $id, 'cache_id' => $cache_id); + } else { + $query = $this->fetchStatements[ 'default' ] and $args = array('id' => $id); + } + $query = sprintf($query, $columns); + $stmt = $this->pdo->prepare($query); + foreach ($args as $key => $value) { + $stmt->bindValue($key, $value); + } + return $stmt; + } + + /** + * fetch cached content and its modification time from data source + * + * @param string $id unique cache content identifier + * @param string $name template name + * @param string|null $cache_id cache id + * @param string|null $compile_id compile id + * @param string $content cached content + * @param integer $mtime cache modification timestamp (epoch) + * + * @return void + * @access protected + */ + protected function fetch($id, $name, $cache_id = null, $compile_id = null, &$content, &$mtime) + { + $stmt = $this->getFetchStatement($this->fetchColumns, $id, $cache_id, $compile_id); + $stmt->execute(); + $row = $stmt->fetch(); + $stmt->closeCursor(); + if ($row) { + $content = $this->outputContent($row[ 'content' ]); + $mtime = strtotime($row[ 'modified' ]); + } else { + $content = null; + $mtime = null; + } + } + + /** + * Fetch cached content's modification timestamp from data source + * {@internal implementing this method is optional. + * Only implement it if modification times can be accessed faster than loading the complete cached content.}} + * + * @param string $id unique cache content identifier + * @param string $name template name + * @param string|null $cache_id cache id + * @param string|null $compile_id compile id + * + * @return integer|boolean timestamp (epoch) the template was modified, or false if not found + * @access protected + */ + // protected function fetchTimestamp($id, $name, $cache_id = null, $compile_id = null) { + // $stmt = $this->getFetchStatement($this->fetchTimestampColumns, $id, $cache_id, $compile_id); + // $stmt -> execute(); + // $mtime = strtotime($stmt->fetchColumn()); + // $stmt -> closeCursor(); + // return $mtime; + // } + /** + * Save content to cache + * + * @param string $id unique cache content identifier + * @param string $name template name + * @param string|null $cache_id cache id + * @param string|null $compile_id compile id + * @param integer|null $exp_time seconds till expiration time in seconds or null + * @param string $content content to cache + * + * @return boolean success + * @access protected + */ + protected function save($id, $name, $cache_id = null, $compile_id = null, $exp_time, $content) + { + $stmt = $this->pdo->prepare($this->insertStatement); + $stmt->bindValue('id', $id); + $stmt->bindValue('name', $name); + $stmt->bindValue('cache_id', $cache_id, (is_null($cache_id)) ? PDO::PARAM_NULL : PDO::PARAM_STR); + $stmt->bindValue('compile_id', $compile_id, (is_null($compile_id)) ? PDO::PARAM_NULL : PDO::PARAM_STR); + $stmt->bindValue('expire', (int)$exp_time, PDO::PARAM_INT); + $stmt->bindValue('content', $this->inputContent($content)); + $stmt->execute(); + return !!$stmt->rowCount(); + } + + /** + * Encodes the content before saving to database + * + * @param string $content + * + * @return string $content + * @access protected + */ + protected function inputContent($content) + { + return $content; + } + + /** + * Decodes the content before saving to database + * + * @param string $content + * + * @return string $content + * @access protected + */ + protected function outputContent($content) + { + return $content; + } + + /** + * Delete content from cache + * + * @param string|null $name template name + * @param string|null $cache_id cache id + * @param string|null $compile_id compile id + * @param integer|null|-1 $exp_time seconds till expiration or null + * + * @return integer number of deleted caches + * @access protected + */ + protected function delete($name = null, $cache_id = null, $compile_id = null, $exp_time = null) + { + // delete the whole cache + if ($name === null && $cache_id === null && $compile_id === null && $exp_time === null) { + // returning the number of deleted caches would require a second query to count them + $this->pdo->query($this->truncateStatement); + return -1; + } + // build the filter + $where = array(); + // equal test name + if ($name !== null) { + $where[] = 'name = ' . $this->pdo->quote($name); + } + // equal test cache_id and match sub-groups + if ($cache_id !== null) { + $where[] = + '(cache_id = ' . + $this->pdo->quote($cache_id) . + ' OR cache_id LIKE ' . + $this->pdo->quote($cache_id . '|%') . + ')'; + } + // equal test compile_id + if ($compile_id !== null) { + $where[] = 'compile_id = ' . $this->pdo->quote($compile_id); + } + // for clearing expired caches + if ($exp_time === Smarty::CLEAR_EXPIRED) { + $where[] = 'expire < CURRENT_TIMESTAMP'; + } // range test expiration time + elseif ($exp_time !== null) { + $where[] = 'modified < DATE_SUB(NOW(), INTERVAL ' . intval($exp_time) . ' SECOND)'; + } + // run delete query + $query = $this->pdo->query(sprintf($this->deleteStatement, join(' AND ', $where))); + return $query->rowCount(); + } + + /** + * Gets the formatted table name + * + * @return string + * @access protected + */ + protected function getTableName() + { + return (is_null($this->database)) ? "`{$this->table}`" : "`{$this->database}`.`{$this->table}`"; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.pdo_gzip.php b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.pdo_gzip.php new file mode 100644 index 0000000000..5560b9e395 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/cacheresource.pdo_gzip.php @@ -0,0 +1,42 @@ +<?php +require_once 'cacheresource.pdo.php'; + +/** + * PDO Cache Handler with GZIP support + * Example usage : + * $cnx = new PDO("mysql:host=localhost;dbname=mydb", "username", "password"); + * $smarty->setCachingType('pdo_gzip'); + * $smarty->loadPlugin('Smarty_CacheResource_Pdo_Gzip'); + * $smarty->registerCacheResource('pdo_gzip', new Smarty_CacheResource_Pdo_Gzip($cnx, 'smarty_cache')); + * + * @require Smarty_CacheResource_Pdo class + * @author Beno!t POLASZEK - 2014 + */ +class Smarty_CacheResource_Pdo_Gzip extends Smarty_CacheResource_Pdo +{ + /** + * Encodes the content before saving to database + * + * @param string $content + * + * @return string $content + * @access protected + */ + protected function inputContent($content) + { + return gzdeflate($content); + } + + /** + * Decodes the content before saving to database + * + * @param string $content + * + * @return string $content + * @access protected + */ + protected function outputContent($content) + { + return gzinflate($content); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.extendsall.php b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.extendsall.php new file mode 100644 index 0000000000..a547d41dbf --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.extendsall.php @@ -0,0 +1,62 @@ +<?php + +/** + * Extends All Resource + * Resource Implementation modifying the extends-Resource to walk + * through the template_dirs and inherit all templates of the same name + * + * @package Resource-examples + * @author Rodney Rehm + */ +class Smarty_Resource_Extendsall extends Smarty_Internal_Resource_Extends +{ + /** + * populate Source Object with meta data from Resource + * + * @param Smarty_Template_Source $source source object + * @param Smarty_Internal_Template $_template template object + * + * @return void + */ + public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) + { + $uid = ''; + $sources = array(); + $timestamp = 0; + foreach ($source->smarty->getTemplateDir() as $key => $directory) { + try { + $s = Smarty_Resource::source(null, $source->smarty, 'file:' . '[' . $key . ']' . $source->name); + if (!$s->exists) { + continue; + } + $sources[ $s->uid ] = $s; + $uid .= $s->filepath; + $timestamp = $s->timestamp > $timestamp ? $s->timestamp : $timestamp; + } catch (SmartyException $e) { + } + } + if (!$sources) { + $source->exists = false; + return; + } + $sources = array_reverse($sources, true); + reset($sources); + $s = current($sources); + $source->components = $sources; + $source->filepath = $s->filepath; + $source->uid = sha1($uid . $source->smarty->_joined_template_dir); + $source->exists = true; + $source->timestamp = $timestamp; + } + + /** + * Disable timestamp checks for extendsall resource. + * The individual source components will be checked. + * + * @return bool false + */ + public function checkTimestamps() + { + return false; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.mysql.php b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.mysql.php new file mode 100644 index 0000000000..95a3c2baf1 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.mysql.php @@ -0,0 +1,101 @@ +<?php + +/** + * MySQL Resource + * Resource Implementation based on the Custom API to use + * MySQL as the storage resource for Smarty's templates and configs. + * Table definition: + * <pre>CREATE TABLE IF NOT EXISTS `templates` ( + * `name` varchar(100) NOT NULL, + * `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + * `source` text, + * PRIMARY KEY (`name`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;</pre> + * Demo data: + * <pre>INSERT INTO `templates` (`name`, `modified`, `source`) VALUES ('test.tpl', "2010-12-25 22:00:00", '{$x="hello + * world"}{$x}');</pre> + * + * + * @package Resource-examples + * @author Rodney Rehm + */ +class Smarty_Resource_Mysql extends Smarty_Resource_Custom +{ + /** + * PDO instance + * + * @var \PDO + */ + protected $db; + + /** + * prepared fetch() statement + * + * @var \PDOStatement + */ + protected $fetch; + + /** + * prepared fetchTimestamp() statement + * + * @var \PDOStatement + */ + protected $mtime; + + /** + * Smarty_Resource_Mysql constructor. + * + * @throws \SmartyException + */ + public function __construct() + { + try { + $this->db = new PDO("mysql:dbname=test;host=127.0.0.1", "smarty"); + } catch (PDOException $e) { + throw new SmartyException('Mysql Resource failed: ' . $e->getMessage()); + } + $this->fetch = $this->db->prepare('SELECT modified, source FROM templates WHERE name = :name'); + $this->mtime = $this->db->prepare('SELECT modified FROM templates WHERE name = :name'); + } + + /** + * Fetch a template and its modification time from database + * + * @param string $name template name + * @param string $source template source + * @param integer $mtime template modification timestamp (epoch) + * + * @return void + */ + protected function fetch($name, &$source, &$mtime) + { + $this->fetch->execute(array('name' => $name)); + $row = $this->fetch->fetch(); + $this->fetch->closeCursor(); + if ($row) { + $source = $row[ 'source' ]; + $mtime = strtotime($row[ 'modified' ]); + } else { + $source = null; + $mtime = null; + } + } + + /** + * Fetch a template's modification time from database + * + * @note implementing this method is optional. Only implement it if modification times can be accessed faster than + * loading the comple template source. + * + * @param string $name template name + * + * @return integer timestamp (epoch) the template was modified + */ + protected function fetchTimestamp($name) + { + $this->mtime->execute(array('name' => $name)); + $mtime = $this->mtime->fetchColumn(); + $this->mtime->closeCursor(); + return strtotime($mtime); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.mysqls.php b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.mysqls.php new file mode 100644 index 0000000000..148a8dd61e --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/plugins/resource.mysqls.php @@ -0,0 +1,77 @@ +<?php + +/** + * MySQL Resource + * Resource Implementation based on the Custom API to use + * MySQL as the storage resource for Smarty's templates and configs. + * Note that this MySQL implementation fetches the source and timestamps in + * a single database query, instead of two separate like resource.mysql.php does. + * Table definition: + * <pre>CREATE TABLE IF NOT EXISTS `templates` ( + * `name` varchar(100) NOT NULL, + * `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + * `source` text, + * PRIMARY KEY (`name`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;</pre> + * Demo data: + * <pre>INSERT INTO `templates` (`name`, `modified`, `source`) VALUES ('test.tpl', "2010-12-25 22:00:00", '{$x="hello + * world"}{$x}');</pre> + * + * + * @package Resource-examples + * @author Rodney Rehm + */ +class Smarty_Resource_Mysqls extends Smarty_Resource_Custom +{ + /** + * PDO instance + * + * @var \PDO + */ + protected $db; + + /** + * prepared fetch() statement + * + * @var \PDOStatement + */ + protected $fetch; + + /** + * Smarty_Resource_Mysqls constructor. + * + * @throws \SmartyException + */ + public function __construct() + { + try { + $this->db = new PDO("mysql:dbname=test;host=127.0.0.1", "smarty"); + } catch (PDOException $e) { + throw new SmartyException('Mysql Resource failed: ' . $e->getMessage()); + } + $this->fetch = $this->db->prepare('SELECT modified, source FROM templates WHERE name = :name'); + } + + /** + * Fetch a template and its modification time from database + * + * @param string $name template name + * @param string $source template source + * @param integer $mtime template modification timestamp (epoch) + * + * @return void + */ + protected function fetch($name, &$source, &$mtime) + { + $this->fetch->execute(array('name' => $name)); + $row = $this->fetch->fetch(); + $this->fetch->closeCursor(); + if ($row) { + $source = $row[ 'source' ]; + $mtime = strtotime($row[ 'modified' ]); + } else { + $source = null; + $mtime = null; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/footer.tpl b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/footer.tpl new file mode 100644 index 0000000000..e04310fdd2 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/footer.tpl @@ -0,0 +1,2 @@ +</BODY> +</HTML> diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/header.tpl b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/header.tpl new file mode 100644 index 0000000000..783210a187 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/header.tpl @@ -0,0 +1,5 @@ +<HTML> +<HEAD> +<TITLE>{$title} - {$Name}</TITLE> +</HEAD> +<BODY bgcolor="#ffffff"> diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/index.tpl b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/index.tpl new file mode 100644 index 0000000000..1fbb6d3794 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/demo/templates/index.tpl @@ -0,0 +1,87 @@ +{config_load file="test.conf" section="setup"} +{include file="header.tpl" title=foo} + +<PRE> + +{* bold and title are read from the config file *} + {if #bold#}<b>{/if} + {* capitalize the first letters of each word of the title *} + Title: {#title#|capitalize} + {if #bold#}</b>{/if} + + The current date and time is {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"} + + The value of global assigned variable $SCRIPT_NAME is {$SCRIPT_NAME} + + Example of accessing server environment variable SERVER_NAME: {$smarty.server.SERVER_NAME} + + The value of {ldelim}$Name{rdelim} is <b>{$Name}</b> + +variable modifier example of {ldelim}$Name|upper{rdelim} + +<b>{$Name|upper}</b> + + +An example of a section loop: + + {section name=outer + loop=$FirstName} + {if $smarty.section.outer.index is odd by 2} + {$smarty.section.outer.rownum} . {$FirstName[outer]} {$LastName[outer]} + {else} + {$smarty.section.outer.rownum} * {$FirstName[outer]} {$LastName[outer]} + {/if} + {sectionelse} + none + {/section} + + An example of section looped key values: + + {section name=sec1 loop=$contacts} + phone: {$contacts[sec1].phone} + <br> + + fax: {$contacts[sec1].fax} + <br> + + cell: {$contacts[sec1].cell} + <br> + {/section} + <p> + + testing strip tags + {strip} +<table border=0> + <tr> + <td> + <A HREF="{$SCRIPT_NAME}"> + <font color="red">This is a test </font> + </A> + </td> + </tr> +</table> + {/strip} + +</PRE> + +This is an example of the html_select_date function: + +<form> + {html_select_date start_year=1998 end_year=2010} +</form> + +This is an example of the html_select_time function: + +<form> + {html_select_time use_24_hours=false} +</form> + +This is an example of the html_options function: + +<form> + <select name=states> + {html_options values=$option_values selected=$option_selected output=$option_output} + </select> +</form> + +{include file="footer.tpl"} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_configfilelexer.plex b/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_configfilelexer.plex new file mode 100644 index 0000000000..7a86fadc44 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_configfilelexer.plex @@ -0,0 +1,318 @@ +<?php +/** +* Smarty Internal Plugin Configfilelexer +* +* This is the lexer to break the config file source into tokens +* @package Smarty +* @subpackage Config +* @author Uwe Tews +*/ +/** +* Smarty_Internal_Configfilelexer +* +* This is the config file lexer. +* It is generated from the smarty_internal_configfilelexer.plex file +* +* @package Smarty +* @subpackage Compiler +* @author Uwe Tews +*/ +class Smarty_Internal_Configfilelexer +{ + /** + * Source + * + * @var string + */ + public $data; + /** + * Source length + * + * @var int + */ + public $dataLength = null; + /** + * byte counter + * + * @var int + */ + public $counter; + /** + * token number + * + * @var int + */ + public $token; + /** + * token value + * + * @var string + */ + public $value; + /** + * current line + * + * @var int + */ + public $line; + /** + * state number + * + * @var int + */ + public $state = 1; + /** + * Smarty object + * + * @var Smarty + */ + public $smarty = null; + /** + * compiler object + * + * @var Smarty_Internal_Config_File_Compiler + */ + private $compiler = null; + /** + * copy of config_booleanize + * + * @var bool + */ + private $configBooleanize = false; + /** + * trace file + * + * @var resource + */ + public $yyTraceFILE; + /** + * trace prompt + * + * @var string + */ + public $yyTracePrompt; + /** + * state names + * + * @var array + */ + public $state_name = array(1 => 'START', 2 => 'VALUE', 3 => 'NAKED_STRING_VALUE', 4 => 'COMMENT', 5 => 'SECTION', 6 => 'TRIPPLE'); + + /** + * storage for assembled token patterns + * + * @var string + */ + private $yy_global_pattern1 = null; + private $yy_global_pattern2 = null; + private $yy_global_pattern3 = null; + private $yy_global_pattern4 = null; + private $yy_global_pattern5 = null; + private $yy_global_pattern6 = null; + + /** + * token names + * + * @var array + */ + public $smarty_token_names = array( // Text for parser error messages + ); + + /** + * constructor + * + * @param string $data template source + * @param Smarty_Internal_Config_File_Compiler $compiler + */ + public function __construct($data, Smarty_Internal_Config_File_Compiler $compiler) + { + $this->data = $data . "\n"; //now all lines are \n-terminated + $this->dataLength = strlen($data); + $this->counter = 0; + if (preg_match('/^\xEF\xBB\xBF/', $this->data, $match)) { + $this->counter += strlen($match[0]); + } + $this->line = 1; + $this->compiler = $compiler; + $this->smarty = $compiler->smarty; + $this->configBooleanize = $this->smarty->config_booleanize; + } + + public function replace ($input) { + return $input; + } + + public function PrintTrace() + { + $this->yyTraceFILE = fopen('php://output', 'w'); + $this->yyTracePrompt = '<br>'; + } + + +/*!lex2php +%input $this->data +%counter $this->counter +%token $this->token +%value $this->value +%line $this->line +commentstart = /#|;/ +openB = /\[/ +closeB = /\]/ +section = /.*?(?=[\.=\[\]\r\n])/ +equal = /=/ +whitespace = /[ \t\r]+/ +dot = /\./ +id = /[0-9]*[a-zA-Z_]\w*/ +newline = /\n/ +single_quoted_string = /'[^'\\]*(?:\\.[^'\\]*)*'(?=[ \t\r]*[\n#;])/ +double_quoted_string = /"[^"\\]*(?:\\.[^"\\]*)*"(?=[ \t\r]*[\n#;])/ +tripple_quotes = /"""/ +tripple_quotes_end = /"""(?=[ \t\r]*[\n#;])/ +text = /[\S\s]/ +float = /\d+\.\d+(?=[ \t\r]*[\n#;])/ +int = /\d+(?=[ \t\r]*[\n#;])/ +maybe_bool = /[a-zA-Z]+(?=[ \t\r]*[\n#;])/ +naked_string = /[^\n]+?(?=[ \t\r]*\n)/ +*/ + +/*!lex2php +%statename START + +commentstart { + $this->token = Smarty_Internal_Configfileparser::TPC_COMMENTSTART; + $this->yypushstate(self::COMMENT); +} +openB { + $this->token = Smarty_Internal_Configfileparser::TPC_OPENB; + $this->yypushstate(self::SECTION); +} +closeB { + $this->token = Smarty_Internal_Configfileparser::TPC_CLOSEB; +} +equal { + $this->token = Smarty_Internal_Configfileparser::TPC_EQUAL; + $this->yypushstate(self::VALUE); +} +whitespace { + return false; +} +newline { + $this->token = Smarty_Internal_Configfileparser::TPC_NEWLINE; +} +id { + $this->token = Smarty_Internal_Configfileparser::TPC_ID; +} +text { + $this->token = Smarty_Internal_Configfileparser::TPC_OTHER; +} + +*/ + +/*!lex2php +%statename VALUE + +whitespace { + return false; +} +float { + $this->token = Smarty_Internal_Configfileparser::TPC_FLOAT; + $this->yypopstate(); +} +int { + $this->token = Smarty_Internal_Configfileparser::TPC_INT; + $this->yypopstate(); +} +tripple_quotes { + $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_QUOTES; + $this->yypushstate(self::TRIPPLE); +} +single_quoted_string { + $this->token = Smarty_Internal_Configfileparser::TPC_SINGLE_QUOTED_STRING; + $this->yypopstate(); +} +double_quoted_string { + $this->token = Smarty_Internal_Configfileparser::TPC_DOUBLE_QUOTED_STRING; + $this->yypopstate(); +} +maybe_bool { + if (!$this->configBooleanize || !in_array(strtolower($this->value), array('true', 'false', 'on', 'off', 'yes', 'no')) ) { + $this->yypopstate(); + $this->yypushstate(self::NAKED_STRING_VALUE); + return true; //reprocess in new state + } else { + $this->token = Smarty_Internal_Configfileparser::TPC_BOOL; + $this->yypopstate(); + } +} +naked_string { + $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; + $this->yypopstate(); +} +newline { + $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; + $this->value = ''; + $this->yypopstate(); +} + +*/ + +/*!lex2php +%statename NAKED_STRING_VALUE + +naked_string { + $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; + $this->yypopstate(); +} + +*/ + +/*!lex2php +%statename COMMENT + +whitespace { + return false; +} +naked_string { + $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; +} +newline { + $this->token = Smarty_Internal_Configfileparser::TPC_NEWLINE; + $this->yypopstate(); +} + +*/ + +/*!lex2php +%statename SECTION + +dot { + $this->token = Smarty_Internal_Configfileparser::TPC_DOT; +} +section { + $this->token = Smarty_Internal_Configfileparser::TPC_SECTION; + $this->yypopstate(); +} + +*/ +/*!lex2php +%statename TRIPPLE + +tripple_quotes_end { + $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_QUOTES_END; + $this->yypopstate(); + $this->yypushstate(self::START); +} +text { + $to = strlen($this->data); + preg_match("/\"\"\"[ \t\r]*[\n#;]/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + if (isset($match[0][1])) { + $to = $match[0][1]; + } else { + $this->compiler->trigger_config_file_error ('missing or misspelled literal closing tag'); + } + $this->value = substr($this->data,$this->counter,$to-$this->counter); + $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_TEXT; +} +*/ + +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_configfileparser.y b/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_configfileparser.y new file mode 100644 index 0000000000..c981b58e93 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_configfileparser.y @@ -0,0 +1,346 @@ +/** +* Smarty Internal Plugin Configfileparser +* +* This is the config file parser +* +* +* @package Smarty +* @subpackage Config +* @author Uwe Tews +*/ +%name TPC_ +%declare_class { +/** +* Smarty Internal Plugin Configfileparse +* +* This is the config file parser. +* It is generated from the smarty_internal_configfileparser.y file +* @package Smarty +* @subpackage Compiler +* @author Uwe Tews +*/ +class Smarty_Internal_Configfileparser +} +%include_class +{ + /** + * result status + * + * @var bool + */ + public $successful = true; + /** + * return value + * + * @var mixed + */ + public $retvalue = 0; + /** + * @var + */ + public $yymajor; + /** + * lexer object + * + * @var Smarty_Internal_Configfilelexer + */ + private $lex; + /** + * internal error flag + * + * @var bool + */ + private $internalError = false; + /** + * compiler object + * + * @var Smarty_Internal_Config_File_Compiler + */ + public $compiler = null; + /** + * smarty object + * + * @var Smarty + */ + public $smarty = null; + /** + * copy of config_overwrite property + * + * @var bool + */ + private $configOverwrite = false; + /** + * copy of config_read_hidden property + * + * @var bool + */ + private $configReadHidden = false; + /** + * helper map + * + * @var array + */ + private static $escapes_single = array('\\' => '\\', + '\'' => '\''); + + /** + * constructor + * + * @param Smarty_Internal_Configfilelexer $lex + * @param Smarty_Internal_Config_File_Compiler $compiler + */ + public function __construct(Smarty_Internal_Configfilelexer $lex, Smarty_Internal_Config_File_Compiler $compiler) + { + $this->lex = $lex; + $this->smarty = $compiler->smarty; + $this->compiler = $compiler; + $this->configOverwrite = $this->smarty->config_overwrite; + $this->configReadHidden = $this->smarty->config_read_hidden; + } + + /** + * parse optional boolean keywords + * + * @param string $str + * + * @return bool + */ + private function parse_bool($str) + { + $str = strtolower($str); + if (in_array($str, array('on', 'yes', 'true'))) { + $res = true; + } else { + $res = false; + } + return $res; + } + + /** + * parse single quoted string + * remove outer quotes + * unescape inner quotes + * + * @param string $qstr + * + * @return string + */ + private static function parse_single_quoted_string($qstr) + { + $escaped_string = substr($qstr, 1, strlen($qstr) - 2); //remove outer quotes + + $ss = preg_split('/(\\\\.)/', $escaped_string, - 1, PREG_SPLIT_DELIM_CAPTURE); + + $str = ''; + foreach ($ss as $s) { + if (strlen($s) === 2 && $s[0] === '\\') { + if (isset(self::$escapes_single[$s[1]])) { + $s = self::$escapes_single[$s[1]]; + } + } + $str .= $s; + } + return $str; + } + + /** + * parse double quoted string + * + * @param string $qstr + * + * @return string + */ + private static function parse_double_quoted_string($qstr) + { + $inner_str = substr($qstr, 1, strlen($qstr) - 2); + return stripcslashes($inner_str); + } + + /** + * parse triple quoted string + * + * @param string $qstr + * + * @return string + */ + private static function parse_tripple_double_quoted_string($qstr) + { + return stripcslashes($qstr); + } + + /** + * set a config variable in target array + * + * @param array $var + * @param array $target_array + */ + private function set_var(array $var, array &$target_array) + { + $key = $var['key']; + $value = $var['value']; + + if ($this->configOverwrite || !isset($target_array['vars'][$key])) { + $target_array['vars'][$key] = $value; + } else { + settype($target_array['vars'][$key], 'array'); + $target_array['vars'][$key][] = $value; + } + } + + /** + * add config variable to global vars + * + * @param array $vars + */ + private function add_global_vars(array $vars) + { + if (!isset($this->compiler->config_data['vars'])) { + $this->compiler->config_data['vars'] = array(); + } + foreach ($vars as $var) { + $this->set_var($var, $this->compiler->config_data); + } + } + + /** + * add config variable to section + * + * @param string $section_name + * @param array $vars + */ + private function add_section_vars($section_name, array $vars) + { + if (!isset($this->compiler->config_data['sections'][$section_name]['vars'])) { + $this->compiler->config_data['sections'][$section_name]['vars'] = array(); + } + foreach ($vars as $var) { + $this->set_var($var, $this->compiler->config_data['sections'][$section_name]); + } + } +} + +%token_prefix TPC_ + +%parse_accept +{ + $this->successful = !$this->internalError; + $this->internalError = false; + $this->retvalue = $this->_retvalue; +} + +%syntax_error +{ + $this->internalError = true; + $this->yymajor = $yymajor; + $this->compiler->trigger_config_file_error(); +} + +%stack_overflow +{ + $this->internalError = true; + $this->compiler->trigger_config_file_error('Stack overflow in configfile parser'); +} + +// Complete config file +start(res) ::= global_vars sections. { + res = null; +} + +// Global vars +global_vars(res) ::= var_list(vl). { + $this->add_global_vars(vl); + res = null; +} + +// Sections +sections(res) ::= sections section. { + res = null; +} + +sections(res) ::= . { + res = null; +} + +section(res) ::= OPENB SECTION(i) CLOSEB newline var_list(vars). { + $this->add_section_vars(i, vars); + res = null; +} + +section(res) ::= OPENB DOT SECTION(i) CLOSEB newline var_list(vars). { + if ($this->configReadHidden) { + $this->add_section_vars(i, vars); + } + res = null; +} + +// Var list +var_list(res) ::= var_list(vl) newline. { + res = vl; +} + +var_list(res) ::= var_list(vl) var(v). { + res = array_merge(vl, array(v)); +} + +var_list(res) ::= . { + res = array(); +} + + +// Var +var(res) ::= ID(id) EQUAL value(v). { + res = array('key' => id, 'value' => v); +} + + +value(res) ::= FLOAT(i). { + res = (float) i; +} + +value(res) ::= INT(i). { + res = (int) i; +} + +value(res) ::= BOOL(i). { + res = $this->parse_bool(i); +} + +value(res) ::= SINGLE_QUOTED_STRING(i). { + res = self::parse_single_quoted_string(i); +} + +value(res) ::= DOUBLE_QUOTED_STRING(i). { + res = self::parse_double_quoted_string(i); +} + +value(res) ::= TRIPPLE_QUOTES(i) TRIPPLE_TEXT(c) TRIPPLE_QUOTES_END(ii). { + res = self::parse_tripple_double_quoted_string(c); +} + +value(res) ::= TRIPPLE_QUOTES(i) TRIPPLE_QUOTES_END(ii). { + res = ''; +} + +value(res) ::= NAKED_STRING(i). { + res = i; +} + +// NOTE: this is not a valid rule +// It is added hier to produce a usefull error message on a missing '='; +value(res) ::= OTHER(i). { + res = i; +} + + +// Newline and comments +newline(res) ::= NEWLINE. { + res = null; +} + +newline(res) ::= COMMENTSTART NEWLINE. { + res = null; +} + +newline(res) ::= COMMENTSTART NAKED_STRING NEWLINE. { + res = null; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_templatelexer.plex b/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_templatelexer.plex new file mode 100644 index 0000000000..ac12502556 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_templatelexer.plex @@ -0,0 +1,696 @@ +<?php +/* + * This file is part of Smarty. + * + * (c) 2015 Uwe Tews + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Smarty_Internal_Templatelexer + * This is the template file lexer. + * It is generated from the smarty_internal_templatelexer.plex file + * + * + * @author Uwe Tews <uwe.tews@googlemail.com> + */ +class Smarty_Internal_Templatelexer +{ + /** + * Source + * + * @var string + */ + public $data; + + /** + * Source length + * + * @var int + */ + public $dataLength = null; + + /** + * byte counter + * + * @var int + */ + public $counter; + + /** + * token number + * + * @var int + */ + public $token; + + /** + * token value + * + * @var string + */ + public $value; + + /** + * current line + * + * @var int + */ + public $line; + + /** + * tag start line + * + * @var + */ + public $taglineno; + + /** + * php code type + * + * @var string + */ + public $phpType = ''; + + /** + * state number + * + * @var int + */ + public $state = 1; + + /** + * Smarty object + * + * @var Smarty + */ + public $smarty = null; + + /** + * compiler object + * + * @var Smarty_Internal_TemplateCompilerBase + */ + public $compiler = null; + + /** + * trace file + * + * @var resource + */ + public $yyTraceFILE; + + /** + * trace prompt + * + * @var string + */ + public $yyTracePrompt; + + /** + * XML flag true while processing xml + * + * @var bool + */ + public $is_xml = false; + + /** + * state names + * + * @var array + */ + public $state_name = array(1 => 'TEXT', 2 => 'TAG', 3 => 'TAGBODY', 4 => 'LITERAL', 5 => 'DOUBLEQUOTEDSTRING',); + + /** + * token names + * + * @var array + */ + public $smarty_token_names = array( // Text for parser error messages + 'NOT' => '(!,not)', + 'OPENP' => '(', + 'CLOSEP' => ')', + 'OPENB' => '[', + 'CLOSEB' => ']', + 'PTR' => '->', + 'APTR' => '=>', + 'EQUAL' => '=', + 'NUMBER' => 'number', + 'UNIMATH' => '+" , "-', + 'MATH' => '*" , "/" , "%', + 'INCDEC' => '++" , "--', + 'SPACE' => ' ', + 'DOLLAR' => '$', + 'SEMICOLON' => ';', + 'COLON' => ':', + 'DOUBLECOLON' => '::', + 'AT' => '@', + 'HATCH' => '#', + 'QUOTE' => '"', + 'BACKTICK' => '`', + 'VERT' => '"|" modifier', + 'DOT' => '.', + 'COMMA' => '","', + 'QMARK' => '"?"', + 'ID' => 'id, name', + 'TEXT' => 'text', + 'LDELSLASH' => '{/..} closing tag', + 'LDEL' => '{...} Smarty tag', + 'COMMENT' => 'comment', + 'AS' => 'as', + 'TO' => 'to', + 'PHP' => '"<?php", "<%", "{php}" tag', + 'LOGOP' => '"<", "==" ... logical operator', + 'TLOGOP' => '"lt", "eq" ... logical operator; "is div by" ... if condition', + 'SCOND' => '"is even" ... if condition', + ); + + /** + * literal tag nesting level + * + * @var int + */ + private $literal_cnt = 0; + + /** + * preg token pattern for state TEXT + * + * @var string + */ + private $yy_global_pattern1 = null; + + /** + * preg token pattern for state TAG + * + * @var string + */ + private $yy_global_pattern2 = null; + + /** + * preg token pattern for state TAGBODY + * + * @var string + */ + private $yy_global_pattern3 = null; + + /** + * preg token pattern for state LITERAL + * + * @var string + */ + private $yy_global_pattern4 = null; + + /** + * preg token pattern for state DOUBLEQUOTEDSTRING + * + * @var null + */ + private $yy_global_pattern5 = null; + + /** + * preg token pattern for text + * + * @var null + */ + private $yy_global_text = null; + + /** + * preg token pattern for literal + * + * @var null + */ + private $yy_global_literal = null; + + /** + * constructor + * + * @param string $source template source + * @param Smarty_Internal_TemplateCompilerBase $compiler + */ + public function __construct($source, Smarty_Internal_TemplateCompilerBase $compiler) + { + $this->data = $source; + $this->dataLength = strlen($this->data); + $this->counter = 0; + if (preg_match('/^\xEF\xBB\xBF/i', $this->data, $match)) { + $this->counter += strlen($match[0]); + } + $this->line = 1; + $this->smarty = $compiler->template->smarty; + $this->compiler = $compiler; + $this->compiler->initDelimiterPreg(); + $this->smarty_token_names['LDEL'] = $this->smarty->getLeftDelimiter(); + $this->smarty_token_names['RDEL'] = $this->smarty->getRightDelimiter(); + } + + /** + * open lexer/parser trace file + * + */ + public function PrintTrace() + { + $this->yyTraceFILE = fopen('php://output', 'w'); + $this->yyTracePrompt = '<br>'; + } + + /** + * replace placeholders with runtime preg code + * + * @param string $preg + * + * @return string + */ + public function replace($preg) + { + return $this->compiler->replaceDelimiter($preg); + } + + /** + * check if current value is an autoliteral left delimiter + * + * @return bool + */ + public function isAutoLiteral() + { + return $this->smarty->getAutoLiteral() && isset($this->value[ $this->compiler->getLdelLength() ]) ? + strpos(" \n\t\r", $this->value[ $this->compiler->getLdelLength() ]) !== false : false; + } + + /*!lex2php + %input $this->data + %counter $this->counter + %token $this->token + %value $this->value + %line $this->line + userliteral = ~(SMARTYldel)SMARTYautoliteral\s+SMARTYliteral~ + char = ~[\S\s]~ + textdoublequoted = ~([^"\\]*?)((?:\\.[^"\\]*?)*?)(?=((SMARTYldel)SMARTYal|\$|`\$|"SMARTYliteral))~ + namespace = ~([0-9]*[a-zA-Z_]\w*)?(\\[0-9]*[a-zA-Z_]\w*)+~ + emptyjava = ~[{][}]~ + phptag = ~(SMARTYldel)SMARTYalphp([ ].*?)?SMARTYrdel|(SMARTYldel)SMARTYal[/]phpSMARTYrdel~ + phpstart = ~[<][?]((php\s+|=)|\s+)|[<][%]|[<][?]xml\s+|[<]script\s+language\s*=\s*["']?\s*php\s*["']?\s*[>]|[?][>]|[%][>]~ + slash = ~[/]~ + ldel = ~(SMARTYldel)SMARTYal~ + rdel = ~\s*SMARTYrdel~ + nocacherdel = ~(\s+nocache)?\s*SMARTYrdel~ + smartyblockchildparent = ~[\$]smarty\.block\.(child|parent)~ + integer = ~\d+~ + hex = ~0[xX][0-9a-fA-F]+~ + math = ~\s*([*]{1,2}|[%/^&]|[<>]{2})\s*~ + comment = ~(SMARTYldel)SMARTYal[*]~ + incdec = ~([+]|[-]){2}~ + unimath = ~\s*([+]|[-])\s*~ + openP = ~\s*[(]\s*~ + closeP = ~\s*[)]~ + openB = ~\[\s*~ + closeB = ~\s*\]~ + dollar = ~[$]~ + dot = ~[.]~ + comma = ~\s*[,]\s*~ + doublecolon = ~[:]{2}~ + colon = ~\s*[:]\s*~ + at = ~[@]~ + hatch = ~[#]~ + semicolon = ~\s*[;]\s*~ + equal = ~\s*[=]\s*~ + space = ~\s+~ + ptr = ~\s*[-][>]\s*~ + aptr = ~\s*[=][>]\s*~ + singlequotestring = ~'[^'\\]*(?:\\.[^'\\]*)*'~ + backtick = ~[`]~ + vert = ~[|][@]?~ + qmark = ~\s*[?]\s*~ + constant = ~[_]+[A-Z0-9][0-9A-Z_]*|[A-Z][0-9A-Z_]*(?![0-9A-Z_]*[a-z])~ + attr = ~\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\s*[=]\s*~ + id = ~[0-9]*[a-zA-Z_]\w*~ + literal = ~literal~ + strip = ~strip~ + lop = ~\s*([!=][=]{1,2}|[<][=>]?|[>][=]?|[&|]{2})\s*~ + slop = ~\s+(eq|ne|neq|gt|ge|gte|lt|le|lte|mod|and|or|xor)\s+~ + tlop = ~\s+is\s+(not\s+)?(odd|even|div)\s+by\s+~ + scond = ~\s+is\s+(not\s+)?(odd|even)~ + isin = ~\s+is\s+in\s+~ + as = ~\s+as\s+~ + to = ~\s+to\s+~ + step = ~\s+step\s+~ + if = ~(if|elseif|else if|while)\s+~ + for = ~for\s+~ + makenocache = ~make_nocache\s+~ + array = ~array~ + foreach = ~foreach(?![^\s])~ + setfilter = ~setfilter\s+~ + instanceof = ~\s+instanceof\s+~ + not = ~[!]\s*|not\s+~ + typecast = ~[(](int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)[)]\s*~ + double_quote = ~["]~ + */ + /*!lex2php + %statename TEXT + emptyjava { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + comment { + $to = $this->dataLength; + preg_match("/[*]{$this->compiler->getRdelPreg()}[\n]?/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + if (isset($match[0][1])) { + $to = $match[0][1] + strlen($match[0][0]); + } else { + $this->compiler->trigger_template_error ("missing or misspelled comment closing tag '{$this->smarty->getRightDelimiter()}'"); + } + $this->value = substr($this->data,$this->counter,$to-$this->counter); + return false; + } + phptag { + $this->compiler->getTagCompiler('private_php')->parsePhp($this); + } + userliteral { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + ldel literal rdel { + $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; + $this->yypushstate(self::LITERAL); + } + ldel slash literal rdel { + $this->token = Smarty_Internal_Templateparser::TP_LITERALEND; + $this->yypushstate(self::LITERAL); + } + ldel { + $this->yypushstate(self::TAG); + return true; + } + phpstart { + $this->compiler->getTagCompiler('private_php')->parsePhp($this); + } + char { + if (!isset($this->yy_global_text)) { + $this->yy_global_text = $this->replace('/(SMARTYldel)SMARTYal|[<][?]((php\s+|=)|\s+)|[<][%]|[<][?]xml\s+|[<]script\s+language\s*=\s*["\']?\s*php\s*["\']?\s*[>]|[?][>]|[%][>]SMARTYliteral/isS'); + } + $to = $this->dataLength; + preg_match($this->yy_global_text, $this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + if (isset($match[0][1])) { + $to = $match[0][1]; + } + $this->value = substr($this->data,$this->counter,$to-$this->counter); + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + */ + /*!lex2php + %statename TAG + ldel if { + $this->token = Smarty_Internal_Templateparser::TP_LDELIF; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + ldel for { + $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + ldel foreach { + $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + ldel setfilter { + $this->token = Smarty_Internal_Templateparser::TP_LDELSETFILTER; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + ldel makenocache { + $this->token = Smarty_Internal_Templateparser::TP_LDELMAKENOCACHE; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + ldel id nocacherdel { + $this->yypopstate(); + $this->token = Smarty_Internal_Templateparser::TP_SIMPLETAG; + $this->taglineno = $this->line; + } + ldel smartyblockchildparent rdel { + $this->yypopstate(); + $this->token = Smarty_Internal_Templateparser::TP_SMARTYBLOCKCHILDPARENT; + $this->taglineno = $this->line; + } + ldel slash id rdel { + $this->yypopstate(); + $this->token = Smarty_Internal_Templateparser::TP_CLOSETAG; + $this->taglineno = $this->line; + } + ldel dollar id nocacherdel { + if ($this->_yy_stack[count($this->_yy_stack)-1] === self::TEXT) { + $this->yypopstate(); + $this->token = Smarty_Internal_Templateparser::TP_SIMPELOUTPUT; + $this->taglineno = $this->line; + } else { + $this->value = $this->smarty->getLeftDelimiter(); + $this->token = Smarty_Internal_Templateparser::TP_LDEL; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + } + ldel slash { + $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + ldel { + $this->token = Smarty_Internal_Templateparser::TP_LDEL; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + */ + /*!lex2php + %statename TAGBODY + rdel { + $this->token = Smarty_Internal_Templateparser::TP_RDEL; + $this->yypopstate(); + } + ldel { + $this->yypushstate(self::TAG); + return true; + } + double_quote { + $this->token = Smarty_Internal_Templateparser::TP_QUOTE; + $this->yypushstate(self::DOUBLEQUOTEDSTRING); + $this->compiler->enterDoubleQuote(); + } + singlequotestring { + $this->token = Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING; + } + dollar id { + $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; + } + dollar { + $this->token = Smarty_Internal_Templateparser::TP_DOLLAR; + } + isin { + $this->token = Smarty_Internal_Templateparser::TP_ISIN; + } + as { + $this->token = Smarty_Internal_Templateparser::TP_AS; + } + to { + $this->token = Smarty_Internal_Templateparser::TP_TO; + } + step { + $this->token = Smarty_Internal_Templateparser::TP_STEP; + } + instanceof { + $this->token = Smarty_Internal_Templateparser::TP_INSTANCEOF; + } + lop { + $this->token = Smarty_Internal_Templateparser::TP_LOGOP; + } + slop { + $this->token = Smarty_Internal_Templateparser::TP_SLOGOP; + } + tlop { + $this->token = Smarty_Internal_Templateparser::TP_TLOGOP; + } + scond { + $this->token = Smarty_Internal_Templateparser::TP_SINGLECOND; + } + not{ + $this->token = Smarty_Internal_Templateparser::TP_NOT; + } + typecast { + $this->token = Smarty_Internal_Templateparser::TP_TYPECAST; + } + openP { + $this->token = Smarty_Internal_Templateparser::TP_OPENP; + } + closeP { + $this->token = Smarty_Internal_Templateparser::TP_CLOSEP; + } + openB { + $this->token = Smarty_Internal_Templateparser::TP_OPENB; + } + closeB { + $this->token = Smarty_Internal_Templateparser::TP_CLOSEB; + } + ptr { + $this->token = Smarty_Internal_Templateparser::TP_PTR; + } + aptr { + $this->token = Smarty_Internal_Templateparser::TP_APTR; + } + equal { + $this->token = Smarty_Internal_Templateparser::TP_EQUAL; + } + incdec { + $this->token = Smarty_Internal_Templateparser::TP_INCDEC; + } + unimath { + $this->token = Smarty_Internal_Templateparser::TP_UNIMATH; + } + math { + $this->token = Smarty_Internal_Templateparser::TP_MATH; + } + at { + $this->token = Smarty_Internal_Templateparser::TP_AT; + } + array openP { + $this->token = Smarty_Internal_Templateparser::TP_ARRAYOPEN; + } + hatch { + $this->token = Smarty_Internal_Templateparser::TP_HATCH; + } + attr { + // resolve conflicts with shorttag and right_delimiter starting with '=' + if (substr($this->data, $this->counter + strlen($this->value) - 1, $this->compiler->getRdelLength()) === $this->smarty->getRightDelimiter()) { + preg_match('/\s+/',$this->value,$match); + $this->value = $match[0]; + $this->token = Smarty_Internal_Templateparser::TP_SPACE; + } else { + $this->token = Smarty_Internal_Templateparser::TP_ATTR; + } + } + namespace { + $this->token = Smarty_Internal_Templateparser::TP_NAMESPACE; + } + id { + $this->token = Smarty_Internal_Templateparser::TP_ID; + } + integer { + $this->token = Smarty_Internal_Templateparser::TP_INTEGER; + } + backtick { + $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; + $this->yypopstate(); + } + vert { + $this->token = Smarty_Internal_Templateparser::TP_VERT; + } + dot { + $this->token = Smarty_Internal_Templateparser::TP_DOT; + } + comma { + $this->token = Smarty_Internal_Templateparser::TP_COMMA; + } + semicolon { + $this->token = Smarty_Internal_Templateparser::TP_SEMICOLON; + } + doublecolon { + $this->token = Smarty_Internal_Templateparser::TP_DOUBLECOLON; + } + colon { + $this->token = Smarty_Internal_Templateparser::TP_COLON; + } + qmark { + $this->token = Smarty_Internal_Templateparser::TP_QMARK; + } + hex { + $this->token = Smarty_Internal_Templateparser::TP_HEX; + } + space { + $this->token = Smarty_Internal_Templateparser::TP_SPACE; + } + char { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + */ + + /*!lex2php + %statename LITERAL + ldel literal rdel { + $this->literal_cnt++; + $this->token = Smarty_Internal_Templateparser::TP_LITERAL; + } + ldel slash literal rdel { + if ($this->literal_cnt) { + $this->literal_cnt--; + $this->token = Smarty_Internal_Templateparser::TP_LITERAL; + } else { + $this->token = Smarty_Internal_Templateparser::TP_LITERALEND; + $this->yypopstate(); + } + } + char { + if (!isset($this->yy_global_literal)) { + $this->yy_global_literal = $this->replace('/(SMARTYldel)SMARTYal[\/]?literalSMARTYrdel/isS'); + } + $to = $this->dataLength; + preg_match($this->yy_global_literal, $this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + if (isset($match[0][1])) { + $to = $match[0][1]; + } else { + $this->compiler->trigger_template_error ("missing or misspelled literal closing tag"); + } + $this->value = substr($this->data,$this->counter,$to-$this->counter); + $this->token = Smarty_Internal_Templateparser::TP_LITERAL; + } + */ + /*!lex2php + %statename DOUBLEQUOTEDSTRING + userliteral { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + ldel literal rdel { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + ldel slash literal rdel { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + ldel slash { + $this->yypushstate(self::TAG); + return true; + } + ldel id { + $this->yypushstate(self::TAG); + return true; + } + ldel { + $this->token = Smarty_Internal_Templateparser::TP_LDEL; + $this->taglineno = $this->line; + $this->yypushstate(self::TAGBODY); + } + double_quote { + $this->token = Smarty_Internal_Templateparser::TP_QUOTE; + $this->yypopstate(); + } + backtick dollar { + $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; + $this->value = substr($this->value,0,-1); + $this->yypushstate(self::TAGBODY); + $this->taglineno = $this->line; + } + dollar id { + $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; + } + dollar { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + textdoublequoted { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + char { + $to = $this->dataLength; + $this->value = substr($this->data,$this->counter,$to-$this->counter); + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + */ + } + + \ No newline at end of file diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_templateparser.y b/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_templateparser.y new file mode 100644 index 0000000000..8f81202169 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/lexer/smarty_internal_templateparser.y @@ -0,0 +1,1280 @@ +/* + * This file is part of Smarty. + * + * (c) 2015 Uwe Tews + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +%stack_size 500 +%name TP_ +%declare_class { +/** +* Smarty Template Parser Class +* +* This is the template parser. +* It is generated from the smarty_internal_templateparser.y file +* +* @author Uwe Tews <uwe.tews@googlemail.com> +*/ +class Smarty_Internal_Templateparser +} +%include_class +{ + const ERR1 = 'Security error: Call to private object member not allowed'; + const ERR2 = 'Security error: Call to dynamic object member not allowed'; + const ERR3 = 'PHP in template not allowed. Use SmartyBC to enable it'; + + /** + * result status + * + * @var bool + */ + public $successful = true; + + /** + * return value + * + * @var mixed + */ + public $retvalue = 0; + + /** + * @var + */ + public $yymajor; + + /** + * last index of array variable + * + * @var mixed + */ + public $last_index; + + /** + * last variable name + * + * @var string + */ + public $last_variable; + + /** + * root parse tree buffer + * + * @var Smarty_Internal_ParseTree_Template + */ + public $root_buffer; + + /** + * current parse tree object + * + * @var Smarty_Internal_ParseTree + */ + public $current_buffer; + + /** + * lexer object + * + * @var Smarty_Internal_Templatelexer + */ + public $lex; + + /** + * internal error flag + * + * @var bool + */ + private $internalError = false; + + /** + * {strip} status + * + * @var bool + */ + public $strip = false; + /** + * compiler object + * + * @var Smarty_Internal_TemplateCompilerBase + */ + public $compiler = null; + + /** + * smarty object + * + * @var Smarty + */ + public $smarty = null; + + /** + * template object + * + * @var Smarty_Internal_Template + */ + public $template = null; + + /** + * block nesting level + * + * @var int + */ + public $block_nesting_level = 0; + + /** + * security object + * + * @var Smarty_Security + */ + public $security = null; + + /** + * template prefix array + * + * @var \Smarty_Internal_ParseTree[] + */ + public $template_prefix = array(); + + /** + * template prefix array + * + * @var \Smarty_Internal_ParseTree[] + */ + public $template_postfix = array(); + + /** + * constructor + * + * @param Smarty_Internal_Templatelexer $lex + * @param Smarty_Internal_TemplateCompilerBase $compiler + */ + public function __construct(Smarty_Internal_Templatelexer $lex, Smarty_Internal_TemplateCompilerBase $compiler) + { + $this->lex = $lex; + $this->compiler = $compiler; + $this->template = $this->compiler->template; + $this->smarty = $this->template->smarty; + $this->security = isset($this->smarty->security_policy) ? $this->smarty->security_policy : false; + $this->current_buffer = $this->root_buffer = new Smarty_Internal_ParseTree_Template(); + } + + /** + * insert PHP code in current buffer + * + * @param string $code + */ + public function insertPhpCode($code) + { + $this->current_buffer->append_subtree($this, new Smarty_Internal_ParseTree_Tag($this, $code)); + } + + /** + * error rundown + * + */ + public function errorRunDown() + { + while ($this->yystack !== array()) { + $this->yy_pop_parser_stack(); + } + if (is_resource($this->yyTraceFILE)) { + fclose($this->yyTraceFILE); + } + } + + /** + * merge PHP code with prefix code and return parse tree tag object + * + * @param string $code + * + * @return Smarty_Internal_ParseTree_Tag + */ + public function mergePrefixCode($code) + { + $tmp = ''; + foreach ($this->compiler->prefix_code as $preCode) { + $tmp .= $preCode; + } + $this->compiler->prefix_code = array(); + $tmp .= $code; + return new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp, true)); + } + +} + +%token_prefix TP_ + +%parse_accept +{ + $this->successful = !$this->internalError; + $this->internalError = false; + $this->retvalue = $this->_retvalue; +} + +%syntax_error +{ + $this->internalError = true; + $this->yymajor = $yymajor; + $this->compiler->trigger_template_error(); +} + +%stack_overflow +{ + $this->internalError = true; + $this->compiler->trigger_template_error('Stack overflow in template parser'); +} + + +%right VERT. +%left COLON. + + + // + // complete template + // +start(res) ::= template. { + $this->root_buffer->prepend_array($this, $this->template_prefix); + $this->root_buffer->append_array($this, $this->template_postfix); + res = $this->root_buffer->to_smarty_php($this); +} + + + // php tags +template ::= template PHP(B). { + $code = $this->compiler->compileTag('private_php',array(array('code' => B), array('type' => $this->lex->phpType )),array()); + if ($this->compiler->has_code && !empty($code)) { + $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); + $this->current_buffer->append_subtree($this, new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp.$code,true))); + } +} + + // template text +template ::= template TEXT(B). { + $text = $this->yystack[ $this->yyidx + 0 ]->minor; + + if ((string)$text == '') { + $this->current_buffer->append_subtree($this, null); + } + + $this->current_buffer->append_subtree($this, new Smarty_Internal_ParseTree_Text($text, $this->strip)); +} + // strip on +template ::= template STRIPON. { + $this->strip = true; +} + // strip off +template ::= template STRIPOFF. { + $this->strip = false; +} + + // Literal +template ::= template LITERALSTART literal_e2(B) LITERALEND. { + $this->current_buffer->append_subtree($this, new Smarty_Internal_ParseTree_Text(B)); +} + + +literal_e2(A) ::= literal_e1(B) LITERALSTART literal_e1(C) LITERALEND. { + A = B.C; +} +literal_e2(A) ::= literal_e1(B). { + A = B; +} + +literal_e1(A) ::= literal_e1(B) LITERAL(C). { + A = B.C; + +} + +literal_e1(A) ::= . { + A = ''; +} + // Smarty tag +template ::= template smartytag(B). { + if ($this->compiler->has_code) { + $this->current_buffer->append_subtree($this, $this->mergePrefixCode(B)); + } + $this->compiler->has_variable_string = false; + $this->block_nesting_level = count($this->compiler->_tag_stack); +} + + + // empty template +template ::= . + +smartytag(A) ::= SIMPELOUTPUT(B). { + $var = trim(substr(B, $this->compiler->getLdelLength(), -$this->compiler->getRdelLength()), ' $'); + if (preg_match('/^(.*)(\s+nocache)$/', $var, $match)) { + A = $this->compiler->compileTag('private_print_expression',array('nocache'),array('value'=>$this->compiler->compileVariable('\''.$match[1].'\''))); + } else { + A = $this->compiler->compileTag('private_print_expression',array(),array('value'=>$this->compiler->compileVariable('\''.$var.'\''))); + } +} + +// simple tag like {name} +smartytag(A)::= SIMPLETAG(B). { + $tag = trim(substr(B, $this->compiler->getLdelLength(), -$this->compiler->getRdelLength())); + if ($tag == 'strip') { + $this->strip = true; + A = null; + } else { + if (defined($tag)) { + if ($this->security) { + $this->security->isTrustedConstant($tag, $this->compiler); + } + A = $this->compiler->compileTag('private_print_expression',array(),array('value'=>$tag)); + } else { + if (preg_match('/^(.*)(\s+nocache)$/', $tag, $match)) { + A = $this->compiler->compileTag($match[1],array('\'nocache\'')); + } else { + A = $this->compiler->compileTag($tag,array()); + } + } + } +} + // {$smarty.block.child} or {$smarty.block.parent} +smartytag(A) ::= SMARTYBLOCKCHILDPARENT(i). { + $j = strrpos(i,'.'); + if (i[$j+1] == 'c') { + // {$smarty.block.child} + A = $this->compiler->compileTag('child',array(),array(i)); + } else { + // {$smarty.block.parent} + A = $this->compiler->compileTag('parent',array(),array(i)); + } +} + +smartytag(A) ::= LDEL tagbody(B) RDEL. { + A = B; +} + + smartytag(A) ::= tag(B) RDEL. { + A = B; + } + // output with optional attributes +tagbody(A) ::= outattr(B). { + A = $this->compiler->compileTag('private_print_expression',B[1],array('value'=>B[0])); +} + +// +// Smarty tags start here +// + + // assign new style +tagbody(A) ::= DOLLARID(B) eqoutattr(C). { + A = $this->compiler->compileTag('assign',array_merge(array(array('value'=>C[0]),array('var'=>'\''.substr(B,1).'\'')),C[1])); +} + +tagbody(A) ::= varindexed(B) eqoutattr(C). { + A = $this->compiler->compileTag('assign',array_merge(array(array('value'=>C[0]),array('var'=>B['var'])),C[1]),array('smarty_internal_index'=>B['smarty_internal_index'])); +} + +eqoutattr(A) ::= EQUAL outattr(B). { + A = B; +} + +outattr(A) ::= output(B) attributes(C). { + A = array(B,C); +} + +output(A) ::= variable(B). { + A = B; +} +output(A) ::= value(B). { + A = B; +} +output(A) ::= expr(B). { + A = B; +} + + // tag with optional Smarty2 style attributes +tag(res) ::= LDEL ID(i) attributes(a). { + if (defined(i)) { + if ($this->security) { + $this->security->isTrustedConstant(i, $this->compiler); + } + res = $this->compiler->compileTag('private_print_expression',a,array('value'=>i)); + } else { + res = $this->compiler->compileTag(i,a); + } +} +tag(res) ::= LDEL ID(i). { + if (defined(i)) { + if ($this->security) { + $this->security->isTrustedConstant(i, $this->compiler); + } + res = $this->compiler->compileTag('private_print_expression',array(),array('value'=>i)); + } else { + res = $this->compiler->compileTag(i,array()); + } +} + + + // tag with modifier and optional Smarty2 style attributes +tag(res) ::= LDEL ID(i) modifierlist(l)attributes(a). { + if (defined(i)) { + if ($this->security) { + $this->security->isTrustedConstant(i, $this->compiler); + } + res = $this->compiler->compileTag('private_print_expression',a,array('value'=>i, 'modifierlist'=>l)); + } else { + res = $this->compiler->compileTag(i,a, array('modifierlist'=>l)); + } +} + + // registered object tag +tag(res) ::= LDEL ID(i) PTR ID(m) attributes(a). { + res = $this->compiler->compileTag(i,a,array('object_method'=>m)); +} + + // registered object tag with modifiers +tag(res) ::= LDEL ID(i) PTR ID(me) modifierlist(l) attributes(a). { + res = $this->compiler->compileTag(i,a,array('modifierlist'=>l, 'object_method'=>me)); +} + + // nocache tag +tag(res) ::= LDELMAKENOCACHE DOLLARID(i). { + res = $this->compiler->compileTag('make_nocache',array(array('var'=>'\''.substr(i,1).'\''))); +} + + // {if}, {elseif} and {while} tag +tag(res) ::= LDELIF(i) expr(ie). { + $tag = trim(substr(i,$this->compiler->getLdelLength())); + res = $this->compiler->compileTag(($tag === 'else if')? 'elseif' : $tag,array(),array('if condition'=>ie)); +} + +tag(res) ::= LDELIF(i) expr(ie) attributes(a). { + $tag = trim(substr(i,$this->compiler->getLdelLength())); + res = $this->compiler->compileTag(($tag === 'else if')? 'elseif' : $tag,a,array('if condition'=>ie)); +} + +tag(res) ::= LDELIF(i) statement(ie). { + $tag = trim(substr(i,$this->compiler->getLdelLength())); + res = $this->compiler->compileTag(($tag === 'else if')? 'elseif' : $tag,array(),array('if condition'=>ie)); +} + +tag(res) ::= LDELIF(i) statement(ie) attributes(a). { + $tag = trim(substr(i,$this->compiler->getLdelLength())); + res = $this->compiler->compileTag(($tag === 'else if')? 'elseif' : $tag,a,array('if condition'=>ie)); +} + + // {for} tag +tag(res) ::= LDELFOR statements(st) SEMICOLON expr(ie) SEMICOLON varindexed(v2) foraction(e2) attributes(a). { + res = $this->compiler->compileTag('for',array_merge(a,array(array('start'=>st),array('ifexp'=>ie),array('var'=>v2),array('step'=>e2))),1); +} + + foraction(res) ::= EQUAL expr(e). { + res = '='.e; +} + + foraction(res) ::= INCDEC(e). { + res = e; +} + +tag(res) ::= LDELFOR statement(st) TO expr(v) attributes(a). { + res = $this->compiler->compileTag('for',array_merge(a,array(array('start'=>st),array('to'=>v))),0); +} + +tag(res) ::= LDELFOR statement(st) TO expr(v) STEP expr(v2) attributes(a). { + res = $this->compiler->compileTag('for',array_merge(a,array(array('start'=>st),array('to'=>v),array('step'=>v2))),0); +} + + // {foreach} tag +tag(res) ::= LDELFOREACH SPACE expr(e) AS varvar(v0) attributes(a). { + res = $this->compiler->compileTag('foreach',array_merge(a,array(array('from'=>e),array('item'=>v0)))); +} + +tag(res) ::= LDELFOREACH SPACE expr(e) AS varvar(v1) APTR varvar(v0) attributes(a). { + res = $this->compiler->compileTag('foreach',array_merge(a,array(array('from'=>e),array('item'=>v0),array('key'=>v1)))); +} +tag(res) ::= LDELFOREACH attributes(a). { + res = $this->compiler->compileTag('foreach',a); +} + + // {setfilter} +tag(res) ::= LDELSETFILTER ID(m) modparameters(p). { + res = $this->compiler->compileTag('setfilter',array(),array('modifier_list'=>array(array_merge(array(m),p)))); +} + +tag(res) ::= LDELSETFILTER ID(m) modparameters(p) modifierlist(l). { + res = $this->compiler->compileTag('setfilter',array(),array('modifier_list'=>array_merge(array(array_merge(array(m),p)),l))); +} + + + // end of block tag {/....} +smartytag(res)::= CLOSETAG(t). { + $tag = trim(substr(t, $this->compiler->getLdelLength(), -$this->compiler->getRdelLength()), ' /'); + if ($tag === 'strip') { + $this->strip = false; + res = null; + } else { + res = $this->compiler->compileTag($tag.'close',array()); + } + } +tag(res) ::= LDELSLASH ID(i). { + res = $this->compiler->compileTag(i.'close',array()); +} + +tag(res) ::= LDELSLASH ID(i) modifierlist(l). { + res = $this->compiler->compileTag(i.'close',array(),array('modifier_list'=>l)); +} + + // end of block object tag {/....} +tag(res) ::= LDELSLASH ID(i) PTR ID(m). { + res = $this->compiler->compileTag(i.'close',array(),array('object_method'=>m)); +} + +tag(res) ::= LDELSLASH ID(i) PTR ID(m) modifierlist(l). { + res = $this->compiler->compileTag(i.'close',array(),array('object_method'=>m, 'modifier_list'=>l)); +} + +// +//Attributes of Smarty tags +// + // list of attributes +attributes(res) ::= attributes(a1) attribute(a2). { + res = a1; + res[] = a2; +} + + // single attribute +attributes(res) ::= attribute(a). { + res = array(a); +} + + // no attributes +attributes(res) ::= . { + res = array(); +} + + // attribute +attribute(res) ::= SPACE ID(v) EQUAL ID(id). { + if (defined(id)) { + if ($this->security) { + $this->security->isTrustedConstant(id, $this->compiler); + } + res = array(v=>id); + } else { + res = array(v=>'\''.id.'\''); + } +} + +attribute(res) ::= ATTR(v) expr(e). { + res = array(trim(v," =\n\r\t")=>e); +} + +attribute(res) ::= ATTR(v) value(e). { + res = array(trim(v," =\n\r\t")=>e); +} + +attribute(res) ::= SPACE ID(v). { + res = '\''.v.'\''; +} + +attribute(res) ::= SPACE expr(e). { + res = e; +} + +attribute(res) ::= SPACE value(v). { + res = v; +} + +attribute(res) ::= SPACE INTEGER(i) EQUAL expr(e). { + res = array(i=>e); +} + + + +// +// statement +// +statements(res) ::= statement(s). { + res = array(s); +} + +statements(res) ::= statements(s1) COMMA statement(s). { + s1[]=s; + res = s1; +} + +statement(res) ::= DOLLARID(i) EQUAL INTEGER(e). { + res = array('var' => '\''.substr(i,1).'\'', 'value'=>e); +} +statement(res) ::= DOLLARID(i) EQUAL expr(e). { + res = array('var' => '\''.substr(i,1).'\'', 'value'=>e); +} + +statement(res) ::= varindexed(vi) EQUAL expr(e). { + res = array('var' => vi, 'value'=>e); +} + +statement(res) ::= OPENP statement(st) CLOSEP. { + res = st; +} + + +// +// expressions +// + + // single value +expr(res) ::= value(v). { + res = v; +} + + // ternary +expr(res) ::= ternary(v). { + res = v; +} + + // resources/streams +expr(res) ::= DOLLARID(i) COLON ID(i2). { + res = '$_smarty_tpl->getStreamVariable(\''.substr(i,1).'://' . i2 . '\')'; +} + + // arithmetic expression +expr(res) ::= expr(e) MATH(m) value(v). { + res = e . trim(m) . v; +} + +expr(res) ::= expr(e) UNIMATH(m) value(v). { + res = e . trim(m) . v; +} + +// if expression + // special conditions +expr(res) ::= expr(e1) tlop(c) value(e2). { + res = c['pre']. e1.c['op'].e2 .')'; +} + // simple expression +expr(res) ::= expr(e1) lop(c) expr(e2). { + res = e1.c.e2; +} + +expr(res) ::= expr(e1) scond(c). { + res = c . e1 . ')'; +} + +expr(res) ::= expr(e1) ISIN array(a). { + res = 'in_array('.e1.','.a.')'; +} + +expr(res) ::= expr(e1) ISIN value(v). { + res = 'in_array('.e1.',(array)'.v.')'; +} + + +// +// ternary +// +ternary(res) ::= OPENP expr(v) CLOSEP QMARK DOLLARID(e1) COLON expr(e2). { + res = v.' ? '. $this->compiler->compileVariable('\''.substr(e1,1).'\'') . ' : '.e2; +} + +ternary(res) ::= OPENP expr(v) CLOSEP QMARK expr(e1) COLON expr(e2). { + res = v.' ? '.e1.' : '.e2; +} + + // value +value(res) ::= variable(v). { + res = v; +} + + // +/- value +value(res) ::= UNIMATH(m) value(v). { + res = m.v; +} + + // logical negation +value(res) ::= NOT value(v). { + res = '!'.v; +} + +value(res) ::= TYPECAST(t) value(v). { + res = t.v; +} + +value(res) ::= variable(v) INCDEC(o). { + res = v.o; +} + + // numeric +value(res) ::= HEX(n). { + res = n; +} + +value(res) ::= INTEGER(n). { + res = n; +} + +value(res) ::= INTEGER(n1) DOT INTEGER(n2). { + res = n1.'.'.n2; +} + +value(res) ::= INTEGER(n1) DOT. { + res = n1.'.'; +} + +value(res) ::= DOT INTEGER(n1). { + res = '.'.n1; +} + + // ID, true, false, null +value(res) ::= ID(id). { + if (defined(id)) { + if ($this->security) { + $this->security->isTrustedConstant(id, $this->compiler); + } + res = id; + } else { + res = '\''.id.'\''; + } +} + + // function call +value(res) ::= function(f). { + res = f; +} + + // expression +value(res) ::= OPENP expr(e) CLOSEP. { + res = '('. e .')'; +} + +value(res) ::= variable(v1) INSTANCEOF(i) ns1(v2). { + res = v1.i.v2; +} +value(res) ::= variable(v1) INSTANCEOF(i) variable(v2). { + res = v1.i.v2; +} + + // singele quoted string +value(res) ::= SINGLEQUOTESTRING(t). { + res = t; +} + + // double quoted string +value(res) ::= doublequoted_with_quotes(s). { + res = s; +} + + +value(res) ::= varindexed(vi) DOUBLECOLON static_class_access(r). { + if ($this->security && $this->security->static_classes !== array()) { + $this->compiler->trigger_template_error('dynamic static class not allowed by security setting'); + } + $prefixVar = $this->compiler->getNewPrefixVariable(); + if (vi['var'] === '\'smarty\'') { + $this->compiler->appendPrefixCode("<?php {$prefixVar} = ". $this->compiler->compileTag('private_special_variable',array(),vi['smarty_internal_index']).';?>'); + } else { + $this->compiler->appendPrefixCode("<?php {$prefixVar} = ". $this->compiler->compileVariable(vi['var']).vi['smarty_internal_index'].';?>'); + } + res = $prefixVar .'::'.r[0].r[1]; +} + + // Smarty tag +value(res) ::= smartytag(st). { + $prefixVar = $this->compiler->getNewPrefixVariable(); + $tmp = $this->compiler->appendCode('<?php ob_start();?>', st); + $this->compiler->appendPrefixCode($this->compiler->appendCode($tmp, "<?php {$prefixVar} = ob_get_clean();?>")); + res = $prefixVar; +} + +value(res) ::= value(v) modifierlist(l). { + res = $this->compiler->compileTag('private_modifier',array(),array('value'=>v,'modifierlist'=>l)); +} + // name space constant +value(res) ::= NAMESPACE(c). { + res = c; +} + + // array +value(res) ::= arraydef(a). { + res = a; +} + // static class access +value(res) ::= ns1(c)DOUBLECOLON static_class_access(s). { + if (!in_array(strtolower(c), array('self', 'parent')) && (!$this->security || $this->security->isTrustedStaticClassAccess(c, s, $this->compiler))) { + if (isset($this->smarty->registered_classes[c])) { + res = $this->smarty->registered_classes[c].'::'.s[0].s[1]; + } else { + res = c.'::'.s[0].s[1]; + } + } else { + $this->compiler->trigger_template_error ('static class \''.c.'\' is undefined or not allowed by security setting'); + } +} +// +// namespace stuff +// + +ns1(res) ::= ID(i). { + res = i; +} + +ns1(res) ::= NAMESPACE(i). { + res = i; + } + + + + +// +// variables +// + // Smarty variable (optional array) +variable(res) ::= DOLLARID(i). { + res = $this->compiler->compileVariable('\''.substr(i,1).'\''); +} +variable(res) ::= varindexed(vi). { + if (vi['var'] === '\'smarty\'') { + $smarty_var = $this->compiler->compileTag('private_special_variable',array(),vi['smarty_internal_index']); + res = $smarty_var; + } else { + // used for array reset,next,prev,end,current + $this->last_variable = vi['var']; + $this->last_index = vi['smarty_internal_index']; + res = $this->compiler->compileVariable(vi['var']).vi['smarty_internal_index']; + } +} + + // variable with property +variable(res) ::= varvar(v) AT ID(p). { + res = '$_smarty_tpl->tpl_vars['. v .']->'.p; +} + + // object +variable(res) ::= object(o). { + res = o; +} + + // config variable +variable(res) ::= HATCH ID(i) HATCH. { + res = $this->compiler->compileConfigVariable('\'' . i . '\''); +} + +variable(res) ::= HATCH ID(i) HATCH arrayindex(a). { + res = '(is_array($tmp = ' . $this->compiler->compileConfigVariable('\'' . i . '\'') . ') ? $tmp'.a.' :null)'; +} + +variable(res) ::= HATCH variable(v) HATCH. { + res = $this->compiler->compileConfigVariable(v); +} + +variable(res) ::= HATCH variable(v) HATCH arrayindex(a). { + res = '(is_array($tmp = ' . $this->compiler->compileConfigVariable(v) . ') ? $tmp'.a.' : null)'; +} + +varindexed(res) ::= DOLLARID(i) arrayindex(a). { + res = array('var'=>'\''.substr(i,1).'\'', 'smarty_internal_index'=>a); +} +varindexed(res) ::= varvar(v) arrayindex(a). { + res = array('var'=>v, 'smarty_internal_index'=>a); +} + +// +// array index +// + // multiple array index +arrayindex(res) ::= arrayindex(a1) indexdef(a2). { + res = a1.a2; +} + + // no array index +arrayindex ::= . { + return; +} + +// single index definition + // Smarty2 style index +indexdef(res) ::= DOT DOLLARID(i). { + res = '['.$this->compiler->compileVariable('\''.substr(i,1).'\'').']'; +} +indexdef(res) ::= DOT varvar(v). { + res = '['.$this->compiler->compileVariable(v).']'; +} + +indexdef(res) ::= DOT varvar(v) AT ID(p). { + res = '['.$this->compiler->compileVariable(v).'->'.p.']'; +} + +indexdef(res) ::= DOT ID(i). { + res = '[\''. i .'\']'; +} + +indexdef(res) ::= DOT INTEGER(n). { + res = '['. n .']'; +} + + +indexdef(res) ::= DOT LDEL expr(e) RDEL. { + res = '['. e .']'; +} + + // section tag index +indexdef(res) ::= OPENB ID(i)CLOSEB. { + res = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.i.'\'][\'index\']').']'; +} + +indexdef(res) ::= OPENB ID(i) DOT ID(i2) CLOSEB. { + res = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.i.'\'][\''.i2.'\']').']'; +} +indexdef(res) ::= OPENB SINGLEQUOTESTRING(s) CLOSEB. { + res = '['.s.']'; +} +indexdef(res) ::= OPENB INTEGER(n) CLOSEB. { + res = '['.n.']'; +} +indexdef(res) ::= OPENB DOLLARID(i) CLOSEB. { + res = '['.$this->compiler->compileVariable('\''.substr(i,1).'\'').']'; +} +indexdef(res) ::= OPENB variable(v) CLOSEB. { + res = '['.v.']'; +} +indexdef(res) ::= OPENB value(v) CLOSEB. { + res = '['.v.']'; +} + + // PHP style index +indexdef(res) ::= OPENB expr(e) CLOSEB. { + res = '['. e .']'; +} + + // for assign append array +indexdef(res) ::= OPENB CLOSEB. { + res = '[]'; +} + + +// +// variable variable names +// + + // singel identifier element +varvar(res) ::= DOLLARID(i). { + res = '\''.substr(i,1).'\''; +} + // single $ +varvar(res) ::= DOLLAR. { + res = '\'\''; +} + + // sequence of identifier elements +varvar(res) ::= varvar(v1) varvarele(v2). { + res = v1.'.'.v2; +} + + // fix sections of element +varvarele(res) ::= ID(s). { + res = '\''.s.'\''; +} +varvarele(res) ::= SIMPELOUTPUT(i). { + $var = trim(substr(i, $this->compiler->getLdelLength(), -$this->compiler->getRdelLength()), ' $'); + res = $this->compiler->compileVariable('\''.$var.'\''); +} + + // variable sections of element +varvarele(res) ::= LDEL expr(e) RDEL. { + res = '('.e.')'; +} + +// +// objects +// +object(res) ::= varindexed(vi) objectchain(oc). { + if (vi['var'] === '\'smarty\'') { + res = $this->compiler->compileTag('private_special_variable',array(),vi['smarty_internal_index']).oc; + } else { + res = $this->compiler->compileVariable(vi['var']).vi['smarty_internal_index'].oc; + } +} + + // single element +objectchain(res) ::= objectelement(oe). { + res = oe; +} + + // chain of elements +objectchain(res) ::= objectchain(oc) objectelement(oe). { + res = oc.oe; +} + + // variable +objectelement(res)::= PTR ID(i) arrayindex(a). { + if ($this->security && substr(i,0,1) === '_') { + $this->compiler->trigger_template_error (self::ERR1); + } + res = '->'.i.a; +} + +objectelement(res)::= PTR varvar(v) arrayindex(a). { + if ($this->security) { + $this->compiler->trigger_template_error (self::ERR2); + } + res = '->{'.$this->compiler->compileVariable(v).a.'}'; +} + +objectelement(res)::= PTR LDEL expr(e) RDEL arrayindex(a). { + if ($this->security) { + $this->compiler->trigger_template_error (self::ERR2); + } + res = '->{'.e.a.'}'; +} + +objectelement(res)::= PTR ID(ii) LDEL expr(e) RDEL arrayindex(a). { + if ($this->security) { + $this->compiler->trigger_template_error (self::ERR2); + } + res = '->{\''.ii.'\'.'.e.a.'}'; +} + + // method +objectelement(res)::= PTR method(f). { + res = '->'.f; +} + + +// +// function +// +function(res) ::= ns1(f) OPENP params(p) CLOSEP. { + res = $this->compiler->compilePHPFunctionCall(f, p); +} + + +// +// method +// +method(res) ::= ID(f) OPENP params(p) CLOSEP. { + if ($this->security && substr(f,0,1) === '_') { + $this->compiler->trigger_template_error (self::ERR1); + } + res = f . '('. implode(',',p) .')'; +} + +method(res) ::= DOLLARID(f) OPENP params(p) CLOSEP. { + if ($this->security) { + $this->compiler->trigger_template_error (self::ERR2); + } + $prefixVar = $this->compiler->getNewPrefixVariable(); + $this->compiler->appendPrefixCode("<?php {$prefixVar} = ".$this->compiler->compileVariable('\''.substr(f,1).'\'').';?>'); + res = $prefixVar .'('. implode(',',p) .')'; +} + +// function/method parameter + // multiple parameters +params(res) ::= params(p) COMMA expr(e). { + res = array_merge(p,array(e)); +} + + // single parameter +params(res) ::= expr(e). { + res = array(e); +} + + // kein parameter +params(res) ::= . { + res = array(); +} + +// +// modifier +// +modifierlist(res) ::= modifierlist(l) modifier(m) modparameters(p). { + res = array_merge(l,array(array_merge(m,p))); +} + +modifierlist(res) ::= modifier(m) modparameters(p). { + res = array(array_merge(m,p)); +} + +modifier(res) ::= VERT AT ID(m). { + res = array(m); +} + +modifier(res) ::= VERT ID(m). { + res = array(m); +} + +// +// modifier parameter +// + // multiple parameter +modparameters(res) ::= modparameters(mps) modparameter(mp). { + res = array_merge(mps,mp); +} + + // no parameter +modparameters(res) ::= . { + res = array(); +} + + // parameter expression +modparameter(res) ::= COLON value(mp). { + res = array(mp); +} +modparameter(res) ::= COLON UNIMATH(m) value(mp). { + res = array(trim(m).mp); +} + +modparameter(res) ::= COLON array(mp). { + res = array(mp); +} + + // static class methode call +static_class_access(res) ::= method(m). { + res = array(m, '', 'method'); +} + + // static class methode call with object chainig +static_class_access(res) ::= method(m) objectchain(oc). { + res = array(m, oc, 'method'); +} + + // static class constant +static_class_access(res) ::= ID(v). { + res = array(v, ''); +} + + // static class variables +static_class_access(res) ::= DOLLARID(v) arrayindex(a). { + res = array(v, a, 'property'); +} + + // static class variables with object chain +static_class_access(res) ::= DOLLARID(v) arrayindex(a) objectchain(oc). { + res = array(v, a.oc, 'property'); +} + + +// if conditions and operators +lop(res) ::= LOGOP(o). { + res = ' '. trim(o) . ' '; +} + +lop(res) ::= SLOGOP(o). { + static $lops = array( + 'eq' => ' == ', + 'ne' => ' != ', + 'neq' => ' != ', + 'gt' => ' > ', + 'ge' => ' >= ', + 'gte' => ' >= ', + 'lt' => ' < ', + 'le' => ' <= ', + 'lte' => ' <= ', + 'mod' => ' % ', + 'and' => ' && ', + 'or' => ' || ', + 'xor' => ' xor ', + ); + $op = strtolower(preg_replace('/\s*/', '', o)); + res = $lops[$op]; +} +tlop(res) ::= TLOGOP(o). { + static $tlops = array( + 'isdivby' => array('op' => ' % ', 'pre' => '!('), + 'isnotdivby' => array('op' => ' % ', 'pre' => '('), + 'isevenby' => array('op' => ' / ', 'pre' => '!(1 & '), + 'isnotevenby' => array('op' => ' / ', 'pre' => '(1 & '), + 'isoddby' => array('op' => ' / ', 'pre' => '(1 & '), + 'isnotoddby' => array('op' => ' / ', 'pre' => '!(1 & '), + ); + $op = strtolower(preg_replace('/\s*/', '', o)); + res = $tlops[$op]; + } + +scond(res) ::= SINGLECOND(o). { + static $scond = array ( + 'iseven' => '!(1 & ', + 'isnoteven' => '(1 & ', + 'isodd' => '(1 & ', + 'isnotodd' => '!(1 & ', + ); + $op = strtolower(str_replace(' ', '', o)); + res = $scond[$op]; +} + +// +// ARRAY element assignment +// +arraydef(res) ::= OPENB arrayelements(a) CLOSEB. { + res = 'array('.a.')'; +} +arraydef(res) ::= ARRAYOPEN arrayelements(a) CLOSEP. { + res = 'array('.a.')'; +} + +arrayelements(res) ::= arrayelement(a). { + res = a; +} + +arrayelements(res) ::= arrayelements(a1) COMMA arrayelement(a). { + res = a1.','.a; +} + +arrayelements ::= . { + return; +} + +arrayelement(res) ::= value(e1) APTR expr(e2). { + res = e1.'=>'.e2; +} + +arrayelement(res) ::= ID(i) APTR expr(e2). { + res = '\''.i.'\'=>'.e2; +} + +arrayelement(res) ::= expr(e). { + res = e; +} + + +// +// double quoted strings +// +doublequoted_with_quotes(res) ::= QUOTE QUOTE. { + res = '\'\''; +} + +doublequoted_with_quotes(res) ::= QUOTE doublequoted(s) QUOTE. { + $this->compiler->leaveDoubleQuote(); + res = s->to_smarty_php($this); +} + + +doublequoted(res) ::= doublequoted(o1) doublequotedcontent(o2). { + o1->append_subtree($this, o2); + res = o1; +} + +doublequoted(res) ::= doublequotedcontent(o). { + res = new Smarty_Internal_ParseTree_Dq($this, o); +} + +doublequotedcontent(res) ::= BACKTICK variable(v) BACKTICK. { + res = new Smarty_Internal_ParseTree_Code('(string)'.v); +} + +doublequotedcontent(res) ::= BACKTICK expr(e) BACKTICK. { + res = new Smarty_Internal_ParseTree_Code('(string)('.e.')'); +} + +doublequotedcontent(res) ::= DOLLARID(i). { + res = new Smarty_Internal_ParseTree_Code('(string)$_smarty_tpl->tpl_vars[\''. substr(i,1) .'\']->value'); +} + +doublequotedcontent(res) ::= LDEL variable(v) RDEL. { + res = new Smarty_Internal_ParseTree_Code('(string)'.v); +} + +doublequotedcontent(res) ::= LDEL expr(e) RDEL. { + res = new Smarty_Internal_ParseTree_Code('(string)('.e.')'); +} + +doublequotedcontent(res) ::= smartytag(st). { + res = new Smarty_Internal_ParseTree_Tag($this, st); +} + +doublequotedcontent(res) ::= TEXT(o). { + res = new Smarty_Internal_ParseTree_DqContent(o); +} + diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/Autoloader.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/Autoloader.php new file mode 100644 index 0000000000..c09361b669 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/Autoloader.php @@ -0,0 +1,110 @@ +<?php +/** + * Smarty Autoloader + * + * @package Smarty + */ + +/** + * Smarty Autoloader + * + * @package Smarty + * @author Uwe Tews + * Usage: + * require_once '...path/Autoloader.php'; + * Smarty_Autoloader::register(); + * or + * include '...path/bootstrap.php'; + * + * $smarty = new Smarty(); + */ +class Smarty_Autoloader +{ + /** + * Filepath to Smarty root + * + * @var string + */ + public static $SMARTY_DIR = null; + + /** + * Filepath to Smarty internal plugins + * + * @var string + */ + public static $SMARTY_SYSPLUGINS_DIR = null; + + /** + * Array with Smarty core classes and their filename + * + * @var array + */ + public static $rootClasses = array('smarty' => 'Smarty.class.php', 'smartybc' => 'SmartyBC.class.php',); + + /** + * Registers Smarty_Autoloader backward compatible to older installations. + * + * @param bool $prepend Whether to prepend the autoloader or not. + */ + public static function registerBC($prepend = false) + { + /** + * register the class autoloader + */ + if (!defined('SMARTY_SPL_AUTOLOAD')) { + define('SMARTY_SPL_AUTOLOAD', 0); + } + if (SMARTY_SPL_AUTOLOAD + && set_include_path(get_include_path() . PATH_SEPARATOR . SMARTY_SYSPLUGINS_DIR) !== false + ) { + $registeredAutoLoadFunctions = spl_autoload_functions(); + if (!isset($registeredAutoLoadFunctions[ 'spl_autoload' ])) { + spl_autoload_register(); + } + } else { + self::register($prepend); + } + } + + /** + * Registers Smarty_Autoloader as an SPL autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not. + */ + public static function register($prepend = false) + { + self::$SMARTY_DIR = defined('SMARTY_DIR') ? SMARTY_DIR : dirname(__FILE__) . DIRECTORY_SEPARATOR; + self::$SMARTY_SYSPLUGINS_DIR = defined('SMARTY_SYSPLUGINS_DIR') ? SMARTY_SYSPLUGINS_DIR : + self::$SMARTY_DIR . 'sysplugins' . DIRECTORY_SEPARATOR; + if (version_compare(PHP_VERSION, '5.3.0', '>=')) { + spl_autoload_register(array(__CLASS__, 'autoload'), true, $prepend); + } else { + spl_autoload_register(array(__CLASS__, 'autoload')); + } + } + + /** + * Handles auto loading of classes. + * + * @param string $class A class name. + */ + public static function autoload($class) + { + if ($class[ 0 ] !== 'S' || strpos($class, 'Smarty') !== 0) { + return; + } + $_class = strtolower($class); + if (isset(self::$rootClasses[ $_class ])) { + $file = self::$SMARTY_DIR . self::$rootClasses[ $_class ]; + if (is_file($file)) { + include $file; + } + } else { + $file = self::$SMARTY_SYSPLUGINS_DIR . $_class . '.php'; + if (is_file($file)) { + include $file; + } + } + return; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/Smarty.class.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/Smarty.class.php new file mode 100644 index 0000000000..a34c55e4d6 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/Smarty.class.php @@ -0,0 +1,1424 @@ +<?php +/** + * Project: Smarty: the PHP compiling template engine + * File: Smarty.class.php + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3.0 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * For questions, help, comments, discussion, etc., please join the + * Smarty mailing list. Send a blank e-mail to + * smarty-discussion-subscribe@googlegroups.com + * + * @link http://www.smarty.net/ + * @copyright 2018 New Digital Group, Inc. + * @copyright 2018 Uwe Tews + * @author Monte Ohrt <monte at ohrt dot com> + * @author Uwe Tews <uwe dot tews at gmail dot com> + * @author Rodney Rehm + * @package Smarty + */ +/** + * set SMARTY_DIR to absolute path to Smarty library files. + * Sets SMARTY_DIR only if user application has not already defined it. + */ +if (!defined('SMARTY_DIR')) { + /** + * + */ + define('SMARTY_DIR', dirname(__FILE__) . DIRECTORY_SEPARATOR); +} +/** + * set SMARTY_SYSPLUGINS_DIR to absolute path to Smarty internal plugins. + * Sets SMARTY_SYSPLUGINS_DIR only if user application has not already defined it. + */ +if (!defined('SMARTY_SYSPLUGINS_DIR')) { + /** + * + */ + define('SMARTY_SYSPLUGINS_DIR', SMARTY_DIR . 'sysplugins' . DIRECTORY_SEPARATOR); +} +if (!defined('SMARTY_PLUGINS_DIR')) { + /** + * + */ + define('SMARTY_PLUGINS_DIR', SMARTY_DIR . 'plugins' . DIRECTORY_SEPARATOR); +} +if (!defined('SMARTY_MBSTRING')) { + /** + * + */ + define('SMARTY_MBSTRING', function_exists('mb_get_info')); +} +if (!defined('SMARTY_RESOURCE_CHAR_SET')) { + // UTF-8 can only be done properly when mbstring is available! + /** + * @deprecated in favor of Smarty::$_CHARSET + */ + define('SMARTY_RESOURCE_CHAR_SET', SMARTY_MBSTRING ? 'UTF-8' : 'ISO-8859-1'); +} +if (!defined('SMARTY_RESOURCE_DATE_FORMAT')) { + /** + * @deprecated in favor of Smarty::$_DATE_FORMAT + */ + define('SMARTY_RESOURCE_DATE_FORMAT', '%b %e, %Y'); +} +/** + * Load Smarty_Autoloader + */ +if (!class_exists('Smarty_Autoloader')) { + include dirname(__FILE__) . '/bootstrap.php'; +} +/** + * Load always needed external class files + */ +require_once SMARTY_SYSPLUGINS_DIR . 'smarty_internal_data.php'; +require_once SMARTY_SYSPLUGINS_DIR . 'smarty_internal_extension_handler.php'; +require_once SMARTY_SYSPLUGINS_DIR . 'smarty_internal_templatebase.php'; +require_once SMARTY_SYSPLUGINS_DIR . 'smarty_internal_template.php'; +require_once SMARTY_SYSPLUGINS_DIR . 'smarty_resource.php'; +require_once SMARTY_SYSPLUGINS_DIR . 'smarty_variable.php'; +require_once SMARTY_SYSPLUGINS_DIR . 'smarty_template_source.php'; +require_once SMARTY_SYSPLUGINS_DIR . 'smarty_template_resource_base.php'; +require_once SMARTY_SYSPLUGINS_DIR . 'smarty_internal_resource_file.php'; + +/** + * This is the main Smarty class + * + * @package Smarty + * + * The following methods will be dynamically loaded by the extension handler when they are called. + * They are located in a corresponding Smarty_Internal_Method_xxxx class + * + * @method int clearAllCache(int $exp_time = null, string $type = null) + * @method int clearCache(string $template_name, string $cache_id = null, string $compile_id = null, int $exp_time = null, string $type = null) + * @method int compileAllTemplates(string $extension = '.tpl', bool $force_compile = false, int $time_limit = 0, $max_errors = null) + * @method int compileAllConfig(string $extension = '.conf', bool $force_compile = false, int $time_limit = 0, $max_errors = null) + * @method int clearCompiledTemplate($resource_name = null, $compile_id = null, $exp_time = null) + */ +class Smarty extends Smarty_Internal_TemplateBase +{ + /** + * smarty version + */ + const SMARTY_VERSION = '3.1.48'; + /** + * define variable scopes + */ + const SCOPE_LOCAL = 1; + const SCOPE_PARENT = 2; + const SCOPE_TPL_ROOT = 4; + const SCOPE_ROOT = 8; + const SCOPE_SMARTY = 16; + const SCOPE_GLOBAL = 32; + /** + * define caching modes + */ + const CACHING_OFF = 0; + const CACHING_LIFETIME_CURRENT = 1; + const CACHING_LIFETIME_SAVED = 2; + /** + * define constant for clearing cache files be saved expiration dates + */ + const CLEAR_EXPIRED = -1; + /** + * define compile check modes + */ + const COMPILECHECK_OFF = 0; + const COMPILECHECK_ON = 1; + const COMPILECHECK_CACHEMISS = 2; + /** + * define debug modes + */ + const DEBUG_OFF = 0; + const DEBUG_ON = 1; + const DEBUG_INDIVIDUAL = 2; + /** + * modes for handling of "<?php ... ?>" tags in templates. + */ + const PHP_PASSTHRU = 0; //-> print tags as plain text + const PHP_QUOTE = 1; //-> escape tags as entities + const PHP_REMOVE = 2; //-> escape tags as entities + const PHP_ALLOW = 3; //-> escape tags as entities + /** + * filter types + */ + const FILTER_POST = 'post'; + const FILTER_PRE = 'pre'; + const FILTER_OUTPUT = 'output'; + const FILTER_VARIABLE = 'variable'; + /** + * plugin types + */ + const PLUGIN_FUNCTION = 'function'; + const PLUGIN_BLOCK = 'block'; + const PLUGIN_COMPILER = 'compiler'; + const PLUGIN_MODIFIER = 'modifier'; + const PLUGIN_MODIFIERCOMPILER = 'modifiercompiler'; + + /** + * assigned global tpl vars + */ + public static $global_tpl_vars = array(); + + /** + * Flag denoting if Multibyte String functions are available + */ + public static $_MBSTRING = SMARTY_MBSTRING; + + /** + * The character set to adhere to (e.g. "UTF-8") + */ + public static $_CHARSET = SMARTY_RESOURCE_CHAR_SET; + + /** + * The date format to be used internally + * (accepts date() and strftime()) + */ + public static $_DATE_FORMAT = SMARTY_RESOURCE_DATE_FORMAT; + + /** + * Flag denoting if PCRE should run in UTF-8 mode + */ + public static $_UTF8_MODIFIER = 'u'; + + /** + * Flag denoting if operating system is windows + */ + public static $_IS_WINDOWS = false; + + /** + * auto literal on delimiters with whitespace + * + * @var boolean + */ + public $auto_literal = true; + + /** + * display error on not assigned variables + * + * @var boolean + */ + public $error_unassigned = false; + + /** + * look up relative file path in include_path + * + * @var boolean + */ + public $use_include_path = false; + + /** + * flag if template_dir is normalized + * + * @var bool + */ + public $_templateDirNormalized = false; + + /** + * joined template directory string used in cache keys + * + * @var string + */ + public $_joined_template_dir = null; + + /** + * flag if config_dir is normalized + * + * @var bool + */ + public $_configDirNormalized = false; + + /** + * joined config directory string used in cache keys + * + * @var string + */ + public $_joined_config_dir = null; + + /** + * default template handler + * + * @var callable + */ + public $default_template_handler_func = null; + + /** + * default config handler + * + * @var callable + */ + public $default_config_handler_func = null; + + /** + * default plugin handler + * + * @var callable + */ + public $default_plugin_handler_func = null; + + /** + * flag if template_dir is normalized + * + * @var bool + */ + public $_compileDirNormalized = false; + + /** + * flag if plugins_dir is normalized + * + * @var bool + */ + public $_pluginsDirNormalized = false; + + /** + * flag if template_dir is normalized + * + * @var bool + */ + public $_cacheDirNormalized = false; + + /** + * force template compiling? + * + * @var boolean + */ + public $force_compile = false; + + /** + * use sub dirs for compiled/cached files? + * + * @var boolean + */ + public $use_sub_dirs = false; + + /** + * allow ambiguous resources (that are made unique by the resource handler) + * + * @var boolean + */ + public $allow_ambiguous_resources = false; + + /** + * merge compiled includes + * + * @var boolean + */ + public $merge_compiled_includes = false; + + /* + * flag for behaviour when extends: resource and {extends} tag are used simultaneous + * if false disable execution of {extends} in templates called by extends resource. + * (behaviour as versions < 3.1.28) + * + * @var boolean + */ + public $extends_recursion = true; + + /** + * force cache file creation + * + * @var boolean + */ + public $force_cache = false; + + /** + * template left-delimiter + * + * @var string + */ + public $left_delimiter = "{"; + + /** + * template right-delimiter + * + * @var string + */ + public $right_delimiter = "}"; + + /** + * array of strings which shall be treated as literal by compiler + * + * @var array string + */ + public $literals = array(); + + /** + * class name + * This should be instance of Smarty_Security. + * + * @var string + * @see Smarty_Security + */ + public $security_class = 'Smarty_Security'; + + /** + * implementation of security class + * + * @var Smarty_Security + */ + public $security_policy = null; + + /** + * controls handling of PHP-blocks + * + * @var integer + */ + public $php_handling = self::PHP_PASSTHRU; + + /** + * controls if the php template file resource is allowed + * + * @var bool + */ + public $allow_php_templates = false; + + /** + * debug mode + * Setting this to true enables the debug-console. + * + * @var boolean + */ + public $debugging = false; + + /** + * This determines if debugging is enable-able from the browser. + * <ul> + * <li>NONE => no debugging control allowed</li> + * <li>URL => enable debugging when SMARTY_DEBUG is found in the URL.</li> + * </ul> + * + * @var string + */ + public $debugging_ctrl = 'NONE'; + + /** + * Name of debugging URL-param. + * Only used when $debugging_ctrl is set to 'URL'. + * The name of the URL-parameter that activates debugging. + * + * @var string + */ + public $smarty_debug_id = 'SMARTY_DEBUG'; + + /** + * Path of debug template. + * + * @var string + */ + public $debug_tpl = null; + + /** + * When set, smarty uses this value as error_reporting-level. + * + * @var int + */ + public $error_reporting = null; + + /** + * Controls whether variables with the same name overwrite each other. + * + * @var boolean + */ + public $config_overwrite = true; + + /** + * Controls whether config values of on/true/yes and off/false/no get converted to boolean. + * + * @var boolean + */ + public $config_booleanize = true; + + /** + * Controls whether hidden config sections/vars are read from the file. + * + * @var boolean + */ + public $config_read_hidden = false; + + /** + * locking concurrent compiles + * + * @var boolean + */ + public $compile_locking = true; + + /** + * Controls whether cache resources should use locking mechanism + * + * @var boolean + */ + public $cache_locking = false; + + /** + * seconds to wait for acquiring a lock before ignoring the write lock + * + * @var float + */ + public $locking_timeout = 10; + + /** + * resource type used if none given + * Must be an valid key of $registered_resources. + * + * @var string + */ + public $default_resource_type = 'file'; + + /** + * caching type + * Must be an element of $cache_resource_types. + * + * @var string + */ + public $caching_type = 'file'; + + /** + * config type + * + * @var string + */ + public $default_config_type = 'file'; + + /** + * check If-Modified-Since headers + * + * @var boolean + */ + public $cache_modified_check = false; + + /** + * registered plugins + * + * @var array + */ + public $registered_plugins = array(); + + /** + * registered objects + * + * @var array + */ + public $registered_objects = array(); + + /** + * registered classes + * + * @var array + */ + public $registered_classes = array(); + + /** + * registered filters + * + * @var array + */ + public $registered_filters = array(); + + /** + * registered resources + * + * @var array + */ + public $registered_resources = array(); + + /** + * registered cache resources + * + * @var array + */ + public $registered_cache_resources = array(); + + /** + * autoload filter + * + * @var array + */ + public $autoload_filters = array(); + + /** + * default modifier + * + * @var array + */ + public $default_modifiers = array(); + + /** + * autoescape variable output + * + * @var boolean + */ + public $escape_html = false; + + /** + * start time for execution time calculation + * + * @var int + */ + public $start_time = 0; + + /** + * required by the compiler for BC + * + * @var string + */ + public $_current_file = null; + + /** + * internal flag to enable parser debugging + * + * @var bool + */ + public $_parserdebug = false; + + /** + * This object type (Smarty = 1, template = 2, data = 4) + * + * @var int + */ + public $_objType = 1; + + /** + * Debug object + * + * @var Smarty_Internal_Debug + */ + public $_debug = null; + + /** + * template directory + * + * @var array + */ + protected $template_dir = array('./templates/'); + + /** + * flags for normalized template directory entries + * + * @var array + */ + protected $_processedTemplateDir = array(); + + /** + * config directory + * + * @var array + */ + protected $config_dir = array('./configs/'); + + /** + * flags for normalized template directory entries + * + * @var array + */ + protected $_processedConfigDir = array(); + + /** + * compile directory + * + * @var string + */ + protected $compile_dir = './templates_c/'; + + /** + * plugins directory + * + * @var array + */ + protected $plugins_dir = array(); + + /** + * cache directory + * + * @var string + */ + protected $cache_dir = './cache/'; + + /** + * removed properties + * + * @var string[] + */ + protected $obsoleteProperties = array( + 'resource_caching', 'template_resource_caching', 'direct_access_security', + '_dir_perms', '_file_perms', 'plugin_search_order', + 'inheritance_merge_compiled_includes', 'resource_cache_mode', + ); + + /** + * List of private properties which will call getter/setter on a direct access + * + * @var string[] + */ + protected $accessMap = array( + 'template_dir' => 'TemplateDir', 'config_dir' => 'ConfigDir', + 'plugins_dir' => 'PluginsDir', 'compile_dir' => 'CompileDir', + 'cache_dir' => 'CacheDir', + ); + + /** + * Initialize new Smarty object + */ + public function __construct() + { + $this->_clearTemplateCache(); + parent::__construct(); + if (is_callable('mb_internal_encoding')) { + mb_internal_encoding(Smarty::$_CHARSET); + } + $this->start_time = microtime(true); + if (isset($_SERVER[ 'SCRIPT_NAME' ])) { + Smarty::$global_tpl_vars[ 'SCRIPT_NAME' ] = new Smarty_Variable($_SERVER[ 'SCRIPT_NAME' ]); + } + // Check if we're running on windows + Smarty::$_IS_WINDOWS = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'; + // let PCRE (preg_*) treat strings as ISO-8859-1 if we're not dealing with UTF-8 + if (Smarty::$_CHARSET !== 'UTF-8') { + Smarty::$_UTF8_MODIFIER = ''; + } + } + + /** + * Enable error handler to mute expected messages + * + * @return boolean + * @deprecated + */ + public static function muteExpectedErrors() + { + return Smarty_Internal_ErrorHandler::muteExpectedErrors(); + } + + /** + * Disable error handler muting expected messages + * + * @deprecated + */ + public static function unmuteExpectedErrors() + { + restore_error_handler(); + } + + /** + * Check if a template resource exists + * + * @param string $resource_name template name + * + * @return bool status + * @throws \SmartyException + */ + public function templateExists($resource_name) + { + // create source object + $source = Smarty_Template_Source::load(null, $this, $resource_name); + return $source->exists; + } + + /** + * Loads security class and enables security + * + * @param string|Smarty_Security $security_class if a string is used, it must be class-name + * + * @return Smarty current Smarty instance for chaining + * @throws \SmartyException + */ + public function enableSecurity($security_class = null) + { + Smarty_Security::enableSecurity($this, $security_class); + return $this; + } + + /** + * Disable security + * + * @return Smarty current Smarty instance for chaining + */ + public function disableSecurity() + { + $this->security_policy = null; + return $this; + } + + /** + * Add template directory(s) + * + * @param string|array $template_dir directory(s) of template sources + * @param string $key of the array element to assign the template dir to + * @param bool $isConfig true for config_dir + * + * @return Smarty current Smarty instance for chaining + */ + public function addTemplateDir($template_dir, $key = null, $isConfig = false) + { + if ($isConfig) { + $processed = &$this->_processedConfigDir; + $dir = &$this->config_dir; + $this->_configDirNormalized = false; + } else { + $processed = &$this->_processedTemplateDir; + $dir = &$this->template_dir; + $this->_templateDirNormalized = false; + } + if (is_array($template_dir)) { + foreach ($template_dir as $k => $v) { + if (is_int($k)) { + // indexes are not merged but appended + $dir[] = $v; + } else { + // string indexes are overridden + $dir[ $k ] = $v; + unset($processed[ $key ]); + } + } + } else { + if ($key !== null) { + // override directory at specified index + $dir[ $key ] = $template_dir; + unset($processed[ $key ]); + } else { + // append new directory + $dir[] = $template_dir; + } + } + return $this; + } + + /** + * Get template directories + * + * @param mixed $index index of directory to get, null to get all + * @param bool $isConfig true for config_dir + * + * @return array|string list of template directories, or directory of $index + */ + public function getTemplateDir($index = null, $isConfig = false) + { + if ($isConfig) { + $dir = &$this->config_dir; + } else { + $dir = &$this->template_dir; + } + if ($isConfig ? !$this->_configDirNormalized : !$this->_templateDirNormalized) { + $this->_normalizeTemplateConfig($isConfig); + } + if ($index !== null) { + return isset($dir[ $index ]) ? $dir[ $index ] : null; + } + return $dir; + } + + /** + * Set template directory + * + * @param string|array $template_dir directory(s) of template sources + * @param bool $isConfig true for config_dir + * + * @return \Smarty current Smarty instance for chaining + */ + public function setTemplateDir($template_dir, $isConfig = false) + { + if ($isConfig) { + $this->config_dir = array(); + $this->_processedConfigDir = array(); + } else { + $this->template_dir = array(); + $this->_processedTemplateDir = array(); + } + $this->addTemplateDir($template_dir, null, $isConfig); + return $this; + } + + /** + * Add config directory(s) + * + * @param string|array $config_dir directory(s) of config sources + * @param mixed $key key of the array element to assign the config dir to + * + * @return Smarty current Smarty instance for chaining + */ + public function addConfigDir($config_dir, $key = null) + { + return $this->addTemplateDir($config_dir, $key, true); + } + + /** + * Get config directory + * + * @param mixed $index index of directory to get, null to get all + * + * @return array configuration directory + */ + public function getConfigDir($index = null) + { + return $this->getTemplateDir($index, true); + } + + /** + * Set config directory + * + * @param $config_dir + * + * @return Smarty current Smarty instance for chaining + */ + public function setConfigDir($config_dir) + { + return $this->setTemplateDir($config_dir, true); + } + + /** + * Adds directory of plugin files + * + * @param null|array|string $plugins_dir + * + * @return Smarty current Smarty instance for chaining + */ + public function addPluginsDir($plugins_dir) + { + if (empty($this->plugins_dir)) { + $this->plugins_dir[] = SMARTY_PLUGINS_DIR; + } + $this->plugins_dir = array_merge($this->plugins_dir, (array)$plugins_dir); + $this->_pluginsDirNormalized = false; + return $this; + } + + /** + * Get plugin directories + * + * @return array list of plugin directories + */ + public function getPluginsDir() + { + if (empty($this->plugins_dir)) { + $this->plugins_dir[] = SMARTY_PLUGINS_DIR; + $this->_pluginsDirNormalized = false; + } + if (!$this->_pluginsDirNormalized) { + if (!is_array($this->plugins_dir)) { + $this->plugins_dir = (array)$this->plugins_dir; + } + foreach ($this->plugins_dir as $k => $v) { + $this->plugins_dir[ $k ] = $this->_realpath(rtrim($v, '/\\') . DIRECTORY_SEPARATOR, true); + } + $this->_cache[ 'plugin_files' ] = array(); + $this->_pluginsDirNormalized = true; + } + return $this->plugins_dir; + } + + /** + * Set plugins directory + * + * @param string|array $plugins_dir directory(s) of plugins + * + * @return Smarty current Smarty instance for chaining + */ + public function setPluginsDir($plugins_dir) + { + $this->plugins_dir = (array)$plugins_dir; + $this->_pluginsDirNormalized = false; + return $this; + } + + /** + * Get compiled directory + * + * @return string path to compiled templates + */ + public function getCompileDir() + { + if (!$this->_compileDirNormalized) { + $this->_normalizeDir('compile_dir', $this->compile_dir); + $this->_compileDirNormalized = true; + } + return $this->compile_dir; + } + + /** + * + * @param string $compile_dir directory to store compiled templates in + * + * @return Smarty current Smarty instance for chaining + */ + public function setCompileDir($compile_dir) + { + $this->_normalizeDir('compile_dir', $compile_dir); + $this->_compileDirNormalized = true; + return $this; + } + + /** + * Get cache directory + * + * @return string path of cache directory + */ + public function getCacheDir() + { + if (!$this->_cacheDirNormalized) { + $this->_normalizeDir('cache_dir', $this->cache_dir); + $this->_cacheDirNormalized = true; + } + return $this->cache_dir; + } + + /** + * Set cache directory + * + * @param string $cache_dir directory to store cached templates in + * + * @return Smarty current Smarty instance for chaining + */ + public function setCacheDir($cache_dir) + { + $this->_normalizeDir('cache_dir', $cache_dir); + $this->_cacheDirNormalized = true; + return $this; + } + + /** + * creates a template object + * + * @param string $template the resource handle of the template file + * @param mixed $cache_id cache id to be used with this template + * @param mixed $compile_id compile id to be used with this template + * @param object $parent next higher level of Smarty variables + * @param boolean $do_clone flag is Smarty object shall be cloned + * + * @return \Smarty_Internal_Template template object + * @throws \SmartyException + */ + public function createTemplate($template, $cache_id = null, $compile_id = null, $parent = null, $do_clone = true) + { + if ($cache_id !== null && (is_object($cache_id) || is_array($cache_id))) { + $parent = $cache_id; + $cache_id = null; + } + if ($parent !== null && is_array($parent)) { + $data = $parent; + $parent = null; + } else { + $data = null; + } + if (!$this->_templateDirNormalized) { + $this->_normalizeTemplateConfig(false); + } + $_templateId = $this->_getTemplateId($template, $cache_id, $compile_id); + $tpl = null; + if ($this->caching && isset(Smarty_Internal_Template::$isCacheTplObj[ $_templateId ])) { + $tpl = $do_clone ? clone Smarty_Internal_Template::$isCacheTplObj[ $_templateId ] : + Smarty_Internal_Template::$isCacheTplObj[ $_templateId ]; + $tpl->inheritance = null; + $tpl->tpl_vars = $tpl->config_vars = array(); + } elseif (!$do_clone && isset(Smarty_Internal_Template::$tplObjCache[ $_templateId ])) { + $tpl = clone Smarty_Internal_Template::$tplObjCache[ $_templateId ]; + $tpl->inheritance = null; + $tpl->tpl_vars = $tpl->config_vars = array(); + } else { + /* @var Smarty_Internal_Template $tpl */ + $tpl = new $this->template_class($template, $this, null, $cache_id, $compile_id, null, null); + $tpl->templateId = $_templateId; + } + if ($do_clone) { + $tpl->smarty = clone $tpl->smarty; + } + $tpl->parent = $parent ? $parent : $this; + // fill data if present + if (!empty($data) && is_array($data)) { + // set up variable values + foreach ($data as $_key => $_val) { + $tpl->tpl_vars[ $_key ] = new Smarty_Variable($_val); + } + } + if ($this->debugging || $this->debugging_ctrl === 'URL') { + $tpl->smarty->_debug = new Smarty_Internal_Debug(); + // check URL debugging control + if (!$this->debugging && $this->debugging_ctrl === 'URL') { + $tpl->smarty->_debug->debugUrl($tpl->smarty); + } + } + return $tpl; + } + + /** + * Takes unknown classes and loads plugin files for them + * class name format: Smarty_PluginType_PluginName + * plugin filename format: plugintype.pluginname.php + * + * @param string $plugin_name class plugin name to load + * @param bool $check check if already loaded + * + * @return string |boolean filepath of loaded file or false + * @throws \SmartyException + */ + public function loadPlugin($plugin_name, $check = true) + { + return $this->ext->loadPlugin->loadPlugin($this, $plugin_name, $check); + } + + /** + * Get unique template id + * + * @param string $template_name + * @param null|mixed $cache_id + * @param null|mixed $compile_id + * @param null $caching + * @param \Smarty_Internal_Template $template + * + * @return string + * @throws \SmartyException + */ + public function _getTemplateId( + $template_name, + $cache_id = null, + $compile_id = null, + $caching = null, + Smarty_Internal_Template $template = null + ) { + $template_name = (strpos($template_name, ':') === false) ? "{$this->default_resource_type}:{$template_name}" : + $template_name; + $cache_id = $cache_id === null ? $this->cache_id : $cache_id; + $compile_id = $compile_id === null ? $this->compile_id : $compile_id; + $caching = (int)($caching === null ? $this->caching : $caching); + if ((isset($template) && strpos($template_name, ':.') !== false) || $this->allow_ambiguous_resources) { + $_templateId = + Smarty_Resource::getUniqueTemplateName((isset($template) ? $template : $this), $template_name) . + "#{$cache_id}#{$compile_id}#{$caching}"; + } else { + $_templateId = $this->_joined_template_dir . "#{$template_name}#{$cache_id}#{$compile_id}#{$caching}"; + } + if (isset($_templateId[ 150 ])) { + $_templateId = sha1($_templateId); + } + return $_templateId; + } + + /** + * Normalize path + * - remove /./ and /../ + * - make it absolute if required + * + * @param string $path file path + * @param bool $realpath if true - convert to absolute + * false - convert to relative + * null - keep as it is but + * remove /./ /../ + * + * @return string + */ + public function _realpath($path, $realpath = null) + { + $nds = array('/' => '\\', '\\' => '/'); + preg_match( + '%^(?<root>(?:[[:alpha:]]:[\\\\/]|/|[\\\\]{2}[[:alpha:]]+|[[:print:]]{2,}:[/]{2}|[\\\\])?)(?<path>(.*))$%u', + $path, + $parts + ); + $path = $parts[ 'path' ]; + if ($parts[ 'root' ] === '\\') { + $parts[ 'root' ] = substr(getcwd(), 0, 2) . $parts[ 'root' ]; + } else { + if ($realpath !== null && !$parts[ 'root' ]) { + $path = getcwd() . DIRECTORY_SEPARATOR . $path; + } + } + // normalize DIRECTORY_SEPARATOR + $path = str_replace($nds[ DIRECTORY_SEPARATOR ], DIRECTORY_SEPARATOR, $path); + $parts[ 'root' ] = str_replace($nds[ DIRECTORY_SEPARATOR ], DIRECTORY_SEPARATOR, $parts[ 'root' ]); + do { + $path = preg_replace( + array('#[\\\\/]{2}#', '#[\\\\/][.][\\\\/]#', '#[\\\\/]([^\\\\/.]+)[\\\\/][.][.][\\\\/]#'), + DIRECTORY_SEPARATOR, + $path, + -1, + $count + ); + } while ($count > 0); + return $realpath !== false ? $parts[ 'root' ] . $path : str_ireplace(getcwd(), '.', $parts[ 'root' ] . $path); + } + + /** + * Empty template objects cache + */ + public function _clearTemplateCache() + { + Smarty_Internal_Template::$isCacheTplObj = array(); + Smarty_Internal_Template::$tplObjCache = array(); + } + + /** + * @param boolean $use_sub_dirs + */ + public function setUseSubDirs($use_sub_dirs) + { + $this->use_sub_dirs = $use_sub_dirs; + } + + /** + * @param int $error_reporting + */ + public function setErrorReporting($error_reporting) + { + $this->error_reporting = $error_reporting; + } + + /** + * @param boolean $escape_html + */ + public function setEscapeHtml($escape_html) + { + $this->escape_html = $escape_html; + } + + /** + * Return auto_literal flag + * + * @return boolean + */ + public function getAutoLiteral() + { + return $this->auto_literal; + } + + /** + * Set auto_literal flag + * + * @param boolean $auto_literal + */ + public function setAutoLiteral($auto_literal = true) + { + $this->auto_literal = $auto_literal; + } + + /** + * @param boolean $force_compile + */ + public function setForceCompile($force_compile) + { + $this->force_compile = $force_compile; + } + + /** + * @param boolean $merge_compiled_includes + */ + public function setMergeCompiledIncludes($merge_compiled_includes) + { + $this->merge_compiled_includes = $merge_compiled_includes; + } + + /** + * Get left delimiter + * + * @return string + */ + public function getLeftDelimiter() + { + return $this->left_delimiter; + } + + /** + * Set left delimiter + * + * @param string $left_delimiter + */ + public function setLeftDelimiter($left_delimiter) + { + $this->left_delimiter = $left_delimiter; + } + + /** + * Get right delimiter + * + * @return string $right_delimiter + */ + public function getRightDelimiter() + { + return $this->right_delimiter; + } + + /** + * Set right delimiter + * + * @param string + */ + public function setRightDelimiter($right_delimiter) + { + $this->right_delimiter = $right_delimiter; + } + + /** + * @param boolean $debugging + */ + public function setDebugging($debugging) + { + $this->debugging = $debugging; + } + + /** + * @param boolean $config_overwrite + */ + public function setConfigOverwrite($config_overwrite) + { + $this->config_overwrite = $config_overwrite; + } + + /** + * @param boolean $config_booleanize + */ + public function setConfigBooleanize($config_booleanize) + { + $this->config_booleanize = $config_booleanize; + } + + /** + * @param boolean $config_read_hidden + */ + public function setConfigReadHidden($config_read_hidden) + { + $this->config_read_hidden = $config_read_hidden; + } + + /** + * @param boolean $compile_locking + */ + public function setCompileLocking($compile_locking) + { + $this->compile_locking = $compile_locking; + } + + /** + * @param string $default_resource_type + */ + public function setDefaultResourceType($default_resource_type) + { + $this->default_resource_type = $default_resource_type; + } + + /** + * @param string $caching_type + */ + public function setCachingType($caching_type) + { + $this->caching_type = $caching_type; + } + + /** + * Test install + * + * @param null $errors + */ + public function testInstall(&$errors = null) + { + Smarty_Internal_TestInstall::testInstall($this, $errors); + } + + /** + * Get Smarty object + * + * @return Smarty + */ + public function _getSmartyObj() + { + return $this; + } + + /** + * <<magic>> Generic getter. + * Calls the appropriate getter function. + * Issues an E_USER_NOTICE if no valid getter is found. + * + * @param string $name property name + * + * @return mixed + */ + public function __get($name) + { + if (isset($this->accessMap[ $name ])) { + $method = 'get' . $this->accessMap[ $name ]; + return $this->{$method}(); + } elseif (isset($this->_cache[ $name ])) { + return $this->_cache[ $name ]; + } elseif (in_array($name, $this->obsoleteProperties)) { + return null; + } else { + trigger_error('Undefined property: ' . get_class($this) . '::$' . $name, E_USER_NOTICE); + } + return null; + } + + /** + * <<magic>> Generic setter. + * Calls the appropriate setter function. + * Issues an E_USER_NOTICE if no valid setter is found. + * + * @param string $name property name + * @param mixed $value parameter passed to setter + * + */ + public function __set($name, $value) + { + if (isset($this->accessMap[ $name ])) { + $method = 'set' . $this->accessMap[ $name ]; + $this->{$method}($value); + } elseif (in_array($name, $this->obsoleteProperties)) { + return; + } elseif (is_object($value) && method_exists($value, $name)) { + $this->$name = $value; + } else { + trigger_error('Undefined property: ' . get_class($this) . '::$' . $name, E_USER_NOTICE); + } + } + + /** + * Normalize and set directory string + * + * @param string $dirName cache_dir or compile_dir + * @param string $dir filepath of folder + */ + private function _normalizeDir($dirName, $dir) + { + $this->{$dirName} = $this->_realpath(rtrim($dir, "/\\") . DIRECTORY_SEPARATOR, true); + if (class_exists('Smarty_Internal_ErrorHandler', false)) { + if (!isset(Smarty_Internal_ErrorHandler::$mutedDirectories[ $this->{$dirName} ])) { + Smarty_Internal_ErrorHandler::$mutedDirectories[ $this->{$dirName} ] = null; + } + } + } + + /** + * Normalize template_dir or config_dir + * + * @param bool $isConfig true for config_dir + */ + private function _normalizeTemplateConfig($isConfig) + { + if ($isConfig) { + $processed = &$this->_processedConfigDir; + $dir = &$this->config_dir; + } else { + $processed = &$this->_processedTemplateDir; + $dir = &$this->template_dir; + } + if (!is_array($dir)) { + $dir = (array)$dir; + } + foreach ($dir as $k => $v) { + if (!isset($processed[ $k ])) { + $dir[ $k ] = $v = $this->_realpath(rtrim($v, "/\\") . DIRECTORY_SEPARATOR, true); + $processed[ $k ] = true; + } + } + $isConfig ? $this->_configDirNormalized = true : $this->_templateDirNormalized = true; + $isConfig ? $this->_joined_config_dir = join('#', $this->config_dir) : + $this->_joined_template_dir = join('#', $this->template_dir); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/SmartyBC.class.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/SmartyBC.class.php new file mode 100644 index 0000000000..0550e46dc5 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/SmartyBC.class.php @@ -0,0 +1,477 @@ +<?php +/** + * Project: Smarty: the PHP compiling template engine + * File: SmartyBC.class.php + * SVN: $Id: $ + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3.0 of the License, or (at your option) any later version. + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * For questions, help, comments, discussion, etc., please join the + * Smarty mailing list. Send a blank e-mail to + * smarty-discussion-subscribe@googlegroups.com + * + * @link http://www.smarty.net/ + * @copyright 2008 New Digital Group, Inc. + * @author Monte Ohrt <monte at ohrt dot com> + * @author Uwe Tews + * @author Rodney Rehm + * @package Smarty + */ +/** + * @ignore + */ +require_once dirname(__FILE__) . '/Smarty.class.php'; + +/** + * Smarty Backward Compatibility Wrapper Class + * + * @package Smarty + */ +class SmartyBC extends Smarty +{ + /** + * Smarty 2 BC + * + * @var string + */ + public $_version = self::SMARTY_VERSION; + + /** + * This is an array of directories where trusted php scripts reside. + * + * @var array + */ + public $trusted_dir = array(); + + /** + * Initialize new SmartyBC object + */ + public function __construct() + { + parent::__construct(); + } + + /** + * wrapper for assign_by_ref + * + * @param string $tpl_var the template variable name + * @param mixed &$value the referenced value to assign + */ + public function assign_by_ref($tpl_var, &$value) + { + $this->assignByRef($tpl_var, $value); + } + + /** + * wrapper for append_by_ref + * + * @param string $tpl_var the template variable name + * @param mixed &$value the referenced value to append + * @param boolean $merge flag if array elements shall be merged + */ + public function append_by_ref($tpl_var, &$value, $merge = false) + { + $this->appendByRef($tpl_var, $value, $merge); + } + + /** + * clear the given assigned template variable. + * + * @param string $tpl_var the template variable to clear + */ + public function clear_assign($tpl_var) + { + $this->clearAssign($tpl_var); + } + + /** + * Registers custom function to be used in templates + * + * @param string $function the name of the template function + * @param string $function_impl the name of the PHP function to register + * @param bool $cacheable + * @param mixed $cache_attrs + * + * @throws \SmartyException + */ + public function register_function($function, $function_impl, $cacheable = true, $cache_attrs = null) + { + $this->registerPlugin('function', $function, $function_impl, $cacheable, $cache_attrs); + } + + /** + * Unregister custom function + * + * @param string $function name of template function + */ + public function unregister_function($function) + { + $this->unregisterPlugin('function', $function); + } + + /** + * Registers object to be used in templates + * + * @param string $object name of template object + * @param object $object_impl the referenced PHP object to register + * @param array $allowed list of allowed methods (empty = all) + * @param boolean $smarty_args smarty argument format, else traditional + * @param array $block_methods list of methods that are block format + * + * @throws SmartyException + * @internal param array $block_functs list of methods that are block format + */ + public function register_object( + $object, + $object_impl, + $allowed = array(), + $smarty_args = true, + $block_methods = array() + ) { + settype($allowed, 'array'); + settype($smarty_args, 'boolean'); + $this->registerObject($object, $object_impl, $allowed, $smarty_args, $block_methods); + } + + /** + * Unregister object + * + * @param string $object name of template object + */ + public function unregister_object($object) + { + $this->unregisterObject($object); + } + + /** + * Registers block function to be used in templates + * + * @param string $block name of template block + * @param string $block_impl PHP function to register + * @param bool $cacheable + * @param mixed $cache_attrs + * + * @throws \SmartyException + */ + public function register_block($block, $block_impl, $cacheable = true, $cache_attrs = null) + { + $this->registerPlugin('block', $block, $block_impl, $cacheable, $cache_attrs); + } + + /** + * Unregister block function + * + * @param string $block name of template function + */ + public function unregister_block($block) + { + $this->unregisterPlugin('block', $block); + } + + /** + * Registers compiler function + * + * @param string $function name of template function + * @param string $function_impl name of PHP function to register + * @param bool $cacheable + * + * @throws \SmartyException + */ + public function register_compiler_function($function, $function_impl, $cacheable = true) + { + $this->registerPlugin('compiler', $function, $function_impl, $cacheable); + } + + /** + * Unregister compiler function + * + * @param string $function name of template function + */ + public function unregister_compiler_function($function) + { + $this->unregisterPlugin('compiler', $function); + } + + /** + * Registers modifier to be used in templates + * + * @param string $modifier name of template modifier + * @param string $modifier_impl name of PHP function to register + * + * @throws \SmartyException + */ + public function register_modifier($modifier, $modifier_impl) + { + $this->registerPlugin('modifier', $modifier, $modifier_impl); + } + + /** + * Unregister modifier + * + * @param string $modifier name of template modifier + */ + public function unregister_modifier($modifier) + { + $this->unregisterPlugin('modifier', $modifier); + } + + /** + * Registers a resource to fetch a template + * + * @param string $type name of resource + * @param array $functions array of functions to handle resource + */ + public function register_resource($type, $functions) + { + $this->registerResource($type, $functions); + } + + /** + * Unregister a resource + * + * @param string $type name of resource + */ + public function unregister_resource($type) + { + $this->unregisterResource($type); + } + + /** + * Registers a prefilter function to apply + * to a template before compiling + * + * @param callable $function + * + * @throws \SmartyException + */ + public function register_prefilter($function) + { + $this->registerFilter('pre', $function); + } + + /** + * Unregister a prefilter function + * + * @param callable $function + */ + public function unregister_prefilter($function) + { + $this->unregisterFilter('pre', $function); + } + + /** + * Registers a postfilter function to apply + * to a compiled template after compilation + * + * @param callable $function + * + * @throws \SmartyException + */ + public function register_postfilter($function) + { + $this->registerFilter('post', $function); + } + + /** + * Unregister a postfilter function + * + * @param callable $function + */ + public function unregister_postfilter($function) + { + $this->unregisterFilter('post', $function); + } + + /** + * Registers an output filter function to apply + * to a template output + * + * @param callable $function + * + * @throws \SmartyException + */ + public function register_outputfilter($function) + { + $this->registerFilter('output', $function); + } + + /** + * Unregister an outputfilter function + * + * @param callable $function + */ + public function unregister_outputfilter($function) + { + $this->unregisterFilter('output', $function); + } + + /** + * load a filter of specified type and name + * + * @param string $type filter type + * @param string $name filter name + * + * @throws \SmartyException + */ + public function load_filter($type, $name) + { + $this->loadFilter($type, $name); + } + + /** + * clear cached content for the given template and cache id + * + * @param string $tpl_file name of template file + * @param string $cache_id name of cache_id + * @param string $compile_id name of compile_id + * @param string $exp_time expiration time + * + * @return boolean + */ + public function clear_cache($tpl_file = null, $cache_id = null, $compile_id = null, $exp_time = null) + { + return $this->clearCache($tpl_file, $cache_id, $compile_id, $exp_time); + } + + /** + * clear the entire contents of cache (all templates) + * + * @param string $exp_time expire time + * + * @return boolean + */ + public function clear_all_cache($exp_time = null) + { + return $this->clearCache(null, null, null, $exp_time); + } + + /** + * test to see if valid cache exists for this template + * + * @param string $tpl_file name of template file + * @param string $cache_id + * @param string $compile_id + * + * @return bool + * @throws \Exception + * @throws \SmartyException + */ + public function is_cached($tpl_file, $cache_id = null, $compile_id = null) + { + return $this->isCached($tpl_file, $cache_id, $compile_id); + } + + /** + * clear all the assigned template variables. + */ + public function clear_all_assign() + { + $this->clearAllAssign(); + } + + /** + * clears compiled version of specified template resource, + * or all compiled template files if one is not specified. + * This function is for advanced use only, not normally needed. + * + * @param string $tpl_file + * @param string $compile_id + * @param string $exp_time + * + * @return boolean results of {@link smarty_core_rm_auto()} + */ + public function clear_compiled_tpl($tpl_file = null, $compile_id = null, $exp_time = null) + { + return $this->clearCompiledTemplate($tpl_file, $compile_id, $exp_time); + } + + /** + * Checks whether requested template exists. + * + * @param string $tpl_file + * + * @return bool + * @throws \SmartyException + */ + public function template_exists($tpl_file) + { + return $this->templateExists($tpl_file); + } + + /** + * Returns an array containing template variables + * + * @param string $name + * + * @return array + */ + public function get_template_vars($name = null) + { + return $this->getTemplateVars($name); + } + + /** + * Returns an array containing config variables + * + * @param string $name + * + * @return array + */ + public function get_config_vars($name = null) + { + return $this->getConfigVars($name); + } + + /** + * load configuration values + * + * @param string $file + * @param string $section + * @param string $scope + */ + public function config_load($file, $section = null, $scope = 'global') + { + $this->ConfigLoad($file, $section, $scope); + } + + /** + * return a reference to a registered object + * + * @param string $name + * + * @return object + */ + public function get_registered_object($name) + { + return $this->getRegisteredObject($name); + } + + /** + * clear configuration values + * + * @param string $var + */ + public function clear_config($var = null) + { + $this->clearConfig($var); + } + + /** + * trigger Smarty error + * + * @param string $error_msg + * @param integer $error_type + */ + public function trigger_error($error_msg, $error_type = E_USER_WARNING) + { + trigger_error("Smarty error: $error_msg", $error_type); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/bootstrap.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/bootstrap.php new file mode 100644 index 0000000000..2c830468ed --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/bootstrap.php @@ -0,0 +1,16 @@ +<?php +/** + * This file is part of the Smarty package. + * + * (c) Sebastian Bergmann <sebastian@phpunit.de> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +/** + * Load and register Smarty Autoloader + */ +if (!class_exists('Smarty_Autoloader')) { + include dirname(__FILE__) . '/Autoloader.php'; +} +Smarty_Autoloader::register(true); diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/debug.tpl b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/debug.tpl new file mode 100644 index 0000000000..edc7bef98f --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/debug.tpl @@ -0,0 +1,160 @@ +{capture name='_smarty_debug' assign=debug_output} + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> + <head> + <title>Smarty Debug Console</title> + <style type="text/css"> + {literal} + body, h1, h2, h3, td, th, p { + font-family: sans-serif; + font-weight: normal; + font-size: 0.9em; + margin: 1px; + padding: 0; + } + + h1 { + margin: 0; + text-align: left; + padding: 2px; + background-color: #f0c040; + color: black; + font-weight: bold; + font-size: 1.2em; + } + + h2 { + background-color: #9B410E; + color: white; + text-align: left; + font-weight: bold; + padding: 2px; + border-top: 1px solid black; + } + h3 { + text-align: left; + font-weight: bold; + color: black; + font-size: 0.7em; + padding: 2px; + } + + body { + background: black; + } + + p, table, div { + background: #f0ead8; + } + + p { + margin: 0; + font-style: italic; + text-align: center; + } + + table { + width: 100%; + } + + th, td { + font-family: monospace; + vertical-align: top; + text-align: left; + } + + td { + color: green; + } + + .odd { + background-color: #eeeeee; + } + + .even { + background-color: #fafafa; + } + + .exectime { + font-size: 0.8em; + font-style: italic; + } + + #bold div { + color: black; + font-weight: bold; + } + #blue h3 { + color: blue; + } + #normal div { + color: black; + font-weight: normal; + } + #table_assigned_vars th { + color: blue; + font-weight: bold; + } + + #table_config_vars th { + color: maroon; + } + + {/literal} + </style> + </head> + <body> + + <h1>Smarty {Smarty::SMARTY_VERSION} Debug Console + - {if isset($template_name)}{$template_name|debug_print_var nofilter} {/if}{if !empty($template_data)}Total Time {$execution_time|string_format:"%.5f"}{/if}</h1> + + {if !empty($template_data)} + <h2>included templates & config files (load time in seconds)</h2> + <div> + {foreach $template_data as $template} + <font color=brown>{$template.name}</font> + <br /> <span class="exectime"> + (compile {$template['compile_time']|string_format:"%.5f"}) (render {$template['render_time']|string_format:"%.5f"}) (cache {$template['cache_time']|string_format:"%.5f"}) + </span> + <br /> + {/foreach} + </div> + {/if} + + <h2>assigned template variables</h2> + + <table id="table_assigned_vars"> + {foreach $assigned_vars as $vars} + <tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}"> + <td><h3><font color=blue>${$vars@key}</font></h3> + {if isset($vars['nocache'])}<b>Nocache</b><br />{/if} + {if isset($vars['scope'])}<b>Origin:</b> {$vars['scope']|debug_print_var nofilter}{/if} + </td> + <td><h3>Value</h3>{$vars['value']|debug_print_var:10:80 nofilter}</td> + <td>{if isset($vars['attributes'])}<h3>Attributes</h3>{$vars['attributes']|debug_print_var nofilter} {/if}</td> + {/foreach} + </table> + + <h2>assigned config file variables</h2> + + <table id="table_config_vars"> + {foreach $config_vars as $vars} + <tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}"> + <td><h3><font color=blue>#{$vars@key}#</font></h3> + {if isset($vars['scope'])}<b>Origin:</b> {$vars['scope']|debug_print_var nofilter}{/if} + </td> + <td>{$vars['value']|debug_print_var:10:80 nofilter}</td> + </tr> + {/foreach} + + </table> + </body> + </html> +{/capture} +<script type="text/javascript"> + {$id = '__Smarty__'} + {if $display_mode}{$id = "$offset$template_name"|md5}{/if} + _smarty_console = window.open("", "console{$id}", "width=1024,height=600,left={$offset},top={$offset},resizable,scrollbars=yes"); + _smarty_console.document.write("{$debug_output|escape:'javascript' nofilter}"); + _smarty_console.document.close(); +</script> diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/block.textformat.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/block.textformat.php new file mode 100644 index 0000000000..5e494637ed --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/block.textformat.php @@ -0,0 +1,121 @@ +<?php +/** + * Smarty plugin to format text blocks + * + * @package Smarty + * @subpackage PluginsBlock + */ +/** + * Smarty {textformat}{/textformat} block plugin + * Type: block function + * Name: textformat + * Purpose: format text a certain way with preset styles + * or custom wrap/indent settings + * Params: + * + * - style - string (email) + * - indent - integer (0) + * - wrap - integer (80) + * - wrap_char - string ("\n") + * - indent_char - string (" ") + * - wrap_boundary - boolean (true) + * + * @link http://www.smarty.net/manual/en/language.function.textformat.php {textformat} + * (Smarty online manual) + * + * @param array $params parameters + * @param string $content contents of the block + * @param Smarty_Internal_Template $template template object + * @param boolean &$repeat repeat flag + * + * @return string content re-formatted + * @author Monte Ohrt <monte at ohrt dot com> + * @throws \SmartyException + */ +function smarty_block_textformat($params, $content, Smarty_Internal_Template $template, &$repeat) +{ + if (is_null($content)) { + return; + } + if (Smarty::$_MBSTRING) { + $template->_checkPlugins( + array( + array( + 'function' => 'smarty_modifier_mb_wordwrap', + 'file' => SMARTY_PLUGINS_DIR . 'modifier.mb_wordwrap.php' + ) + ) + ); + } + $style = null; + $indent = 0; + $indent_first = 0; + $indent_char = ' '; + $wrap = 80; + $wrap_char = "\n"; + $wrap_cut = false; + $assign = null; + foreach ($params as $_key => $_val) { + switch ($_key) { + case 'style': + case 'indent_char': + case 'wrap_char': + case 'assign': + $$_key = (string)$_val; + break; + case 'indent': + case 'indent_first': + case 'wrap': + $$_key = (int)$_val; + break; + case 'wrap_cut': + $$_key = (bool)$_val; + break; + default: + trigger_error("textformat: unknown attribute '{$_key}'"); + } + } + if ($style === 'email') { + $wrap = 72; + } + // split into paragraphs + $_paragraphs = preg_split('![\r\n]{2}!', $content); + foreach ($_paragraphs as &$_paragraph) { + if (!$_paragraph) { + continue; + } + // convert mult. spaces & special chars to single space + $_paragraph = + preg_replace( + array( + '!\s+!' . Smarty::$_UTF8_MODIFIER, + '!(^\s+)|(\s+$)!' . Smarty::$_UTF8_MODIFIER + ), + array( + ' ', + '' + ), + $_paragraph + ); + // indent first line + if ($indent_first > 0) { + $_paragraph = str_repeat($indent_char, $indent_first) . $_paragraph; + } + // wordwrap sentences + if (Smarty::$_MBSTRING) { + $_paragraph = smarty_modifier_mb_wordwrap($_paragraph, $wrap - $indent, $wrap_char, $wrap_cut); + } else { + $_paragraph = wordwrap($_paragraph, $wrap - $indent, $wrap_char, $wrap_cut); + } + // indent lines + if ($indent > 0) { + $_paragraph = preg_replace('!^!m', str_repeat($indent_char, $indent), $_paragraph); + } + } + $_output = implode($wrap_char . $wrap_char, $_paragraphs); + if ($assign) { + $template->assign($assign, $_output); + } else { + return $_output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.counter.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.counter.php new file mode 100644 index 0000000000..a4129e77c7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.counter.php @@ -0,0 +1,62 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {counter} function plugin + * Type: function + * Name: counter + * Purpose: print out a counter value + * + * @author Monte Ohrt <monte at ohrt dot com> + * @link http://www.smarty.net/manual/en/language.function.counter.php {counter} + * (Smarty online manual) + * + * @param array $params parameters + * @param Smarty_Internal_Template $template template object + * + * @return string|null + */ +function smarty_function_counter($params, $template) +{ + static $counters = array(); + $name = (isset($params[ 'name' ])) ? $params[ 'name' ] : 'default'; + if (!isset($counters[ $name ])) { + $counters[ $name ] = array('start' => 1, 'skip' => 1, 'direction' => 'up', 'count' => 1); + } + $counter =& $counters[ $name ]; + if (isset($params[ 'start' ])) { + $counter[ 'start' ] = $counter[ 'count' ] = (int)$params[ 'start' ]; + } + if (!empty($params[ 'assign' ])) { + $counter[ 'assign' ] = $params[ 'assign' ]; + } + if (isset($counter[ 'assign' ])) { + $template->assign($counter[ 'assign' ], $counter[ 'count' ]); + } + if (isset($params[ 'print' ])) { + $print = (bool)$params[ 'print' ]; + } else { + $print = empty($counter[ 'assign' ]); + } + if ($print) { + $retval = $counter[ 'count' ]; + } else { + $retval = null; + } + if (isset($params[ 'skip' ])) { + $counter[ 'skip' ] = $params[ 'skip' ]; + } + if (isset($params[ 'direction' ])) { + $counter[ 'direction' ] = $params[ 'direction' ]; + } + if ($counter[ 'direction' ] === 'down') { + $counter[ 'count' ] -= $counter[ 'skip' ]; + } else { + $counter[ 'count' ] += $counter[ 'skip' ]; + } + return $retval; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.cycle.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.cycle.php new file mode 100644 index 0000000000..07ffcc5e24 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.cycle.php @@ -0,0 +1,92 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {cycle} function plugin + * Type: function + * Name: cycle + * Date: May 3, 2002 + * Purpose: cycle through given values + * Params: + * + * - name - name of cycle (optional) + * - values - comma separated list of values to cycle, or an array of values to cycle + * (this can be left out for subsequent calls) + * - reset - boolean - resets given var to true + * - print - boolean - print var or not. default is true + * - advance - boolean - whether or not to advance the cycle + * - delimiter - the value delimiter, default is "," + * - assign - boolean, assigns to template var instead of printed. + * + * Examples: + * + * {cycle values="#eeeeee,#d0d0d0d"} + * {cycle name=row values="one,two,three" reset=true} + * {cycle name=row} + * + * @link http://www.smarty.net/manual/en/language.function.cycle.php {cycle} + * (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * @author credit to Mark Priatel <mpriatel@rogers.com> + * @author credit to Gerard <gerard@interfold.com> + * @author credit to Jason Sweat <jsweat_php@yahoo.com> + * @version 1.3 + * + * @param array $params parameters + * @param Smarty_Internal_Template $template template object + * + * @return string|null + */ +function smarty_function_cycle($params, $template) +{ + static $cycle_vars; + $name = (empty($params[ 'name' ])) ? 'default' : $params[ 'name' ]; + $print = (isset($params[ 'print' ])) ? (bool)$params[ 'print' ] : true; + $advance = (isset($params[ 'advance' ])) ? (bool)$params[ 'advance' ] : true; + $reset = (isset($params[ 'reset' ])) ? (bool)$params[ 'reset' ] : false; + if (!isset($params[ 'values' ])) { + if (!isset($cycle_vars[ $name ][ 'values' ])) { + trigger_error('cycle: missing \'values\' parameter'); + return; + } + } else { + if (isset($cycle_vars[ $name ][ 'values' ]) && $cycle_vars[ $name ][ 'values' ] !== $params[ 'values' ]) { + $cycle_vars[ $name ][ 'index' ] = 0; + } + $cycle_vars[ $name ][ 'values' ] = $params[ 'values' ]; + } + if (isset($params[ 'delimiter' ])) { + $cycle_vars[ $name ][ 'delimiter' ] = $params[ 'delimiter' ]; + } elseif (!isset($cycle_vars[ $name ][ 'delimiter' ])) { + $cycle_vars[ $name ][ 'delimiter' ] = ','; + } + if (is_array($cycle_vars[ $name ][ 'values' ])) { + $cycle_array = $cycle_vars[ $name ][ 'values' ]; + } else { + $cycle_array = explode($cycle_vars[ $name ][ 'delimiter' ], $cycle_vars[ $name ][ 'values' ]); + } + if (!isset($cycle_vars[ $name ][ 'index' ]) || $reset) { + $cycle_vars[ $name ][ 'index' ] = 0; + } + if (isset($params[ 'assign' ])) { + $print = false; + $template->assign($params[ 'assign' ], $cycle_array[ $cycle_vars[ $name ][ 'index' ] ]); + } + if ($print) { + $retval = $cycle_array[ $cycle_vars[ $name ][ 'index' ] ]; + } else { + $retval = null; + } + if ($advance) { + if ($cycle_vars[ $name ][ 'index' ] >= count($cycle_array) - 1) { + $cycle_vars[ $name ][ 'index' ] = 0; + } else { + $cycle_vars[ $name ][ 'index' ]++; + } + } + return $retval; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.fetch.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.fetch.php new file mode 100644 index 0000000000..768761b238 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.fetch.php @@ -0,0 +1,204 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {fetch} plugin + * Type: function + * Name: fetch + * Purpose: fetch file, web or ftp data and display results + * + * @link http://www.smarty.net/manual/en/language.function.fetch.php {fetch} + * (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * + * @param array $params parameters + * @param Smarty_Internal_Template $template template object + * + * @throws SmartyException + * @return string|null if the assign parameter is passed, Smarty assigns the result to a template variable + */ +function smarty_function_fetch($params, $template) +{ + if (empty($params[ 'file' ])) { + trigger_error('[plugin] fetch parameter \'file\' cannot be empty', E_USER_NOTICE); + return; + } + // strip file protocol + if (stripos($params[ 'file' ], 'file://') === 0) { + $params[ 'file' ] = substr($params[ 'file' ], 7); + } + $protocol = strpos($params[ 'file' ], '://'); + if ($protocol !== false) { + $protocol = strtolower(substr($params[ 'file' ], 0, $protocol)); + } + if (isset($template->smarty->security_policy)) { + if ($protocol) { + // remote resource (or php stream, …) + if (!$template->smarty->security_policy->isTrustedUri($params[ 'file' ])) { + return; + } + } else { + // local file + if (!$template->smarty->security_policy->isTrustedResourceDir($params[ 'file' ])) { + return; + } + } + } + $content = ''; + if ($protocol === 'http') { + // http fetch + if ($uri_parts = parse_url($params[ 'file' ])) { + // set defaults + $host = $server_name = $uri_parts[ 'host' ]; + $timeout = 30; + $accept = 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*'; + $agent = 'Smarty Template Engine ' . Smarty::SMARTY_VERSION; + $referer = ''; + $uri = !empty($uri_parts[ 'path' ]) ? $uri_parts[ 'path' ] : '/'; + $uri .= !empty($uri_parts[ 'query' ]) ? '?' . $uri_parts[ 'query' ] : ''; + $_is_proxy = false; + if (empty($uri_parts[ 'port' ])) { + $port = 80; + } else { + $port = $uri_parts[ 'port' ]; + } + if (!empty($uri_parts[ 'user' ])) { + $user = $uri_parts[ 'user' ]; + } + if (!empty($uri_parts[ 'pass' ])) { + $pass = $uri_parts[ 'pass' ]; + } + // loop through parameters, setup headers + foreach ($params as $param_key => $param_value) { + switch ($param_key) { + case 'file': + case 'assign': + case 'assign_headers': + break; + case 'user': + if (!empty($param_value)) { + $user = $param_value; + } + break; + case 'pass': + if (!empty($param_value)) { + $pass = $param_value; + } + break; + case 'accept': + if (!empty($param_value)) { + $accept = $param_value; + } + break; + case 'header': + if (!empty($param_value)) { + if (!preg_match('![\w\d-]+: .+!', $param_value)) { + trigger_error("[plugin] invalid header format '{$param_value}'", E_USER_NOTICE); + return; + } else { + $extra_headers[] = $param_value; + } + } + break; + case 'proxy_host': + if (!empty($param_value)) { + $proxy_host = $param_value; + } + break; + case 'proxy_port': + if (!preg_match('!\D!', $param_value)) { + $proxy_port = (int)$param_value; + } else { + trigger_error("[plugin] invalid value for attribute '{$param_key }'", E_USER_NOTICE); + return; + } + break; + case 'agent': + if (!empty($param_value)) { + $agent = $param_value; + } + break; + case 'referer': + if (!empty($param_value)) { + $referer = $param_value; + } + break; + case 'timeout': + if (!preg_match('!\D!', $param_value)) { + $timeout = (int)$param_value; + } else { + trigger_error("[plugin] invalid value for attribute '{$param_key}'", E_USER_NOTICE); + return; + } + break; + default: + trigger_error("[plugin] unrecognized attribute '{$param_key}'", E_USER_NOTICE); + return; + } + } + if (!empty($proxy_host) && !empty($proxy_port)) { + $_is_proxy = true; + $fp = fsockopen($proxy_host, $proxy_port, $errno, $errstr, $timeout); + } else { + $fp = fsockopen($server_name, $port, $errno, $errstr, $timeout); + } + if (!$fp) { + trigger_error("[plugin] unable to fetch: $errstr ($errno)", E_USER_NOTICE); + return; + } else { + if ($_is_proxy) { + fputs($fp, 'GET ' . $params[ 'file' ] . " HTTP/1.0\r\n"); + } else { + fputs($fp, "GET $uri HTTP/1.0\r\n"); + } + if (!empty($host)) { + fputs($fp, "Host: $host\r\n"); + } + if (!empty($accept)) { + fputs($fp, "Accept: $accept\r\n"); + } + if (!empty($agent)) { + fputs($fp, "User-Agent: $agent\r\n"); + } + if (!empty($referer)) { + fputs($fp, "Referer: $referer\r\n"); + } + if (isset($extra_headers) && is_array($extra_headers)) { + foreach ($extra_headers as $curr_header) { + fputs($fp, $curr_header . "\r\n"); + } + } + if (!empty($user) && !empty($pass)) { + fputs($fp, 'Authorization: BASIC ' . base64_encode("$user:$pass") . "\r\n"); + } + fputs($fp, "\r\n"); + while (!feof($fp)) { + $content .= fgets($fp, 4096); + } + fclose($fp); + $csplit = preg_split("!\r\n\r\n!", $content, 2); + $content = $csplit[ 1 ]; + if (!empty($params[ 'assign_headers' ])) { + $template->assign($params[ 'assign_headers' ], preg_split("!\r\n!", $csplit[ 0 ])); + } + } + } else { + trigger_error("[plugin fetch] unable to parse URL, check syntax", E_USER_NOTICE); + return; + } + } else { + $content = @file_get_contents($params[ 'file' ]); + if ($content === false) { + throw new SmartyException("{fetch} cannot read resource '" . $params[ 'file' ] . "'"); + } + } + if (!empty($params[ 'assign' ])) { + $template->assign($params[ 'assign' ], $content); + } else { + return $content; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_checkboxes.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_checkboxes.php new file mode 100644 index 0000000000..302358edd8 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_checkboxes.php @@ -0,0 +1,286 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {html_checkboxes} function plugin + * File: function.html_checkboxes.php + * Type: function + * Name: html_checkboxes + * Date: 24.Feb.2003 + * Purpose: Prints out a list of checkbox input types + * Examples: + * + * {html_checkboxes values=$ids output=$names} + * {html_checkboxes values=$ids name='box' separator='<br>' output=$names} + * {html_checkboxes values=$ids checked=$checked separator='<br>' output=$names} + * + * Params: + * + * - name (optional) - string default "checkbox" + * - values (required) - array + * - options (optional) - associative array + * - checked (optional) - array default not set + * - separator (optional) - ie <br> or + * - output (optional) - the output next to each checkbox + * - assign (optional) - assign the output as an array to this variable + * - escape (optional) - escape the content (not value), defaults to true + * + * @link http://www.smarty.net/manual/en/language.function.html.checkboxes.php {html_checkboxes} + * (Smarty online manual) + * @author Christopher Kvarme <christopher.kvarme@flashjab.com> + * @author credits to Monte Ohrt <monte at ohrt dot com> + * @version 1.0 + * + * @param array $params parameters + * @param Smarty_Internal_Template $template template object + * + * @return string + * @uses smarty_function_escape_special_chars() + * @throws \SmartyException + */ +function smarty_function_html_checkboxes($params, Smarty_Internal_Template $template) +{ + $template->_checkPlugins( + array( + array( + 'function' => 'smarty_function_escape_special_chars', + 'file' => SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php' + ) + ) + ); + $name = 'checkbox'; + $values = null; + $options = null; + $selected = array(); + $separator = ''; + $escape = true; + $labels = true; + $label_ids = false; + $output = null; + $extra = ''; + foreach ($params as $_key => $_val) { + switch ($_key) { + case 'name': + case 'separator': + $$_key = (string)$_val; + break; + case 'escape': + case 'labels': + case 'label_ids': + $$_key = (bool)$_val; + break; + case 'options': + $$_key = (array)$_val; + break; + case 'values': + case 'output': + $$_key = array_values((array)$_val); + break; + case 'checked': + case 'selected': + if (is_array($_val)) { + $selected = array(); + foreach ($_val as $_sel) { + if (is_object($_sel)) { + if (method_exists($_sel, '__toString')) { + $_sel = smarty_function_escape_special_chars((string)$_sel->__toString()); + } else { + trigger_error( + 'html_checkboxes: selected attribute contains an object of class \'' . + get_class($_sel) . '\' without __toString() method', + E_USER_NOTICE + ); + continue; + } + } else { + $_sel = smarty_function_escape_special_chars((string)$_sel); + } + $selected[ $_sel ] = true; + } + } elseif (is_object($_val)) { + if (method_exists($_val, '__toString')) { + $selected = smarty_function_escape_special_chars((string)$_val->__toString()); + } else { + trigger_error( + 'html_checkboxes: selected attribute is an object of class \'' . get_class($_val) . + '\' without __toString() method', + E_USER_NOTICE + ); + } + } else { + $selected = smarty_function_escape_special_chars((string)$_val); + } + break; + case 'checkboxes': + trigger_error( + 'html_checkboxes: the use of the "checkboxes" attribute is deprecated, use "options" instead', + E_USER_WARNING + ); + $options = (array)$_val; + break; + case 'assign': + break; + case 'strict': + break; + case 'disabled': + case 'readonly': + if (!empty($params[ 'strict' ])) { + if (!is_scalar($_val)) { + trigger_error( + "html_options: {$_key} attribute must be a scalar, only boolean true or string '{$_key}' will actually add the attribute", + E_USER_NOTICE + ); + } + if ($_val === true || $_val === $_key) { + $extra .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_key) . '"'; + } + break; + } + // omit break; to fall through! + // no break + default: + if (!is_array($_val)) { + $extra .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_val) . '"'; + } else { + trigger_error("html_checkboxes: extra attribute '{$_key}' cannot be an array", E_USER_NOTICE); + } + break; + } + } + if (!isset($options) && !isset($values)) { + return ''; + } /* raise error here? */ + $_html_result = array(); + if (isset($options)) { + foreach ($options as $_key => $_val) { + $_html_result[] = + smarty_function_html_checkboxes_output( + $name, + $_key, + $_val, + $selected, + $extra, + $separator, + $labels, + $label_ids, + $escape + ); + } + } else { + foreach ($values as $_i => $_key) { + $_val = isset($output[ $_i ]) ? $output[ $_i ] : ''; + $_html_result[] = + smarty_function_html_checkboxes_output( + $name, + $_key, + $_val, + $selected, + $extra, + $separator, + $labels, + $label_ids, + $escape + ); + } + } + if (!empty($params[ 'assign' ])) { + $template->assign($params[ 'assign' ], $_html_result); + } else { + return implode("\n", $_html_result); + } +} + +/** + * @param $name + * @param $value + * @param $output + * @param $selected + * @param $extra + * @param $separator + * @param $labels + * @param $label_ids + * @param bool $escape + * + * @return string + */ +function smarty_function_html_checkboxes_output( + $name, + $value, + $output, + $selected, + $extra, + $separator, + $labels, + $label_ids, + $escape = true +) { + $_output = ''; + if (is_object($value)) { + if (method_exists($value, '__toString')) { + $value = (string)$value->__toString(); + } else { + trigger_error( + 'html_options: value is an object of class \'' . get_class($value) . + '\' without __toString() method', + E_USER_NOTICE + ); + return ''; + } + } else { + $value = (string)$value; + } + if (is_object($output)) { + if (method_exists($output, '__toString')) { + $output = (string)$output->__toString(); + } else { + trigger_error( + 'html_options: output is an object of class \'' . get_class($output) . + '\' without __toString() method', + E_USER_NOTICE + ); + return ''; + } + } else { + $output = (string)$output; + } + if ($labels) { + if ($label_ids) { + $_id = smarty_function_escape_special_chars( + preg_replace( + '![^\w\-\.]!' . Smarty::$_UTF8_MODIFIER, + '_', + $name . '_' . $value + ) + ); + $_output .= '<label for="' . $_id . '">'; + } else { + $_output .= '<label>'; + } + } + $name = smarty_function_escape_special_chars($name); + $value = smarty_function_escape_special_chars($value); + if ($escape) { + $output = smarty_function_escape_special_chars($output); + } + $_output .= '<input type="checkbox" name="' . $name . '[]" value="' . $value . '"'; + if ($labels && $label_ids) { + $_output .= ' id="' . $_id . '"'; + } + if (is_array($selected)) { + if (isset($selected[ $value ])) { + $_output .= ' checked="checked"'; + } + } elseif ($value === $selected) { + $_output .= ' checked="checked"'; + } + $_output .= $extra . ' />' . $output; + if ($labels) { + $_output .= '</label>'; + } + $_output .= $separator; + return $_output; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_image.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_image.php new file mode 100644 index 0000000000..ad468e4f15 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_image.php @@ -0,0 +1,158 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {html_image} function plugin + * Type: function + * Name: html_image + * Date: Feb 24, 2003 + * Purpose: format HTML tags for the image + * Examples: {html_image file="/images/masthead.gif"} + * Output: <img src="/images/masthead.gif" width=400 height=23> + * Params: + * + * - file - (required) - file (and path) of image + * - height - (optional) - image height (default actual height) + * - width - (optional) - image width (default actual width) + * - basedir - (optional) - base directory for absolute paths, default is environment variable DOCUMENT_ROOT + * - path_prefix - prefix for path output (optional, default empty) + * + * @link http://www.smarty.net/manual/en/language.function.html.image.php {html_image} + * (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * @author credits to Duda <duda@big.hu> + * @version 1.0 + * + * @param array $params parameters + * @param Smarty_Internal_Template $template template object + * + * @throws SmartyException + * @return string + * @uses smarty_function_escape_special_chars() + */ +function smarty_function_html_image($params, Smarty_Internal_Template $template) +{ + $template->_checkPlugins( + array( + array( + 'function' => 'smarty_function_escape_special_chars', + 'file' => SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php' + ) + ) + ); + $alt = ''; + $file = ''; + $height = ''; + $width = ''; + $extra = ''; + $prefix = ''; + $suffix = ''; + $path_prefix = ''; + $basedir = isset($_SERVER[ 'DOCUMENT_ROOT' ]) ? $_SERVER[ 'DOCUMENT_ROOT' ] : ''; + foreach ($params as $_key => $_val) { + switch ($_key) { + case 'file': + case 'height': + case 'width': + case 'dpi': + case 'path_prefix': + case 'basedir': + $$_key = $_val; + break; + case 'alt': + if (!is_array($_val)) { + $$_key = smarty_function_escape_special_chars($_val); + } else { + throw new SmartyException( + "html_image: extra attribute '{$_key}' cannot be an array", + E_USER_NOTICE + ); + } + break; + case 'link': + case 'href': + $prefix = '<a href="' . $_val . '">'; + $suffix = '</a>'; + break; + default: + if (!is_array($_val)) { + $extra .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_val) . '"'; + } else { + throw new SmartyException( + "html_image: extra attribute '{$_key}' cannot be an array", + E_USER_NOTICE + ); + } + break; + } + } + if (empty($file)) { + trigger_error('html_image: missing \'file\' parameter', E_USER_NOTICE); + return; + } + if ($file[ 0 ] === '/') { + $_image_path = $basedir . $file; + } else { + $_image_path = $file; + } + // strip file protocol + if (stripos($params[ 'file' ], 'file://') === 0) { + $params[ 'file' ] = substr($params[ 'file' ], 7); + } + $protocol = strpos($params[ 'file' ], '://'); + if ($protocol !== false) { + $protocol = strtolower(substr($params[ 'file' ], 0, $protocol)); + } + if (isset($template->smarty->security_policy)) { + if ($protocol) { + // remote resource (or php stream, …) + if (!$template->smarty->security_policy->isTrustedUri($params[ 'file' ])) { + return; + } + } else { + // local file + if (!$template->smarty->security_policy->isTrustedResourceDir($_image_path)) { + return; + } + } + } + if (!isset($params[ 'width' ]) || !isset($params[ 'height' ])) { + // FIXME: (rodneyrehm) getimagesize() loads the complete file off a remote resource, use custom [jpg,png,gif]header reader! + if (!$_image_data = @getimagesize($_image_path)) { + if (!file_exists($_image_path)) { + trigger_error("html_image: unable to find '{$_image_path}'", E_USER_NOTICE); + return; + } elseif (!is_readable($_image_path)) { + trigger_error("html_image: unable to read '{$_image_path}'", E_USER_NOTICE); + return; + } else { + trigger_error("html_image: '{$_image_path}' is not a valid image file", E_USER_NOTICE); + return; + } + } + if (!isset($params[ 'width' ])) { + $width = $_image_data[ 0 ]; + } + if (!isset($params[ 'height' ])) { + $height = $_image_data[ 1 ]; + } + } + if (isset($params[ 'dpi' ])) { + if (strstr($_SERVER[ 'HTTP_USER_AGENT' ], 'Mac')) { + // FIXME: (rodneyrehm) wrong dpi assumption + // don't know who thought this up… even if it was true in 1998, it's definitely wrong in 2011. + $dpi_default = 72; + } else { + $dpi_default = 96; + } + $_resize = $dpi_default / $params[ 'dpi' ]; + $width = round($width * $_resize); + $height = round($height * $_resize); + } + return $prefix . '<img src="' . $path_prefix . $file . '" alt="' . $alt . '" width="' . $width . '" height="' . + $height . '"' . $extra . ' />' . $suffix; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_options.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_options.php new file mode 100644 index 0000000000..6907e8ee12 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_options.php @@ -0,0 +1,230 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {html_options} function plugin + * Type: function + * Name: html_options + * Purpose: Prints the list of <option> tags generated from + * the passed parameters + * Params: + * + * - name (optional) - string default "select" + * - values (required) - if no options supplied) - array + * - options (required) - if no values supplied) - associative array + * - selected (optional) - string default not set + * - output (required) - if not options supplied) - array + * - id (optional) - string default not set + * - class (optional) - string default not set + * + * @link http://www.smarty.net/manual/en/language.function.html.options.php {html_image} + * (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * @author Ralf Strehle (minor optimization) <ralf dot strehle at yahoo dot de> + * + * @param array $params parameters + * + * @param \Smarty_Internal_Template $template + * + * @return string + * @uses smarty_function_escape_special_chars() + * @throws \SmartyException + */ +function smarty_function_html_options($params, Smarty_Internal_Template $template) +{ + $template->_checkPlugins( + array( + array( + 'function' => 'smarty_function_escape_special_chars', + 'file' => SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php' + ) + ) + ); + $name = null; + $values = null; + $options = null; + $selected = null; + $output = null; + $id = null; + $class = null; + $extra = ''; + foreach ($params as $_key => $_val) { + switch ($_key) { + case 'name': + case 'class': + case 'id': + $$_key = (string)$_val; + break; + case 'options': + $options = (array)$_val; + break; + case 'values': + case 'output': + $$_key = array_values((array)$_val); + break; + case 'selected': + if (is_array($_val)) { + $selected = array(); + foreach ($_val as $_sel) { + if (is_object($_sel)) { + if (method_exists($_sel, '__toString')) { + $_sel = smarty_function_escape_special_chars((string)$_sel->__toString()); + } else { + trigger_error( + 'html_options: selected attribute contains an object of class \'' . + get_class($_sel) . '\' without __toString() method', + E_USER_NOTICE + ); + continue; + } + } else { + $_sel = smarty_function_escape_special_chars((string)$_sel); + } + $selected[ $_sel ] = true; + } + } elseif (is_object($_val)) { + if (method_exists($_val, '__toString')) { + $selected = smarty_function_escape_special_chars((string)$_val->__toString()); + } else { + trigger_error( + 'html_options: selected attribute is an object of class \'' . get_class($_val) . + '\' without __toString() method', + E_USER_NOTICE + ); + } + } else { + $selected = smarty_function_escape_special_chars((string)$_val); + } + break; + case 'strict': + break; + case 'disabled': + case 'readonly': + if (!empty($params[ 'strict' ])) { + if (!is_scalar($_val)) { + trigger_error( + "html_options: {$_key} attribute must be a scalar, only boolean true or string '{$_key}' will actually add the attribute", + E_USER_NOTICE + ); + } + if ($_val === true || $_val === $_key) { + $extra .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_key) . '"'; + } + break; + } + // omit break; to fall through! + // no break + default: + if (!is_array($_val)) { + $extra .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_val) . '"'; + } else { + trigger_error("html_options: extra attribute '{$_key}' cannot be an array", E_USER_NOTICE); + } + break; + } + } + if (!isset($options) && !isset($values)) { + /* raise error here? */ + return ''; + } + $_html_result = ''; + $_idx = 0; + if (isset($options)) { + foreach ($options as $_key => $_val) { + $_html_result .= smarty_function_html_options_optoutput($_key, $_val, $selected, $id, $class, $_idx); + } + } else { + foreach ($values as $_i => $_key) { + $_val = isset($output[ $_i ]) ? $output[ $_i ] : ''; + $_html_result .= smarty_function_html_options_optoutput($_key, $_val, $selected, $id, $class, $_idx); + } + } + if (!empty($name)) { + $_html_class = !empty($class) ? ' class="' . $class . '"' : ''; + $_html_id = !empty($id) ? ' id="' . $id . '"' : ''; + $_html_result = + '<select name="' . $name . '"' . $_html_class . $_html_id . $extra . '>' . "\n" . $_html_result . + '</select>' . "\n"; + } + return $_html_result; +} + +/** + * @param $key + * @param $value + * @param $selected + * @param $id + * @param $class + * @param $idx + * + * @return string + */ +function smarty_function_html_options_optoutput($key, $value, $selected, $id, $class, &$idx) +{ + if (!is_array($value)) { + $_key = smarty_function_escape_special_chars($key); + $_html_result = '<option value="' . $_key . '"'; + if (is_array($selected)) { + if (isset($selected[ $_key ])) { + $_html_result .= ' selected="selected"'; + } + } elseif ($_key === $selected) { + $_html_result .= ' selected="selected"'; + } + $_html_class = !empty($class) ? ' class="' . $class . ' option"' : ''; + $_html_id = !empty($id) ? ' id="' . $id . '-' . $idx . '"' : ''; + if (is_object($value)) { + if (method_exists($value, '__toString')) { + $value = smarty_function_escape_special_chars((string)$value->__toString()); + } else { + trigger_error( + 'html_options: value is an object of class \'' . get_class($value) . + '\' without __toString() method', + E_USER_NOTICE + ); + return ''; + } + } else { + $value = smarty_function_escape_special_chars((string)$value); + } + $_html_result .= $_html_class . $_html_id . '>' . $value . '</option>' . "\n"; + $idx++; + } else { + $_idx = 0; + $_html_result = + smarty_function_html_options_optgroup( + $key, + $value, + $selected, + !empty($id) ? ($id . '-' . $idx) : null, + $class, + $_idx + ); + $idx++; + } + return $_html_result; +} + +/** + * @param $key + * @param $values + * @param $selected + * @param $id + * @param $class + * @param $idx + * + * @return string + */ +function smarty_function_html_options_optgroup($key, $values, $selected, $id, $class, &$idx) +{ + $optgroup_html = '<optgroup label="' . smarty_function_escape_special_chars($key) . '">' . "\n"; + foreach ($values as $key => $value) { + $optgroup_html .= smarty_function_html_options_optoutput($key, $value, $selected, $id, $class, $idx); + } + $optgroup_html .= "</optgroup>\n"; + return $optgroup_html; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_radios.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_radios.php new file mode 100644 index 0000000000..5e834587cd --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_radios.php @@ -0,0 +1,266 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {html_radios} function plugin + * File: function.html_radios.php + * Type: function + * Name: html_radios + * Date: 24.Feb.2003 + * Purpose: Prints out a list of radio input types + * Params: + * + * - name (optional) - string default "radio" + * - values (required) - array + * - options (required) - associative array + * - checked (optional) - array default not set + * - separator (optional) - ie <br> or + * - output (optional) - the output next to each radio button + * - assign (optional) - assign the output as an array to this variable + * - escape (optional) - escape the content (not value), defaults to true + * + * Examples: + * + * {html_radios values=$ids output=$names} + * {html_radios values=$ids name='box' separator='<br>' output=$names} + * {html_radios values=$ids checked=$checked separator='<br>' output=$names} + * + * @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios} + * (Smarty online manual) + * @author Christopher Kvarme <christopher.kvarme@flashjab.com> + * @author credits to Monte Ohrt <monte at ohrt dot com> + * @version 1.0 + * + * @param array $params parameters + * @param Smarty_Internal_Template $template template object + * + * @return string + * @uses smarty_function_escape_special_chars() + * @throws \SmartyException + */ +function smarty_function_html_radios($params, Smarty_Internal_Template $template) +{ + $template->_checkPlugins( + array( + array( + 'function' => 'smarty_function_escape_special_chars', + 'file' => SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php' + ) + ) + ); + $name = 'radio'; + $values = null; + $options = null; + $selected = null; + $separator = ''; + $escape = true; + $labels = true; + $label_ids = false; + $output = null; + $extra = ''; + foreach ($params as $_key => $_val) { + switch ($_key) { + case 'name': + case 'separator': + $$_key = (string)$_val; + break; + case 'checked': + case 'selected': + if (is_array($_val)) { + trigger_error('html_radios: the "' . $_key . '" attribute cannot be an array', E_USER_WARNING); + } elseif (is_object($_val)) { + if (method_exists($_val, '__toString')) { + $selected = smarty_function_escape_special_chars((string)$_val->__toString()); + } else { + trigger_error( + 'html_radios: selected attribute is an object of class \'' . get_class($_val) . + '\' without __toString() method', + E_USER_NOTICE + ); + } + } else { + $selected = (string)$_val; + } + break; + case 'escape': + case 'labels': + case 'label_ids': + $$_key = (bool)$_val; + break; + case 'options': + $$_key = (array)$_val; + break; + case 'values': + case 'output': + $$_key = array_values((array)$_val); + break; + case 'radios': + trigger_error( + 'html_radios: the use of the "radios" attribute is deprecated, use "options" instead', + E_USER_WARNING + ); + $options = (array)$_val; + break; + case 'assign': + break; + case 'strict': + break; + case 'disabled': + case 'readonly': + if (!empty($params[ 'strict' ])) { + if (!is_scalar($_val)) { + trigger_error( + "html_options: {$_key} attribute must be a scalar, only boolean true or string '$_key' will actually add the attribute", + E_USER_NOTICE + ); + } + if ($_val === true || $_val === $_key) { + $extra .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_key) . '"'; + } + break; + } + // omit break; to fall through! + // no break + default: + if (!is_array($_val)) { + $extra .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_val) . '"'; + } else { + trigger_error("html_radios: extra attribute '{$_key}' cannot be an array", E_USER_NOTICE); + } + break; + } + } + if (!isset($options) && !isset($values)) { + /* raise error here? */ + return ''; + } + $_html_result = array(); + if (isset($options)) { + foreach ($options as $_key => $_val) { + $_html_result[] = + smarty_function_html_radios_output( + $name, + $_key, + $_val, + $selected, + $extra, + $separator, + $labels, + $label_ids, + $escape + ); + } + } else { + foreach ($values as $_i => $_key) { + $_val = isset($output[ $_i ]) ? $output[ $_i ] : ''; + $_html_result[] = + smarty_function_html_radios_output( + $name, + $_key, + $_val, + $selected, + $extra, + $separator, + $labels, + $label_ids, + $escape + ); + } + } + if (!empty($params[ 'assign' ])) { + $template->assign($params[ 'assign' ], $_html_result); + } else { + return implode("\n", $_html_result); + } +} + +/** + * @param $name + * @param $value + * @param $output + * @param $selected + * @param $extra + * @param $separator + * @param $labels + * @param $label_ids + * @param $escape + * + * @return string + */ +function smarty_function_html_radios_output( + $name, + $value, + $output, + $selected, + $extra, + $separator, + $labels, + $label_ids, + $escape +) { + $_output = ''; + if (is_object($value)) { + if (method_exists($value, '__toString')) { + $value = (string)$value->__toString(); + } else { + trigger_error( + 'html_options: value is an object of class \'' . get_class($value) . + '\' without __toString() method', + E_USER_NOTICE + ); + return ''; + } + } else { + $value = (string)$value; + } + if (is_object($output)) { + if (method_exists($output, '__toString')) { + $output = (string)$output->__toString(); + } else { + trigger_error( + 'html_options: output is an object of class \'' . get_class($output) . + '\' without __toString() method', + E_USER_NOTICE + ); + return ''; + } + } else { + $output = (string)$output; + } + if ($labels) { + if ($label_ids) { + $_id = smarty_function_escape_special_chars( + preg_replace( + '![^\w\-\.]!' . Smarty::$_UTF8_MODIFIER, + '_', + $name . '_' . $value + ) + ); + $_output .= '<label for="' . $_id . '">'; + } else { + $_output .= '<label>'; + } + } + $name = smarty_function_escape_special_chars($name); + $value = smarty_function_escape_special_chars($value); + if ($escape) { + $output = smarty_function_escape_special_chars($output); + } + $_output .= '<input type="radio" name="' . $name . '" value="' . $value . '"'; + if ($labels && $label_ids) { + $_output .= ' id="' . $_id . '"'; + } + if ($value === $selected) { + $_output .= ' checked="checked"'; + } + $_output .= $extra . ' />' . $output; + if ($labels) { + $_output .= '</label>'; + } + $_output .= $separator; + return $_output; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_select_date.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_select_date.php new file mode 100644 index 0000000000..0791f1a310 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_select_date.php @@ -0,0 +1,395 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {html_select_date} plugin + * Type: function + * Name: html_select_date + * Purpose: Prints the dropdowns for date selection. + * ChangeLog: + * + * - 1.0 initial release + * - 1.1 added support for +/- N syntax for begin + * and end year values. (Monte) + * - 1.2 added support for yyyy-mm-dd syntax for + * time value. (Jan Rosier) + * - 1.3 added support for choosing format for + * month values (Gary Loescher) + * - 1.3.1 added support for choosing format for + * day values (Marcus Bointon) + * - 1.3.2 support negative timestamps, force year + * dropdown to include given date unless explicitly set (Monte) + * - 1.3.4 fix behaviour of 0000-00-00 00:00:00 dates to match that + * of 0000-00-00 dates (cybot, boots) + * - 2.0 complete rewrite for performance, + * added attributes month_names, *_id + * + * @link http://www.smarty.net/manual/en/language.function.html.select.date.php {html_select_date} + * (Smarty online manual) + * @version 2.0 + * @author Andrei Zmievski + * @author Monte Ohrt <monte at ohrt dot com> + * @author Rodney Rehm + * + * @param array $params parameters + * + * @param \Smarty_Internal_Template $template + * + * @return string + * @throws \SmartyException + */ +function smarty_function_html_select_date($params, Smarty_Internal_Template $template) +{ + $template->_checkPlugins( + array( + array( + 'function' => 'smarty_function_escape_special_chars', + 'file' => SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php' + ) + ) + ); + // generate timestamps used for month names only + static $_month_timestamps = null; + static $_current_year = null; + if ($_month_timestamps === null) { + $_current_year = date('Y'); + $_month_timestamps = array(); + for ($i = 1; $i <= 12; $i++) { + $_month_timestamps[ $i ] = mktime(0, 0, 0, $i, 1, 2000); + } + } + /* Default values. */ + $prefix = 'Date_'; + $start_year = null; + $end_year = null; + $display_days = true; + $display_months = true; + $display_years = true; + $month_format = '%B'; + /* Write months as numbers by default GL */ + $month_value_format = '%m'; + $day_format = '%02d'; + /* Write day values using this format MB */ + $day_value_format = '%d'; + $year_as_text = false; + /* Display years in reverse order? Ie. 2000,1999,.... */ + $reverse_years = false; + /* Should the select boxes be part of an array when returned from PHP? + e.g. setting it to "birthday", would create "birthday[Day]", + "birthday[Month]" & "birthday[Year]". Can be combined with prefix */ + $field_array = null; + /* <select size>'s of the different <select> tags. + If not set, uses default dropdown. */ + $day_size = null; + $month_size = null; + $year_size = null; + /* Unparsed attributes common to *ALL* the <select>/<input> tags. + An example might be in the template: all_extra ='class ="foo"'. */ + $all_extra = null; + /* Separate attributes for the tags. */ + $day_extra = null; + $month_extra = null; + $year_extra = null; + /* Order in which to display the fields. + "D" -> day, "M" -> month, "Y" -> year. */ + $field_order = 'MDY'; + /* String printed between the different fields. */ + $field_separator = "\n"; + $option_separator = "\n"; + $time = null; + + // $all_empty = null; + // $day_empty = null; + // $month_empty = null; + // $year_empty = null; + $extra_attrs = ''; + $all_id = null; + $day_id = null; + $month_id = null; + $year_id = null; + foreach ($params as $_key => $_value) { + switch ($_key) { + case 'time': + $$_key = $_value; // we'll handle conversion below + break; + case 'month_names': + if (is_array($_value) && count($_value) === 12) { + $$_key = $_value; + } else { + trigger_error('html_select_date: month_names must be an array of 12 strings', E_USER_NOTICE); + } + break; + case 'prefix': + case 'field_array': + case 'start_year': + case 'end_year': + case 'day_format': + case 'day_value_format': + case 'month_format': + case 'month_value_format': + case 'day_size': + case 'month_size': + case 'year_size': + case 'all_extra': + case 'day_extra': + case 'month_extra': + case 'year_extra': + case 'field_order': + case 'field_separator': + case 'option_separator': + case 'all_empty': + case 'month_empty': + case 'day_empty': + case 'year_empty': + case 'all_id': + case 'month_id': + case 'day_id': + case 'year_id': + $$_key = (string)$_value; + break; + case 'display_days': + case 'display_months': + case 'display_years': + case 'year_as_text': + case 'reverse_years': + $$_key = (bool)$_value; + break; + default: + if (!is_array($_value)) { + $extra_attrs .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_value) . '"'; + } else { + trigger_error("html_select_date: extra attribute '{$_key}' cannot be an array", E_USER_NOTICE); + } + break; + } + } + // Note: date() is faster than strftime() + // Note: explode(date()) is faster than date() date() date() + + if (isset($time) && is_array($time)) { + if (isset($time[$prefix . 'Year'])) { + // $_REQUEST[$field_array] given + foreach (array( + 'Y' => 'Year', + 'm' => 'Month', + 'd' => 'Day' + ) as $_elementKey => $_elementName) { + $_variableName = '_' . strtolower($_elementName); + $$_variableName = + isset($time[$prefix . $_elementName]) ? $time[$prefix . $_elementName] : + date($_elementKey); + } + } elseif (isset($time[$field_array][$prefix . 'Year'])) { + // $_REQUEST given + foreach (array( + 'Y' => 'Year', + 'm' => 'Month', + 'd' => 'Day' + ) as $_elementKey => $_elementName) { + $_variableName = '_' . strtolower($_elementName); + $$_variableName = isset($time[$field_array][$prefix . $_elementName]) ? + $time[$field_array][$prefix . $_elementName] : date($_elementKey); + } + } else { + // no date found, use NOW + list($_year, $_month, $_day) = explode('-', date('Y-m-d')); + } + } elseif (isset($time) && preg_match("/(\d*)-(\d*)-(\d*)/", $time, $matches)) { + $_year = $_month = $_day = null; + if ($matches[1] > '') $_year = (int) $matches[1]; + if ($matches[2] > '') $_month = (int) $matches[2]; + if ($matches[3] > '') $_day = (int) $matches[3]; + } elseif ($time === null) { + if (array_key_exists('time', $params)) { + $_year = $_month = $_day = null; + } else { + list($_year, $_month, $_day) = explode('-', date('Y-m-d')); + } + } else { + $template->_checkPlugins( + array( + array( + 'function' => 'smarty_make_timestamp', + 'file' => SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php' + ) + ) + ); + $time = smarty_make_timestamp($time); + list($_year, $_month, $_day) = explode('-', date('Y-m-d', $time)); + } + + // make syntax "+N" or "-N" work with $start_year and $end_year + // Note preg_match('!^(\+|\-)\s*(\d+)$!', $end_year, $match) is slower than trim+substr + foreach (array( + 'start', + 'end' + ) as $key) { + $key .= '_year'; + $t = $$key; + if ($t === null) { + $$key = (int)$_current_year; + } elseif ($t[ 0 ] === '+') { + $$key = (int)($_current_year + (int)trim(substr($t, 1))); + } elseif ($t[ 0 ] === '-') { + $$key = (int)($_current_year - (int)trim(substr($t, 1))); + } else { + $$key = (int)$$key; + } + } + // flip for ascending or descending + if (($start_year > $end_year && !$reverse_years) || ($start_year < $end_year && $reverse_years)) { + $t = $end_year; + $end_year = $start_year; + $start_year = $t; + } + // generate year <select> or <input> + if ($display_years) { + $_extra = ''; + $_name = $field_array ? ($field_array . '[' . $prefix . 'Year]') : ($prefix . 'Year'); + if ($all_extra) { + $_extra .= ' ' . $all_extra; + } + if ($year_extra) { + $_extra .= ' ' . $year_extra; + } + if ($year_as_text) { + $_html_years = + '<input type="text" name="' . $_name . '" value="' . $_year . '" size="4" maxlength="4"' . $_extra . + $extra_attrs . ' />'; + } else { + $_html_years = '<select name="' . $_name . '"'; + if ($year_id !== null || $all_id !== null) { + $_html_years .= ' id="' . smarty_function_escape_special_chars( + $year_id !== null ? + ($year_id ? $year_id : $_name) : + ($all_id ? ($all_id . $_name) : + $_name) + ) . '"'; + } + if ($year_size) { + $_html_years .= ' size="' . $year_size . '"'; + } + $_html_years .= $_extra . $extra_attrs . '>' . $option_separator; + if (isset($year_empty) || isset($all_empty)) { + $_html_years .= '<option value="">' . (isset($year_empty) ? $year_empty : $all_empty) . '</option>' . + $option_separator; + } + $op = $start_year > $end_year ? -1 : 1; + for ($i = $start_year; $op > 0 ? $i <= $end_year : $i >= $end_year; $i += $op) { + $_html_years .= '<option value="' . $i . '"' . ($_year == $i ? ' selected="selected"' : '') . '>' . $i . + '</option>' . $option_separator; + } + $_html_years .= '</select>'; + } + } + // generate month <select> or <input> + if ($display_months) { + $_extra = ''; + $_name = $field_array ? ($field_array . '[' . $prefix . 'Month]') : ($prefix . 'Month'); + if ($all_extra) { + $_extra .= ' ' . $all_extra; + } + if ($month_extra) { + $_extra .= ' ' . $month_extra; + } + $_html_months = '<select name="' . $_name . '"'; + if ($month_id !== null || $all_id !== null) { + $_html_months .= ' id="' . smarty_function_escape_special_chars( + $month_id !== null ? + ($month_id ? $month_id : $_name) : + ($all_id ? ($all_id . $_name) : + $_name) + ) . '"'; + } + if ($month_size) { + $_html_months .= ' size="' . $month_size . '"'; + } + $_html_months .= $_extra . $extra_attrs . '>' . $option_separator; + if (isset($month_empty) || isset($all_empty)) { + $_html_months .= '<option value="">' . (isset($month_empty) ? $month_empty : $all_empty) . '</option>' . + $option_separator; + } + for ($i = 1; $i <= 12; $i++) { + $_val = sprintf('%02d', $i); + $_text = isset($month_names) ? smarty_function_escape_special_chars($month_names[ $i ]) : + ($month_format === '%m' ? $_val : strftime($month_format, $_month_timestamps[ $i ])); + $_value = $month_value_format === '%m' ? $_val : strftime($month_value_format, $_month_timestamps[ $i ]); + $_html_months .= '<option value="' . $_value . '"' . ($_val == $_month ? ' selected="selected"' : '') . + '>' . $_text . '</option>' . $option_separator; + } + $_html_months .= '</select>'; + } + // generate day <select> or <input> + if ($display_days) { + $_extra = ''; + $_name = $field_array ? ($field_array . '[' . $prefix . 'Day]') : ($prefix . 'Day'); + if ($all_extra) { + $_extra .= ' ' . $all_extra; + } + if ($day_extra) { + $_extra .= ' ' . $day_extra; + } + $_html_days = '<select name="' . $_name . '"'; + if ($day_id !== null || $all_id !== null) { + $_html_days .= ' id="' . + smarty_function_escape_special_chars( + $day_id !== null ? ($day_id ? $day_id : $_name) : + ($all_id ? ($all_id . $_name) : $_name) + ) . '"'; + } + if ($day_size) { + $_html_days .= ' size="' . $day_size . '"'; + } + $_html_days .= $_extra . $extra_attrs . '>' . $option_separator; + if (isset($day_empty) || isset($all_empty)) { + $_html_days .= '<option value="">' . (isset($day_empty) ? $day_empty : $all_empty) . '</option>' . + $option_separator; + } + for ($i = 1; $i <= 31; $i++) { + $_val = sprintf('%02d', $i); + $_text = $day_format === '%02d' ? $_val : sprintf($day_format, $i); + $_value = $day_value_format === '%02d' ? $_val : sprintf($day_value_format, $i); + $_html_days .= '<option value="' . $_value . '"' . ($_val == $_day ? ' selected="selected"' : '') . '>' . + $_text . '</option>' . $option_separator; + } + $_html_days .= '</select>'; + } + // order the fields for output + $_html = ''; + for ($i = 0; $i <= 2; $i++) { + switch ($field_order[ $i ]) { + case 'Y': + case 'y': + if (isset($_html_years)) { + if ($_html) { + $_html .= $field_separator; + } + $_html .= $_html_years; + } + break; + case 'm': + case 'M': + if (isset($_html_months)) { + if ($_html) { + $_html .= $field_separator; + } + $_html .= $_html_months; + } + break; + case 'd': + case 'D': + if (isset($_html_days)) { + if ($_html) { + $_html .= $field_separator; + } + $_html .= $_html_days; + } + break; + } + } + return $_html; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_select_time.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_select_time.php new file mode 100644 index 0000000000..cb047bc0aa --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_select_time.php @@ -0,0 +1,354 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {html_select_time} function plugin + * Type: function + * Name: html_select_time + * Purpose: Prints the dropdowns for time selection + * + * @link http://www.smarty.net/manual/en/language.function.html.select.time.php {html_select_time} + * (Smarty online manual) + * @author Roberto Berto <roberto@berto.net> + * @author Monte Ohrt <monte AT ohrt DOT com> + * + * @param array $params parameters + * + * @param \Smarty_Internal_Template $template + * + * @return string + * @uses smarty_make_timestamp() + * @throws \SmartyException + */ +function smarty_function_html_select_time($params, Smarty_Internal_Template $template) +{ + $template->_checkPlugins( + array( + array( + 'function' => 'smarty_function_escape_special_chars', + 'file' => SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php' + ) + ) + ); + $prefix = 'Time_'; + $field_array = null; + $field_separator = "\n"; + $option_separator = "\n"; + $time = null; + $display_hours = true; + $display_minutes = true; + $display_seconds = true; + $display_meridian = true; + $hour_format = '%02d'; + $hour_value_format = '%02d'; + $minute_format = '%02d'; + $minute_value_format = '%02d'; + $second_format = '%02d'; + $second_value_format = '%02d'; + $hour_size = null; + $minute_size = null; + $second_size = null; + $meridian_size = null; + $all_empty = null; + $hour_empty = null; + $minute_empty = null; + $second_empty = null; + $meridian_empty = null; + $all_id = null; + $hour_id = null; + $minute_id = null; + $second_id = null; + $meridian_id = null; + $use_24_hours = true; + $minute_interval = 1; + $second_interval = 1; + $extra_attrs = ''; + $all_extra = null; + $hour_extra = null; + $minute_extra = null; + $second_extra = null; + $meridian_extra = null; + foreach ($params as $_key => $_value) { + switch ($_key) { + case 'time': + if (!is_array($_value) && $_value !== null) { + $template->_checkPlugins( + array( + array( + 'function' => 'smarty_make_timestamp', + 'file' => SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php' + ) + ) + ); + $time = smarty_make_timestamp($_value); + } + break; + case 'prefix': + case 'field_array': + case 'field_separator': + case 'option_separator': + case 'all_extra': + case 'hour_extra': + case 'minute_extra': + case 'second_extra': + case 'meridian_extra': + case 'all_empty': + case 'hour_empty': + case 'minute_empty': + case 'second_empty': + case 'meridian_empty': + case 'all_id': + case 'hour_id': + case 'minute_id': + case 'second_id': + case 'meridian_id': + case 'hour_format': + case 'hour_value_format': + case 'minute_format': + case 'minute_value_format': + case 'second_format': + case 'second_value_format': + $$_key = (string)$_value; + break; + case 'display_hours': + case 'display_minutes': + case 'display_seconds': + case 'display_meridian': + case 'use_24_hours': + $$_key = (bool)$_value; + break; + case 'minute_interval': + case 'second_interval': + case 'hour_size': + case 'minute_size': + case 'second_size': + case 'meridian_size': + $$_key = (int)$_value; + break; + default: + if (!is_array($_value)) { + $extra_attrs .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_value) . '"'; + } else { + trigger_error("html_select_date: extra attribute '{$_key}' cannot be an array", E_USER_NOTICE); + } + break; + } + } + if (isset($params[ 'time' ]) && is_array($params[ 'time' ])) { + if (isset($params[ 'time' ][ $prefix . 'Hour' ])) { + // $_REQUEST[$field_array] given + foreach (array( + 'H' => 'Hour', + 'i' => 'Minute', + 's' => 'Second' + ) as $_elementKey => $_elementName) { + $_variableName = '_' . strtolower($_elementName); + $$_variableName = + isset($params[ 'time' ][ $prefix . $_elementName ]) ? $params[ 'time' ][ $prefix . $_elementName ] : + date($_elementKey); + } + $_meridian = + isset($params[ 'time' ][ $prefix . 'Meridian' ]) ? (' ' . $params[ 'time' ][ $prefix . 'Meridian' ]) : + ''; + $time = strtotime($_hour . ':' . $_minute . ':' . $_second . $_meridian); + list($_hour, $_minute, $_second) = $time = explode('-', date('H-i-s', $time)); + } elseif (isset($params[ 'time' ][ $field_array ][ $prefix . 'Hour' ])) { + // $_REQUEST given + foreach (array( + 'H' => 'Hour', + 'i' => 'Minute', + 's' => 'Second' + ) as $_elementKey => $_elementName) { + $_variableName = '_' . strtolower($_elementName); + $$_variableName = isset($params[ 'time' ][ $field_array ][ $prefix . $_elementName ]) ? + $params[ 'time' ][ $field_array ][ $prefix . $_elementName ] : date($_elementKey); + } + $_meridian = isset($params[ 'time' ][ $field_array ][ $prefix . 'Meridian' ]) ? + (' ' . $params[ 'time' ][ $field_array ][ $prefix . 'Meridian' ]) : ''; + $time = strtotime($_hour . ':' . $_minute . ':' . $_second . $_meridian); + list($_hour, $_minute, $_second) = $time = explode('-', date('H-i-s', $time)); + } else { + // no date found, use NOW + list($_year, $_month, $_day) = $time = explode('-', date('Y-m-d')); + } + } elseif ($time === null) { + if (array_key_exists('time', $params)) { + $_hour = $_minute = $_second = $time = null; + } else { + list($_hour, $_minute, $_second) = $time = explode('-', date('H-i-s')); + } + } else { + list($_hour, $_minute, $_second) = $time = explode('-', date('H-i-s', $time)); + } + // generate hour <select> + if ($display_hours) { + $_html_hours = ''; + $_extra = ''; + $_name = $field_array ? ($field_array . '[' . $prefix . 'Hour]') : ($prefix . 'Hour'); + if ($all_extra) { + $_extra .= ' ' . $all_extra; + } + if ($hour_extra) { + $_extra .= ' ' . $hour_extra; + } + $_html_hours = '<select name="' . $_name . '"'; + if ($hour_id !== null || $all_id !== null) { + $_html_hours .= ' id="' . + smarty_function_escape_special_chars( + $hour_id !== null ? ($hour_id ? $hour_id : $_name) : + ($all_id ? ($all_id . $_name) : $_name) + ) . '"'; + } + if ($hour_size) { + $_html_hours .= ' size="' . $hour_size . '"'; + } + $_html_hours .= $_extra . $extra_attrs . '>' . $option_separator; + if (isset($hour_empty) || isset($all_empty)) { + $_html_hours .= '<option value="">' . (isset($hour_empty) ? $hour_empty : $all_empty) . '</option>' . + $option_separator; + } + $start = $use_24_hours ? 0 : 1; + $end = $use_24_hours ? 23 : 12; + for ($i = $start; $i <= $end; $i++) { + $_val = sprintf('%02d', $i); + $_text = $hour_format === '%02d' ? $_val : sprintf($hour_format, $i); + $_value = $hour_value_format === '%02d' ? $_val : sprintf($hour_value_format, $i); + if (!$use_24_hours) { + $_hour12 = $_hour == 0 ? 12 : ($_hour <= 12 ? $_hour : $_hour - 12); + } + $selected = $_hour !== null ? ($use_24_hours ? $_hour == $_val : $_hour12 == $_val) : null; + $_html_hours .= '<option value="' . $_value . '"' . ($selected ? ' selected="selected"' : '') . '>' . + $_text . '</option>' . $option_separator; + } + $_html_hours .= '</select>'; + } + // generate minute <select> + if ($display_minutes) { + $_html_minutes = ''; + $_extra = ''; + $_name = $field_array ? ($field_array . '[' . $prefix . 'Minute]') : ($prefix . 'Minute'); + if ($all_extra) { + $_extra .= ' ' . $all_extra; + } + if ($minute_extra) { + $_extra .= ' ' . $minute_extra; + } + $_html_minutes = '<select name="' . $_name . '"'; + if ($minute_id !== null || $all_id !== null) { + $_html_minutes .= ' id="' . smarty_function_escape_special_chars( + $minute_id !== null ? + ($minute_id ? $minute_id : $_name) : + ($all_id ? ($all_id . $_name) : + $_name) + ) . '"'; + } + if ($minute_size) { + $_html_minutes .= ' size="' . $minute_size . '"'; + } + $_html_minutes .= $_extra . $extra_attrs . '>' . $option_separator; + if (isset($minute_empty) || isset($all_empty)) { + $_html_minutes .= '<option value="">' . (isset($minute_empty) ? $minute_empty : $all_empty) . '</option>' . + $option_separator; + } + $selected = $_minute !== null ? ($_minute - $_minute % $minute_interval) : null; + for ($i = 0; $i <= 59; $i += $minute_interval) { + $_val = sprintf('%02d', $i); + $_text = $minute_format === '%02d' ? $_val : sprintf($minute_format, $i); + $_value = $minute_value_format === '%02d' ? $_val : sprintf($minute_value_format, $i); + $_html_minutes .= '<option value="' . $_value . '"' . ($selected === $i ? ' selected="selected"' : '') . + '>' . $_text . '</option>' . $option_separator; + } + $_html_minutes .= '</select>'; + } + // generate second <select> + if ($display_seconds) { + $_html_seconds = ''; + $_extra = ''; + $_name = $field_array ? ($field_array . '[' . $prefix . 'Second]') : ($prefix . 'Second'); + if ($all_extra) { + $_extra .= ' ' . $all_extra; + } + if ($second_extra) { + $_extra .= ' ' . $second_extra; + } + $_html_seconds = '<select name="' . $_name . '"'; + if ($second_id !== null || $all_id !== null) { + $_html_seconds .= ' id="' . smarty_function_escape_special_chars( + $second_id !== null ? + ($second_id ? $second_id : $_name) : + ($all_id ? ($all_id . $_name) : + $_name) + ) . '"'; + } + if ($second_size) { + $_html_seconds .= ' size="' . $second_size . '"'; + } + $_html_seconds .= $_extra . $extra_attrs . '>' . $option_separator; + if (isset($second_empty) || isset($all_empty)) { + $_html_seconds .= '<option value="">' . (isset($second_empty) ? $second_empty : $all_empty) . '</option>' . + $option_separator; + } + $selected = $_second !== null ? ($_second - $_second % $second_interval) : null; + for ($i = 0; $i <= 59; $i += $second_interval) { + $_val = sprintf('%02d', $i); + $_text = $second_format === '%02d' ? $_val : sprintf($second_format, $i); + $_value = $second_value_format === '%02d' ? $_val : sprintf($second_value_format, $i); + $_html_seconds .= '<option value="' . $_value . '"' . ($selected === $i ? ' selected="selected"' : '') . + '>' . $_text . '</option>' . $option_separator; + } + $_html_seconds .= '</select>'; + } + // generate meridian <select> + if ($display_meridian && !$use_24_hours) { + $_html_meridian = ''; + $_extra = ''; + $_name = $field_array ? ($field_array . '[' . $prefix . 'Meridian]') : ($prefix . 'Meridian'); + if ($all_extra) { + $_extra .= ' ' . $all_extra; + } + if ($meridian_extra) { + $_extra .= ' ' . $meridian_extra; + } + $_html_meridian = '<select name="' . $_name . '"'; + if ($meridian_id !== null || $all_id !== null) { + $_html_meridian .= ' id="' . smarty_function_escape_special_chars( + $meridian_id !== null ? + ($meridian_id ? $meridian_id : + $_name) : + ($all_id ? ($all_id . $_name) : + $_name) + ) . '"'; + } + if ($meridian_size) { + $_html_meridian .= ' size="' . $meridian_size . '"'; + } + $_html_meridian .= $_extra . $extra_attrs . '>' . $option_separator; + if (isset($meridian_empty) || isset($all_empty)) { + $_html_meridian .= '<option value="">' . (isset($meridian_empty) ? $meridian_empty : $all_empty) . + '</option>' . $option_separator; + } + $_html_meridian .= '<option value="am"' . ($_hour > 0 && $_hour < 12 ? ' selected="selected"' : '') . + '>AM</option>' . $option_separator . '<option value="pm"' . + ($_hour < 12 ? '' : ' selected="selected"') . '>PM</option>' . $option_separator . + '</select>'; + } + $_html = ''; + foreach (array( + '_html_hours', + '_html_minutes', + '_html_seconds', + '_html_meridian' + ) as $k) { + if (isset($$k)) { + if ($_html) { + $_html .= $field_separator; + } + $_html .= $$k; + } + } + return $_html; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_table.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_table.php new file mode 100644 index 0000000000..ae61e83dc7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.html_table.php @@ -0,0 +1,164 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {html_table} function plugin + * Type: function + * Name: html_table + * Date: Feb 17, 2003 + * Purpose: make an html table from an array of data + * Params: + * + * - loop - array to loop through + * - cols - number of columns, comma separated list of column names + * or array of column names + * - rows - number of rows + * - table_attr - table attributes + * - th_attr - table heading attributes (arrays are cycled) + * - tr_attr - table row attributes (arrays are cycled) + * - td_attr - table cell attributes (arrays are cycled) + * - trailpad - value to pad trailing cells with + * - caption - text for caption element + * - vdir - vertical direction (default: "down", means top-to-bottom) + * - hdir - horizontal direction (default: "right", means left-to-right) + * - inner - inner loop (default "cols": print $loop line by line, + * $loop will be printed column by column otherwise) + * + * Examples: + * + * {table loop=$data} + * {table loop=$data cols=4 tr_attr='"bgcolor=red"'} + * {table loop=$data cols="first,second,third" tr_attr=$colors} + * + * @author Monte Ohrt <monte at ohrt dot com> + * @author credit to Messju Mohr <messju at lammfellpuschen dot de> + * @author credit to boots <boots dot smarty at yahoo dot com> + * @version 1.1 + * @link http://www.smarty.net/manual/en/language.function.html.table.php {html_table} + * (Smarty online manual) + * + * @param array $params parameters + * + * @return string + */ +function smarty_function_html_table($params) +{ + $table_attr = 'border="1"'; + $tr_attr = ''; + $th_attr = ''; + $td_attr = ''; + $cols = $cols_count = 3; + $rows = 3; + $trailpad = ' '; + $vdir = 'down'; + $hdir = 'right'; + $inner = 'cols'; + $caption = ''; + $loop = null; + if (!isset($params[ 'loop' ])) { + trigger_error("html_table: missing 'loop' parameter", E_USER_WARNING); + return; + } + foreach ($params as $_key => $_value) { + switch ($_key) { + case 'loop': + $$_key = (array)$_value; + break; + case 'cols': + if (is_array($_value) && !empty($_value)) { + $cols = $_value; + $cols_count = count($_value); + } elseif (!is_numeric($_value) && is_string($_value) && !empty($_value)) { + $cols = explode(',', $_value); + $cols_count = count($cols); + } elseif (!empty($_value)) { + $cols_count = (int)$_value; + } else { + $cols_count = $cols; + } + break; + case 'rows': + $$_key = (int)$_value; + break; + case 'table_attr': + case 'trailpad': + case 'hdir': + case 'vdir': + case 'inner': + case 'caption': + $$_key = (string)$_value; + break; + case 'tr_attr': + case 'td_attr': + case 'th_attr': + $$_key = $_value; + break; + } + } + $loop_count = count($loop); + if (empty($params[ 'rows' ])) { + /* no rows specified */ + $rows = ceil($loop_count / $cols_count); + } elseif (empty($params[ 'cols' ])) { + if (!empty($params[ 'rows' ])) { + /* no cols specified, but rows */ + $cols_count = ceil($loop_count / $rows); + } + } + $output = "<table $table_attr>\n"; + if (!empty($caption)) { + $output .= '<caption>' . $caption . "</caption>\n"; + } + if (is_array($cols)) { + $cols = ($hdir === 'right') ? $cols : array_reverse($cols); + $output .= "<thead><tr>\n"; + for ($r = 0; $r < $cols_count; $r++) { + $output .= '<th' . smarty_function_html_table_cycle('th', $th_attr, $r) . '>'; + $output .= $cols[ $r ]; + $output .= "</th>\n"; + } + $output .= "</tr></thead>\n"; + } + $output .= "<tbody>\n"; + for ($r = 0; $r < $rows; $r++) { + $output .= "<tr" . smarty_function_html_table_cycle('tr', $tr_attr, $r) . ">\n"; + $rx = ($vdir === 'down') ? $r * $cols_count : ($rows - 1 - $r) * $cols_count; + for ($c = 0; $c < $cols_count; $c++) { + $x = ($hdir === 'right') ? $rx + $c : $rx + $cols_count - 1 - $c; + if ($inner !== 'cols') { + /* shuffle x to loop over rows*/ + $x = floor($x / $cols_count) + ($x % $cols_count) * $rows; + } + if ($x < $loop_count) { + $output .= "<td" . smarty_function_html_table_cycle('td', $td_attr, $c) . ">" . $loop[ $x ] . "</td>\n"; + } else { + $output .= "<td" . smarty_function_html_table_cycle('td', $td_attr, $c) . ">$trailpad</td>\n"; + } + } + $output .= "</tr>\n"; + } + $output .= "</tbody>\n"; + $output .= "</table>\n"; + return $output; +} + +/** + * @param $name + * @param $var + * @param $no + * + * @return string + */ +function smarty_function_html_table_cycle($name, $var, $no) +{ + if (!is_array($var)) { + $ret = $var; + } else { + $ret = $var[ $no % count($var) ]; + } + return ($ret) ? ' ' . $ret : ''; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.mailto.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.mailto.php new file mode 100644 index 0000000000..5119a15345 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.mailto.php @@ -0,0 +1,147 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {mailto} function plugin + * Type: function + * Name: mailto + * Date: May 21, 2002 + * Purpose: automate mailto address link creation, and optionally encode them. + * Params: + * + * - address - (required) - e-mail address + * - text - (optional) - text to display, default is address + * - encode - (optional) - can be one of: + * * none : no encoding (default) + * * javascript : encode with javascript + * * javascript_charcode : encode with javascript charcode + * * hex : encode with hexadecimal (no javascript) + * - cc - (optional) - address(es) to carbon copy + * - bcc - (optional) - address(es) to blind carbon copy + * - subject - (optional) - e-mail subject + * - newsgroups - (optional) - newsgroup(s) to post to + * - followupto - (optional) - address(es) to follow up to + * - extra - (optional) - extra tags for the href link + * + * Examples: + * + * {mailto address="me@domain.com"} + * {mailto address="me@domain.com" encode="javascript"} + * {mailto address="me@domain.com" encode="hex"} + * {mailto address="me@domain.com" subject="Hello to you!"} + * {mailto address="me@domain.com" cc="you@domain.com,they@domain.com"} + * {mailto address="me@domain.com" extra='class="mailto"'} + * + * @link http://www.smarty.net/manual/en/language.function.mailto.php {mailto} + * (Smarty online manual) + * @version 1.2 + * @author Monte Ohrt <monte at ohrt dot com> + * @author credits to Jason Sweat (added cc, bcc and subject functionality) + * + * @param array $params parameters + * + * @return string + */ +function smarty_function_mailto($params) +{ + static $_allowed_encoding = array( + 'javascript' => true, + 'javascript_charcode' => true, + 'hex' => true, + 'none' => true + ); + + $extra = ''; + if (empty($params[ 'address' ])) { + trigger_error("mailto: missing 'address' parameter", E_USER_WARNING); + return; + } else { + $address = $params[ 'address' ]; + } + + $text = $address; + + // netscape and mozilla do not decode %40 (@) in BCC field (bug?) + // so, don't encode it. + $mail_parms = array(); + foreach ($params as $var => $value) { + switch ($var) { + case 'cc': + case 'bcc': + case 'followupto': + if (!empty($value)) { + $mail_parms[] = $var . '=' . str_replace(array('%40', '%2C'), array('@', ','), rawurlencode($value)); + } + break; + case 'subject': + case 'newsgroups': + $mail_parms[] = $var . '=' . rawurlencode($value); + break; + case 'extra': + case 'text': + $$var = $value; + // no break + default: + } + } + + if ($mail_parms) { + $address .= '?' . join('&', $mail_parms); + } + $encode = (empty($params[ 'encode' ])) ? 'none' : $params[ 'encode' ]; + if (!isset($_allowed_encoding[ $encode ])) { + trigger_error( + "mailto: 'encode' parameter must be none, javascript, javascript_charcode or hex", + E_USER_WARNING + ); + return; + } + + $flags = ENT_QUOTES; + if (defined('ENT_SUBSTITUTE') && defined('ENT_HTML401')) { + $flags |= ENT_SUBSTITUTE | ENT_HTML401; + } + + $string = '<a href="mailto:' . htmlspecialchars($address, $flags, Smarty::$_CHARSET) . + '" ' . $extra . '>' . htmlspecialchars($text, $flags, Smarty::$_CHARSET) . '</a>'; + + if ($encode === 'javascript') { + $js_encode = ''; + for ($x = 0, $_length = strlen($string); $x < $_length; $x++) { + $js_encode .= '%' . bin2hex($string[ $x ]); + } + return '<script type="text/javascript">document.write(unescape(\'' . $js_encode . '\'))</script>'; + } elseif ($encode === 'javascript_charcode') { + for ($x = 0, $_length = strlen($string); $x < $_length; $x++) { + $ord[] = ord($string[ $x ]); + } + return '<script type="text/javascript">document.write(String.fromCharCode(' . implode(',', $ord) . '))</script>'; + } elseif ($encode === 'hex') { + preg_match('!^(.*)(\?.*)$!', $address, $match); + if (!empty($match[ 2 ])) { + trigger_error("mailto: hex encoding does not work with extra attributes. Try javascript.", E_USER_WARNING); + return; + } + $address_encode = ''; + for ($x = 0, $_length = strlen($address); $x < $_length; $x++) { + if (preg_match('!\w!' . Smarty::$_UTF8_MODIFIER, $address[ $x ])) { + $address_encode .= '%' . bin2hex($address[ $x ]); + } else { + $address_encode .= $address[ $x ]; + } + } + $text_encode = ''; + for ($x = 0, $_length = strlen($text); $x < $_length; $x++) { + $text_encode .= '&#x' . bin2hex($text[ $x ]) . ';'; + } + $mailto = "mailto:"; + return '<a href="' . $mailto . $address_encode . '" ' . $extra . '>' . $text_encode . '</a>'; + } else { + // no encoding + return $string; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.math.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.math.php new file mode 100644 index 0000000000..e2f8e04c83 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/function.math.php @@ -0,0 +1,142 @@ +<?php +/** + * Smarty plugin + * This plugin is only for Smarty2 BC + * + * @package Smarty + * @subpackage PluginsFunction + */ +/** + * Smarty {math} function plugin + * Type: function + * Name: math + * Purpose: handle math computations in template + * + * @link http://www.smarty.net/manual/en/language.function.math.php {math} + * (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * + * @param array $params parameters + * @param Smarty_Internal_Template $template template object + * + * @return string|null + */ +function smarty_function_math($params, $template) +{ + static $_allowed_funcs = + array( + 'int' => true, + 'abs' => true, + 'ceil' => true, + 'acos' => true, + 'acosh' => true, + 'cos' => true, + 'cosh' => true, + 'deg2rad' => true, + 'rad2deg' => true, + 'exp' => true, + 'floor' => true, + 'log' => true, + 'log10' => true, + 'max' => true, + 'min' => true, + 'pi' => true, + 'pow' => true, + 'rand' => true, + 'round' => true, + 'asin' => true, + 'asinh' => true, + 'sin' => true, + 'sinh' => true, + 'sqrt' => true, + 'srand' => true, + 'atan' => true, + 'atanh' => true, + 'tan' => true, + 'tanh' => true + ); + + // be sure equation parameter is present + if (empty($params[ 'equation' ])) { + trigger_error("math: missing equation parameter", E_USER_WARNING); + return; + } + $equation = $params[ 'equation' ]; + + // Remove whitespaces + $equation = preg_replace('/\s+/', '', $equation); + + // Adapted from https://www.php.net/manual/en/function.eval.php#107377 + $number = '(?:\d+(?:[,.]\d+)?|pi|π)'; // What is a number + $functionsOrVars = '((?:0x[a-fA-F0-9]+)|([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*))'; + $operators = '[,+\/*\^%-]'; // Allowed math operators + $regexp = '/^(('.$number.'|'.$functionsOrVars.'|('.$functionsOrVars.'\s*\((?1)*\)|\((?1)*\)))(?:'.$operators.'(?1))?)+$/'; + + if (!preg_match($regexp, $equation)) { + trigger_error("math: illegal characters", E_USER_WARNING); + return; + } + + // make sure parenthesis are balanced + if (substr_count($equation, '(') !== substr_count($equation, ')')) { + trigger_error("math: unbalanced parenthesis", E_USER_WARNING); + return; + } + + // disallow backticks + if (strpos($equation, '`') !== false) { + trigger_error("math: backtick character not allowed in equation", E_USER_WARNING); + return; + } + + // also disallow dollar signs + if (strpos($equation, '$') !== false) { + trigger_error("math: dollar signs not allowed in equation", E_USER_WARNING); + return; + } + foreach ($params as $key => $val) { + if ($key !== 'equation' && $key !== 'format' && $key !== 'assign') { + // make sure value is not empty + if (strlen($val) === 0) { + trigger_error("math: parameter '{$key}' is empty", E_USER_WARNING); + return; + } + if (!is_numeric($val)) { + trigger_error("math: parameter '{$key}' is not numeric", E_USER_WARNING); + return; + } + } + } + // match all vars in equation, make sure all are passed + preg_match_all('!(?:0x[a-fA-F0-9]+)|([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)!', $equation, $match); + foreach ($match[ 1 ] as $curr_var) { + if ($curr_var && !isset($params[ $curr_var ]) && !isset($_allowed_funcs[ $curr_var ])) { + trigger_error( + "math: function call '{$curr_var}' not allowed, or missing parameter '{$curr_var}'", + E_USER_WARNING + ); + return; + } + } + foreach ($params as $key => $val) { + if ($key !== 'equation' && $key !== 'format' && $key !== 'assign') { + $equation = preg_replace("/\b$key\b/", " \$params['$key'] ", $equation); + } + } + $smarty_math_result = null; + eval("\$smarty_math_result = " . $equation . ";"); + + if (empty($params[ 'format' ])) { + if (empty($params[ 'assign' ])) { + return $smarty_math_result; + } else { + $template->assign($params[ 'assign' ], $smarty_math_result); + } + } else { + if (empty($params[ 'assign' ])) { + printf($params[ 'format' ], $smarty_math_result); + } else { + $template->assign($params[ 'assign' ], sprintf($params[ 'format' ], $smarty_math_result)); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.capitalize.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.capitalize.php new file mode 100644 index 0000000000..c5fc400a6f --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.capitalize.php @@ -0,0 +1,145 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifier + */ +/** + * Smarty capitalize modifier plugin + * Type: modifier + * Name: capitalize + * Purpose: capitalize words in the string + * {@internal {$string|capitalize:true:true} is the fastest option for MBString enabled systems }} + * + * @param string $string string to capitalize + * @param boolean $uc_digits also capitalize "x123" to "X123" + * @param boolean $lc_rest capitalize first letters, lowercase all following letters "aAa" to "Aaa" + * + * @return string capitalized string + * @author Monte Ohrt <monte at ohrt dot com> + * @author Rodney Rehm + */ +function smarty_modifier_capitalize($string, $uc_digits = false, $lc_rest = false) +{ + if (Smarty::$_MBSTRING) { + if ($lc_rest) { + // uppercase (including hyphenated words) + $upper_string = mb_convert_case($string, MB_CASE_TITLE, Smarty::$_CHARSET); + } else { + // uppercase word breaks + $upper_string = preg_replace_callback( + "!(^|[^\p{L}'])([\p{Ll}])!S" . Smarty::$_UTF8_MODIFIER, + 'smarty_mod_cap_mbconvert_cb', + $string + ); + } + // check uc_digits case + if (!$uc_digits) { + if (preg_match_all( + "!\b([\p{L}]*[\p{N}]+[\p{L}]*)\b!" . Smarty::$_UTF8_MODIFIER, + $string, + $matches, + PREG_OFFSET_CAPTURE + ) + ) { + foreach ($matches[ 1 ] as $match) { + $upper_string = + substr_replace( + $upper_string, + mb_strtolower($match[ 0 ], Smarty::$_CHARSET), + $match[ 1 ], + strlen($match[ 0 ]) + ); + } + } + } + $upper_string = + preg_replace_callback( + "!((^|\s)['\"])(\w)!" . Smarty::$_UTF8_MODIFIER, + 'smarty_mod_cap_mbconvert2_cb', + $upper_string + ); + return $upper_string; + } + // lowercase first + if ($lc_rest) { + $string = strtolower($string); + } + // uppercase (including hyphenated words) + $upper_string = + preg_replace_callback( + "!(^|[^\p{L}'])([\p{Ll}])!S" . Smarty::$_UTF8_MODIFIER, + 'smarty_mod_cap_ucfirst_cb', + $string + ); + // check uc_digits case + if (!$uc_digits) { + if (preg_match_all( + "!\b([\p{L}]*[\p{N}]+[\p{L}]*)\b!" . Smarty::$_UTF8_MODIFIER, + $string, + $matches, + PREG_OFFSET_CAPTURE + ) + ) { + foreach ($matches[ 1 ] as $match) { + $upper_string = + substr_replace($upper_string, strtolower($match[ 0 ]), $match[ 1 ], strlen($match[ 0 ])); + } + } + } + $upper_string = preg_replace_callback( + "!((^|\s)['\"])(\w)!" . Smarty::$_UTF8_MODIFIER, + 'smarty_mod_cap_ucfirst2_cb', + $upper_string + ); + return $upper_string; +} + +/** + * + * Bug: create_function() use exhausts memory when used in long loops + * Fix: use declared functions for callbacks instead of using create_function() + * Note: This can be fixed using anonymous functions instead, but that requires PHP >= 5.3 + * + * @author Kyle Renfrow + */ +/** + * @param $matches + * + * @return string + */ +function smarty_mod_cap_mbconvert_cb($matches) +{ + return stripslashes($matches[ 1 ]) . mb_convert_case(stripslashes($matches[ 2 ]), MB_CASE_UPPER, Smarty::$_CHARSET); +} + +/** + * @param $matches + * + * @return string + */ +function smarty_mod_cap_mbconvert2_cb($matches) +{ + return stripslashes($matches[ 1 ]) . mb_convert_case(stripslashes($matches[ 3 ]), MB_CASE_UPPER, Smarty::$_CHARSET); +} + +/** + * @param $matches + * + * @return string + */ +function smarty_mod_cap_ucfirst_cb($matches) +{ + return stripslashes($matches[ 1 ]) . ucfirst(stripslashes($matches[ 2 ])); +} + +/** + * @param $matches + * + * @return string + */ +function smarty_mod_cap_ucfirst2_cb($matches) +{ + return stripslashes($matches[ 1 ]) . ucfirst(stripslashes($matches[ 3 ])); +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.date_format.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.date_format.php new file mode 100644 index 0000000000..c8e88c5c91 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.date_format.php @@ -0,0 +1,85 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifier + */ +/** + * Smarty date_format modifier plugin + * Type: modifier + * Name: date_format + * Purpose: format datestamps via strftime + * Input: + * - string: input date string + * - format: strftime format for output + * - default_date: default date if $string is empty + * + * @link http://www.smarty.net/manual/en/language.modifier.date.format.php date_format (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * + * @param string $string input date string + * @param string $format strftime format for output + * @param string $default_date default date if $string is empty + * @param string $formatter either 'strftime' or 'auto' + * + * @return string |void + * @uses smarty_make_timestamp() + */ +function smarty_modifier_date_format($string, $format = null, $default_date = '', $formatter = 'auto') +{ + if ($format === null) { + $format = Smarty::$_DATE_FORMAT; + } + /** + * require_once the {@link shared.make_timestamp.php} plugin + */ + static $is_loaded = false; + if (!$is_loaded) { + if (!is_callable('smarty_make_timestamp')) { + include_once SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php'; + } + $is_loaded = true; + } + if (!empty($string) && $string !== '0000-00-00' && $string !== '0000-00-00 00:00:00') { + $timestamp = smarty_make_timestamp($string); + } elseif (!empty($default_date)) { + $timestamp = smarty_make_timestamp($default_date); + } else { + return; + } + if ($formatter === 'strftime' || ($formatter === 'auto' && strpos($format, '%') !== false)) { + if (Smarty::$_IS_WINDOWS) { + $_win_from = array( + '%D', + '%h', + '%n', + '%r', + '%R', + '%t', + '%T' + ); + $_win_to = array( + '%m/%d/%y', + '%b', + "\n", + '%I:%M:%S %p', + '%H:%M', + "\t", + '%H:%M:%S' + ); + if (strpos($format, '%e') !== false) { + $_win_from[] = '%e'; + $_win_to[] = sprintf('%\' 2d', date('j', $timestamp)); + } + if (strpos($format, '%l') !== false) { + $_win_from[] = '%l'; + $_win_to[] = sprintf('%\' 2d', date('h', $timestamp)); + } + $format = str_replace($_win_from, $_win_to, $format); + } + return strftime($format, $timestamp); + } else { + return date($format, $timestamp); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.debug_print_var.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.debug_print_var.php new file mode 100644 index 0000000000..78397d0177 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.debug_print_var.php @@ -0,0 +1,103 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage Debug + */ +/** + * Smarty debug_print_var modifier plugin + * Type: modifier + * Name: debug_print_var + * Purpose: formats variable contents for display in the console + * + * @author Monte Ohrt <monte at ohrt dot com> + * + * @param array|object $var variable to be formatted + * @param int $max maximum recursion depth if $var is an array or object + * @param int $length maximum string length if $var is a string + * @param int $depth actual recursion depth + * @param array $objects processed objects in actual depth to prevent recursive object processing + * + * @return string + */ +function smarty_modifier_debug_print_var($var, $max = 10, $length = 40, $depth = 0, $objects = array()) +{ + $_replace = array("\n" => '\n', "\r" => '\r', "\t" => '\t'); + switch (gettype($var)) { + case 'array': + $results = '<b>Array (' . count($var) . ')</b>'; + if ($depth === $max) { + break; + } + foreach ($var as $curr_key => $curr_val) { + $results .= '<br>' . str_repeat(' ', $depth * 2) . '<b>' . strtr($curr_key, $_replace) . + '</b> => ' . + smarty_modifier_debug_print_var($curr_val, $max, $length, ++$depth, $objects); + $depth--; + } + break; + case 'object': + $object_vars = get_object_vars($var); + $results = '<b>' . get_class($var) . ' Object (' . count($object_vars) . ')</b>'; + if (in_array($var, $objects)) { + $results .= ' called recursive'; + break; + } + if ($depth === $max) { + break; + } + $objects[] = $var; + foreach ($object_vars as $curr_key => $curr_val) { + $results .= '<br>' . str_repeat(' ', $depth * 2) . '<b> ->' . strtr($curr_key, $_replace) . + '</b> = ' . smarty_modifier_debug_print_var($curr_val, $max, $length, ++$depth, $objects); + $depth--; + } + break; + case 'boolean': + case 'NULL': + case 'resource': + if (true === $var) { + $results = 'true'; + } elseif (false === $var) { + $results = 'false'; + } elseif (null === $var) { + $results = 'null'; + } else { + $results = htmlspecialchars((string)$var); + } + $results = '<i>' . $results . '</i>'; + break; + case 'integer': + case 'float': + $results = htmlspecialchars((string)$var); + break; + case 'string': + $results = strtr($var, $_replace); + if (Smarty::$_MBSTRING) { + if (mb_strlen($var, Smarty::$_CHARSET) > $length) { + $results = mb_substr($var, 0, $length - 3, Smarty::$_CHARSET) . '...'; + } + } else { + if (isset($var[ $length ])) { + $results = substr($var, 0, $length - 3) . '...'; + } + } + $results = htmlspecialchars('"' . $results . '"', ENT_QUOTES, Smarty::$_CHARSET); + break; + case 'unknown type': + default: + $results = strtr((string)$var, $_replace); + if (Smarty::$_MBSTRING) { + if (mb_strlen($results, Smarty::$_CHARSET) > $length) { + $results = mb_substr($results, 0, $length - 3, Smarty::$_CHARSET) . '...'; + } + } else { + if (strlen($results) > $length) { + $results = substr($results, 0, $length - 3) . '...'; + } + } + $results = htmlspecialchars($results, ENT_QUOTES, Smarty::$_CHARSET); + } + return $results; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.escape.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.escape.php new file mode 100644 index 0000000000..c2563589e7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.escape.php @@ -0,0 +1,262 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifier + */ +/** + * Smarty escape modifier plugin + * Type: modifier + * Name: escape + * Purpose: escape string for output + * + * @link http://www.smarty.net/docs/en/language.modifier.escape + * @author Monte Ohrt <monte at ohrt dot com> + * + * @param string $string input string + * @param string $esc_type escape type + * @param string $char_set character set, used for htmlspecialchars() or htmlentities() + * @param boolean $double_encode encode already encoded entitites again, used for htmlspecialchars() or htmlentities() + * + * @return string escaped input string + */ +function smarty_modifier_escape($string, $esc_type = 'html', $char_set = null, $double_encode = true) +{ + static $_double_encode = null; + static $is_loaded_1 = false; + static $is_loaded_2 = false; + if ($_double_encode === null) { + $_double_encode = version_compare(PHP_VERSION, '5.2.3', '>='); + } + if (!$char_set) { + $char_set = Smarty::$_CHARSET; + } + switch ($esc_type) { + case 'html': + if ($_double_encode) { + // php >=5.3.2 - go native + return htmlspecialchars($string, ENT_QUOTES, $char_set, $double_encode); + } else { + if ($double_encode) { + // php <5.2.3 - only handle double encoding + return htmlspecialchars($string, ENT_QUOTES, $char_set); + } else { + // php <5.2.3 - prevent double encoding + $string = preg_replace('!&(#?\w+);!', '%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string); + $string = htmlspecialchars($string, ENT_QUOTES, $char_set); + $string = str_replace( + array( + '%%%SMARTY_START%%%', + '%%%SMARTY_END%%%' + ), + array( + '&', + ';' + ), + $string + ); + return $string; + } + } + // no break + case 'htmlall': + if (Smarty::$_MBSTRING) { + // mb_convert_encoding ignores htmlspecialchars() + if ($_double_encode) { + // php >=5.3.2 - go native + $string = htmlspecialchars($string, ENT_QUOTES, $char_set, $double_encode); + } else { + if ($double_encode) { + // php <5.2.3 - only handle double encoding + $string = htmlspecialchars($string, ENT_QUOTES, $char_set); + } else { + // php <5.2.3 - prevent double encoding + $string = preg_replace('!&(#?\w+);!', '%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string); + $string = htmlspecialchars($string, ENT_QUOTES, $char_set); + $string = + str_replace( + array( + '%%%SMARTY_START%%%', + '%%%SMARTY_END%%%' + ), + array( + '&', + ';' + ), + $string + ); + return $string; + } + } + // htmlentities() won't convert everything, so use mb_convert_encoding + return mb_convert_encoding($string, 'HTML-ENTITIES', $char_set); + } + // no MBString fallback + if ($_double_encode) { + return htmlentities($string, ENT_QUOTES, $char_set, $double_encode); + } else { + if ($double_encode) { + return htmlentities($string, ENT_QUOTES, $char_set); + } else { + $string = preg_replace('!&(#?\w+);!', '%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string); + $string = htmlentities($string, ENT_QUOTES, $char_set); + $string = str_replace( + array( + '%%%SMARTY_START%%%', + '%%%SMARTY_END%%%' + ), + array( + '&', + ';' + ), + $string + ); + return $string; + } + } + // no break + case 'url': + return rawurlencode($string); + case 'urlpathinfo': + return str_replace('%2F', '/', rawurlencode($string)); + case 'quotes': + // escape unescaped single quotes + return preg_replace("%(?<!\\\\)'%", "\\'", $string); + case 'hex': + // escape every byte into hex + // Note that the UTF-8 encoded character ä will be represented as %c3%a4 + $return = ''; + $_length = strlen($string); + for ($x = 0; $x < $_length; $x++) { + $return .= '%' . bin2hex($string[ $x ]); + } + return $return; + case 'hexentity': + $return = ''; + if (Smarty::$_MBSTRING) { + if (!$is_loaded_1) { + if (!is_callable('smarty_mb_to_unicode')) { + include_once SMARTY_PLUGINS_DIR . 'shared.mb_unicode.php'; + } + $is_loaded_1 = true; + } + $return = ''; + foreach (smarty_mb_to_unicode($string, Smarty::$_CHARSET) as $unicode) { + $return .= '&#x' . strtoupper(dechex($unicode)) . ';'; + } + return $return; + } + // no MBString fallback + $_length = strlen($string); + for ($x = 0; $x < $_length; $x++) { + $return .= '&#x' . bin2hex($string[ $x ]) . ';'; + } + return $return; + case 'decentity': + $return = ''; + if (Smarty::$_MBSTRING) { + if (!$is_loaded_1) { + if (!is_callable('smarty_mb_to_unicode')) { + include_once SMARTY_PLUGINS_DIR . 'shared.mb_unicode.php'; + } + $is_loaded_1 = true; + } + $return = ''; + foreach (smarty_mb_to_unicode($string, Smarty::$_CHARSET) as $unicode) { + $return .= '&#' . $unicode . ';'; + } + return $return; + } + // no MBString fallback + $_length = strlen($string); + for ($x = 0; $x < $_length; $x++) { + $return .= '&#' . ord($string[ $x ]) . ';'; + } + return $return; + case 'javascript': + // escape quotes and backslashes, newlines, etc. + return strtr( + $string, + array( + '\\' => '\\\\', + "'" => "\\'", + '"' => '\\"', + "\r" => '\\r', + "\n" => '\\n', + '</' => '<\/', + // see https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements + '<!--' => '<\!--', + '<s' => '<\s', + '<S' => '<\S', + "`" => "\\\\`", + "\${" => "\\\\\\$\\{" + ) + ); + case 'mail': + if (Smarty::$_MBSTRING) { + if (!$is_loaded_2) { + if (!is_callable('smarty_mb_str_replace')) { + include_once SMARTY_PLUGINS_DIR . 'shared.mb_str_replace.php'; + } + $is_loaded_2 = true; + } + return smarty_mb_str_replace( + array( + '@', + '.' + ), + array( + ' [AT] ', + ' [DOT] ' + ), + $string + ); + } + // no MBString fallback + return str_replace( + array( + '@', + '.' + ), + array( + ' [AT] ', + ' [DOT] ' + ), + $string + ); + case 'nonstd': + // escape non-standard chars, such as ms document quotes + $return = ''; + if (Smarty::$_MBSTRING) { + if (!$is_loaded_1) { + if (!is_callable('smarty_mb_to_unicode')) { + include_once SMARTY_PLUGINS_DIR . 'shared.mb_unicode.php'; + } + $is_loaded_1 = true; + } + foreach (smarty_mb_to_unicode($string, Smarty::$_CHARSET) as $unicode) { + if ($unicode >= 126) { + $return .= '&#' . $unicode . ';'; + } else { + $return .= chr($unicode); + } + } + return $return; + } + $_length = strlen($string); + for ($_i = 0; $_i < $_length; $_i++) { + $_ord = ord(substr($string, $_i, 1)); + // non-standard char, escape it + if ($_ord >= 126) { + $return .= '&#' . $_ord . ';'; + } else { + $return .= substr($string, $_i, 1); + } + } + return $return; + default: + trigger_error("escape: unsupported type: $esc_type - returning unmodified string", E_USER_NOTICE); + return $string; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.mb_wordwrap.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.mb_wordwrap.php new file mode 100644 index 0000000000..1cd625b644 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.mb_wordwrap.php @@ -0,0 +1,71 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifier + */ +/** + * Smarty wordwrap modifier plugin + * Type: modifier + * Name: mb_wordwrap + * Purpose: Wrap a string to a given number of characters + * + * @link http://php.net/manual/en/function.wordwrap.php for similarity + * + * @param string $str the string to wrap + * @param int $width the width of the output + * @param string $break the character used to break the line + * @param boolean $cut ignored parameter, just for the sake of + * + * @return string wrapped string + * @author Rodney Rehm + */ +function smarty_modifier_mb_wordwrap($str, $width = 75, $break = "\n", $cut = false) +{ + // break words into tokens using white space as a delimiter + $tokens = preg_split('!(\s)!S' . Smarty::$_UTF8_MODIFIER, $str, -1, PREG_SPLIT_NO_EMPTY + PREG_SPLIT_DELIM_CAPTURE); + $length = 0; + $t = ''; + $_previous = false; + $_space = false; + foreach ($tokens as $_token) { + $token_length = mb_strlen($_token, Smarty::$_CHARSET); + $_tokens = array($_token); + if ($token_length > $width) { + if ($cut) { + $_tokens = preg_split( + '!(.{' . $width . '})!S' . Smarty::$_UTF8_MODIFIER, + $_token, + -1, + PREG_SPLIT_NO_EMPTY + PREG_SPLIT_DELIM_CAPTURE + ); + } + } + foreach ($_tokens as $token) { + $_space = !!preg_match('!^\s$!S' . Smarty::$_UTF8_MODIFIER, $token); + $token_length = mb_strlen($token, Smarty::$_CHARSET); + $length += $token_length; + if ($length > $width) { + // remove space before inserted break + if ($_previous) { + $t = mb_substr($t, 0, -1, Smarty::$_CHARSET); + } + if (!$_space) { + // add the break before the token + if (!empty($t)) { + $t .= $break; + } + $length = $token_length; + } + } elseif ($token === "\n") { + // hard break must reset counters + $length = 0; + } + $_previous = $_space; + // add the token + $t .= $token; + } + } + return $t; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.regex_replace.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.regex_replace.php new file mode 100644 index 0000000000..7eb5506954 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.regex_replace.php @@ -0,0 +1,55 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifier + */ +/** + * Smarty regex_replace modifier plugin + * Type: modifier + * Name: regex_replace + * Purpose: regular expression search/replace + * + * @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php + * regex_replace (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * + * @param string $string input string + * @param string|array $search regular expression(s) to search for + * @param string|array $replace string(s) that should be replaced + * @param int $limit the maximum number of replacements + * + * @return string + */ +function smarty_modifier_regex_replace($string, $search, $replace, $limit = -1) +{ + if (is_array($search)) { + foreach ($search as $idx => $s) { + $search[ $idx ] = _smarty_regex_replace_check($s); + } + } else { + $search = _smarty_regex_replace_check($search); + } + return preg_replace($search, $replace, $string, $limit); +} + +/** + * @param string $search string(s) that should be replaced + * + * @return string + * @ignore + */ +function _smarty_regex_replace_check($search) +{ + // null-byte injection detection + // anything behind the first null-byte is ignored + if (($pos = strpos($search, "\0")) !== false) { + $search = substr($search, 0, $pos); + } + // remove eval-modifier from $search + if (preg_match('!([a-zA-Z\s]+)$!s', $search, $match) && (strpos($match[ 1 ], 'e') !== false)) { + $search = substr($search, 0, -strlen($match[ 1 ])) . preg_replace('![e\s]+!', '', $match[ 1 ]); + } + return $search; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.replace.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.replace.php new file mode 100644 index 0000000000..a98f5a4a6f --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.replace.php @@ -0,0 +1,37 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifier + */ +/** + * Smarty replace modifier plugin + * Type: modifier + * Name: replace + * Purpose: simple search/replace + * + * @link http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * @author Uwe Tews + * + * @param string $string input string + * @param string $search text to search for + * @param string $replace replacement text + * + * @return string + */ +function smarty_modifier_replace($string, $search, $replace) +{ + static $is_loaded = false; + if (Smarty::$_MBSTRING) { + if (!$is_loaded) { + if (!is_callable('smarty_mb_str_replace')) { + include_once SMARTY_PLUGINS_DIR . 'shared.mb_str_replace.php'; + } + $is_loaded = true; + } + return smarty_mb_str_replace($search, $replace, $string); + } + return str_replace($search, $replace, $string); +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.spacify.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.spacify.php new file mode 100644 index 0000000000..98efd4b300 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.spacify.php @@ -0,0 +1,26 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifier + */ +/** + * Smarty spacify modifier plugin + * Type: modifier + * Name: spacify + * Purpose: add spaces between characters in a string + * + * @link http://smarty.php.net/manual/en/language.modifier.spacify.php spacify (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * + * @param string $string input string + * @param string $spacify_char string to insert between characters. + * + * @return string + */ +function smarty_modifier_spacify($string, $spacify_char = ' ') +{ + // well… what about charsets besides latin and UTF-8? + return implode($spacify_char, preg_split('//' . Smarty::$_UTF8_MODIFIER, $string, -1, PREG_SPLIT_NO_EMPTY)); +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.truncate.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.truncate.php new file mode 100644 index 0000000000..bb881bf6e5 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifier.truncate.php @@ -0,0 +1,62 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifier + */ +/** + * Smarty truncate modifier plugin + * Type: modifier + * Name: truncate + * Purpose: Truncate a string to a certain length if necessary, + * optionally splitting in the middle of a word, and + * appending the $etc string or inserting $etc into the middle. + * + * @link http://smarty.php.net/manual/en/language.modifier.truncate.php truncate (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * + * @param string $string input string + * @param integer $length length of truncated text + * @param string $etc end string + * @param boolean $break_words truncate at word boundary + * @param boolean $middle truncate in the middle of text + * + * @return string truncated string + */ +function smarty_modifier_truncate($string, $length = 80, $etc = '...', $break_words = false, $middle = false) +{ + if ($length === 0) { + return ''; + } + if (Smarty::$_MBSTRING) { + if (mb_strlen($string, Smarty::$_CHARSET) > $length) { + $length -= min($length, mb_strlen($etc, Smarty::$_CHARSET)); + if (!$break_words && !$middle) { + $string = preg_replace( + '/\s+?(\S+)?$/' . Smarty::$_UTF8_MODIFIER, + '', + mb_substr($string, 0, $length + 1, Smarty::$_CHARSET) + ); + } + if (!$middle) { + return mb_substr($string, 0, $length, Smarty::$_CHARSET) . $etc; + } + return mb_substr($string, 0, $length / 2, Smarty::$_CHARSET) . $etc . + mb_substr($string, -$length / 2, $length, Smarty::$_CHARSET); + } + return $string; + } + // no MBString fallback + if (isset($string[ $length ])) { + $length -= min($length, strlen($etc)); + if (!$break_words && !$middle) { + $string = preg_replace('/\s+?(\S+)?$/', '', substr($string, 0, $length + 1)); + } + if (!$middle) { + return substr($string, 0, $length) . $etc; + } + return substr($string, 0, $length / 2) . $etc . substr($string, -$length / 2); + } + return $string; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.cat.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.cat.php new file mode 100644 index 0000000000..21d0e66242 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.cat.php @@ -0,0 +1,28 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty cat modifier plugin + * Type: modifier + * Name: cat + * Date: Feb 24, 2003 + * Purpose: catenate a value to a variable + * Input: string to catenate + * Example: {$var|cat:"foo"} + * + * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat + * (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_cat($params) +{ + return '(' . implode(').(', $params) . ')'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_characters.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_characters.php new file mode 100644 index 0000000000..6c44278afa --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_characters.php @@ -0,0 +1,32 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty count_characters modifier plugin + * Type: modifier + * Name: count_characters + * Purpose: count the number of characters in a text + * + * @link http://www.smarty.net/manual/en/language.modifier.count.characters.php count_characters (Smarty online + * manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_count_characters($params) +{ + if (!isset($params[ 1 ]) || $params[ 1 ] !== 'true') { + return 'preg_match_all(\'/[^\s]/' . Smarty::$_UTF8_MODIFIER . '\',' . $params[ 0 ] . ', $tmp)'; + } + if (Smarty::$_MBSTRING) { + return 'mb_strlen(' . $params[ 0 ] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')'; + } + // no MBString fallback + return 'strlen(' . $params[ 0 ] . ')'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_paragraphs.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_paragraphs.php new file mode 100644 index 0000000000..e214a56f0d --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_paragraphs.php @@ -0,0 +1,26 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty count_paragraphs modifier plugin + * Type: modifier + * Name: count_paragraphs + * Purpose: count the number of paragraphs in a text + * + * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php + * count_paragraphs (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_count_paragraphs($params) +{ + // count \r or \n characters + return '(preg_match_all(\'#[\r\n]+#\', ' . $params[ 0 ] . ', $tmp)+1)'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_sentences.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_sentences.php new file mode 100644 index 0000000000..027745635d --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_sentences.php @@ -0,0 +1,26 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty count_sentences modifier plugin + * Type: modifier + * Name: count_sentences + * Purpose: count the number of sentences in a text + * + * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php + * count_sentences (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_count_sentences($params) +{ + // find periods, question marks, exclamation marks with a word before but not after. + return 'preg_match_all("#\w[\.\?\!](\W|$)#S' . Smarty::$_UTF8_MODIFIER . '", ' . $params[ 0 ] . ', $tmp)'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_words.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_words.php new file mode 100644 index 0000000000..6d889da5cb --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.count_words.php @@ -0,0 +1,31 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty count_words modifier plugin + * Type: modifier + * Name: count_words + * Purpose: count the number of words in a text + * + * @link http://www.smarty.net/manual/en/language.modifier.count.words.php count_words (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_count_words($params) +{ + if (Smarty::$_MBSTRING) { + // return 'preg_match_all(\'#[\w\pL]+#' . Smarty::$_UTF8_MODIFIER . '\', ' . $params[0] . ', $tmp)'; + // expression taken from http://de.php.net/manual/en/function.str-word-count.php#85592 + return 'preg_match_all(\'/\p{L}[\p{L}\p{Mn}\p{Pd}\\\'\x{2019}]*/' . Smarty::$_UTF8_MODIFIER . '\', ' . + $params[ 0 ] . ', $tmp)'; + } + // no MBString fallback + return 'str_word_count(' . $params[ 0 ] . ')'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.default.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.default.php new file mode 100644 index 0000000000..ae886c4b22 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.default.php @@ -0,0 +1,32 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty default modifier plugin + * Type: modifier + * Name: default + * Purpose: designate default value for empty variables + * + * @link http://www.smarty.net/manual/en/language.modifier.default.php default (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_default($params) +{ + $output = $params[ 0 ]; + if (!isset($params[ 1 ])) { + $params[ 1 ] = "''"; + } + array_shift($params); + foreach ($params as $param) { + $output = '(($tmp = @' . $output . ')===null||$tmp===\'\' ? ' . $param . ' : $tmp)'; + } + return $output; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.escape.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.escape.php new file mode 100644 index 0000000000..03ebbff5cf --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.escape.php @@ -0,0 +1,115 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty escape modifier plugin + * Type: modifier + * Name: escape + * Purpose: escape string for output + * + * @link http://www.smarty.net/docsv2/en/language.modifier.escape count_characters (Smarty online manual) + * @author Rodney Rehm + * + * @param array $params parameters + * @param Smarty_Internal_TemplateCompilerBase $compiler + * + * @return string with compiled code + * @throws \SmartyException + */ +function smarty_modifiercompiler_escape($params, Smarty_Internal_TemplateCompilerBase $compiler) +{ + static $_double_encode = null; + static $is_loaded = false; + $compiler->template->_checkPlugins( + array( + array( + 'function' => 'smarty_literal_compiler_param', + 'file' => SMARTY_PLUGINS_DIR . 'shared.literal_compiler_param.php' + ) + ) + ); + if ($_double_encode === null) { + $_double_encode = version_compare(PHP_VERSION, '5.2.3', '>='); + } + try { + $esc_type = smarty_literal_compiler_param($params, 1, 'html'); + $char_set = smarty_literal_compiler_param($params, 2, Smarty::$_CHARSET); + $double_encode = smarty_literal_compiler_param($params, 3, true); + if (!$char_set) { + $char_set = Smarty::$_CHARSET; + } + switch ($esc_type) { + case 'html': + if ($_double_encode) { + return 'htmlspecialchars(' . $params[ 0 ] . ', ENT_QUOTES, ' . var_export($char_set, true) . ', ' . + var_export($double_encode, true) . ')'; + } elseif ($double_encode) { + return 'htmlspecialchars(' . $params[ 0 ] . ', ENT_QUOTES, ' . var_export($char_set, true) . ')'; + } else { + // fall back to modifier.escape.php + } + // no break + case 'htmlall': + if (Smarty::$_MBSTRING) { + if ($_double_encode) { + // php >=5.2.3 - go native + return 'mb_convert_encoding(htmlspecialchars(' . $params[ 0 ] . ', ENT_QUOTES, ' . + var_export($char_set, true) . ', ' . var_export($double_encode, true) . + '), "HTML-ENTITIES", ' . var_export($char_set, true) . ')'; + } elseif ($double_encode) { + // php <5.2.3 - only handle double encoding + return 'mb_convert_encoding(htmlspecialchars(' . $params[ 0 ] . ', ENT_QUOTES, ' . + var_export($char_set, true) . '), "HTML-ENTITIES", ' . var_export($char_set, true) . ')'; + } else { + // fall back to modifier.escape.php + } + } + // no MBString fallback + if ($_double_encode) { + // php >=5.2.3 - go native + return 'htmlentities(' . $params[ 0 ] . ', ENT_QUOTES, ' . var_export($char_set, true) . ', ' . + var_export($double_encode, true) . ')'; + } elseif ($double_encode) { + // php <5.2.3 - only handle double encoding + return 'htmlentities(' . $params[ 0 ] . ', ENT_QUOTES, ' . var_export($char_set, true) . ')'; + } else { + // fall back to modifier.escape.php + } + // no break + case 'url': + return 'rawurlencode(' . $params[ 0 ] . ')'; + case 'urlpathinfo': + return 'str_replace("%2F", "/", rawurlencode(' . $params[ 0 ] . '))'; + case 'quotes': + // escape unescaped single quotes + return 'preg_replace("%(?<!\\\\\\\\)\'%", "\\\'",' . $params[ 0 ] . ')'; + case 'javascript': + // escape quotes and backslashes, newlines, etc. + // see https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements + return 'strtr(' . + $params[ 0 ] . + ', array("\\\\" => "\\\\\\\\", "\'" => "\\\\\'", "\"" => "\\\\\"", "\\r" => "\\\\r", + "\\n" => "\\\n", "</" => "<\/", "<!--" => "<\!--", "<s" => "<\s", "<S" => "<\S", + "`" => "\\\\`", "\${" => "\\\\\\$\\{"))'; + } + } catch (SmartyException $e) { + // pass through to regular plugin fallback + } + // could not optimize |escape call, so fallback to regular plugin + if ($compiler->template->caching && ($compiler->tag_nocache | $compiler->nocache)) { + $compiler->required_plugins[ 'nocache' ][ 'escape' ][ 'modifier' ][ 'file' ] = + SMARTY_PLUGINS_DIR . 'modifier.escape.php'; + $compiler->required_plugins[ 'nocache' ][ 'escape' ][ 'modifier' ][ 'function' ] = + 'smarty_modifier_escape'; + } else { + $compiler->required_plugins[ 'compiled' ][ 'escape' ][ 'modifier' ][ 'file' ] = + SMARTY_PLUGINS_DIR . 'modifier.escape.php'; + $compiler->required_plugins[ 'compiled' ][ 'escape' ][ 'modifier' ][ 'function' ] = + 'smarty_modifier_escape'; + } + return 'smarty_modifier_escape(' . join(', ', $params) . ')'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.from_charset.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.from_charset.php new file mode 100644 index 0000000000..acce7784b9 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.from_charset.php @@ -0,0 +1,30 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty from_charset modifier plugin + * Type: modifier + * Name: from_charset + * Purpose: convert character encoding from $charset to internal encoding + * + * @author Rodney Rehm + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_from_charset($params) +{ + if (!Smarty::$_MBSTRING) { + // FIXME: (rodneyrehm) shouldn't this throw an error? + return $params[ 0 ]; + } + if (!isset($params[ 1 ])) { + $params[ 1 ] = '"ISO-8859-1"'; + } + return 'mb_convert_encoding(' . $params[ 0 ] . ', "' . addslashes(Smarty::$_CHARSET) . '", ' . $params[ 1 ] . ')'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.indent.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.indent.php new file mode 100644 index 0000000000..2088ad6a83 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.indent.php @@ -0,0 +1,30 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty indent modifier plugin + * Type: modifier + * Name: indent + * Purpose: indent lines of text + * + * @link http://www.smarty.net/manual/en/language.modifier.indent.php indent (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_indent($params) +{ + if (!isset($params[ 1 ])) { + $params[ 1 ] = 4; + } + if (!isset($params[ 2 ])) { + $params[ 2 ] = "' '"; + } + return 'preg_replace(\'!^!m\',str_repeat(' . $params[ 2 ] . ',' . $params[ 1 ] . '),' . $params[ 0 ] . ')'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.lower.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.lower.php new file mode 100644 index 0000000000..0d899a0028 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.lower.php @@ -0,0 +1,29 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty lower modifier plugin + * Type: modifier + * Name: lower + * Purpose: convert string to lowercase + * + * @link http://www.smarty.net/manual/en/language.modifier.lower.php lower (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_lower($params) +{ + if (Smarty::$_MBSTRING) { + return 'mb_strtolower(' . $params[ 0 ] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')'; + } + // no MBString fallback + return 'strtolower(' . $params[ 0 ] . ')'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.noprint.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.noprint.php new file mode 100644 index 0000000000..1275190e07 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.noprint.php @@ -0,0 +1,20 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty noprint modifier plugin + * Type: modifier + * Name: noprint + * Purpose: return an empty string + * + * @author Uwe Tews + * @return string with compiled code + */ +function smarty_modifiercompiler_noprint() +{ + return "''"; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.string_format.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.string_format.php new file mode 100644 index 0000000000..6630943117 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.string_format.php @@ -0,0 +1,24 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty string_format modifier plugin + * Type: modifier + * Name: string_format + * Purpose: format strings via sprintf + * + * @link http://www.smarty.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_string_format($params) +{ + return 'sprintf(' . $params[ 1 ] . ',' . $params[ 0 ] . ')'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.strip.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.strip.php new file mode 100644 index 0000000000..04ea332c52 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.strip.php @@ -0,0 +1,30 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty strip modifier plugin + * Type: modifier + * Name: strip + * Purpose: Replace all repeated spaces, newlines, tabs + * with a single space or supplied replacement string. + * Example: {$var|strip} {$var|strip:" "} + * Date: September 25th, 2002 + * + * @link http://www.smarty.net/manual/en/language.modifier.strip.php strip (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_strip($params) +{ + if (!isset($params[ 1 ])) { + $params[ 1 ] = "' '"; + } + return "preg_replace('!\s+!" . Smarty::$_UTF8_MODIFIER . "', {$params[1]},{$params[0]})"; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.strip_tags.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.strip_tags.php new file mode 100644 index 0000000000..1bca1a28e8 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.strip_tags.php @@ -0,0 +1,28 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty strip_tags modifier plugin + * Type: modifier + * Name: strip_tags + * Purpose: strip html tags from text + * + * @link http://www.smarty.net/docs/en/language.modifier.strip.tags.tpl strip_tags (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_strip_tags($params) +{ + if (!isset($params[ 1 ]) || $params[ 1 ] === true || trim($params[ 1 ], '"') === 'true') { + return "preg_replace('!<[^>]*?>!', ' ', {$params[0]})"; + } else { + return 'strip_tags(' . $params[ 0 ] . ')'; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.to_charset.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.to_charset.php new file mode 100644 index 0000000000..d652eab1b3 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.to_charset.php @@ -0,0 +1,30 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty to_charset modifier plugin + * Type: modifier + * Name: to_charset + * Purpose: convert character encoding from internal encoding to $charset + * + * @author Rodney Rehm + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_to_charset($params) +{ + if (!Smarty::$_MBSTRING) { + // FIXME: (rodneyrehm) shouldn't this throw an error? + return $params[ 0 ]; + } + if (!isset($params[ 1 ])) { + $params[ 1 ] = '"ISO-8859-1"'; + } + return 'mb_convert_encoding(' . $params[ 0 ] . ', ' . $params[ 1 ] . ', "' . addslashes(Smarty::$_CHARSET) . '")'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.unescape.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.unescape.php new file mode 100644 index 0000000000..3438fe3e07 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.unescape.php @@ -0,0 +1,52 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty unescape modifier plugin + * Type: modifier + * Name: unescape + * Purpose: unescape html entities + * + * @author Rodney Rehm + * + * @param array $params parameters + * @param Smarty_Internal_TemplateCompilerBase $compiler + * + * @return string with compiled code + */ +function smarty_modifiercompiler_unescape($params, Smarty_Internal_TemplateCompilerBase $compiler) +{ + $compiler->template->_checkPlugins( + array( + array( + 'function' => 'smarty_literal_compiler_param', + 'file' => SMARTY_PLUGINS_DIR . 'shared.literal_compiler_param.php' + ) + ) + ); + + $esc_type = smarty_literal_compiler_param($params, 1, 'html'); + + if (!isset($params[ 2 ])) { + $params[ 2 ] = '\'' . addslashes(Smarty::$_CHARSET) . '\''; + } + + switch ($esc_type) { + case 'entity': + case 'htmlall': + if (Smarty::$_MBSTRING) { + return 'mb_convert_encoding(' . $params[ 0 ] . ', ' . $params[ 2 ] . ', \'HTML-ENTITIES\')'; + } + return 'html_entity_decode(' . $params[ 0 ] . ', ENT_NOQUOTES, ' . $params[ 2 ] . ')'; + case 'html': + return 'htmlspecialchars_decode(' . $params[ 0 ] . ', ENT_QUOTES)'; + case 'url': + return 'rawurldecode(' . $params[ 0 ] . ')'; + default: + return $params[ 0 ]; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.upper.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.upper.php new file mode 100644 index 0000000000..ea4e95b7a4 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.upper.php @@ -0,0 +1,28 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty upper modifier plugin + * Type: modifier + * Name: lower + * Purpose: convert string to uppercase + * + * @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_upper($params) +{ + if (Smarty::$_MBSTRING) { + return 'mb_strtoupper(' . $params[ 0 ] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')'; + } + // no MBString fallback + return 'strtoupper(' . $params[ 0 ] . ')'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.wordwrap.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.wordwrap.php new file mode 100644 index 0000000000..8565f140e7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/modifiercompiler.wordwrap.php @@ -0,0 +1,39 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty wordwrap modifier plugin + * Type: modifier + * Name: wordwrap + * Purpose: wrap a string of text at a given length + * + * @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php wordwrap (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * @param \Smarty_Internal_TemplateCompilerBase $compiler + * + * @return string with compiled code + * @throws \SmartyException + */ +function smarty_modifiercompiler_wordwrap($params, Smarty_Internal_TemplateCompilerBase $compiler) +{ + if (!isset($params[ 1 ])) { + $params[ 1 ] = 80; + } + if (!isset($params[ 2 ])) { + $params[ 2 ] = '"\n"'; + } + if (!isset($params[ 3 ])) { + $params[ 3 ] = 'false'; + } + $function = 'wordwrap'; + if (Smarty::$_MBSTRING) { + $function = $compiler->getPlugin('mb_wordwrap', 'modifier'); + } + return $function . '(' . $params[ 0 ] . ',' . $params[ 1 ] . ',' . $params[ 2 ] . ',' . $params[ 3 ] . ')'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/outputfilter.trimwhitespace.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/outputfilter.trimwhitespace.php new file mode 100644 index 0000000000..7e4503a1cf --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/outputfilter.trimwhitespace.php @@ -0,0 +1,89 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFilter + */ +/** + * Smarty trimwhitespace outputfilter plugin + * Trim unnecessary whitespace from HTML markup. + * + * @author Rodney Rehm + * + * @param string $source input string + * + * @return string filtered output + * @todo substr_replace() is not overloaded by mbstring.func_overload - so this function might fail! + */ +function smarty_outputfilter_trimwhitespace($source) +{ + $store = array(); + $_store = 0; + $_offset = 0; + // Unify Line-Breaks to \n + $source = preg_replace('/\015\012|\015|\012/', "\n", $source); + // capture Internet Explorer and KnockoutJS Conditional Comments + if (preg_match_all( + '#<!--((\[[^\]]+\]>.*?<!\[[^\]]+\])|(\s*/?ko\s+.+))-->#is', + $source, + $matches, + PREG_OFFSET_CAPTURE | PREG_SET_ORDER + ) + ) { + foreach ($matches as $match) { + $store[] = $match[ 0 ][ 0 ]; + $_length = strlen($match[ 0 ][ 0 ]); + $replace = '@!@SMARTY:' . $_store . ':SMARTY@!@'; + $source = substr_replace($source, $replace, $match[ 0 ][ 1 ] - $_offset, $_length); + $_offset += $_length - strlen($replace); + $_store++; + } + } + // Strip all HTML-Comments + // yes, even the ones in <script> - see http://stackoverflow.com/a/808850/515124 + $source = preg_replace('#<!--.*?-->#ms', '', $source); + // capture html elements not to be messed with + $_offset = 0; + if (preg_match_all( + '#(<script[^>]*>.*?</script[^>]*>)|(<textarea[^>]*>.*?</textarea[^>]*>)|(<pre[^>]*>.*?</pre[^>]*>)#is', + $source, + $matches, + PREG_OFFSET_CAPTURE | PREG_SET_ORDER + ) + ) { + foreach ($matches as $match) { + $store[] = $match[ 0 ][ 0 ]; + $_length = strlen($match[ 0 ][ 0 ]); + $replace = '@!@SMARTY:' . $_store . ':SMARTY@!@'; + $source = substr_replace($source, $replace, $match[ 0 ][ 1 ] - $_offset, $_length); + $_offset += $_length - strlen($replace); + $_store++; + } + } + $expressions = array(// replace multiple spaces between tags by a single space + // can't remove them entirely, becaue that might break poorly implemented CSS display:inline-block elements + '#(:SMARTY@!@|>)\s+(?=@!@SMARTY:|<)#s' => '\1 \2', + // remove spaces between attributes (but not in attribute values!) + '#(([a-z0-9]\s*=\s*("[^"]*?")|(\'[^\']*?\'))|<[a-z0-9_]+)\s+([a-z/>])#is' => '\1 \5', + // note: for some very weird reason trim() seems to remove spaces inside attributes. + // maybe a \0 byte or something is interfering? + '#^\s+<#Ss' => '<', + '#>\s+$#Ss' => '>', + ); + $source = preg_replace(array_keys($expressions), array_values($expressions), $source); + // note: for some very weird reason trim() seems to remove spaces inside attributes. + // maybe a \0 byte or something is interfering? + // $source = trim( $source ); + $_offset = 0; + if (preg_match_all('#@!@SMARTY:([0-9]+):SMARTY@!@#is', $source, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER)) { + foreach ($matches as $match) { + $_length = strlen($match[ 0 ][ 0 ]); + $replace = $store[ $match[ 1 ][ 0 ] ]; + $source = substr_replace($source, $replace, $match[ 0 ][ 1 ] + $_offset, $_length); + $_offset += strlen($replace) - $_length; + $_store++; + } + } + return $source; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.escape_special_chars.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.escape_special_chars.php new file mode 100644 index 0000000000..6b18d3eec3 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.escape_special_chars.php @@ -0,0 +1,32 @@ +<?php +/** + * Smarty shared plugin + * + * @package Smarty + * @subpackage PluginsShared + */ +/** + * escape_special_chars common function + * Function: smarty_function_escape_special_chars + * Purpose: used by other smarty functions to escape + * special chars except for already escaped ones + * + * @author Monte Ohrt <monte at ohrt dot com> + * + * @param string $string text that should by escaped + * + * @return string + */ +function smarty_function_escape_special_chars($string) +{ + if (!is_array($string)) { + if (version_compare(PHP_VERSION, '5.2.3', '>=')) { + $string = htmlspecialchars($string, ENT_COMPAT, Smarty::$_CHARSET, false); + } else { + $string = preg_replace('!&(#?\w+);!', '%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string); + $string = htmlspecialchars($string); + $string = str_replace(array('%%%SMARTY_START%%%', '%%%SMARTY_END%%%'), array('&', ';'), $string); + } + } + return $string; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.literal_compiler_param.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.literal_compiler_param.php new file mode 100644 index 0000000000..65caf03c82 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.literal_compiler_param.php @@ -0,0 +1,35 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsShared + */ +/** + * evaluate compiler parameter + * + * @param array $params parameter array as given to the compiler function + * @param integer $index array index of the parameter to convert + * @param mixed $default value to be returned if the parameter is not present + * + * @return mixed evaluated value of parameter or $default + * @throws SmartyException if parameter is not a literal (but an expression, variable, …) + * @author Rodney Rehm + */ +function smarty_literal_compiler_param($params, $index, $default = null) +{ + // not set, go default + if (!isset($params[ $index ])) { + return $default; + } + // test if param is a literal + if (!preg_match('/^([\'"]?)[a-zA-Z0-9-]+(\\1)$/', $params[ $index ])) { + throw new SmartyException( + '$param[' . $index . + '] is not a literal and is thus not evaluatable at compile time' + ); + } + $t = null; + eval("\$t = " . $params[ $index ] . ";"); + return $t; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.make_timestamp.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.make_timestamp.php new file mode 100644 index 0000000000..9626dc68e4 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.make_timestamp.php @@ -0,0 +1,49 @@ +<?php +/** + * Smarty shared plugin + * + * @package Smarty + * @subpackage PluginsShared + */ +/** + * Function: smarty_make_timestamp + * Purpose: used by other smarty functions to make a timestamp from a string. + * + * @author Monte Ohrt <monte at ohrt dot com> + * + * @param DateTime|int|string $string date object, timestamp or string that can be converted using strtotime() + * + * @return int + */ +function smarty_make_timestamp($string) +{ + if (empty($string)) { + // use "now": + return time(); + } elseif ($string instanceof DateTime + || (interface_exists('DateTimeInterface', false) && $string instanceof DateTimeInterface) + ) { + return (int)$string->format('U'); // PHP 5.2 BC + } elseif (strlen($string) === 14 && ctype_digit($string)) { + // it is mysql timestamp format of YYYYMMDDHHMMSS? + return mktime( + substr($string, 8, 2), + substr($string, 10, 2), + substr($string, 12, 2), + substr($string, 4, 2), + substr($string, 6, 2), + substr($string, 0, 4) + ); + } elseif (is_numeric($string)) { + // it is a numeric string, we handle it as timestamp + return (int)$string; + } else { + // strtotime should handle it + $time = strtotime($string); + if ($time === -1 || $time === false) { + // strtotime() was not able to parse $string, use "now": + return time(); + } + return $time; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php new file mode 100644 index 0000000000..6366205bfb --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php @@ -0,0 +1,87 @@ +<?php +/** + * Smarty shared plugin + * + * @package Smarty + * @subpackage PluginsShared + */ +if (!function_exists('smarty_mb_str_replace')) { + /** + * Multibyte string replace + * + * @param string|string[] $search the string to be searched + * @param string|string[] $replace the replacement string + * @param string $subject the source string + * @param int &$count number of matches found + * + * @return string replaced string + * @author Rodney Rehm + */ + function smarty_mb_str_replace($search, $replace, $subject, &$count = 0) + { + if (!is_array($search) && is_array($replace)) { + return false; + } + if (is_array($subject)) { + // call mb_replace for each single string in $subject + foreach ($subject as &$string) { + $string = smarty_mb_str_replace($search, $replace, $string, $c); + $count += $c; + } + } elseif (is_array($search)) { + if (!is_array($replace)) { + foreach ($search as &$string) { + $subject = smarty_mb_str_replace($string, $replace, $subject, $c); + $count += $c; + } + } else { + $n = max(count($search), count($replace)); + while ($n--) { + $subject = smarty_mb_str_replace(current($search), current($replace), $subject, $c); + $count += $c; + next($search); + next($replace); + } + } + } else { + $mb_reg_charset = mb_regex_encoding(); + // Check if mbstring regex is using UTF-8 + $reg_is_unicode = !strcasecmp($mb_reg_charset, "UTF-8"); + if(!$reg_is_unicode) { + // ...and set to UTF-8 if not + mb_regex_encoding("UTF-8"); + } + + // See if charset used by Smarty is matching one used by regex... + $current_charset = mb_regex_encoding(); + $convert_result = (bool)strcasecmp(Smarty::$_CHARSET, $current_charset); + if($convert_result) { + // ...convert to it if not. + $subject = mb_convert_encoding($subject, $current_charset, Smarty::$_CHARSET); + $search = mb_convert_encoding($search, $current_charset, Smarty::$_CHARSET); + $replace = mb_convert_encoding($replace, $current_charset, Smarty::$_CHARSET); + } + + $parts = mb_split(preg_quote($search), $subject); + // If original regex encoding was not unicode... + if(!$reg_is_unicode) { + // ...restore original regex encoding to avoid breaking the system. + mb_regex_encoding($mb_reg_charset); + } + if($parts === false) { + // This exception is thrown if call to mb_split failed. + // Usually it happens, when $search or $replace are not valid for given mb_regex_encoding(). + // There may be other cases for it to fail, please file an issue if you find a reproducible one. + throw new SmartyException("Source string is not a valid $current_charset sequence (probably)"); + } + + $count = count($parts) - 1; + $subject = implode($replace, $parts); + // Convert results back to charset used by Smarty, if needed. + if($convert_result) { + $subject = mb_convert_encoding($subject, Smarty::$_CHARSET, $current_charset); + } + } + return $subject; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php new file mode 100644 index 0000000000..7d12065069 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/shared.mb_unicode.php @@ -0,0 +1,51 @@ +<?php +/** + * Smarty shared plugin + * + * @package Smarty + * @subpackage PluginsShared + */ +/** + * convert characters to their decimal unicode equivalents + * + * @link http://www.ibm.com/developerworks/library/os-php-unicode/index.html#listing3 for inspiration + * + * @param string $string characters to calculate unicode of + * @param string $encoding encoding of $string, if null mb_internal_encoding() is used + * + * @return array sequence of unicodes + * @author Rodney Rehm + */ +function smarty_mb_to_unicode($string, $encoding = null) +{ + if ($encoding) { + $expanded = mb_convert_encoding($string, 'UTF-32BE', $encoding); + } else { + $expanded = mb_convert_encoding($string, 'UTF-32BE'); + } + return unpack('N*', $expanded); +} + +/** + * convert unicodes to the character of given encoding + * + * @link http://www.ibm.com/developerworks/library/os-php-unicode/index.html#listing3 for inspiration + * + * @param integer|array $unicode single unicode or list of unicodes to convert + * @param string $encoding encoding of returned string, if null mb_internal_encoding() is used + * + * @return string unicode as character sequence in given $encoding + * @author Rodney Rehm + */ +function smarty_mb_from_unicode($unicode, $encoding = null) +{ + $t = ''; + if (!$encoding) { + $encoding = mb_internal_encoding(); + } + foreach ((array)$unicode as $utf32be) { + $character = pack('N*', $utf32be); + $t .= mb_convert_encoding($character, $encoding, 'UTF-32BE'); + } + return $t; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/variablefilter.htmlspecialchars.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/variablefilter.htmlspecialchars.php new file mode 100644 index 0000000000..3c85295db6 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/plugins/variablefilter.htmlspecialchars.php @@ -0,0 +1,19 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsFilter + */ +/** + * Smarty htmlspecialchars variablefilter plugin + * + * @param string $source input string + * @param \Smarty_Internal_Template $template + * + * @return string filtered output + */ +function smarty_variablefilter_htmlspecialchars($source, Smarty_Internal_Template $template) +{ + return htmlspecialchars($source, ENT_QUOTES, Smarty::$_CHARSET); +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource.php new file mode 100644 index 0000000000..91e9f39246 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource.php @@ -0,0 +1,219 @@ +<?php +/** + * Smarty Internal Plugin + * + * @package Smarty + * @subpackage Cacher + */ + +/** + * Cache Handler API + * + * @package Smarty + * @subpackage Cacher + * @author Rodney Rehm + */ +abstract class Smarty_CacheResource +{ + /** + * resource types provided by the core + * + * @var array + */ + protected static $sysplugins = array('file' => 'smarty_internal_cacheresource_file.php',); + + /** + * populate Cached Object with meta data from Resource + * + * @param \Smarty_Template_Cached $cached cached object + * @param Smarty_Internal_Template $_template template object + * + * @return void + */ + abstract public function populate(\Smarty_Template_Cached $cached, Smarty_Internal_Template $_template); + + /** + * populate Cached Object with timestamp and exists from Resource + * + * @param Smarty_Template_Cached $cached + * + * @return void + */ + abstract public function populateTimestamp(Smarty_Template_Cached $cached); + + /** + * Read the cached template and process header + * + * @param Smarty_Internal_Template $_template template object + * @param Smarty_Template_Cached $cached cached object + * @param boolean $update flag if called because cache update + * + * @return boolean true or false if the cached content does not exist + */ + abstract public function process( + Smarty_Internal_Template $_template, + Smarty_Template_Cached $cached = null, + $update = false + ); + + /** + * Write the rendered template output to cache + * + * @param Smarty_Internal_Template $_template template object + * @param string $content content to cache + * + * @return boolean success + */ + abstract public function writeCachedContent(Smarty_Internal_Template $_template, $content); + + /** + * Read cached template from cache + * + * @param Smarty_Internal_Template $_template template object + * + * @return string content + */ + abstract public function readCachedContent(Smarty_Internal_Template $_template); + + /** + * Return cached content + * + * @param Smarty_Internal_Template $_template template object + * + * @return null|string + */ + public function getCachedContent(Smarty_Internal_Template $_template) + { + if ($_template->cached->handler->process($_template)) { + ob_start(); + $unifunc = $_template->cached->unifunc; + $unifunc($_template); + return ob_get_clean(); + } + return null; + } + + /** + * Empty cache + * + * @param Smarty $smarty Smarty object + * @param integer $exp_time expiration time (number of seconds, not timestamp) + * + * @return integer number of cache files deleted + */ + abstract public function clearAll(Smarty $smarty, $exp_time = null); + + /** + * Empty cache for a specific template + * + * @param Smarty $smarty Smarty object + * @param string $resource_name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param integer $exp_time expiration time (number of seconds, not timestamp) + * + * @return integer number of cache files deleted + */ + abstract public function clear(Smarty $smarty, $resource_name, $cache_id, $compile_id, $exp_time); + + /** + * @param Smarty $smarty + * @param Smarty_Template_Cached $cached + * + * @return bool|null + */ + public function locked(Smarty $smarty, Smarty_Template_Cached $cached) + { + // theoretically locking_timeout should be checked against time_limit (max_execution_time) + $start = microtime(true); + $hadLock = null; + while ($this->hasLock($smarty, $cached)) { + $hadLock = true; + if (microtime(true) - $start > $smarty->locking_timeout) { + // abort waiting for lock release + return false; + } + sleep(1); + } + return $hadLock; + } + + /** + * Check is cache is locked for this template + * + * @param Smarty $smarty + * @param Smarty_Template_Cached $cached + * + * @return bool + */ + public function hasLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + // check if lock exists + return false; + } + + /** + * Lock cache for this template + * + * @param Smarty $smarty + * @param Smarty_Template_Cached $cached + * + * @return bool + */ + public function acquireLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + // create lock + return true; + } + + /** + * Unlock cache for this template + * + * @param Smarty $smarty + * @param Smarty_Template_Cached $cached + * + * @return bool + */ + public function releaseLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + // release lock + return true; + } + + /** + * Load Cache Resource Handler + * + * @param Smarty $smarty Smarty object + * @param string $type name of the cache resource + * + * @throws SmartyException + * @return Smarty_CacheResource Cache Resource Handler + */ + public static function load(Smarty $smarty, $type = null) + { + if (!isset($type)) { + $type = $smarty->caching_type; + } + // try smarty's cache + if (isset($smarty->_cache[ 'cacheresource_handlers' ][ $type ])) { + return $smarty->_cache[ 'cacheresource_handlers' ][ $type ]; + } + // try registered resource + if (isset($smarty->registered_cache_resources[ $type ])) { + // do not cache these instances as they may vary from instance to instance + return $smarty->_cache[ 'cacheresource_handlers' ][ $type ] = $smarty->registered_cache_resources[ $type ]; + } + // try sysplugins dir + if (isset(self::$sysplugins[ $type ])) { + $cache_resource_class = 'Smarty_Internal_CacheResource_' . ucfirst($type); + return $smarty->_cache[ 'cacheresource_handlers' ][ $type ] = new $cache_resource_class(); + } + // try plugins dir + $cache_resource_class = 'Smarty_CacheResource_' . ucfirst($type); + if ($smarty->loadPlugin($cache_resource_class)) { + return $smarty->_cache[ 'cacheresource_handlers' ][ $type ] = new $cache_resource_class(); + } + // give up + throw new SmartyException("Unable to load cache resource '{$type}'"); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_custom.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_custom.php new file mode 100644 index 0000000000..68ad112891 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_custom.php @@ -0,0 +1,297 @@ +<?php +/** + * Smarty Internal Plugin + * + * @package Smarty + * @subpackage Cacher + */ + +/** + * Cache Handler API + * + * @package Smarty + * @subpackage Cacher + * @author Rodney Rehm + */ +abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource +{ + /** + * fetch cached content and its modification time from data source + * + * @param string $id unique cache content identifier + * @param string $name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param string $content cached content + * @param integer $mtime cache modification timestamp (epoch) + * + * @return void + */ + abstract protected function fetch($id, $name, $cache_id, $compile_id, &$content, &$mtime); + + /** + * Fetch cached content's modification timestamp from data source + * {@internal implementing this method is optional. + * Only implement it if modification times can be accessed faster than loading the complete cached content.}} + * + * @param string $id unique cache content identifier + * @param string $name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * + * @return integer|boolean timestamp (epoch) the template was modified, or false if not found + */ + protected function fetchTimestamp($id, $name, $cache_id, $compile_id) + { + return false; + } + + /** + * Save content to cache + * + * @param string $id unique cache content identifier + * @param string $name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param integer|null $exp_time seconds till expiration or null + * @param string $content content to cache + * + * @return boolean success + */ + abstract protected function save($id, $name, $cache_id, $compile_id, $exp_time, $content); + + /** + * Delete content from cache + * + * @param string|null $name template name + * @param string|null $cache_id cache id + * @param string|null $compile_id compile id + * @param integer|null $exp_time seconds till expiration time in seconds or null + * + * @return integer number of deleted caches + */ + abstract protected function delete($name, $cache_id, $compile_id, $exp_time); + + /** + * populate Cached Object with meta data from Resource + * + * @param Smarty_Template_Cached $cached cached object + * @param Smarty_Internal_Template $_template template object + * + * @return void + */ + public function populate(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template) + { + $_cache_id = isset($cached->cache_id) ? preg_replace('![^\w\|]+!', '_', $cached->cache_id) : null; + $_compile_id = isset($cached->compile_id) ? preg_replace('![^\w]+!', '_', $cached->compile_id) : null; + $path = $cached->source->uid . $_cache_id . $_compile_id; + $cached->filepath = sha1($path); + if ($_template->smarty->cache_locking) { + $cached->lock_id = sha1('lock.' . $path); + } + $this->populateTimestamp($cached); + } + + /** + * populate Cached Object with timestamp and exists from Resource + * + * @param Smarty_Template_Cached $cached + * + * @return void + */ + public function populateTimestamp(Smarty_Template_Cached $cached) + { + $mtime = + $this->fetchTimestamp($cached->filepath, $cached->source->name, $cached->cache_id, $cached->compile_id); + if ($mtime !== null) { + $cached->timestamp = $mtime; + $cached->exists = !!$cached->timestamp; + return; + } + $timestamp = null; + $this->fetch( + $cached->filepath, + $cached->source->name, + $cached->cache_id, + $cached->compile_id, + $cached->content, + $timestamp + ); + $cached->timestamp = isset($timestamp) ? $timestamp : false; + $cached->exists = !!$cached->timestamp; + } + + /** + * Read the cached template and process the header + * + * @param \Smarty_Internal_Template $_smarty_tpl do not change variable name, is used by compiled template + * @param Smarty_Template_Cached $cached cached object + * @param boolean $update flag if called because cache update + * + * @return boolean true or false if the cached content does not exist + */ + public function process( + Smarty_Internal_Template $_smarty_tpl, + Smarty_Template_Cached $cached = null, + $update = false + ) { + if (!$cached) { + $cached = $_smarty_tpl->cached; + } + $content = $cached->content ? $cached->content : null; + $timestamp = $cached->timestamp ? $cached->timestamp : null; + if ($content === null || !$timestamp) { + $this->fetch( + $_smarty_tpl->cached->filepath, + $_smarty_tpl->source->name, + $_smarty_tpl->cache_id, + $_smarty_tpl->compile_id, + $content, + $timestamp + ); + } + if (isset($content)) { + eval('?>' . $content); + $cached->content = null; + return true; + } + return false; + } + + /** + * Write the rendered template output to cache + * + * @param Smarty_Internal_Template $_template template object + * @param string $content content to cache + * + * @return boolean success + */ + public function writeCachedContent(Smarty_Internal_Template $_template, $content) + { + return $this->save( + $_template->cached->filepath, + $_template->source->name, + $_template->cache_id, + $_template->compile_id, + $_template->cache_lifetime, + $content + ); + } + + /** + * Read cached template from cache + * + * @param Smarty_Internal_Template $_template template object + * + * @return string|boolean content + */ + public function readCachedContent(Smarty_Internal_Template $_template) + { + $content = $_template->cached->content ? $_template->cached->content : null; + $timestamp = null; + if ($content === null) { + $timestamp = null; + $this->fetch( + $_template->cached->filepath, + $_template->source->name, + $_template->cache_id, + $_template->compile_id, + $content, + $timestamp + ); + } + if (isset($content)) { + return $content; + } + return false; + } + + /** + * Empty cache + * + * @param Smarty $smarty Smarty object + * @param integer $exp_time expiration time (number of seconds, not timestamp) + * + * @return integer number of cache files deleted + */ + public function clearAll(Smarty $smarty, $exp_time = null) + { + return $this->delete(null, null, null, $exp_time); + } + + /** + * Empty cache for a specific template + * + * @param Smarty $smarty Smarty object + * @param string $resource_name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param integer $exp_time expiration time (number of seconds, not timestamp) + * + * @return int number of cache files deleted + * @throws \SmartyException + */ + public function clear(Smarty $smarty, $resource_name, $cache_id, $compile_id, $exp_time) + { + $cache_name = null; + if (isset($resource_name)) { + $source = Smarty_Template_Source::load(null, $smarty, $resource_name); + if ($source->exists) { + $cache_name = $source->name; + } else { + return 0; + } + } + return $this->delete($cache_name, $cache_id, $compile_id, $exp_time); + } + + /** + * Check is cache is locked for this template + * + * @param Smarty $smarty Smarty object + * @param Smarty_Template_Cached $cached cached object + * + * @return boolean true or false if cache is locked + */ + public function hasLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + $id = $cached->lock_id; + $name = $cached->source->name . '.lock'; + $mtime = $this->fetchTimestamp($id, $name, $cached->cache_id, $cached->compile_id); + if ($mtime === null) { + $this->fetch($id, $name, $cached->cache_id, $cached->compile_id, $content, $mtime); + } + return $mtime && ($t = time()) - $mtime < $smarty->locking_timeout; + } + + /** + * Lock cache for this template + * + * @param Smarty $smarty Smarty object + * @param Smarty_Template_Cached $cached cached object + * + * @return bool|void + */ + public function acquireLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + $cached->is_locked = true; + $id = $cached->lock_id; + $name = $cached->source->name . '.lock'; + $this->save($id, $name, $cached->cache_id, $cached->compile_id, $smarty->locking_timeout, ''); + } + + /** + * Unlock cache for this template + * + * @param Smarty $smarty Smarty object + * @param Smarty_Template_Cached $cached cached object + * + * @return bool|void + */ + public function releaseLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + $cached->is_locked = false; + $name = $cached->source->name . '.lock'; + $this->delete($name, $cached->cache_id, $cached->compile_id, null); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php new file mode 100644 index 0000000000..59bf1d4a8d --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php @@ -0,0 +1,538 @@ +<?php +/** + * Smarty Internal Plugin + * + * @package Smarty + * @subpackage Cacher + */ + +/** + * Smarty Cache Handler Base for Key/Value Storage Implementations + * This class implements the functionality required to use simple key/value stores + * for hierarchical cache groups. key/value stores like memcache or APC do not support + * wildcards in keys, therefore a cache group cannot be cleared like "a|*" - which + * is no problem to filesystem and RDBMS implementations. + * This implementation is based on the concept of invalidation. While one specific cache + * can be identified and cleared, any range of caches cannot be identified. For this reason + * each level of the cache group hierarchy can have its own value in the store. These values + * are nothing but microtimes, telling us when a particular cache group was cleared for the + * last time. These keys are evaluated for every cache read to determine if the cache has + * been invalidated since it was created and should hence be treated as inexistent. + * Although deep hierarchies are possible, they are not recommended. Try to keep your + * cache groups as shallow as possible. Anything up 3-5 parents should be ok. So + * »a|b|c« is a good depth where »a|b|c|d|e|f|g|h|i|j|k« isn't. Try to join correlating + * cache groups: if your cache groups look somewhat like »a|b|$page|$items|$whatever« + * consider using »a|b|c|$page-$items-$whatever« instead. + * + * @package Smarty + * @subpackage Cacher + * @author Rodney Rehm + */ +abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource +{ + /** + * cache for contents + * + * @var array + */ + protected $contents = array(); + + /** + * cache for timestamps + * + * @var array + */ + protected $timestamps = array(); + + /** + * populate Cached Object with meta data from Resource + * + * @param Smarty_Template_Cached $cached cached object + * @param Smarty_Internal_Template $_template template object + * + * @return void + */ + public function populate(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template) + { + $cached->filepath = $_template->source->uid . '#' . $this->sanitize($cached->source->resource) . '#' . + $this->sanitize($cached->cache_id) . '#' . $this->sanitize($cached->compile_id); + $this->populateTimestamp($cached); + } + + /** + * populate Cached Object with timestamp and exists from Resource + * + * @param Smarty_Template_Cached $cached cached object + * + * @return void + */ + public function populateTimestamp(Smarty_Template_Cached $cached) + { + if (!$this->fetch( + $cached->filepath, + $cached->source->name, + $cached->cache_id, + $cached->compile_id, + $content, + $timestamp, + $cached->source->uid + ) + ) { + return; + } + $cached->content = $content; + $cached->timestamp = (int)$timestamp; + $cached->exists = !!$cached->timestamp; + } + + /** + * Read the cached template and process the header + * + * @param \Smarty_Internal_Template $_smarty_tpl do not change variable name, is used by compiled template + * @param Smarty_Template_Cached $cached cached object + * @param boolean $update flag if called because cache update + * + * @return boolean true or false if the cached content does not exist + */ + public function process( + Smarty_Internal_Template $_smarty_tpl, + Smarty_Template_Cached $cached = null, + $update = false + ) { + if (!$cached) { + $cached = $_smarty_tpl->cached; + } + $content = $cached->content ? $cached->content : null; + $timestamp = $cached->timestamp ? $cached->timestamp : null; + if ($content === null || !$timestamp) { + if (!$this->fetch( + $_smarty_tpl->cached->filepath, + $_smarty_tpl->source->name, + $_smarty_tpl->cache_id, + $_smarty_tpl->compile_id, + $content, + $timestamp, + $_smarty_tpl->source->uid + ) + ) { + return false; + } + } + if (isset($content)) { + eval('?>' . $content); + return true; + } + return false; + } + + /** + * Write the rendered template output to cache + * + * @param Smarty_Internal_Template $_template template object + * @param string $content content to cache + * + * @return boolean success + */ + public function writeCachedContent(Smarty_Internal_Template $_template, $content) + { + $this->addMetaTimestamp($content); + return $this->write(array($_template->cached->filepath => $content), $_template->cache_lifetime); + } + + /** + * Read cached template from cache + * + * @param Smarty_Internal_Template $_template template object + * + * @return string|false content + */ + public function readCachedContent(Smarty_Internal_Template $_template) + { + $content = $_template->cached->content ? $_template->cached->content : null; + $timestamp = null; + if ($content === null) { + if (!$this->fetch( + $_template->cached->filepath, + $_template->source->name, + $_template->cache_id, + $_template->compile_id, + $content, + $timestamp, + $_template->source->uid + ) + ) { + return false; + } + } + if (isset($content)) { + return $content; + } + return false; + } + + /** + * Empty cache + * {@internal the $exp_time argument is ignored altogether }} + * + * @param Smarty $smarty Smarty object + * @param integer $exp_time expiration time [being ignored] + * + * @return integer number of cache files deleted [always -1] + * @uses purge() to clear the whole store + * @uses invalidate() to mark everything outdated if purge() is inapplicable + */ + public function clearAll(Smarty $smarty, $exp_time = null) + { + if (!$this->purge()) { + $this->invalidate(null); + } + return -1; + } + + /** + * Empty cache for a specific template + * {@internal the $exp_time argument is ignored altogether}} + * + * @param Smarty $smarty Smarty object + * @param string $resource_name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param integer $exp_time expiration time [being ignored] + * + * @return int number of cache files deleted [always -1] + * @throws \SmartyException + * @uses buildCachedFilepath() to generate the CacheID + * @uses invalidate() to mark CacheIDs parent chain as outdated + * @uses delete() to remove CacheID from cache + */ + public function clear(Smarty $smarty, $resource_name, $cache_id, $compile_id, $exp_time) + { + $uid = $this->getTemplateUid($smarty, $resource_name); + $cid = $uid . '#' . $this->sanitize($resource_name) . '#' . $this->sanitize($cache_id) . '#' . + $this->sanitize($compile_id); + $this->delete(array($cid)); + $this->invalidate($cid, $resource_name, $cache_id, $compile_id, $uid); + return -1; + } + + /** + * Get template's unique ID + * + * @param Smarty $smarty Smarty object + * @param string $resource_name template name + * + * @return string filepath of cache file + * @throws \SmartyException + */ + protected function getTemplateUid(Smarty $smarty, $resource_name) + { + if (isset($resource_name)) { + $source = Smarty_Template_Source::load(null, $smarty, $resource_name); + if ($source->exists) { + return $source->uid; + } + } + return ''; + } + + /** + * Sanitize CacheID components + * + * @param string $string CacheID component to sanitize + * + * @return string sanitized CacheID component + */ + protected function sanitize($string) + { + $string = trim($string, '|'); + if (!$string) { + return ''; + } + return preg_replace('#[^\w\|]+#S', '_', $string); + } + + /** + * Fetch and prepare a cache object. + * + * @param string $cid CacheID to fetch + * @param string $resource_name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param string $content cached content + * @param integer &$timestamp cached timestamp (epoch) + * @param string $resource_uid resource's uid + * + * @return boolean success + */ + protected function fetch( + $cid, + $resource_name = null, + $cache_id = null, + $compile_id = null, + &$content = null, + &$timestamp = null, + $resource_uid = null + ) { + $t = $this->read(array($cid)); + $content = !empty($t[ $cid ]) ? $t[ $cid ] : null; + $timestamp = null; + if ($content && ($timestamp = $this->getMetaTimestamp($content))) { + $invalidated = + $this->getLatestInvalidationTimestamp($cid, $resource_name, $cache_id, $compile_id, $resource_uid); + if ($invalidated > $timestamp) { + $timestamp = null; + $content = null; + } + } + return !!$content; + } + + /** + * Add current microtime to the beginning of $cache_content + * {@internal the header uses 8 Bytes, the first 4 Bytes are the seconds, the second 4 Bytes are the microseconds}} + * + * @param string &$content the content to be cached + */ + protected function addMetaTimestamp(&$content) + { + $mt = explode(' ', microtime()); + $ts = pack('NN', $mt[ 1 ], (int)($mt[ 0 ] * 100000000)); + $content = $ts . $content; + } + + /** + * Extract the timestamp the $content was cached + * + * @param string &$content the cached content + * + * @return float the microtime the content was cached + */ + protected function getMetaTimestamp(&$content) + { + extract(unpack('N1s/N1m/a*content', $content)); + /** + * @var int $s + * @var int $m + */ + return $s + ($m / 100000000); + } + + /** + * Invalidate CacheID + * + * @param string $cid CacheID + * @param string $resource_name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param string $resource_uid source's uid + * + * @return void + */ + protected function invalidate( + $cid = null, + $resource_name = null, + $cache_id = null, + $compile_id = null, + $resource_uid = null + ) { + $now = microtime(true); + $key = null; + // invalidate everything + if (!$resource_name && !$cache_id && !$compile_id) { + $key = 'IVK#ALL'; + } // invalidate all caches by template + else { + if ($resource_name && !$cache_id && !$compile_id) { + $key = 'IVK#TEMPLATE#' . $resource_uid . '#' . $this->sanitize($resource_name); + } // invalidate all caches by cache group + else { + if (!$resource_name && $cache_id && !$compile_id) { + $key = 'IVK#CACHE#' . $this->sanitize($cache_id); + } // invalidate all caches by compile id + else { + if (!$resource_name && !$cache_id && $compile_id) { + $key = 'IVK#COMPILE#' . $this->sanitize($compile_id); + } // invalidate by combination + else { + $key = 'IVK#CID#' . $cid; + } + } + } + } + $this->write(array($key => $now)); + } + + /** + * Determine the latest timestamp known to the invalidation chain + * + * @param string $cid CacheID to determine latest invalidation timestamp of + * @param string $resource_name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param string $resource_uid source's filepath + * + * @return float the microtime the CacheID was invalidated + */ + protected function getLatestInvalidationTimestamp( + $cid, + $resource_name = null, + $cache_id = null, + $compile_id = null, + $resource_uid = null + ) { + // abort if there is no CacheID + if (false && !$cid) { + return 0; + } + // abort if there are no InvalidationKeys to check + if (!($_cid = $this->listInvalidationKeys($cid, $resource_name, $cache_id, $compile_id, $resource_uid))) { + return 0; + } + // there are no InValidationKeys + if (!($values = $this->read($_cid))) { + return 0; + } + // make sure we're dealing with floats + $values = array_map('floatval', $values); + return max($values); + } + + /** + * Translate a CacheID into the list of applicable InvalidationKeys. + * Splits 'some|chain|into|an|array' into array( '#clearAll#', 'some', 'some|chain', 'some|chain|into', ... ) + * + * @param string $cid CacheID to translate + * @param string $resource_name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param string $resource_uid source's filepath + * + * @return array list of InvalidationKeys + * @uses $invalidationKeyPrefix to prepend to each InvalidationKey + */ + protected function listInvalidationKeys( + $cid, + $resource_name = null, + $cache_id = null, + $compile_id = null, + $resource_uid = null + ) { + $t = array('IVK#ALL'); + $_name = $_compile = '#'; + if ($resource_name) { + $_name .= $resource_uid . '#' . $this->sanitize($resource_name); + $t[] = 'IVK#TEMPLATE' . $_name; + } + if ($compile_id) { + $_compile .= $this->sanitize($compile_id); + $t[] = 'IVK#COMPILE' . $_compile; + } + $_name .= '#'; + $cid = trim($cache_id, '|'); + if (!$cid) { + return $t; + } + $i = 0; + while (true) { + // determine next delimiter position + $i = strpos($cid, '|', $i); + // add complete CacheID if there are no more delimiters + if ($i === false) { + $t[] = 'IVK#CACHE#' . $cid; + $t[] = 'IVK#CID' . $_name . $cid . $_compile; + $t[] = 'IVK#CID' . $_name . $_compile; + break; + } + $part = substr($cid, 0, $i); + // add slice to list + $t[] = 'IVK#CACHE#' . $part; + $t[] = 'IVK#CID' . $_name . $part . $_compile; + // skip past delimiter position + $i++; + } + return $t; + } + + /** + * Check is cache is locked for this template + * + * @param Smarty $smarty Smarty object + * @param Smarty_Template_Cached $cached cached object + * + * @return boolean true or false if cache is locked + */ + public function hasLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + $key = 'LOCK#' . $cached->filepath; + $data = $this->read(array($key)); + return $data && time() - $data[ $key ] < $smarty->locking_timeout; + } + + /** + * Lock cache for this template + * + * @param Smarty $smarty Smarty object + * @param Smarty_Template_Cached $cached cached object + * + * @return bool|void + */ + public function acquireLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + $cached->is_locked = true; + $key = 'LOCK#' . $cached->filepath; + $this->write(array($key => time()), $smarty->locking_timeout); + } + + /** + * Unlock cache for this template + * + * @param Smarty $smarty Smarty object + * @param Smarty_Template_Cached $cached cached object + * + * @return bool|void + */ + public function releaseLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + $cached->is_locked = false; + $key = 'LOCK#' . $cached->filepath; + $this->delete(array($key)); + } + + /** + * Read values for a set of keys from cache + * + * @param array $keys list of keys to fetch + * + * @return array list of values with the given keys used as indexes + */ + abstract protected function read(array $keys); + + /** + * Save values for a set of keys to cache + * + * @param array $keys list of values to save + * @param int $expire expiration time + * + * @return boolean true on success, false on failure + */ + abstract protected function write(array $keys, $expire = null); + + /** + * Remove values from cache + * + * @param array $keys list of keys to delete + * + * @return boolean true on success, false on failure + */ + abstract protected function delete(array $keys); + + /** + * Remove *all* values from cache + * + * @return boolean true on success, false on failure + */ + protected function purge() + { + return false; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_data.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_data.php new file mode 100644 index 0000000000..2545ed3a85 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_data.php @@ -0,0 +1,68 @@ +<?php +/** + * Smarty Plugin Data + * This file contains the data object + * + * @package Smarty + * @subpackage Template + * @author Uwe Tews + */ + +/** + * class for the Smarty data object + * The Smarty data object will hold Smarty variables in the current scope + * + * @package Smarty + * @subpackage Template + */ +class Smarty_Data extends Smarty_Internal_Data +{ + /** + * Counter + * + * @var int + */ + public static $count = 0; + + /** + * Data block name + * + * @var string + */ + public $dataObjectName = ''; + + /** + * Smarty object + * + * @var Smarty + */ + public $smarty = null; + + /** + * create Smarty data object + * + * @param Smarty|array $_parent parent template + * @param Smarty|Smarty_Internal_Template $smarty global smarty instance + * @param string $name optional data block name + * + * @throws SmartyException + */ + public function __construct($_parent = null, $smarty = null, $name = null) + { + parent::__construct(); + self::$count++; + $this->dataObjectName = 'Data_object ' . (isset($name) ? "'{$name}'" : self::$count); + $this->smarty = $smarty; + if (is_object($_parent)) { + // when object set up back pointer + $this->parent = $_parent; + } elseif (is_array($_parent)) { + // set up variable values + foreach ($_parent as $_key => $_val) { + $this->tpl_vars[ $_key ] = new Smarty_Variable($_val); + } + } elseif ($_parent !== null) { + throw new SmartyException('Wrong type for template variables'); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_block.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_block.php new file mode 100644 index 0000000000..9956d642ba --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_block.php @@ -0,0 +1,90 @@ +<?php + +/** + * Smarty {block} tag class + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Block +{ + /** + * Block name + * + * @var string + */ + public $name = ''; + + /** + * Hide attribute + * + * @var bool + */ + public $hide = false; + + /** + * Append attribute + * + * @var bool + */ + public $append = false; + + /** + * prepend attribute + * + * @var bool + */ + public $prepend = false; + + /** + * Block calls $smarty.block.child + * + * @var bool + */ + public $callsChild = false; + + /** + * Inheritance child block + * + * @var Smarty_Internal_Block|null + */ + public $child = null; + + /** + * Inheritance calling parent block + * + * @var Smarty_Internal_Block|null + */ + public $parent = null; + + /** + * Inheritance Template index + * + * @var int + */ + public $tplIndex = 0; + + /** + * Smarty_Internal_Block constructor. + * - if outer level {block} of child template ($state === 1) save it as child root block + * - otherwise process inheritance and render + * + * @param string $name block name + * @param int|null $tplIndex index of outer level {block} if nested + */ + public function __construct($name, $tplIndex) + { + $this->name = $name; + $this->tplIndex = $tplIndex; + } + + /** + * Compiled block code overloaded by {block} class + * + * @param \Smarty_Internal_Template $tpl + */ + public function callBlock(Smarty_Internal_Template $tpl) + { + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php new file mode 100644 index 0000000000..61618449da --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php @@ -0,0 +1,239 @@ +<?php +/** + * Smarty Internal Plugin CacheResource File + * + * @package Smarty + * @subpackage Cacher + * @author Uwe Tews + * @author Rodney Rehm + */ + +/** + * This class does contain all necessary methods for the HTML cache on file system + * Implements the file system as resource for the HTML cache Version ussing nocache inserts. + * + * @package Smarty + * @subpackage Cacher + */ +class Smarty_Internal_CacheResource_File extends Smarty_CacheResource +{ + /** + * populate Cached Object with meta data from Resource + * + * @param Smarty_Template_Cached $cached cached object + * @param Smarty_Internal_Template $_template template object + * + * @return void + */ + public function populate(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template) + { + $source = &$_template->source; + $smarty = &$_template->smarty; + $_compile_dir_sep = $smarty->use_sub_dirs ? DIRECTORY_SEPARATOR : '^'; + $_filepath = sha1($source->uid . $smarty->_joined_template_dir); + $cached->filepath = $smarty->getCacheDir(); + if (isset($_template->cache_id)) { + $cached->filepath .= preg_replace( + array( + '![^\w|]+!', + '![|]+!' + ), + array( + '_', + $_compile_dir_sep + ), + $_template->cache_id + ) . $_compile_dir_sep; + } + if (isset($_template->compile_id)) { + $cached->filepath .= preg_replace('![^\w]+!', '_', $_template->compile_id) . $_compile_dir_sep; + } + // if use_sub_dirs, break file into directories + if ($smarty->use_sub_dirs) { + $cached->filepath .= $_filepath[ 0 ] . $_filepath[ 1 ] . DIRECTORY_SEPARATOR . $_filepath[ 2 ] . + $_filepath[ 3 ] . + DIRECTORY_SEPARATOR . + $_filepath[ 4 ] . $_filepath[ 5 ] . DIRECTORY_SEPARATOR; + } + $cached->filepath .= $_filepath; + $basename = $source->handler->getBasename($source); + if (!empty($basename)) { + $cached->filepath .= '.' . $basename; + } + if ($smarty->cache_locking) { + $cached->lock_id = $cached->filepath . '.lock'; + } + $cached->filepath .= '.php'; + $cached->timestamp = $cached->exists = is_file($cached->filepath); + if ($cached->exists) { + $cached->timestamp = filemtime($cached->filepath); + } + } + + /** + * populate Cached Object with timestamp and exists from Resource + * + * @param Smarty_Template_Cached $cached cached object + * + * @return void + */ + public function populateTimestamp(Smarty_Template_Cached $cached) + { + $cached->timestamp = $cached->exists = is_file($cached->filepath); + if ($cached->exists) { + $cached->timestamp = filemtime($cached->filepath); + } + } + + /** + * Read the cached template and process its header + * + * @param \Smarty_Internal_Template $_smarty_tpl do not change variable name, is used by compiled template + * @param Smarty_Template_Cached $cached cached object + * @param bool $update flag if called because cache update + * + * @return boolean true or false if the cached content does not exist + */ + public function process( + Smarty_Internal_Template $_smarty_tpl, + Smarty_Template_Cached $cached = null, + $update = false + ) { + $_smarty_tpl->cached->valid = false; + if ($update && defined('HHVM_VERSION')) { + eval('?>' . file_get_contents($_smarty_tpl->cached->filepath)); + return true; + } else { + return @include $_smarty_tpl->cached->filepath; + } + } + + /** + * Write the rendered template output to cache + * + * @param Smarty_Internal_Template $_template template object + * @param string $content content to cache + * + * @return bool success + * @throws \SmartyException + */ + public function writeCachedContent(Smarty_Internal_Template $_template, $content) + { + if ($_template->smarty->ext->_writeFile->writeFile( + $_template->cached->filepath, + $content, + $_template->smarty + ) === true + ) { + if (function_exists('opcache_invalidate') + && (!function_exists('ini_get') || strlen(ini_get('opcache.restrict_api'))) < 1 + ) { + opcache_invalidate($_template->cached->filepath, true); + } elseif (function_exists('apc_compile_file')) { + apc_compile_file($_template->cached->filepath); + } + $cached = $_template->cached; + $cached->timestamp = $cached->exists = is_file($cached->filepath); + if ($cached->exists) { + $cached->timestamp = filemtime($cached->filepath); + return true; + } + } + return false; + } + + /** + * Read cached template from cache + * + * @param Smarty_Internal_Template $_template template object + * + * @return string content + */ + public function readCachedContent(Smarty_Internal_Template $_template) + { + if (is_file($_template->cached->filepath)) { + return file_get_contents($_template->cached->filepath); + } + return false; + } + + /** + * Empty cache + * + * @param Smarty $smarty + * @param integer $exp_time expiration time (number of seconds, not timestamp) + * + * @return integer number of cache files deleted + */ + public function clearAll(Smarty $smarty, $exp_time = null) + { + return $smarty->ext->_cacheResourceFile->clear($smarty, null, null, null, $exp_time); + } + + /** + * Empty cache for a specific template + * + * @param Smarty $smarty + * @param string $resource_name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param integer $exp_time expiration time (number of seconds, not timestamp) + * + * @return integer number of cache files deleted + */ + public function clear(Smarty $smarty, $resource_name, $cache_id, $compile_id, $exp_time) + { + return $smarty->ext->_cacheResourceFile->clear($smarty, $resource_name, $cache_id, $compile_id, $exp_time); + } + + /** + * Check is cache is locked for this template + * + * @param Smarty $smarty Smarty object + * @param Smarty_Template_Cached $cached cached object + * + * @return boolean true or false if cache is locked + */ + public function hasLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + if (version_compare(PHP_VERSION, '5.3.0', '>=')) { + clearstatcache(true, $cached->lock_id); + } else { + clearstatcache(); + } + if (is_file($cached->lock_id)) { + $t = filemtime($cached->lock_id); + return $t && (time() - $t < $smarty->locking_timeout); + } else { + return false; + } + } + + /** + * Lock cache for this template + * + * @param Smarty $smarty Smarty object + * @param Smarty_Template_Cached $cached cached object + * + * @return bool|void + */ + public function acquireLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + $cached->is_locked = true; + touch($cached->lock_id); + } + + /** + * Unlock cache for this template + * + * @param Smarty $smarty Smarty object + * @param Smarty_Template_Cached $cached cached object + * + * @return bool|void + */ + public function releaseLock(Smarty $smarty, Smarty_Template_Cached $cached) + { + $cached->is_locked = false; + @unlink($cached->lock_id); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_append.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_append.php new file mode 100644 index 0000000000..1a9befbf6c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_append.php @@ -0,0 +1,52 @@ +<?php +/** + * Smarty Internal Plugin Compile Append + * Compiles the {append} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Append Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Append extends Smarty_Internal_Compile_Assign +{ + /** + * Compiles code for the {append} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + // the following must be assigned at runtime because it will be overwritten in parent class + $this->required_attributes = array('var', 'value'); + $this->shorttag_order = array('var', 'value'); + $this->optional_attributes = array('scope', 'index'); + $this->mapCache = array(); + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + // map to compile assign attributes + if (isset($_attr[ 'index' ])) { + $_params[ 'smarty_internal_index' ] = '[' . $_attr[ 'index' ] . ']'; + unset($_attr[ 'index' ]); + } else { + $_params[ 'smarty_internal_index' ] = '[]'; + } + $_new_attr = array(); + foreach ($_attr as $key => $value) { + $_new_attr[] = array($key => $value); + } + // call compile assign + return parent::compile($_new_attr, $compiler, $_params); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_assign.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_assign.php new file mode 100644 index 0000000000..1f0ab9b7d4 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_assign.php @@ -0,0 +1,96 @@ +<?php +/** + * Smarty Internal Plugin Compile Assign + * Compiles the {assign} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Assign Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Assign extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $option_flags = array('nocache', 'noscope'); + + /** + * Valid scope names + * + * @var array + */ + public $valid_scopes = array( + 'local' => Smarty::SCOPE_LOCAL, 'parent' => Smarty::SCOPE_PARENT, + 'root' => Smarty::SCOPE_ROOT, 'global' => Smarty::SCOPE_GLOBAL, + 'tpl_root' => Smarty::SCOPE_TPL_ROOT, 'smarty' => Smarty::SCOPE_SMARTY + ); + + /** + * Compiles code for the {assign} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + // the following must be assigned at runtime because it will be overwritten in Smarty_Internal_Compile_Append + $this->required_attributes = array('var', 'value'); + $this->shorttag_order = array('var', 'value'); + $this->optional_attributes = array('scope'); + $this->mapCache = array(); + $_nocache = false; + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + // nocache ? + if ($_var = $compiler->getId($_attr[ 'var' ])) { + $_var = "'{$_var}'"; + } else { + $_var = $_attr[ 'var' ]; + } + if ($compiler->tag_nocache || $compiler->nocache) { + $_nocache = true; + // create nocache var to make it know for further compiling + $compiler->setNocacheInVariable($_attr[ 'var' ]); + } + // scope setup + if ($_attr[ 'noscope' ]) { + $_scope = -1; + } else { + $_scope = $compiler->convertScope($_attr, $this->valid_scopes); + } + // optional parameter + $_params = ''; + if ($_nocache || $_scope) { + $_params .= ' ,' . var_export($_nocache, true); + } + if ($_scope) { + $_params .= ' ,' . $_scope; + } + if (isset($parameter[ 'smarty_internal_index' ])) { + $output = + "<?php \$_tmp_array = isset(\$_smarty_tpl->tpl_vars[{$_var}]) ? \$_smarty_tpl->tpl_vars[{$_var}]->value : array();\n"; + $output .= "if (!(is_array(\$_tmp_array) || \$_tmp_array instanceof ArrayAccess)) {\n"; + $output .= "settype(\$_tmp_array, 'array');\n"; + $output .= "}\n"; + $output .= "\$_tmp_array{$parameter['smarty_internal_index']} = {$_attr['value']};\n"; + $output .= "\$_smarty_tpl->_assignInScope({$_var}, \$_tmp_array{$_params});?>"; + } else { + $output = "<?php \$_smarty_tpl->_assignInScope({$_var}, {$_attr['value']}{$_params});?>"; + } + return $output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php new file mode 100644 index 0000000000..cbaccd2b30 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php @@ -0,0 +1,189 @@ +<?php +/** + * This file is part of Smarty. + * + * (c) 2015 Uwe Tews + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Smarty Internal Plugin Compile Block Class + * + * @author Uwe Tews <uwe.tews@googlemail.com> + */ +class Smarty_Internal_Compile_Block extends Smarty_Internal_Compile_Shared_Inheritance +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('name'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('name'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $option_flags = array('hide', 'nocache'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('assign'); + + /** + * Compiles code for the {block} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + if (!isset($compiler->_cache[ 'blockNesting' ])) { + $compiler->_cache[ 'blockNesting' ] = 0; + } + if ($compiler->_cache[ 'blockNesting' ] === 0) { + // make sure that inheritance gets initialized in template code + $this->registerInit($compiler); + $this->option_flags = array('hide', 'nocache', 'append', 'prepend'); + } else { + $this->option_flags = array('hide', 'nocache'); + } + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + ++$compiler->_cache[ 'blockNesting' ]; + $_className = 'Block_' . preg_replace('![^\w]+!', '_', uniqid(mt_rand(), true)); + $compiler->_cache[ 'blockName' ][ $compiler->_cache[ 'blockNesting' ] ] = $_attr[ 'name' ]; + $compiler->_cache[ 'blockClass' ][ $compiler->_cache[ 'blockNesting' ] ] = $_className; + $compiler->_cache[ 'blockParams' ][ $compiler->_cache[ 'blockNesting' ] ] = array(); + $compiler->_cache[ 'blockParams' ][ 1 ][ 'subBlocks' ][ trim($_attr[ 'name' ], '"\'') ][] = $_className; + $this->openTag( + $compiler, + 'block', + array( + $_attr, $compiler->nocache, $compiler->parser->current_buffer, + $compiler->template->compiled->has_nocache_code, + $compiler->template->caching + ) + ); + $compiler->saveRequiredPlugins(true); + $compiler->nocache = $compiler->nocache | $compiler->tag_nocache; + $compiler->parser->current_buffer = new Smarty_Internal_ParseTree_Template(); + $compiler->template->compiled->has_nocache_code = false; + $compiler->suppressNocacheProcessing = true; + } +} + +/** + * Smarty Internal Plugin Compile BlockClose Class + */ +class Smarty_Internal_Compile_Blockclose extends Smarty_Internal_Compile_Shared_Inheritance +{ + /** + * Compiles code for the {/block} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return bool true + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + list($_attr, $_nocache, $_buffer, $_has_nocache_code, $_caching) = $this->closeTag($compiler, array('block')); + // init block parameter + $_block = $compiler->_cache[ 'blockParams' ][ $compiler->_cache[ 'blockNesting' ] ]; + unset($compiler->_cache[ 'blockParams' ][ $compiler->_cache[ 'blockNesting' ] ]); + $_name = $_attr[ 'name' ]; + $_assign = isset($_attr[ 'assign' ]) ? $_attr[ 'assign' ] : null; + unset($_attr[ 'assign' ], $_attr[ 'name' ]); + foreach ($_attr as $name => $stat) { + if ((is_bool($stat) && $stat !== false) || (!is_bool($stat) && $stat !== 'false')) { + $_block[ $name ] = 'true'; + } + } + $_className = $compiler->_cache[ 'blockClass' ][ $compiler->_cache[ 'blockNesting' ] ]; + // get compiled block code + $_functionCode = $compiler->parser->current_buffer; + // setup buffer for template function code + $compiler->parser->current_buffer = new Smarty_Internal_ParseTree_Template(); + $output = "<?php\n"; + $output .= $compiler->cStyleComment(" {block {$_name}} ") . "\n"; + $output .= "class {$_className} extends Smarty_Internal_Block\n"; + $output .= "{\n"; + foreach ($_block as $property => $value) { + $output .= "public \${$property} = " . var_export($value, true) . ";\n"; + } + $output .= "public function callBlock(Smarty_Internal_Template \$_smarty_tpl) {\n"; + $output .= $compiler->compileRequiredPlugins(); + $compiler->restoreRequiredPlugins(); + if ($compiler->template->compiled->has_nocache_code) { + $output .= "\$_smarty_tpl->cached->hashes['{$compiler->template->compiled->nocache_hash}'] = true;\n"; + } + if (isset($_assign)) { + $output .= "ob_start();\n"; + } + $output .= "?>\n"; + $compiler->parser->current_buffer->append_subtree( + $compiler->parser, + new Smarty_Internal_ParseTree_Tag( + $compiler->parser, + $output + ) + ); + $compiler->parser->current_buffer->append_subtree($compiler->parser, $_functionCode); + $output = "<?php\n"; + if (isset($_assign)) { + $output .= "\$_smarty_tpl->assign({$_assign}, ob_get_clean());\n"; + } + $output .= "}\n"; + $output .= "}\n"; + $output .= $compiler->cStyleComment(" {/block {$_name}} ") . "\n\n"; + $output .= "?>\n"; + $compiler->parser->current_buffer->append_subtree( + $compiler->parser, + new Smarty_Internal_ParseTree_Tag( + $compiler->parser, + $output + ) + ); + $compiler->blockOrFunctionCode .= $compiler->parser->current_buffer->to_smarty_php($compiler->parser); + $compiler->parser->current_buffer = new Smarty_Internal_ParseTree_Template(); + // restore old status + $compiler->template->compiled->has_nocache_code = $_has_nocache_code; + $compiler->tag_nocache = $compiler->nocache; + $compiler->nocache = $_nocache; + $compiler->parser->current_buffer = $_buffer; + $output = "<?php \n"; + if ($compiler->_cache[ 'blockNesting' ] === 1) { + $output .= "\$_smarty_tpl->inheritance->instanceBlock(\$_smarty_tpl, '$_className', $_name);\n"; + } else { + $output .= "\$_smarty_tpl->inheritance->instanceBlock(\$_smarty_tpl, '$_className', $_name, \$this->tplIndex);\n"; + } + $output .= "?>\n"; + --$compiler->_cache[ 'blockNesting' ]; + if ($compiler->_cache[ 'blockNesting' ] === 0) { + unset($compiler->_cache[ 'blockNesting' ]); + } + $compiler->has_code = true; + $compiler->suppressNocacheProcessing = true; + return $output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_child.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_child.php new file mode 100644 index 0000000000..588d18628a --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_child.php @@ -0,0 +1,24 @@ +<?php +/** + * This file is part of Smarty. + * + * (c) 2015 Uwe Tews + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Smarty Internal Plugin Compile Block Child Class + * + * @author Uwe Tews <uwe.tews@googlemail.com> + */ +class Smarty_Internal_Compile_Block_Child extends Smarty_Internal_Compile_Child +{ + /** + * Tag name + * + * @var string + */ + public $tag = 'block_child'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_parent.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_parent.php new file mode 100644 index 0000000000..97f11ca43a --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block_parent.php @@ -0,0 +1,31 @@ +<?php +/** + * This file is part of Smarty. + * + * (c) 2015 Uwe Tews + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Smarty Internal Plugin Compile Block Parent Class + * + * @author Uwe Tews <uwe.tews@googlemail.com> + */ +class Smarty_Internal_Compile_Block_Parent extends Smarty_Internal_Compile_Child +{ + /** + * Tag name + * + * @var string + */ + public $tag = 'block_parent'; + + /** + * Block type + * + * @var string + */ + public $blockType = 'Parent'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_break.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_break.php new file mode 100644 index 0000000000..1ee8d75d7e --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_break.php @@ -0,0 +1,117 @@ +<?php +/** + * Smarty Internal Plugin Compile Break + * Compiles the {break} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Break Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Break extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('levels'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('levels'); + + /** + * Tag name may be overloaded by Smarty_Internal_Compile_Continue + * + * @var string + */ + public $tag = 'break'; + + /** + * Compiles code for the {break} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + list($levels, $foreachLevels) = $this->checkLevels($args, $compiler); + $output = "<?php "; + if ($foreachLevels > 0 && $this->tag === 'continue') { + $foreachLevels--; + } + if ($foreachLevels > 0) { + /* @var Smarty_Internal_Compile_Foreach $foreachCompiler */ + $foreachCompiler = $compiler->getTagCompiler('foreach'); + $output .= $foreachCompiler->compileRestore($foreachLevels); + } + $output .= "{$this->tag} {$levels};?>"; + return $output; + } + + /** + * check attributes and return array of break and foreach levels + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return array + * @throws \SmartyCompilerException + */ + public function checkLevels($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + static $_is_loopy = array('for' => true, 'foreach' => true, 'while' => true, 'section' => true); + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + if ($_attr[ 'nocache' ] === true) { + $compiler->trigger_template_error('nocache option not allowed', null, true); + } + if (isset($_attr[ 'levels' ])) { + if (!is_numeric($_attr[ 'levels' ])) { + $compiler->trigger_template_error('level attribute must be a numeric constant', null, true); + } + $levels = $_attr[ 'levels' ]; + } else { + $levels = 1; + } + $level_count = $levels; + $stack_count = count($compiler->_tag_stack) - 1; + $foreachLevels = 0; + $lastTag = ''; + while ($level_count > 0 && $stack_count >= 0) { + if (isset($_is_loopy[ $compiler->_tag_stack[ $stack_count ][ 0 ] ])) { + $lastTag = $compiler->_tag_stack[ $stack_count ][ 0 ]; + if ($level_count === 0) { + break; + } + $level_count--; + if ($compiler->_tag_stack[ $stack_count ][ 0 ] === 'foreach') { + $foreachLevels++; + } + } + $stack_count--; + } + if ($level_count !== 0) { + $compiler->trigger_template_error("cannot {$this->tag} {$levels} level(s)", null, true); + } + if ($lastTag === 'foreach' && $this->tag === 'break' && $foreachLevels > 0) { + $foreachLevels--; + } + return array($levels, $foreachLevels); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_call.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_call.php new file mode 100644 index 0000000000..445cabc60d --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_call.php @@ -0,0 +1,89 @@ +<?php +/** + * Smarty Internal Plugin Compile Function_Call + * Compiles the calls of user defined tags defined by {function} + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Function_Call Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Call extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('name'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('name'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('_any'); + + /** + * Compiles the calls of user defined tags defined by {function} + * + * @param array $args array with attributes from parser + * @param object $compiler compiler object + * + * @return string compiled code + */ + public function compile($args, $compiler) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + // save possible attributes + if (isset($_attr[ 'assign' ])) { + // output will be stored in a smarty variable instead of being displayed + $_assign = $_attr[ 'assign' ]; + } + //$_name = trim($_attr['name'], "''"); + $_name = $_attr[ 'name' ]; + unset($_attr[ 'name' ], $_attr[ 'assign' ], $_attr[ 'nocache' ]); + // set flag (compiled code of {function} must be included in cache file + if (!$compiler->template->caching || $compiler->nocache || $compiler->tag_nocache) { + $_nocache = 'true'; + } else { + $_nocache = 'false'; + } + $_paramsArray = array(); + foreach ($_attr as $_key => $_value) { + if (is_int($_key)) { + $_paramsArray[] = "$_key=>$_value"; + } else { + $_paramsArray[] = "'$_key'=>$_value"; + } + } + $_params = 'array(' . implode(',', $_paramsArray) . ')'; + //$compiler->suppressNocacheProcessing = true; + // was there an assign attribute + if (isset($_assign)) { + $_output = + "<?php ob_start();\n\$_smarty_tpl->smarty->ext->_tplFunction->callTemplateFunction(\$_smarty_tpl, {$_name}, {$_params}, {$_nocache});\n\$_smarty_tpl->assign({$_assign}, ob_get_clean());?>\n"; + } else { + $_output = + "<?php \$_smarty_tpl->smarty->ext->_tplFunction->callTemplateFunction(\$_smarty_tpl, {$_name}, {$_params}, {$_nocache});?>\n"; + } + return $_output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php new file mode 100644 index 0000000000..a4ffbc9ea7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_capture.php @@ -0,0 +1,105 @@ +<?php +/** + * Smarty Internal Plugin Compile Capture + * Compiles the {capture} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Capture Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Capture extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('name'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('name', 'assign', 'append'); + + /** + * Compiles code for the {$smarty.capture.xxx} + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + */ + public static function compileSpecialVariable( + $args, + Smarty_Internal_TemplateCompilerBase $compiler, + $parameter = null + ) { + return '$_smarty_tpl->smarty->ext->_capture->getBuffer($_smarty_tpl' . + (isset($parameter[ 1 ]) ? ", {$parameter[ 1 ]})" : ')'); + } + + /** + * Compiles code for the {capture} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param null $parameter + * + * @return string compiled code + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter = null) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args, $parameter, 'capture'); + $buffer = isset($_attr[ 'name' ]) ? $_attr[ 'name' ] : "'default'"; + $assign = isset($_attr[ 'assign' ]) ? $_attr[ 'assign' ] : 'null'; + $append = isset($_attr[ 'append' ]) ? $_attr[ 'append' ] : 'null'; + $compiler->_cache[ 'capture_stack' ][] = array($compiler->nocache); + // maybe nocache because of nocache variables + $compiler->nocache = $compiler->nocache | $compiler->tag_nocache; + $_output = "<?php \$_smarty_tpl->smarty->ext->_capture->open(\$_smarty_tpl, $buffer, $assign, $append);?>"; + return $_output; + } +} + +/** + * Smarty Internal Plugin Compile Captureclose Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_CaptureClose extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {/capture} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param null $parameter + * + * @return string compiled code + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args, $parameter, '/capture'); + // must endblock be nocache? + if ($compiler->nocache) { + $compiler->tag_nocache = true; + } + list($compiler->nocache) = array_pop($compiler->_cache[ 'capture_stack' ]); + return "<?php \$_smarty_tpl->smarty->ext->_capture->close(\$_smarty_tpl);?>"; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_child.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_child.php new file mode 100644 index 0000000000..f728c18bf7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_child.php @@ -0,0 +1,79 @@ +<?php +/** + * This file is part of Smarty. + * + * (c) 2015 Uwe Tews + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Smarty Internal Plugin Compile Child Class + * + * @author Uwe Tews <uwe.tews@googlemail.com> + */ +class Smarty_Internal_Compile_Child extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('assign'); + + /** + * Tag name + * + * @var string + */ + public $tag = 'child'; + + /** + * Block type + * + * @var string + */ + public $blockType = 'Child'; + + /** + * Compiles code for the {child} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $tag = isset($parameter[ 0 ]) ? "'{$parameter[0]}'" : "'{{$this->tag}}'"; + if (!isset($compiler->_cache[ 'blockNesting' ])) { + $compiler->trigger_template_error( + "{$tag} used outside {block} tags ", + $compiler->parser->lex->taglineno + ); + } + $compiler->has_code = true; + $compiler->suppressNocacheProcessing = true; + if ($this->blockType === 'Child') { + $compiler->_cache[ 'blockParams' ][ $compiler->_cache[ 'blockNesting' ] ][ 'callsChild' ] = 'true'; + } + $_assign = isset($_attr[ 'assign' ]) ? $_attr[ 'assign' ] : null; + $output = "<?php \n"; + if (isset($_assign)) { + $output .= "ob_start();\n"; + } + $output .= '$_smarty_tpl->inheritance->call' . $this->blockType . '($_smarty_tpl, $this' . + ($this->blockType === 'Child' ? '' : ", {$tag}") . ");\n"; + if (isset($_assign)) { + $output .= "\$_smarty_tpl->assign({$_assign}, ob_get_clean());\n"; + } + $output .= "?>\n"; + return $output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_config_load.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_config_load.php new file mode 100644 index 0000000000..8fe64ee10f --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_config_load.php @@ -0,0 +1,96 @@ +<?php +/** + * Smarty Internal Plugin Compile Config Load + * Compiles the {config load} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Config Load Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Config_Load extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('file'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('file', 'section'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('section', 'scope'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $option_flags = array('nocache', 'noscope'); + + /** + * Valid scope names + * + * @var array + */ + public $valid_scopes = array( + 'local' => Smarty::SCOPE_LOCAL, 'parent' => Smarty::SCOPE_PARENT, + 'root' => Smarty::SCOPE_ROOT, 'tpl_root' => Smarty::SCOPE_TPL_ROOT, + 'smarty' => Smarty::SCOPE_SMARTY, 'global' => Smarty::SCOPE_SMARTY + ); + + /** + * Compiles code for the {config_load} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + if ($_attr[ 'nocache' ] === true) { + $compiler->trigger_template_error('nocache option not allowed', null, true); + } + // save possible attributes + $conf_file = $_attr[ 'file' ]; + if (isset($_attr[ 'section' ])) { + $section = $_attr[ 'section' ]; + } else { + $section = 'null'; + } + // scope setup + if ($_attr[ 'noscope' ]) { + $_scope = -1; + } else { + $_scope = $compiler->convertScope($_attr, $this->valid_scopes); + } + // create config object + $_output = + "<?php\n\$_smarty_tpl->smarty->ext->configLoad->_loadConfigFile(\$_smarty_tpl, {$conf_file}, {$section}, {$_scope});\n?>\n"; + return $_output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php new file mode 100644 index 0000000000..e545728ee8 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php @@ -0,0 +1,25 @@ +<?php +/** + * Smarty Internal Plugin Compile Continue + * Compiles the {continue} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Continue Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Continue extends Smarty_Internal_Compile_Break +{ + /** + * Tag name + * + * @var string + */ + public $tag = 'continue'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_debug.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_debug.php new file mode 100644 index 0000000000..7994166890 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_debug.php @@ -0,0 +1,40 @@ +<?php +/** + * Smarty Internal Plugin Compile Debug + * Compiles the {debug} tag. + * It opens a window the the Smarty Debugging Console. + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Debug Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Debug extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {debug} tag + * + * @param array $args array with attributes from parser + * @param object $compiler compiler object + * + * @return string compiled code + */ + public function compile($args, $compiler) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + // compile always as nocache + $compiler->tag_nocache = true; + // display debug template + $_output = + "<?php \$_smarty_debug = new Smarty_Internal_Debug;\n \$_smarty_debug->display_debug(\$_smarty_tpl);\n"; + $_output .= "unset(\$_smarty_debug);\n?>"; + return $_output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_eval.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_eval.php new file mode 100644 index 0000000000..8e0174e3eb --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_eval.php @@ -0,0 +1,70 @@ +<?php +/** + * Smarty Internal Plugin Compile Eval + * Compiles the {eval} tag. + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Eval Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Eval extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('var'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('assign'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('var', 'assign'); + + /** + * Compiles code for the {eval} tag + * + * @param array $args array with attributes from parser + * @param object $compiler compiler object + * + * @return string compiled code + */ + public function compile($args, $compiler) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + if (isset($_attr[ 'assign' ])) { + // output will be stored in a smarty variable instead of being displayed + $_assign = $_attr[ 'assign' ]; + } + // create template object + $_output = + "\$_template = new {$compiler->smarty->template_class}('eval:'.{$_attr[ 'var' ]}, \$_smarty_tpl->smarty, \$_smarty_tpl);"; + //was there an assign attribute? + if (isset($_assign)) { + $_output .= "\$_smarty_tpl->assign($_assign,\$_template->fetch());"; + } else { + $_output .= 'echo $_template->fetch();'; + } + return "<?php $_output ?>"; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_extends.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_extends.php new file mode 100644 index 0000000000..d72d2b76f0 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_extends.php @@ -0,0 +1,158 @@ +<?php +/** + * Smarty Internal Plugin Compile extend + * Compiles the {extends} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile extend Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Extends extends Smarty_Internal_Compile_Shared_Inheritance +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('file'); + + /** + * Array of names of optional attribute required by tag + * use array('_any') if there is no restriction of attributes names + * + * @var array + */ + public $optional_attributes = array('extends_resource'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('file'); + + /** + * Compiles code for the {extends} tag extends: resource + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + if ($_attr[ 'nocache' ] === true) { + $compiler->trigger_template_error('nocache option not allowed', $compiler->parser->lex->line - 1); + } + if (strpos($_attr[ 'file' ], '$_tmp') !== false) { + $compiler->trigger_template_error('illegal value for file attribute', $compiler->parser->lex->line - 1); + } + // add code to initialize inheritance + $this->registerInit($compiler, true); + $file = trim($_attr[ 'file' ], '\'"'); + if (strlen($file) > 8 && substr($file, 0, 8) === 'extends:') { + // generate code for each template + $files = array_reverse(explode('|', substr($file, 8))); + $i = 0; + foreach ($files as $file) { + if ($file[ 0 ] === '"') { + $file = trim($file, '".'); + } else { + $file = "'{$file}'"; + } + $i++; + if ($i === count($files) && isset($_attr[ 'extends_resource' ])) { + $this->compileEndChild($compiler); + } + $this->compileInclude($compiler, $file); + } + if (!isset($_attr[ 'extends_resource' ])) { + $this->compileEndChild($compiler); + } + } else { + $this->compileEndChild($compiler, $_attr[ 'file' ]); + } + $compiler->has_code = false; + return ''; + } + + /** + * Add code for inheritance endChild() method to end of template + * + * @param \Smarty_Internal_TemplateCompilerBase $compiler + * @param null|string $template optional inheritance parent template + * + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + private function compileEndChild(Smarty_Internal_TemplateCompilerBase $compiler, $template = null) + { + $inlineUids = ''; + if (isset($template) && $compiler->smarty->merge_compiled_includes) { + $code = $compiler->compileTag('include', array($template, array('scope' => 'parent'))); + if (preg_match('/([,][\s]*[\'][a-z0-9]+[\'][,][\s]*[\']content.*[\'])[)]/', $code, $match)) { + $inlineUids = $match[ 1 ]; + } + } + $compiler->parser->template_postfix[] = new Smarty_Internal_ParseTree_Tag( + $compiler->parser, + '<?php $_smarty_tpl->inheritance->endChild($_smarty_tpl' . + (isset($template) ? + ", {$template}{$inlineUids}" : + '') . ");\n?>" + ); + } + + /** + * Add code for including subtemplate to end of template + * + * @param \Smarty_Internal_TemplateCompilerBase $compiler + * @param string $template subtemplate name + * + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + private function compileInclude(Smarty_Internal_TemplateCompilerBase $compiler, $template) + { + $compiler->parser->template_postfix[] = new Smarty_Internal_ParseTree_Tag( + $compiler->parser, + $compiler->compileTag( + 'include', + array( + $template, + array('scope' => 'parent') + ) + ) + ); + } + + /** + * Create source code for {extends} from source components array + * + * @param \Smarty_Internal_Template $template + * + * @return string + */ + public static function extendsSourceArrayCode(Smarty_Internal_Template $template) + { + $resources = array(); + foreach ($template->source->components as $source) { + $resources[] = $source->resource; + } + return $template->smarty->left_delimiter . 'extends file=\'extends:' . join('|', $resources) . + '\' extends_resource=true' . $template->smarty->right_delimiter; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php new file mode 100644 index 0000000000..3f113e56d5 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_for.php @@ -0,0 +1,164 @@ +<?php +/** + * Smarty Internal Plugin Compile For + * Compiles the {for} {forelse} {/for} tags + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile For Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_For extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {for} tag + * Smarty 3 does implement two different syntax's: + * - {for $var in $array} + * For looping over arrays or iterators + * - {for $x=0; $x<$y; $x++} + * For general loops + * The parser is generating different sets of attribute by which this compiler can + * determine which syntax is used. + * + * @param array $args array with attributes from parser + * @param object $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + */ + public function compile($args, $compiler, $parameter) + { + $compiler->loopNesting++; + if ($parameter === 0) { + $this->required_attributes = array('start', 'to'); + $this->optional_attributes = array('max', 'step'); + } else { + $this->required_attributes = array('start', 'ifexp', 'var', 'step'); + $this->optional_attributes = array(); + } + $this->mapCache = array(); + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $output = "<?php\n"; + if ($parameter === 1) { + foreach ($_attr[ 'start' ] as $_statement) { + if (is_array($_statement[ 'var' ])) { + $var = $_statement[ 'var' ][ 'var' ]; + $index = $_statement[ 'var' ][ 'smarty_internal_index' ]; + } else { + $var = $_statement[ 'var' ]; + $index = ''; + } + $output .= "\$_smarty_tpl->tpl_vars[$var] = new Smarty_Variable(null, \$_smarty_tpl->isRenderingCache);\n"; + $output .= "\$_smarty_tpl->tpl_vars[$var]->value{$index} = {$_statement['value']};\n"; + } + if (is_array($_attr[ 'var' ])) { + $var = $_attr[ 'var' ][ 'var' ]; + $index = $_attr[ 'var' ][ 'smarty_internal_index' ]; + } else { + $var = $_attr[ 'var' ]; + $index = ''; + } + $output .= "if ($_attr[ifexp]) {\nfor (\$_foo=true;$_attr[ifexp]; \$_smarty_tpl->tpl_vars[$var]->value{$index}$_attr[step]) {\n"; + } else { + $_statement = $_attr[ 'start' ]; + if (is_array($_statement[ 'var' ])) { + $var = $_statement[ 'var' ][ 'var' ]; + $index = $_statement[ 'var' ][ 'smarty_internal_index' ]; + } else { + $var = $_statement[ 'var' ]; + $index = ''; + } + $output .= "\$_smarty_tpl->tpl_vars[$var] = new Smarty_Variable(null, \$_smarty_tpl->isRenderingCache);"; + if (isset($_attr[ 'step' ])) { + $output .= "\$_smarty_tpl->tpl_vars[$var]->step = $_attr[step];"; + } else { + $output .= "\$_smarty_tpl->tpl_vars[$var]->step = 1;"; + } + if (isset($_attr[ 'max' ])) { + $output .= "\$_smarty_tpl->tpl_vars[$var]->total = (int) min(ceil((\$_smarty_tpl->tpl_vars[$var]->step > 0 ? $_attr[to]+1 - ($_statement[value]) : $_statement[value]-($_attr[to])+1)/abs(\$_smarty_tpl->tpl_vars[$var]->step)),$_attr[max]);\n"; + } else { + $output .= "\$_smarty_tpl->tpl_vars[$var]->total = (int) ceil((\$_smarty_tpl->tpl_vars[$var]->step > 0 ? $_attr[to]+1 - ($_statement[value]) : $_statement[value]-($_attr[to])+1)/abs(\$_smarty_tpl->tpl_vars[$var]->step));\n"; + } + $output .= "if (\$_smarty_tpl->tpl_vars[$var]->total > 0) {\n"; + $output .= "for (\$_smarty_tpl->tpl_vars[$var]->value{$index} = $_statement[value], \$_smarty_tpl->tpl_vars[$var]->iteration = 1;\$_smarty_tpl->tpl_vars[$var]->iteration <= \$_smarty_tpl->tpl_vars[$var]->total;\$_smarty_tpl->tpl_vars[$var]->value{$index} += \$_smarty_tpl->tpl_vars[$var]->step, \$_smarty_tpl->tpl_vars[$var]->iteration++) {\n"; + $output .= "\$_smarty_tpl->tpl_vars[$var]->first = \$_smarty_tpl->tpl_vars[$var]->iteration === 1;"; + $output .= "\$_smarty_tpl->tpl_vars[$var]->last = \$_smarty_tpl->tpl_vars[$var]->iteration === \$_smarty_tpl->tpl_vars[$var]->total;"; + } + $output .= '?>'; + $this->openTag($compiler, 'for', array('for', $compiler->nocache)); + // maybe nocache because of nocache variables + $compiler->nocache = $compiler->nocache | $compiler->tag_nocache; + // return compiled code + return $output; + } +} + +/** + * Smarty Internal Plugin Compile Forelse Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Forelse extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {forelse} tag + * + * @param array $args array with attributes from parser + * @param object $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + */ + public function compile($args, $compiler, $parameter) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + list($openTag, $nocache) = $this->closeTag($compiler, array('for')); + $this->openTag($compiler, 'forelse', array('forelse', $nocache)); + return "<?php }} else { ?>"; + } +} + +/** + * Smarty Internal Plugin Compile Forclose Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Forclose extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {/for} tag + * + * @param array $args array with attributes from parser + * @param object $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + */ + public function compile($args, $compiler, $parameter) + { + $compiler->loopNesting--; + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + // must endblock be nocache? + if ($compiler->nocache) { + $compiler->tag_nocache = true; + } + list($openTag, $compiler->nocache) = $this->closeTag($compiler, array('for', 'forelse')); + $output = "<?php }\n"; + if ($openTag !== 'forelse') { + $output .= "}\n"; + } + $output .= "?>"; + return $output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php new file mode 100644 index 0000000000..a68da5409f --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_foreach.php @@ -0,0 +1,343 @@ +<?php +/** + * Smarty Internal Plugin Compile Foreach + * Compiles the {foreach} {foreachelse} {/foreach} tags + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Foreach Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Foreach extends Smarty_Internal_Compile_Private_ForeachSection +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('from', 'item'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('name', 'key', 'properties'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('from', 'item', 'key', 'name'); + + /** + * counter + * + * @var int + */ + public $counter = 0; + + /** + * Name of this tag + * + * @var string + */ + public $tagName = 'foreach'; + + /** + * Valid properties of $smarty.foreach.name.xxx variable + * + * @var array + */ + public $nameProperties = array('first', 'last', 'index', 'iteration', 'show', 'total'); + + /** + * Valid properties of $item@xxx variable + * + * @var array + */ + public $itemProperties = array('first', 'last', 'index', 'iteration', 'show', 'total', 'key'); + + /** + * Flag if tag had name attribute + * + * @var bool + */ + public $isNamed = false; + + /** + * Compiles code for the {foreach} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + $compiler->loopNesting++; + // init + $this->isNamed = false; + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $from = $_attr[ 'from' ]; + $item = $compiler->getId($_attr[ 'item' ]); + if ($item === false) { + $item = $compiler->getVariableName($_attr[ 'item' ]); + } + $key = $name = null; + $attributes = array('item' => $item); + if (isset($_attr[ 'key' ])) { + $key = $compiler->getId($_attr[ 'key' ]); + if ($key === false) { + $key = $compiler->getVariableName($_attr[ 'key' ]); + } + $attributes[ 'key' ] = $key; + } + if (isset($_attr[ 'name' ])) { + $this->isNamed = true; + $name = $attributes[ 'name' ] = $compiler->getId($_attr[ 'name' ]); + } + foreach ($attributes as $a => $v) { + if ($v === false) { + $compiler->trigger_template_error("'{$a}' attribute/variable has illegal value", null, true); + } + } + $fromName = $compiler->getVariableName($_attr[ 'from' ]); + if ($fromName) { + foreach (array('item', 'key') as $a) { + if (isset($attributes[ $a ]) && $attributes[ $a ] === $fromName) { + $compiler->trigger_template_error( + "'{$a}' and 'from' may not have same variable name '{$fromName}'", + null, + true + ); + } + } + } + $itemVar = "\$_smarty_tpl->tpl_vars['{$item}']"; + $local = '$__foreach_' . $attributes[ 'item' ] . '_' . $this->counter++ . '_'; + // search for used tag attributes + $itemAttr = array(); + $namedAttr = array(); + $this->scanForProperties($attributes, $compiler); + if (!empty($this->matchResults[ 'item' ])) { + $itemAttr = $this->matchResults[ 'item' ]; + } + if (!empty($this->matchResults[ 'named' ])) { + $namedAttr = $this->matchResults[ 'named' ]; + } + if (isset($_attr[ 'properties' ]) && preg_match_all('/[\'](.*?)[\']/', $_attr[ 'properties' ], $match)) { + foreach ($match[ 1 ] as $prop) { + if (in_array($prop, $this->itemProperties)) { + $itemAttr[ $prop ] = true; + } else { + $compiler->trigger_template_error("Invalid property '{$prop}'", null, true); + } + } + if ($this->isNamed) { + foreach ($match[ 1 ] as $prop) { + if (in_array($prop, $this->nameProperties)) { + $nameAttr[ $prop ] = true; + } else { + $compiler->trigger_template_error("Invalid property '{$prop}'", null, true); + } + } + } + } + if (isset($itemAttr[ 'first' ])) { + $itemAttr[ 'index' ] = true; + } + if (isset($namedAttr[ 'first' ])) { + $namedAttr[ 'index' ] = true; + } + if (isset($namedAttr[ 'last' ])) { + $namedAttr[ 'iteration' ] = true; + $namedAttr[ 'total' ] = true; + } + if (isset($itemAttr[ 'last' ])) { + $itemAttr[ 'iteration' ] = true; + $itemAttr[ 'total' ] = true; + } + if (isset($namedAttr[ 'show' ])) { + $namedAttr[ 'total' ] = true; + } + if (isset($itemAttr[ 'show' ])) { + $itemAttr[ 'total' ] = true; + } + $keyTerm = ''; + if (isset($attributes[ 'key' ])) { + $keyTerm = "\$_smarty_tpl->tpl_vars['{$key}']->value => "; + } + if (isset($itemAttr[ 'key' ])) { + $keyTerm = "{$itemVar}->key => "; + } + if ($this->isNamed) { + $foreachVar = "\$_smarty_tpl->tpl_vars['__smarty_foreach_{$attributes['name']}']"; + } + $needTotal = isset($itemAttr[ 'total' ]); + // Register tag + $this->openTag( + $compiler, + 'foreach', + array('foreach', $compiler->nocache, $local, $itemVar, empty($itemAttr) ? 1 : 2) + ); + // maybe nocache because of nocache variables + $compiler->nocache = $compiler->nocache | $compiler->tag_nocache; + // generate output code + $output = "<?php\n"; + $output .= "\$_from = \$_smarty_tpl->smarty->ext->_foreach->init(\$_smarty_tpl, $from, " . + var_export($item, true); + if ($name || $needTotal || $key) { + $output .= ', ' . var_export($needTotal, true); + } + if ($name || $key) { + $output .= ', ' . var_export($key, true); + } + if ($name) { + $output .= ', ' . var_export($name, true) . ', ' . var_export($namedAttr, true); + } + $output .= ");\n"; + if (isset($itemAttr[ 'show' ])) { + $output .= "{$itemVar}->show = ({$itemVar}->total > 0);\n"; + } + if (isset($itemAttr[ 'iteration' ])) { + $output .= "{$itemVar}->iteration = 0;\n"; + } + if (isset($itemAttr[ 'index' ])) { + $output .= "{$itemVar}->index = -1;\n"; + } + $output .= "{$itemVar}->do_else = true;\n"; + $output .= "if (\$_from !== null) foreach (\$_from as {$keyTerm}{$itemVar}->value) {\n"; + $output .= "{$itemVar}->do_else = false;\n"; + if (isset($attributes[ 'key' ]) && isset($itemAttr[ 'key' ])) { + $output .= "\$_smarty_tpl->tpl_vars['{$key}']->value = {$itemVar}->key;\n"; + } + if (isset($itemAttr[ 'iteration' ])) { + $output .= "{$itemVar}->iteration++;\n"; + } + if (isset($itemAttr[ 'index' ])) { + $output .= "{$itemVar}->index++;\n"; + } + if (isset($itemAttr[ 'first' ])) { + $output .= "{$itemVar}->first = !{$itemVar}->index;\n"; + } + if (isset($itemAttr[ 'last' ])) { + $output .= "{$itemVar}->last = {$itemVar}->iteration === {$itemVar}->total;\n"; + } + if (isset($foreachVar)) { + if (isset($namedAttr[ 'iteration' ])) { + $output .= "{$foreachVar}->value['iteration']++;\n"; + } + if (isset($namedAttr[ 'index' ])) { + $output .= "{$foreachVar}->value['index']++;\n"; + } + if (isset($namedAttr[ 'first' ])) { + $output .= "{$foreachVar}->value['first'] = !{$foreachVar}->value['index'];\n"; + } + if (isset($namedAttr[ 'last' ])) { + $output .= "{$foreachVar}->value['last'] = {$foreachVar}->value['iteration'] === {$foreachVar}->value['total'];\n"; + } + } + if (!empty($itemAttr)) { + $output .= "{$local}saved = {$itemVar};\n"; + } + $output .= '?>'; + return $output; + } + + /** + * Compiles code for to restore saved template variables + * + * @param int $levels number of levels to restore + * + * @return string compiled code + */ + public function compileRestore($levels) + { + return "\$_smarty_tpl->smarty->ext->_foreach->restore(\$_smarty_tpl, {$levels});"; + } +} + +/** + * Smarty Internal Plugin Compile Foreachelse Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Foreachelse extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {foreachelse} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + list($openTag, $nocache, $local, $itemVar, $restore) = $this->closeTag($compiler, array('foreach')); + $this->openTag($compiler, 'foreachelse', array('foreachelse', $nocache, $local, $itemVar, 0)); + $output = "<?php\n"; + if ($restore === 2) { + $output .= "{$itemVar} = {$local}saved;\n"; + } + $output .= "}\nif ({$itemVar}->do_else) {\n?>"; + return $output; + } +} + +/** + * Smarty Internal Plugin Compile Foreachclose Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Foreachclose extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {/foreach} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + $compiler->loopNesting--; + // must endblock be nocache? + if ($compiler->nocache) { + $compiler->tag_nocache = true; + } + list( + $openTag, $compiler->nocache, $local, $itemVar, $restore + ) = $this->closeTag($compiler, array('foreach', 'foreachelse')); + $output = "<?php\n"; + if ($restore === 2) { + $output .= "{$itemVar} = {$local}saved;\n"; + } + $output .= "}\n"; + /* @var Smarty_Internal_Compile_Foreach $foreachCompiler */ + $foreachCompiler = $compiler->getTagCompiler('foreach'); + $output .= $foreachCompiler->compileRestore(1); + $output .= "?>"; + return $output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_function.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_function.php new file mode 100644 index 0000000000..1b73a6ba67 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_function.php @@ -0,0 +1,236 @@ +<?php +/** + * Smarty Internal Plugin Compile Function + * Compiles the {function} {/function} tags + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Function Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('name'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('name'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('_any'); + + /** + * Compiles code for the {function} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return bool true + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + if ($_attr[ 'nocache' ] === true) { + $compiler->trigger_template_error('nocache option not allowed', null, true); + } + unset($_attr[ 'nocache' ]); + $_name = trim($_attr[ 'name' ], '\'"'); + + if (!preg_match('/^[a-zA-Z0-9_\x80-\xff]+$/', $_name)) { + $compiler->trigger_template_error("Function name contains invalid characters: {$_name}", null, true); + } + + $compiler->parent_compiler->tpl_function[ $_name ] = array(); + $save = array( + $_attr, $compiler->parser->current_buffer, $compiler->template->compiled->has_nocache_code, + $compiler->template->caching + ); + $this->openTag($compiler, 'function', $save); + // Init temporary context + $compiler->parser->current_buffer = new Smarty_Internal_ParseTree_Template(); + $compiler->template->compiled->has_nocache_code = false; + $compiler->saveRequiredPlugins(true); + return true; + } +} + +/** + * Smarty Internal Plugin Compile Functionclose Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Functionclose extends Smarty_Internal_CompileBase +{ + /** + * Compiler object + * + * @var object + */ + private $compiler = null; + + /** + * Compiles code for the {/function} tag + * + * @param array $args array with attributes from parser + * @param object|\Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return bool true + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + $this->compiler = $compiler; + $saved_data = $this->closeTag($compiler, array('function')); + $_attr = $saved_data[ 0 ]; + $_name = trim($_attr[ 'name' ], '\'"'); + $compiler->parent_compiler->tpl_function[ $_name ][ 'compiled_filepath' ] = + $compiler->parent_compiler->template->compiled->filepath; + $compiler->parent_compiler->tpl_function[ $_name ][ 'uid' ] = $compiler->template->source->uid; + $_parameter = $_attr; + unset($_parameter[ 'name' ]); + // default parameter + $_paramsArray = array(); + foreach ($_parameter as $_key => $_value) { + if (is_int($_key)) { + $_paramsArray[] = "$_key=>$_value"; + } else { + $_paramsArray[] = "'$_key'=>$_value"; + } + } + if (!empty($_paramsArray)) { + $_params = 'array(' . implode(',', $_paramsArray) . ')'; + $_paramsCode = "\$params = array_merge($_params, \$params);\n"; + } else { + $_paramsCode = ''; + } + $_functionCode = $compiler->parser->current_buffer; + // setup buffer for template function code + $compiler->parser->current_buffer = new Smarty_Internal_ParseTree_Template(); + $_funcName = "smarty_template_function_{$_name}_{$compiler->template->compiled->nocache_hash}"; + $_funcNameCaching = $_funcName . '_nocache'; + if ($compiler->template->compiled->has_nocache_code) { + $compiler->parent_compiler->tpl_function[ $_name ][ 'call_name_caching' ] = $_funcNameCaching; + $output = "<?php\n"; + $output .= $compiler->cStyleComment(" {$_funcNameCaching} ") . "\n"; + $output .= "if (!function_exists('{$_funcNameCaching}')) {\n"; + $output .= "function {$_funcNameCaching} (Smarty_Internal_Template \$_smarty_tpl,\$params) {\n"; + $output .= "ob_start();\n"; + $output .= $compiler->compileRequiredPlugins(); + $output .= "\$_smarty_tpl->compiled->has_nocache_code = true;\n"; + $output .= $_paramsCode; + $output .= "foreach (\$params as \$key => \$value) {\n\$_smarty_tpl->tpl_vars[\$key] = new Smarty_Variable(\$value, \$_smarty_tpl->isRenderingCache);\n}\n"; + $output .= "\$params = var_export(\$params, true);\n"; + $output .= "echo \"/*%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%*/<?php "; + $output .= "\\\$_smarty_tpl->smarty->ext->_tplFunction->saveTemplateVariables(\\\$_smarty_tpl, '{$_name}');\nforeach (\$params as \\\$key => \\\$value) {\n\\\$_smarty_tpl->tpl_vars[\\\$key] = new Smarty_Variable(\\\$value, \\\$_smarty_tpl->isRenderingCache);\n}\n?>"; + $output .= "/*/%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%*/\";?>"; + $compiler->parser->current_buffer->append_subtree( + $compiler->parser, + new Smarty_Internal_ParseTree_Tag( + $compiler->parser, + $output + ) + ); + $compiler->parser->current_buffer->append_subtree($compiler->parser, $_functionCode); + $output = "<?php echo \"/*%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%*/<?php "; + $output .= "\\\$_smarty_tpl->smarty->ext->_tplFunction->restoreTemplateVariables(\\\$_smarty_tpl, '{$_name}');?>\n"; + $output .= "/*/%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%*/\";\n?>"; + $output .= "<?php echo str_replace('{$compiler->template->compiled->nocache_hash}', \$_smarty_tpl->compiled->nocache_hash, ob_get_clean());\n"; + $output .= "}\n}\n"; + $output .= $compiler->cStyleComment("/ {$_funcName}_nocache ") . "\n\n"; + $output .= "?>\n"; + $compiler->parser->current_buffer->append_subtree( + $compiler->parser, + new Smarty_Internal_ParseTree_Tag( + $compiler->parser, + $output + ) + ); + $_functionCode = new Smarty_Internal_ParseTree_Tag( + $compiler->parser, + preg_replace_callback( + "/((<\?php )?echo '\/\*%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%\*\/([\S\s]*?)\/\*\/%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%\*\/';(\?>\n)?)/", + array($this, 'removeNocache'), + $_functionCode->to_smarty_php($compiler->parser) + ) + ); + } + $compiler->parent_compiler->tpl_function[ $_name ][ 'call_name' ] = $_funcName; + $output = "<?php\n"; + $output .= $compiler->cStyleComment(" {$_funcName} ") . "\n"; + $output .= "if (!function_exists('{$_funcName}')) {\n"; + $output .= "function {$_funcName}(Smarty_Internal_Template \$_smarty_tpl,\$params) {\n"; + $output .= $_paramsCode; + $output .= "foreach (\$params as \$key => \$value) {\n\$_smarty_tpl->tpl_vars[\$key] = new Smarty_Variable(\$value, \$_smarty_tpl->isRenderingCache);\n}\n"; + $output .= $compiler->compileCheckPlugins(array_merge($compiler->required_plugins[ 'compiled' ], + $compiler->required_plugins[ 'nocache' ])); + $output .= "?>\n"; + $compiler->parser->current_buffer->append_subtree( + $compiler->parser, + new Smarty_Internal_ParseTree_Tag( + $compiler->parser, + $output + ) + ); + $compiler->parser->current_buffer->append_subtree($compiler->parser, $_functionCode); + $output = "<?php\n}}\n"; + $output .= $compiler->cStyleComment("/ {$_funcName} ") . "\n\n"; + $output .= "?>\n"; + $compiler->parser->current_buffer->append_subtree( + $compiler->parser, + new Smarty_Internal_ParseTree_Tag( + $compiler->parser, + $output + ) + ); + $compiler->parent_compiler->blockOrFunctionCode .= $compiler->parser->current_buffer->to_smarty_php($compiler->parser); + // restore old buffer + $compiler->parser->current_buffer = $saved_data[ 1 ]; + // restore old status + $compiler->restoreRequiredPlugins(); + $compiler->template->compiled->has_nocache_code = $saved_data[ 2 ]; + $compiler->template->caching = $saved_data[ 3 ]; + return true; + } + + /** + * Remove nocache code + * + * @param $match + * + * @return string + */ + public function removeNocache($match) + { + $code = + preg_replace( + "/((<\?php )?echo '\/\*%%SmartyNocache:{$this->compiler->template->compiled->nocache_hash}%%\*\/)|(\/\*\/%%SmartyNocache:{$this->compiler->template->compiled->nocache_hash}%%\*\/';(\?>\n)?)/", + '', + $match[ 0 ] + ); + $code = str_replace(array('\\\'', '\\\\\''), array('\'', '\\\''), $code); + return $code; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php new file mode 100644 index 0000000000..df3dc3fad1 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_if.php @@ -0,0 +1,207 @@ +<?php +/** + * Smarty Internal Plugin Compile If + * Compiles the {if} {else} {elseif} {/if} tags + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile If Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_If extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {if} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $this->openTag($compiler, 'if', array(1, $compiler->nocache)); + // must whole block be nocache ? + $compiler->nocache = $compiler->nocache | $compiler->tag_nocache; + if (!isset($parameter[ 'if condition' ])) { + $compiler->trigger_template_error('missing if condition', null, true); + } + if (is_array($parameter[ 'if condition' ])) { + if (is_array($parameter[ 'if condition' ][ 'var' ])) { + $var = $parameter[ 'if condition' ][ 'var' ][ 'var' ]; + } else { + $var = $parameter[ 'if condition' ][ 'var' ]; + } + if ($compiler->nocache) { + // create nocache var to make it know for further compiling + $compiler->setNocacheInVariable($var); + } + $prefixVar = $compiler->getNewPrefixVariable(); + $_output = "<?php {$prefixVar} = {$parameter[ 'if condition' ][ 'value' ]};?>\n"; + $assignAttr = array(); + $assignAttr[][ 'value' ] = $prefixVar; + $assignCompiler = new Smarty_Internal_Compile_Assign(); + if (is_array($parameter[ 'if condition' ][ 'var' ])) { + $assignAttr[][ 'var' ] = $parameter[ 'if condition' ][ 'var' ][ 'var' ]; + $_output .= $assignCompiler->compile( + $assignAttr, + $compiler, + array('smarty_internal_index' => $parameter[ 'if condition' ][ 'var' ][ 'smarty_internal_index' ]) + ); + } else { + $assignAttr[][ 'var' ] = $parameter[ 'if condition' ][ 'var' ]; + $_output .= $assignCompiler->compile($assignAttr, $compiler, array()); + } + $_output .= "<?php if ({$prefixVar}) {?>"; + return $_output; + } else { + return "<?php if ({$parameter['if condition']}) {?>"; + } + } +} + +/** + * Smarty Internal Plugin Compile Else Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Else extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {else} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + list($nesting, $compiler->tag_nocache) = $this->closeTag($compiler, array('if', 'elseif')); + $this->openTag($compiler, 'else', array($nesting, $compiler->tag_nocache)); + return '<?php } else { ?>'; + } +} + +/** + * Smarty Internal Plugin Compile ElseIf Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Elseif extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {elseif} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + list($nesting, $compiler->tag_nocache) = $this->closeTag($compiler, array('if', 'elseif')); + if (!isset($parameter[ 'if condition' ])) { + $compiler->trigger_template_error('missing elseif condition', null, true); + } + $assignCode = ''; + $var = ''; + if (is_array($parameter[ 'if condition' ])) { + $condition_by_assign = true; + if (is_array($parameter[ 'if condition' ][ 'var' ])) { + $var = $parameter[ 'if condition' ][ 'var' ][ 'var' ]; + } else { + $var = $parameter[ 'if condition' ][ 'var' ]; + } + if ($compiler->nocache) { + // create nocache var to make it know for further compiling + $compiler->setNocacheInVariable($var); + } + $prefixVar = $compiler->getNewPrefixVariable(); + $assignCode = "<?php {$prefixVar} = {$parameter[ 'if condition' ][ 'value' ]};?>\n"; + $assignCompiler = new Smarty_Internal_Compile_Assign(); + $assignAttr = array(); + $assignAttr[][ 'value' ] = $prefixVar; + if (is_array($parameter[ 'if condition' ][ 'var' ])) { + $assignAttr[][ 'var' ] = $parameter[ 'if condition' ][ 'var' ][ 'var' ]; + $assignCode .= $assignCompiler->compile( + $assignAttr, + $compiler, + array('smarty_internal_index' => $parameter[ 'if condition' ][ 'var' ][ 'smarty_internal_index' ]) + ); + } else { + $assignAttr[][ 'var' ] = $parameter[ 'if condition' ][ 'var' ]; + $assignCode .= $assignCompiler->compile($assignAttr, $compiler, array()); + } + } else { + $condition_by_assign = false; + } + $prefixCode = $compiler->getPrefixCode(); + if (empty($prefixCode)) { + if ($condition_by_assign) { + $this->openTag($compiler, 'elseif', array($nesting + 1, $compiler->tag_nocache)); + $_output = $compiler->appendCode("<?php } else {\n?>", $assignCode); + return $compiler->appendCode($_output, "<?php if ({$prefixVar}) {?>"); + } else { + $this->openTag($compiler, 'elseif', array($nesting, $compiler->tag_nocache)); + return "<?php } elseif ({$parameter['if condition']}) {?>"; + } + } else { + $_output = $compiler->appendCode("<?php } else {\n?>", $prefixCode); + $this->openTag($compiler, 'elseif', array($nesting + 1, $compiler->tag_nocache)); + if ($condition_by_assign) { + $_output = $compiler->appendCode($_output, $assignCode); + return $compiler->appendCode($_output, "<?php if ({$prefixVar}) {?>"); + } else { + return $compiler->appendCode($_output, "<?php if ({$parameter['if condition']}) {?>"); + } + } + } +} + +/** + * Smarty Internal Plugin Compile Ifclose Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Ifclose extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {/if} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + // must endblock be nocache? + if ($compiler->nocache) { + $compiler->tag_nocache = true; + } + list($nesting, $compiler->nocache) = $this->closeTag($compiler, array('if', 'else', 'elseif')); + $tmp = ''; + for ($i = 0; $i < $nesting; $i++) { + $tmp .= '}'; + } + return "<?php {$tmp}?>"; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include.php new file mode 100644 index 0000000000..bf62461bca --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include.php @@ -0,0 +1,347 @@ +<?php +/** + * Smarty Internal Plugin Compile Include + * Compiles the {include} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Include Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase +{ + /** + * caching mode to create nocache code but no cache file + */ + const CACHING_NOCACHE_CODE = 9999; + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('file'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('file'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $option_flags = array('nocache', 'inline', 'caching'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('_any'); + + /** + * Valid scope names + * + * @var array + */ + public $valid_scopes = array( + 'parent' => Smarty::SCOPE_PARENT, 'root' => Smarty::SCOPE_ROOT, + 'global' => Smarty::SCOPE_GLOBAL, 'tpl_root' => Smarty::SCOPE_TPL_ROOT, + 'smarty' => Smarty::SCOPE_SMARTY + ); + + /** + * Compiles code for the {include} tag + * + * @param array $args array with attributes from parser + * @param Smarty_Internal_SmartyTemplateCompiler $compiler compiler object + * + * @return string + * @throws \Exception + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_SmartyTemplateCompiler $compiler) + { + $uid = $t_hash = null; + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $fullResourceName = $source_resource = $_attr[ 'file' ]; + $variable_template = false; + $cache_tpl = false; + // parse resource_name + if (preg_match('/^([\'"])(([A-Za-z0-9_\-]{2,})[:])?(([^$()]+)|(.+))\1$/', $source_resource, $match)) { + $type = !empty($match[ 3 ]) ? $match[ 3 ] : $compiler->template->smarty->default_resource_type; + $name = !empty($match[ 5 ]) ? $match[ 5 ] : $match[ 6 ]; + $handler = Smarty_Resource::load($compiler->smarty, $type); + if ($handler->recompiled || $handler->uncompiled) { + $variable_template = true; + } + if (!$variable_template) { + if ($type !== 'string') { + $fullResourceName = "{$type}:{$name}"; + $compiled = $compiler->parent_compiler->template->compiled; + if (isset($compiled->includes[ $fullResourceName ])) { + $compiled->includes[ $fullResourceName ]++; + $cache_tpl = true; + } else { + if ("{$compiler->template->source->type}:{$compiler->template->source->name}" == + $fullResourceName + ) { + // recursive call of current template + $compiled->includes[ $fullResourceName ] = 2; + $cache_tpl = true; + } else { + $compiled->includes[ $fullResourceName ] = 1; + } + } + $fullResourceName = $match[ 1 ] . $fullResourceName . $match[ 1 ]; + } + } + if (empty($match[ 5 ])) { + $variable_template = true; + } + } else { + $variable_template = true; + } + // scope setup + $_scope = $compiler->convertScope($_attr, $this->valid_scopes); + // set flag to cache subtemplate object when called within loop or template name is variable. + if ($cache_tpl || $variable_template || $compiler->loopNesting > 0) { + $_cache_tpl = 'true'; + } else { + $_cache_tpl = 'false'; + } + // assume caching is off + $_caching = Smarty::CACHING_OFF; + $call_nocache = $compiler->tag_nocache || $compiler->nocache; + // caching was on and {include} is not in nocache mode + if ($compiler->template->caching && !$compiler->nocache && !$compiler->tag_nocache) { + $_caching = self::CACHING_NOCACHE_CODE; + } + // flag if included template code should be merged into caller + $merge_compiled_includes = ($compiler->smarty->merge_compiled_includes || $_attr[ 'inline' ] === true) && + !$compiler->template->source->handler->recompiled; + if ($merge_compiled_includes) { + // variable template name ? + if ($variable_template) { + $merge_compiled_includes = false; + } + // variable compile_id? + if (isset($_attr[ 'compile_id' ]) && $compiler->isVariable($_attr[ 'compile_id' ])) { + $merge_compiled_includes = false; + } + } + /* + * if the {include} tag provides individual parameter for caching or compile_id + * the subtemplate must not be included into the common cache file and is treated like + * a call in nocache mode. + * + */ + if ($_attr[ 'nocache' ] !== true && $_attr[ 'caching' ]) { + $_caching = $_new_caching = (int)$_attr[ 'caching' ]; + $call_nocache = true; + } else { + $_new_caching = Smarty::CACHING_LIFETIME_CURRENT; + } + if (isset($_attr[ 'cache_lifetime' ])) { + $_cache_lifetime = $_attr[ 'cache_lifetime' ]; + $call_nocache = true; + $_caching = $_new_caching; + } else { + $_cache_lifetime = '$_smarty_tpl->cache_lifetime'; + } + if (isset($_attr[ 'cache_id' ])) { + $_cache_id = $_attr[ 'cache_id' ]; + $call_nocache = true; + $_caching = $_new_caching; + } else { + $_cache_id = '$_smarty_tpl->cache_id'; + } + if (isset($_attr[ 'compile_id' ])) { + $_compile_id = $_attr[ 'compile_id' ]; + } else { + $_compile_id = '$_smarty_tpl->compile_id'; + } + // if subtemplate will be called in nocache mode do not merge + if ($compiler->template->caching && $call_nocache) { + $merge_compiled_includes = false; + } + // assign attribute + if (isset($_attr[ 'assign' ])) { + // output will be stored in a smarty variable instead of being displayed + if ($_assign = $compiler->getId($_attr[ 'assign' ])) { + $_assign = "'{$_assign}'"; + if ($compiler->tag_nocache || $compiler->nocache || $call_nocache) { + // create nocache var to make it know for further compiling + $compiler->setNocacheInVariable($_attr[ 'assign' ]); + } + } else { + $_assign = $_attr[ 'assign' ]; + } + } + $has_compiled_template = false; + if ($merge_compiled_includes) { + $c_id = isset($_attr[ 'compile_id' ]) ? $_attr[ 'compile_id' ] : $compiler->template->compile_id; + // we must observe different compile_id and caching + $t_hash = sha1($c_id . ($_caching ? '--caching' : '--nocaching')); + $compiler->smarty->allow_ambiguous_resources = true; + /* @var Smarty_Internal_Template $tpl */ + $tpl = new $compiler->smarty->template_class( + trim($fullResourceName, '"\''), + $compiler->smarty, + $compiler->template, + $compiler->template->cache_id, + $c_id, + $_caching + ); + $uid = $tpl->source->type . $tpl->source->uid; + if (!isset($compiler->parent_compiler->mergedSubTemplatesData[ $uid ][ $t_hash ])) { + $has_compiled_template = $this->compileInlineTemplate($compiler, $tpl, $t_hash); + } else { + $has_compiled_template = true; + } + unset($tpl); + } + // delete {include} standard attributes + unset($_attr[ 'file' ], $_attr[ 'assign' ], $_attr[ 'cache_id' ], $_attr[ 'compile_id' ], $_attr[ 'cache_lifetime' ], $_attr[ 'nocache' ], $_attr[ 'caching' ], $_attr[ 'scope' ], $_attr[ 'inline' ]); + // remaining attributes must be assigned as smarty variable + $_vars = 'array()'; + if (!empty($_attr)) { + $_pairs = array(); + // create variables + foreach ($_attr as $key => $value) { + $_pairs[] = "'$key'=>$value"; + } + $_vars = 'array(' . join(',', $_pairs) . ')'; + } + $update_compile_id = $compiler->template->caching && !$compiler->tag_nocache && !$compiler->nocache && + $_compile_id !== '$_smarty_tpl->compile_id'; + if ($has_compiled_template && !$call_nocache) { + $_output = "<?php\n"; + if ($update_compile_id) { + $_output .= $compiler->makeNocacheCode("\$_compile_id_save[] = \$_smarty_tpl->compile_id;\n\$_smarty_tpl->compile_id = {$_compile_id};\n"); + } + if (!empty($_attr) && $_caching === 9999 && $compiler->template->caching) { + $_vars_nc = "foreach ($_vars as \$ik => \$iv) {\n"; + $_vars_nc .= "\$_smarty_tpl->tpl_vars[\$ik] = new Smarty_Variable(\$iv);\n"; + $_vars_nc .= "}\n"; + $_output .= substr($compiler->processNocacheCode('<?php ' . $_vars_nc . "?>\n", true), 6, -3); + } + if (isset($_assign)) { + $_output .= "ob_start();\n"; + } + $_output .= "\$_smarty_tpl->_subTemplateRender({$fullResourceName}, {$_cache_id}, {$_compile_id}, {$_caching}, {$_cache_lifetime}, {$_vars}, {$_scope}, {$_cache_tpl}, '{$compiler->parent_compiler->mergedSubTemplatesData[$uid][$t_hash]['uid']}', '{$compiler->parent_compiler->mergedSubTemplatesData[$uid][$t_hash]['func']}');\n"; + if (isset($_assign)) { + $_output .= "\$_smarty_tpl->assign({$_assign}, ob_get_clean());\n"; + } + if ($update_compile_id) { + $_output .= $compiler->makeNocacheCode("\$_smarty_tpl->compile_id = array_pop(\$_compile_id_save);\n"); + } + $_output .= "?>"; + return $_output; + } + if ($call_nocache) { + $compiler->tag_nocache = true; + } + $_output = "<?php "; + if ($update_compile_id) { + $_output .= "\$_compile_id_save[] = \$_smarty_tpl->compile_id;\n\$_smarty_tpl->compile_id = {$_compile_id};\n"; + } + // was there an assign attribute + if (isset($_assign)) { + $_output .= "ob_start();\n"; + } + $_output .= "\$_smarty_tpl->_subTemplateRender({$fullResourceName}, $_cache_id, $_compile_id, $_caching, $_cache_lifetime, $_vars, $_scope, {$_cache_tpl});\n"; + if (isset($_assign)) { + $_output .= "\$_smarty_tpl->assign({$_assign}, ob_get_clean());\n"; + } + if ($update_compile_id) { + $_output .= "\$_smarty_tpl->compile_id = array_pop(\$_compile_id_save);\n"; + } + $_output .= "?>"; + return $_output; + } + + /** + * Compile inline sub template + * + * @param \Smarty_Internal_SmartyTemplateCompiler $compiler + * @param \Smarty_Internal_Template $tpl + * @param string $t_hash + * + * @return bool + * @throws \Exception + * @throws \SmartyException + */ + public function compileInlineTemplate( + Smarty_Internal_SmartyTemplateCompiler $compiler, + Smarty_Internal_Template $tpl, + $t_hash + ) { + $uid = $tpl->source->type . $tpl->source->uid; + if (!($tpl->source->handler->uncompiled) && $tpl->source->exists) { + $compiler->parent_compiler->mergedSubTemplatesData[ $uid ][ $t_hash ][ 'uid' ] = $tpl->source->uid; + if (isset($compiler->template->inheritance)) { + $tpl->inheritance = clone $compiler->template->inheritance; + } + $tpl->compiled = new Smarty_Template_Compiled(); + $tpl->compiled->nocache_hash = $compiler->parent_compiler->template->compiled->nocache_hash; + $tpl->loadCompiler(); + // save unique function name + $compiler->parent_compiler->mergedSubTemplatesData[ $uid ][ $t_hash ][ 'func' ] = + $tpl->compiled->unifunc = 'content_' . str_replace(array('.', ','), '_', uniqid('', true)); + // make sure whole chain gets compiled + $tpl->mustCompile = true; + $compiler->parent_compiler->mergedSubTemplatesData[ $uid ][ $t_hash ][ 'nocache_hash' ] = + $tpl->compiled->nocache_hash; + if ($tpl->source->type === 'file') { + $sourceInfo = $tpl->source->filepath; + } else { + $basename = $tpl->source->handler->getBasename($tpl->source); + $sourceInfo = $tpl->source->type . ':' . + ($basename ? $basename : $tpl->source->name); + } + // get compiled code + $compiled_code = "<?php\n\n"; + $compiled_code .= $compiler->cStyleComment(" Start inline template \"{$sourceInfo}\" =============================") . "\n"; + $compiled_code .= "function {$tpl->compiled->unifunc} (Smarty_Internal_Template \$_smarty_tpl) {\n"; + $compiled_code .= "?>\n" . $tpl->compiler->compileTemplateSource($tpl, null, $compiler->parent_compiler); + $compiled_code .= "<?php\n"; + $compiled_code .= "}\n?>\n"; + $compiled_code .= $tpl->compiler->postFilter($tpl->compiler->blockOrFunctionCode); + $compiled_code .= "<?php\n\n"; + $compiled_code .= $compiler->cStyleComment(" End inline template \"{$sourceInfo}\" =============================") . "\n"; + $compiled_code .= '?>'; + unset($tpl->compiler); + if ($tpl->compiled->has_nocache_code) { + // replace nocache_hash + $compiled_code = + str_replace( + "{$tpl->compiled->nocache_hash}", + $compiler->template->compiled->nocache_hash, + $compiled_code + ); + $compiler->template->compiled->has_nocache_code = true; + } + $compiler->parent_compiler->mergedSubTemplatesCode[ $tpl->compiled->unifunc ] = $compiled_code; + return true; + } else { + return false; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include_php.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include_php.php new file mode 100644 index 0000000000..1b0fdaad3c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_include_php.php @@ -0,0 +1,110 @@ +<?php +/** + * Smarty Internal Plugin Compile Include PHP + * Compiles the {include_php} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Insert Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('file'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('file'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('once', 'assign'); + + /** + * Compiles code for the {include_php} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + if (!($compiler->smarty instanceof SmartyBC)) { + throw new SmartyException("{include_php} is deprecated, use SmartyBC class to enable"); + } + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + /** + * + * + * @var Smarty_Internal_Template $_smarty_tpl + * used in evaluated code + */ + $_smarty_tpl = $compiler->template; + $_filepath = false; + $_file = null; + eval('$_file = @' . $_attr[ 'file' ] . ';'); + if (!isset($compiler->smarty->security_policy) && file_exists($_file)) { + $_filepath = $compiler->smarty->_realpath($_file, true); + } else { + if (isset($compiler->smarty->security_policy)) { + $_dir = $compiler->smarty->security_policy->trusted_dir; + } else { + $_dir = $compiler->smarty->trusted_dir; + } + if (!empty($_dir)) { + foreach ((array)$_dir as $_script_dir) { + $_path = $compiler->smarty->_realpath($_script_dir . DIRECTORY_SEPARATOR . $_file, true); + if (file_exists($_path)) { + $_filepath = $_path; + break; + } + } + } + } + if ($_filepath === false) { + $compiler->trigger_template_error("{include_php} file '{$_file}' is not readable", null, true); + } + if (isset($compiler->smarty->security_policy)) { + $compiler->smarty->security_policy->isTrustedPHPDir($_filepath); + } + if (isset($_attr[ 'assign' ])) { + // output will be stored in a smarty variable instead of being displayed + $_assign = $_attr[ 'assign' ]; + } + $_once = '_once'; + if (isset($_attr[ 'once' ])) { + if ($_attr[ 'once' ] === 'false') { + $_once = ''; + } + } + if (isset($_assign)) { + return "<?php ob_start();\ninclude{$_once} ('{$_filepath}');\n\$_smarty_tpl->assign({$_assign},ob_get_clean());\n?>"; + } else { + return "<?php include{$_once} ('{$_filepath}');?>\n"; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_insert.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_insert.php new file mode 100644 index 0000000000..4bdc3952e4 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_insert.php @@ -0,0 +1,157 @@ +<?php +/** + * Smarty Internal Plugin Compile Insert + * Compiles the {insert} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Insert Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Insert extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('name'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('name'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('_any'); + + /** + * Compiles code for the {insert} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $nocacheParam = $compiler->template->caching && ($compiler->tag_nocache || $compiler->nocache); + if (!$nocacheParam) { + // do not compile as nocache code + $compiler->suppressNocacheProcessing = true; + } + $compiler->tag_nocache = true; + $_smarty_tpl = $compiler->template; + $_name = null; + $_script = null; + $_output = '<?php '; + // save possible attributes + eval('$_name = @' . $_attr[ 'name' ] . ';'); + if (isset($_attr[ 'assign' ])) { + // output will be stored in a smarty variable instead of being displayed + $_assign = $_attr[ 'assign' ]; + // create variable to make sure that the compiler knows about its nocache status + $var = trim($_attr[ 'assign' ], '\''); + if (isset($compiler->template->tpl_vars[ $var ])) { + $compiler->template->tpl_vars[ $var ]->nocache = true; + } else { + $compiler->template->tpl_vars[ $var ] = new Smarty_Variable(null, true); + } + } + if (isset($_attr[ 'script' ])) { + // script which must be included + $_function = "smarty_insert_{$_name}"; + $_smarty_tpl = $compiler->template; + $_filepath = false; + eval('$_script = @' . $_attr[ 'script' ] . ';'); + if (!isset($compiler->smarty->security_policy) && file_exists($_script)) { + $_filepath = $_script; + } else { + if (isset($compiler->smarty->security_policy)) { + $_dir = $compiler->smarty->security_policy->trusted_dir; + } else { + $_dir = $compiler->smarty instanceof SmartyBC ? $compiler->smarty->trusted_dir : null; + } + if (!empty($_dir)) { + foreach ((array)$_dir as $_script_dir) { + $_script_dir = rtrim($_script_dir, '/\\') . DIRECTORY_SEPARATOR; + if (file_exists($_script_dir . $_script)) { + $_filepath = $_script_dir . $_script; + break; + } + } + } + } + if ($_filepath === false) { + $compiler->trigger_template_error("{insert} missing script file '{$_script}'", null, true); + } + // code for script file loading + $_output .= "require_once '{$_filepath}' ;"; + include_once $_filepath; + if (!is_callable($_function)) { + $compiler->trigger_template_error( + " {insert} function '{$_function}' is not callable in script file '{$_script}'", + null, + true + ); + } + } else { + $_filepath = 'null'; + $_function = "insert_{$_name}"; + // function in PHP script ? + if (!is_callable($_function)) { + // try plugin + if (!$_function = $compiler->getPlugin($_name, 'insert')) { + $compiler->trigger_template_error( + "{insert} no function or plugin found for '{$_name}'", + null, + true + ); + } + } + } + // delete {insert} standard attributes + unset($_attr[ 'name' ], $_attr[ 'assign' ], $_attr[ 'script' ], $_attr[ 'nocache' ]); + // convert attributes into parameter array string + $_paramsArray = array(); + foreach ($_attr as $_key => $_value) { + $_paramsArray[] = "'$_key' => $_value"; + } + $_params = 'array(' . implode(", ", $_paramsArray) . ')'; + // call insert + if (isset($_assign)) { + if ($_smarty_tpl->caching && !$nocacheParam) { + $_output .= "echo Smarty_Internal_Nocache_Insert::compile ('{$_function}',{$_params}, \$_smarty_tpl, '{$_filepath}',{$_assign});?>"; + } else { + $_output .= "\$_smarty_tpl->assign({$_assign} , {$_function} ({$_params},\$_smarty_tpl), true);?>"; + } + } else { + if ($_smarty_tpl->caching && !$nocacheParam) { + $_output .= "echo Smarty_Internal_Nocache_Insert::compile ('{$_function}',{$_params}, \$_smarty_tpl, '{$_filepath}');?>"; + } else { + $_output .= "echo {$_function}({$_params},\$_smarty_tpl);?>"; + } + } + $compiler->template->compiled->has_nocache_code = true; + return $_output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php new file mode 100644 index 0000000000..5493d4eccf --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php @@ -0,0 +1,37 @@ +<?php +/** + * Smarty Internal Plugin Compile Ldelim + * Compiles the {ldelim} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Ldelim Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Ldelim extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {ldelim} tag + * This tag does output the left delimiter + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + $_attr = $this->getAttributes($compiler, $args); + if ($_attr[ 'nocache' ] === true) { + $compiler->trigger_template_error('nocache option not allowed', null, true); + } + return $compiler->smarty->left_delimiter; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_make_nocache.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_make_nocache.php new file mode 100644 index 0000000000..8a34ccd0a5 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_make_nocache.php @@ -0,0 +1,62 @@ +<?php +/** + * Smarty Internal Plugin Compile Make_Nocache + * Compiles the {make_nocache} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Make_Nocache Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Make_Nocache extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $option_flags = array(); + + /** + * Array of names of required attribute required by tag + * + * @var array + */ + public $required_attributes = array('var'); + + /** + * Shorttag attribute order defined by its names + * + * @var array + */ + public $shorttag_order = array('var'); + + /** + * Compiles code for the {make_nocache} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + if ($compiler->template->caching) { + $output = "<?php \$_smarty_tpl->smarty->ext->_make_nocache->save(\$_smarty_tpl, {$_attr[ 'var' ]});\n?>\n"; + $compiler->template->compiled->has_nocache_code = true; + $compiler->suppressNocacheProcessing = true; + return $output; + } else { + return true; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php new file mode 100644 index 0000000000..12f64ed2e7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_nocache.php @@ -0,0 +1,73 @@ +<?php +/** + * Smarty Internal Plugin Compile Nocache + * Compiles the {nocache} {/nocache} tags. + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Nocache Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase +{ + /** + * Array of names of valid option flags + * + * @var array + */ + public $option_flags = array(); + + /** + * Compiles code for the {nocache} tag + * This tag does not generate compiled output. It only sets a compiler flag. + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return bool + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + $_attr = $this->getAttributes($compiler, $args); + $this->openTag($compiler, 'nocache', array($compiler->nocache)); + // enter nocache mode + $compiler->nocache = true; + // this tag does not return compiled code + $compiler->has_code = false; + return true; + } +} + +/** + * Smarty Internal Plugin Compile Nocacheclose Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Nocacheclose extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {/nocache} tag + * This tag does not generate compiled output. It only sets a compiler flag. + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return bool + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + $_attr = $this->getAttributes($compiler, $args); + // leave nocache mode + list($compiler->nocache) = $this->closeTag($compiler, array('nocache')); + // this tag does not return compiled code + $compiler->has_code = false; + return true; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_parent.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_parent.php new file mode 100644 index 0000000000..ff23edf73c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_parent.php @@ -0,0 +1,31 @@ +<?php +/** + * This file is part of Smarty. + * + * (c) 2015 Uwe Tews + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Smarty Internal Plugin Compile Parent Class + * + * @author Uwe Tews <uwe.tews@googlemail.com> + */ +class Smarty_Internal_Compile_Parent extends Smarty_Internal_Compile_Child +{ + /** + * Tag name + * + * @var string + */ + public $tag = 'parent'; + + /** + * Block type + * + * @var string + */ + public $blockType = 'Parent'; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_block_plugin.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_block_plugin.php new file mode 100644 index 0000000000..199a296c8c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_block_plugin.php @@ -0,0 +1,124 @@ +<?php +/** + * Smarty Internal Plugin Compile Block Plugin + * Compiles code for the execution of block plugin + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Block Plugin Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Private_Block_Plugin extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('_any'); + + /** + * nesting level + * + * @var int + */ + public $nesting = 0; + + /** + * Compiles code for the execution of block plugin + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * @param string $tag name of block plugin + * @param string $function PHP function name + * + * @return string compiled code + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter, $tag, $function = null) + { + if (!isset($tag[ 5 ]) || substr($tag, -5) !== 'close') { + // opening tag of block plugin + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $this->nesting++; + unset($_attr[ 'nocache' ]); + list($callback, $_paramsArray, $callable) = $this->setup($compiler, $_attr, $tag, $function); + $_params = 'array(' . implode(',', $_paramsArray) . ')'; + // compile code + $output = "<?php "; + if (is_array($callback)) { + $output .= "\$_block_plugin{$this->nesting} = isset({$callback[0]}) ? {$callback[0]} : null;\n"; + $callback = "\$_block_plugin{$this->nesting}{$callback[1]}"; + } + if (isset($callable)) { + $output .= "if (!is_callable({$callable})) {\nthrow new SmartyException('block tag \'{$tag}\' not callable or registered');\n}\n"; + } + $output .= "\$_smarty_tpl->smarty->_cache['_tag_stack'][] = array('{$tag}', {$_params});\n"; + $output .= "\$_block_repeat=true;\necho {$callback}({$_params}, null, \$_smarty_tpl, \$_block_repeat);\nwhile (\$_block_repeat) {\nob_start();?>"; + $this->openTag($compiler, $tag, array($_params, $compiler->nocache, $callback)); + // maybe nocache because of nocache variables or nocache plugin + $compiler->nocache = $compiler->nocache | $compiler->tag_nocache; + } else { + // must endblock be nocache? + if ($compiler->nocache) { + $compiler->tag_nocache = true; + } + // closing tag of block plugin, restore nocache + list($_params, $compiler->nocache, $callback) = $this->closeTag($compiler, substr($tag, 0, -5)); + // compile code + if (!isset($parameter[ 'modifier_list' ])) { + $mod_pre = $mod_post = $mod_content = ''; + $mod_content2 = 'ob_get_clean()'; + } else { + $mod_content2 = "\$_block_content{$this->nesting}"; + $mod_content = "\$_block_content{$this->nesting} = ob_get_clean();\n"; + $mod_pre = "ob_start();\n"; + $mod_post = 'echo ' . $compiler->compileTag( + 'private_modifier', + array(), + array( + 'modifierlist' => $parameter[ 'modifier_list' ], + 'value' => 'ob_get_clean()' + ) + ) . ";\n"; + } + $output = + "<?php {$mod_content}\$_block_repeat=false;\n{$mod_pre}echo {$callback}({$_params}, {$mod_content2}, \$_smarty_tpl, \$_block_repeat);\n{$mod_post}}\n"; + $output .= 'array_pop($_smarty_tpl->smarty->_cache[\'_tag_stack\']);?>'; + } + return $output; + } + + /** + * Setup callback and parameter array + * + * @param \Smarty_Internal_TemplateCompilerBase $compiler + * @param array $_attr attributes + * @param string $tag + * @param string $function + * + * @return array + */ + public function setup(Smarty_Internal_TemplateCompilerBase $compiler, $_attr, $tag, $function) + { + $_paramsArray = array(); + foreach ($_attr as $_key => $_value) { + if (is_int($_key)) { + $_paramsArray[] = "$_key=>$_value"; + } else { + $_paramsArray[] = "'$_key'=>$_value"; + } + } + return array($function, $_paramsArray, null); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_foreachsection.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_foreachsection.php new file mode 100644 index 0000000000..d3aab24bb0 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_foreachsection.php @@ -0,0 +1,228 @@ +<?php +/** + * Smarty Internal Plugin Compile ForeachSection + * Shared methods for {foreach} {section} tags + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile ForeachSection Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Private_ForeachSection extends Smarty_Internal_CompileBase +{ + /** + * Name of this tag + * + * @var string + */ + public $tagName = ''; + + /** + * Valid properties of $smarty.xxx variable + * + * @var array + */ + public $nameProperties = array(); + + /** + * {section} tag has no item properties + * + * @var array + */ + public $itemProperties = null; + + /** + * {section} tag has always name attribute + * + * @var bool + */ + public $isNamed = true; + + /** + * @var array + */ + public $matchResults = array(); + + /** + * Preg search pattern + * + * @var string + */ + private $propertyPreg = ''; + + /** + * Offsets in preg match result + * + * @var array + */ + private $resultOffsets = array(); + + /** + * Start offset + * + * @var int + */ + private $startOffset = 0; + + /** + * Scan sources for used tag attributes + * + * @param array $attributes + * @param \Smarty_Internal_TemplateCompilerBase $compiler + * + * @throws \SmartyException + */ + public function scanForProperties($attributes, Smarty_Internal_TemplateCompilerBase $compiler) + { + $this->propertyPreg = '~('; + $this->startOffset = 1; + $this->resultOffsets = array(); + $this->matchResults = array('named' => array(), 'item' => array()); + if (isset($attributes[ 'name' ])) { + $this->buildPropertyPreg(true, $attributes); + } + if (isset($this->itemProperties)) { + if ($this->isNamed) { + $this->propertyPreg .= '|'; + } + $this->buildPropertyPreg(false, $attributes); + } + $this->propertyPreg .= ')\W~i'; + // Template source + $this->matchTemplateSource($compiler); + // Parent template source + $this->matchParentTemplateSource($compiler); + // {block} source + $this->matchBlockSource($compiler); + } + + /** + * Build property preg string + * + * @param bool $named + * @param array $attributes + */ + public function buildPropertyPreg($named, $attributes) + { + if ($named) { + $this->resultOffsets[ 'named' ] = $this->startOffset = $this->startOffset + 3; + $this->propertyPreg .= "(([\$]smarty[.]{$this->tagName}[.]" . + ($this->tagName === 'section' ? "|[\[]\s*" : '') . + "){$attributes['name']}[.]("; + $properties = $this->nameProperties; + } else { + $this->resultOffsets[ 'item' ] = $this->startOffset = $this->startOffset + 2; + $this->propertyPreg .= "([\$]{$attributes['item']}[@]("; + $properties = $this->itemProperties; + } + $propName = reset($properties); + while ($propName) { + $this->propertyPreg .= "{$propName}"; + $propName = next($properties); + if ($propName) { + $this->propertyPreg .= '|'; + } + } + $this->propertyPreg .= '))'; + } + + /** + * Find matches in source string + * + * @param string $source + */ + public function matchProperty($source) + { + preg_match_all($this->propertyPreg, $source, $match); + foreach ($this->resultOffsets as $key => $offset) { + foreach ($match[ $offset ] as $m) { + if (!empty($m)) { + $this->matchResults[ $key ][ strtolower($m) ] = true; + } + } + } + } + + /** + * Find matches in template source + * + * @param \Smarty_Internal_TemplateCompilerBase $compiler + */ + public function matchTemplateSource(Smarty_Internal_TemplateCompilerBase $compiler) + { + $this->matchProperty($compiler->parser->lex->data); + } + + /** + * Find matches in all parent template source + * + * @param \Smarty_Internal_TemplateCompilerBase $compiler + * + * @throws \SmartyException + */ + public function matchParentTemplateSource(Smarty_Internal_TemplateCompilerBase $compiler) + { + // search parent compiler template source + $nextCompiler = $compiler; + while ($nextCompiler !== $nextCompiler->parent_compiler) { + $nextCompiler = $nextCompiler->parent_compiler; + if ($compiler !== $nextCompiler) { + // get template source + $_content = $nextCompiler->template->source->getContent(); + if ($_content !== '') { + // run pre filter if required + if ((isset($nextCompiler->smarty->autoload_filters[ 'pre' ]) || + isset($nextCompiler->smarty->registered_filters[ 'pre' ])) + ) { + $_content = $nextCompiler->smarty->ext->_filterHandler->runFilter( + 'pre', + $_content, + $nextCompiler->template + ); + } + $this->matchProperty($_content); + } + } + } + } + + /** + * Find matches in {block} tag source + * + * @param \Smarty_Internal_TemplateCompilerBase $compiler + */ + public function matchBlockSource(Smarty_Internal_TemplateCompilerBase $compiler) + { + } + + /** + * Compiles code for the {$smarty.foreach.xxx} or {$smarty.section.xxx}tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compileSpecialVariable($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + $tag = strtolower(trim($parameter[ 0 ], '"\'')); + $name = isset($parameter[ 1 ]) ? $compiler->getId($parameter[ 1 ]) : false; + if (!$name) { + $compiler->trigger_template_error("missing or illegal \$smarty.{$tag} name attribute", null, true); + } + $property = isset($parameter[ 2 ]) ? strtolower($compiler->getId($parameter[ 2 ])) : false; + if (!$property || !in_array($property, $this->nameProperties)) { + $compiler->trigger_template_error("missing or illegal \$smarty.{$tag} property attribute", null, true); + } + $tagVar = "'__smarty_{$tag}_{$name}'"; + return "(isset(\$_smarty_tpl->tpl_vars[{$tagVar}]->value['{$property}']) ? \$_smarty_tpl->tpl_vars[{$tagVar}]->value['{$property}'] : null)"; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_function_plugin.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_function_plugin.php new file mode 100644 index 0000000000..055823423e --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_function_plugin.php @@ -0,0 +1,78 @@ +<?php +/** + * Smarty Internal Plugin Compile Function Plugin + * Compiles code for the execution of function plugin + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Function Plugin Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Private_Function_Plugin extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array(); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('_any'); + + /** + * Compiles code for the execution of function plugin + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * @param string $tag name of function plugin + * @param string $function PHP function name + * + * @return string compiled code + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter, $tag, $function) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + unset($_attr[ 'nocache' ]); + // convert attributes into parameter array string + $_paramsArray = array(); + foreach ($_attr as $_key => $_value) { + if (is_int($_key)) { + $_paramsArray[] = "$_key=>$_value"; + } else { + $_paramsArray[] = "'$_key'=>$_value"; + } + } + $_params = 'array(' . implode(',', $_paramsArray) . ')'; + // compile code + $output = "{$function}({$_params},\$_smarty_tpl)"; + if (!empty($parameter[ 'modifierlist' ])) { + $output = $compiler->compileTag( + 'private_modifier', + array(), + array( + 'modifierlist' => $parameter[ 'modifierlist' ], + 'value' => $output + ) + ); + } + $output = "<?php echo {$output};?>\n"; + return $output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php new file mode 100644 index 0000000000..72773fff8c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php @@ -0,0 +1,158 @@ +<?php +/** + * Smarty Internal Plugin Compile Modifier + * Compiles code for modifier execution + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Modifier Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Private_Modifier extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for modifier execution + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $output = $parameter[ 'value' ]; + // loop over list of modifiers + foreach ($parameter[ 'modifierlist' ] as $single_modifier) { + /* @var string $modifier */ + $modifier = $single_modifier[ 0 ]; + $single_modifier[ 0 ] = $output; + $params = implode(',', $single_modifier); + // check if we know already the type of modifier + if (isset($compiler->known_modifier_type[ $modifier ])) { + $modifier_types = array($compiler->known_modifier_type[ $modifier ]); + } else { + $modifier_types = array(1, 2, 3, 4, 5, 6); + } + foreach ($modifier_types as $type) { + switch ($type) { + case 1: + // registered modifier + if (isset($compiler->smarty->registered_plugins[ Smarty::PLUGIN_MODIFIER ][ $modifier ])) { + if (is_callable($compiler->smarty->registered_plugins[ Smarty::PLUGIN_MODIFIER ][ $modifier ][ 0 ])) { + $output = + sprintf( + 'call_user_func_array($_smarty_tpl->registered_plugins[ \'%s\' ][ %s ][ 0 ], array( %s ))', + Smarty::PLUGIN_MODIFIER, + var_export($modifier, true), + $params + ); + $compiler->known_modifier_type[ $modifier ] = $type; + break 2; + } + } + break; + case 2: + // registered modifier compiler + if (isset($compiler->smarty->registered_plugins[ Smarty::PLUGIN_MODIFIERCOMPILER ][ $modifier ][ 0 ])) { + $output = + call_user_func( + $compiler->smarty->registered_plugins[ Smarty::PLUGIN_MODIFIERCOMPILER ][ $modifier ][ 0 ], + $single_modifier, + $compiler->smarty + ); + $compiler->known_modifier_type[ $modifier ] = $type; + break 2; + } + break; + case 3: + // modifiercompiler plugin + if ($compiler->smarty->loadPlugin('smarty_modifiercompiler_' . $modifier)) { + // check if modifier allowed + if (!is_object($compiler->smarty->security_policy) + || $compiler->smarty->security_policy->isTrustedModifier($modifier, $compiler) + ) { + $plugin = 'smarty_modifiercompiler_' . $modifier; + $output = $plugin($single_modifier, $compiler); + } + $compiler->known_modifier_type[ $modifier ] = $type; + break 2; + } + break; + case 4: + // modifier plugin + if ($function = $compiler->getPlugin($modifier, Smarty::PLUGIN_MODIFIER)) { + // check if modifier allowed + if (!is_object($compiler->smarty->security_policy) + || $compiler->smarty->security_policy->isTrustedModifier($modifier, $compiler) + ) { + $output = "{$function}({$params})"; + } + $compiler->known_modifier_type[ $modifier ] = $type; + break 2; + } + break; + case 5: + // PHP function + if (is_callable($modifier)) { + // check if modifier allowed + if (!is_object($compiler->smarty->security_policy) + || $compiler->smarty->security_policy->isTrustedPhpModifier($modifier, $compiler) + ) { + $output = "{$modifier}({$params})"; + } + $compiler->known_modifier_type[ $modifier ] = $type; + break 2; + } + break; + case 6: + // default plugin handler + if (isset($compiler->default_handler_plugins[ Smarty::PLUGIN_MODIFIER ][ $modifier ]) + || (is_callable($compiler->smarty->default_plugin_handler_func) + && $compiler->getPluginFromDefaultHandler($modifier, Smarty::PLUGIN_MODIFIER)) + ) { + $function = $compiler->default_handler_plugins[ Smarty::PLUGIN_MODIFIER ][ $modifier ][ 0 ]; + // check if modifier allowed + if (!is_object($compiler->smarty->security_policy) + || $compiler->smarty->security_policy->isTrustedModifier($modifier, $compiler) + ) { + if (!is_array($function)) { + $output = "{$function}({$params})"; + } else { + if (is_object($function[ 0 ])) { + $output = $function[ 0 ] . '->' . $function[ 1 ] . '(' . $params . ')'; + } else { + $output = $function[ 0 ] . '::' . $function[ 1 ] . '(' . $params . ')'; + } + } + } + if (isset($compiler->required_plugins[ 'nocache' ][ $modifier ][ Smarty::PLUGIN_MODIFIER ][ 'file' ]) + || + isset($compiler->required_plugins[ 'compiled' ][ $modifier ][ Smarty::PLUGIN_MODIFIER ][ 'file' ]) + ) { + // was a plugin + $compiler->known_modifier_type[ $modifier ] = 4; + } else { + $compiler->known_modifier_type[ $modifier ] = $type; + } + break 2; + } + } + } + if (!isset($compiler->known_modifier_type[ $modifier ])) { + $compiler->trigger_template_error("unknown modifier '{$modifier}'", null, true); + } + } + return $output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php new file mode 100644 index 0000000000..baac51b285 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php @@ -0,0 +1,42 @@ +<?php +/** + * Smarty Internal Plugin Compile Object Block Function + * Compiles code for registered objects as block function + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Object Block Function Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Private_Object_Block_Function extends Smarty_Internal_Compile_Private_Block_Plugin +{ + /** + * Setup callback and parameter array + * + * @param \Smarty_Internal_TemplateCompilerBase $compiler + * @param array $_attr attributes + * @param string $tag + * @param string $method + * + * @return array + */ + public function setup(Smarty_Internal_TemplateCompilerBase $compiler, $_attr, $tag, $method) + { + $_paramsArray = array(); + foreach ($_attr as $_key => $_value) { + if (is_int($_key)) { + $_paramsArray[] = "$_key=>$_value"; + } else { + $_paramsArray[] = "'$_key'=>$_value"; + } + } + $callback = array("\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]", "->{$method}"); + return array($callback, $_paramsArray, "array(\$_block_plugin{$this->nesting}, '{$method}')"); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php new file mode 100644 index 0000000000..2a763c6e3f --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_object_function.php @@ -0,0 +1,85 @@ +<?php +/** + * Smarty Internal Plugin Compile Object Function + * Compiles code for registered objects as function + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Object Function Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Private_Object_Function extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('_any'); + + /** + * Compiles code for the execution of function plugin + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * @param string $tag name of function + * @param string $method name of method to call + * + * @return string compiled code + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter, $tag, $method) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + unset($_attr[ 'nocache' ]); + $_assign = null; + if (isset($_attr[ 'assign' ])) { + $_assign = $_attr[ 'assign' ]; + unset($_attr[ 'assign' ]); + } + // method or property ? + if (is_callable(array($compiler->smarty->registered_objects[ $tag ][ 0 ], $method))) { + // convert attributes into parameter array string + if ($compiler->smarty->registered_objects[ $tag ][ 2 ]) { + $_paramsArray = array(); + foreach ($_attr as $_key => $_value) { + if (is_int($_key)) { + $_paramsArray[] = "$_key=>$_value"; + } else { + $_paramsArray[] = "'$_key'=>$_value"; + } + } + $_params = 'array(' . implode(',', $_paramsArray) . ')'; + $output = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}({$_params},\$_smarty_tpl)"; + } else { + $_params = implode(',', $_attr); + $output = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}({$_params})"; + } + } else { + // object property + $output = "\$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}"; + } + if (!empty($parameter[ 'modifierlist' ])) { + $output = $compiler->compileTag( + 'private_modifier', + array(), + array('modifierlist' => $parameter[ 'modifierlist' ], 'value' => $output) + ); + } + if (empty($_assign)) { + return "<?php echo {$output};?>\n"; + } else { + return "<?php \$_smarty_tpl->assign({$_assign},{$output});?>\n"; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_php.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_php.php new file mode 100644 index 0000000000..ff48c6fbce --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_php.php @@ -0,0 +1,253 @@ +<?php +/** + * Smarty Internal Plugin Compile PHP Expression + * Compiles any tag which will output an expression or variable + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile PHP Expression Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Private_Php extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('code', 'type'); + + /** + * Compiles code for generating output from any expression + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $compiler->has_code = false; + if ($_attr[ 'type' ] === 'xml') { + $compiler->tag_nocache = true; + $output = addcslashes($_attr[ 'code' ], "'\\"); + $compiler->parser->current_buffer->append_subtree( + $compiler->parser, + new Smarty_Internal_ParseTree_Tag( + $compiler->parser, + $compiler->processNocacheCode( + "<?php echo '{$output}';?>\n", + true + ) + ) + ); + return ''; + } + if ($_attr[ 'type' ] !== 'tag') { + if ($compiler->php_handling === Smarty::PHP_REMOVE) { + return ''; + } elseif ($compiler->php_handling === Smarty::PHP_QUOTE) { + $output = + preg_replace_callback( + '#(<\?(?:php|=)?)|(<%)|(<script\s+language\s*=\s*["\']?\s*php\s*["\']?\s*>)|(\?>)|(%>)|(<\/script>)#i', + array($this, 'quote'), + $_attr[ 'code' ] + ); + $compiler->parser->current_buffer->append_subtree( + $compiler->parser, + new Smarty_Internal_ParseTree_Text($output) + ); + return ''; + } elseif ($compiler->php_handling === Smarty::PHP_PASSTHRU || $_attr[ 'type' ] === 'unmatched') { + $compiler->tag_nocache = true; + $output = addcslashes($_attr[ 'code' ], "'\\"); + $compiler->parser->current_buffer->append_subtree( + $compiler->parser, + new Smarty_Internal_ParseTree_Tag( + $compiler->parser, + $compiler->processNocacheCode( + "<?php echo '{$output}';?>\n", + true + ) + ) + ); + return ''; + } elseif ($compiler->php_handling === Smarty::PHP_ALLOW) { + if (!($compiler->smarty instanceof SmartyBC)) { + $compiler->trigger_template_error( + '$smarty->php_handling PHP_ALLOW not allowed. Use SmartyBC to enable it', + null, + true + ); + } + $compiler->has_code = true; + return $_attr[ 'code' ]; + } else { + $compiler->trigger_template_error('Illegal $smarty->php_handling value', null, true); + } + } else { + $compiler->has_code = true; + if (!($compiler->smarty instanceof SmartyBC)) { + $compiler->trigger_template_error( + '{php}{/php} tags not allowed. Use SmartyBC to enable them', + null, + true + ); + } + $ldel = preg_quote($compiler->smarty->left_delimiter, '#'); + $rdel = preg_quote($compiler->smarty->right_delimiter, '#'); + preg_match("#^({$ldel}php\\s*)((.)*?)({$rdel})#", $_attr[ 'code' ], $match); + if (!empty($match[ 2 ])) { + if ('nocache' === trim($match[ 2 ])) { + $compiler->tag_nocache = true; + } else { + $compiler->trigger_template_error("illegal value of option flag '{$match[2]}'", null, true); + } + } + return preg_replace( + array("#^{$ldel}\\s*php\\s*(.)*?{$rdel}#", "#{$ldel}\\s*/\\s*php\\s*{$rdel}$#"), + array('<?php ', '?>'), + $_attr[ 'code' ] + ); + } + } + + /** + * Lexer code for PHP tags + * + * This code has been moved from lexer here fo easier debugging and maintenance + * + * @param Smarty_Internal_Templatelexer $lex + * + * @throws \SmartyCompilerException + */ + public function parsePhp(Smarty_Internal_Templatelexer $lex) + { + $lex->token = Smarty_Internal_Templateparser::TP_PHP; + $close = 0; + $lex->taglineno = $lex->line; + $closeTag = '?>'; + if (strpos($lex->value, '<?xml') === 0) { + $lex->is_xml = true; + $lex->phpType = 'xml'; + return; + } elseif (strpos($lex->value, '<?') === 0) { + $lex->phpType = 'php'; + } elseif (strpos($lex->value, '<%') === 0) { + $lex->phpType = 'asp'; + $closeTag = '%>'; + } elseif (strpos($lex->value, '%>') === 0) { + $lex->phpType = 'unmatched'; + } elseif (strpos($lex->value, '?>') === 0) { + if ($lex->is_xml) { + $lex->is_xml = false; + $lex->phpType = 'xml'; + return; + } + $lex->phpType = 'unmatched'; + } elseif (strpos($lex->value, '<s') === 0) { + $lex->phpType = 'script'; + $closeTag = '</script>'; + } elseif (strpos($lex->value, $lex->smarty->left_delimiter) === 0) { + if ($lex->isAutoLiteral()) { + $lex->token = Smarty_Internal_Templateparser::TP_TEXT; + return; + } + $closeTag = "{$lex->smarty->left_delimiter}/php{$lex->smarty->right_delimiter}"; + if ($lex->value === $closeTag) { + $lex->compiler->trigger_template_error("unexpected closing tag '{$closeTag}'"); + } + $lex->phpType = 'tag'; + } + if ($lex->phpType === 'unmatched') { + return; + } + if (($lex->phpType === 'php' || $lex->phpType === 'asp') + && + ($lex->compiler->php_handling === Smarty::PHP_PASSTHRU || + $lex->compiler->php_handling === Smarty::PHP_QUOTE) + ) { + return; + } + $start = $lex->counter + strlen($lex->value); + $body = true; + if (preg_match('~' . preg_quote($closeTag, '~') . '~i', $lex->data, $match, PREG_OFFSET_CAPTURE, $start)) { + $close = $match[ 0 ][ 1 ]; + } else { + $lex->compiler->trigger_template_error("missing closing tag '{$closeTag}'"); + } + while ($body) { + if (preg_match( + '~([/][*])|([/][/][^\n]*)|(\'[^\'\\\\]*(?:\\.[^\'\\\\]*)*\')|("[^"\\\\]*(?:\\.[^"\\\\]*)*")~', + $lex->data, + $match, + PREG_OFFSET_CAPTURE, + $start + ) + ) { + $value = $match[ 0 ][ 0 ]; + $from = $pos = $match[ 0 ][ 1 ]; + if ($pos > $close) { + $body = false; + } else { + $start = $pos + strlen($value); + $phpCommentStart = $value === '/*'; + if ($phpCommentStart) { + $phpCommentEnd = preg_match('~([*][/])~', $lex->data, $match, PREG_OFFSET_CAPTURE, $start); + if ($phpCommentEnd) { + $pos2 = $match[ 0 ][ 1 ]; + $start = $pos2 + strlen($match[ 0 ][ 0 ]); + } + } + while ($close > $pos && $close < $start) { + if (preg_match( + '~' . preg_quote($closeTag, '~') . '~i', + $lex->data, + $match, + PREG_OFFSET_CAPTURE, + $from + ) + ) { + $close = $match[ 0 ][ 1 ]; + $from = $close + strlen($match[ 0 ][ 0 ]); + } else { + $lex->compiler->trigger_template_error("missing closing tag '{$closeTag}'"); + } + } + if ($phpCommentStart && (!$phpCommentEnd || $pos2 > $close)) { + $lex->taglineno = $lex->line + substr_count(substr($lex->data, $lex->counter, $start), "\n"); + $lex->compiler->trigger_template_error("missing PHP comment closing tag '*/'"); + } + } + } else { + $body = false; + } + } + $lex->value = substr($lex->data, $lex->counter, $close + strlen($closeTag) - $lex->counter); + } + + /* + * Call back function for $php_handling = PHP_QUOTE + * + */ + /** + * @param $match + * + * @return string + */ + private function quote($match) + { + return htmlspecialchars($match[ 0 ], ENT_QUOTES); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_print_expression.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_print_expression.php new file mode 100644 index 0000000000..23cae8aefd --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_print_expression.php @@ -0,0 +1,161 @@ +<?php +/** + * Smarty Internal Plugin Compile Print Expression + * Compiles any tag which will output an expression or variable + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Print Expression Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Private_Print_Expression extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('assign'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $option_flags = array('nocache', 'nofilter'); + + /** + * Compiles code for generating output from any expression + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $output = $parameter[ 'value' ]; + // tag modifier + if (!empty($parameter[ 'modifierlist' ])) { + $output = $compiler->compileTag( + 'private_modifier', + array(), + array( + 'modifierlist' => $parameter[ 'modifierlist' ], + 'value' => $output + ) + ); + } + if (isset($_attr[ 'assign' ])) { + // assign output to variable + return "<?php \$_smarty_tpl->assign({$_attr['assign']},{$output});?>"; + } else { + // display value + if (!$_attr[ 'nofilter' ]) { + // default modifier + if (!empty($compiler->smarty->default_modifiers)) { + if (empty($compiler->default_modifier_list)) { + $modifierlist = array(); + foreach ($compiler->smarty->default_modifiers as $key => $single_default_modifier) { + preg_match_all( + '/(\'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\'|"[^"\\\\]*(?:\\\\.[^"\\\\]*)*"|:|[^:]+)/', + $single_default_modifier, + $mod_array + ); + for ($i = 0, $count = count($mod_array[ 0 ]); $i < $count; $i++) { + if ($mod_array[ 0 ][ $i ] !== ':') { + $modifierlist[ $key ][] = $mod_array[ 0 ][ $i ]; + } + } + } + $compiler->default_modifier_list = $modifierlist; + } + $output = $compiler->compileTag( + 'private_modifier', + array(), + array( + 'modifierlist' => $compiler->default_modifier_list, + 'value' => $output + ) + ); + } + // autoescape html + if ($compiler->template->smarty->escape_html) { + $output = "htmlspecialchars({$output}, ENT_QUOTES, '" . addslashes(Smarty::$_CHARSET) . "')"; + } + // loop over registered filters + if (!empty($compiler->template->smarty->registered_filters[ Smarty::FILTER_VARIABLE ])) { + foreach ($compiler->template->smarty->registered_filters[ Smarty::FILTER_VARIABLE ] as $key => + $function) { + if (!is_array($function)) { + $output = "{$function}({$output},\$_smarty_tpl)"; + } elseif (is_object($function[ 0 ])) { + $output = + "\$_smarty_tpl->smarty->registered_filters[Smarty::FILTER_VARIABLE]['{$key}'][0]->{$function[1]}({$output},\$_smarty_tpl)"; + } else { + $output = "{$function[0]}::{$function[1]}({$output},\$_smarty_tpl)"; + } + } + } + // auto loaded filters + if (isset($compiler->smarty->autoload_filters[ Smarty::FILTER_VARIABLE ])) { + foreach ((array)$compiler->template->smarty->autoload_filters[ Smarty::FILTER_VARIABLE ] as $name) { + $result = $this->compile_variable_filter($compiler, $name, $output); + if ($result !== false) { + $output = $result; + } else { + // not found, throw exception + throw new SmartyException("Unable to load variable filter '{$name}'"); + } + } + } + foreach ($compiler->variable_filters as $filter) { + if (count($filter) === 1 + && ($result = $this->compile_variable_filter($compiler, $filter[ 0 ], $output)) !== false + ) { + $output = $result; + } else { + $output = $compiler->compileTag( + 'private_modifier', + array(), + array('modifierlist' => array($filter), 'value' => $output) + ); + } + } + } + $output = "<?php echo {$output};?>\n"; + } + return $output; + } + + /** + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param string $name name of variable filter + * @param string $output embedded output + * + * @return string + * @throws \SmartyException + */ + private function compile_variable_filter(Smarty_Internal_TemplateCompilerBase $compiler, $name, $output) + { + $function = $compiler->getPlugin($name, 'variablefilter'); + if ($function) { + return "{$function}({$output},\$_smarty_tpl)"; + } else { + // not found + return false; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_block.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_block.php new file mode 100644 index 0000000000..0f818d1b37 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_block.php @@ -0,0 +1,72 @@ +<?php +/** + * Smarty Internal Plugin Compile Registered Block + * Compiles code for the execution of a registered block function + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Registered Block Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Private_Registered_Block extends Smarty_Internal_Compile_Private_Block_Plugin +{ + /** + * Setup callback, parameter array and nocache mode + * + * @param \Smarty_Internal_TemplateCompilerBase $compiler + * @param array $_attr attributes + * @param string $tag + * @param null $function + * + * @return array + */ + public function setup(Smarty_Internal_TemplateCompilerBase $compiler, $_attr, $tag, $function) + { + if (isset($compiler->smarty->registered_plugins[ Smarty::PLUGIN_BLOCK ][ $tag ])) { + $tag_info = $compiler->smarty->registered_plugins[ Smarty::PLUGIN_BLOCK ][ $tag ]; + $callback = $tag_info[ 0 ]; + if (is_array($callback)) { + if (is_object($callback[ 0 ])) { + $callable = "array(\$_block_plugin{$this->nesting}, '{$callback[1]}')"; + $callback = + array("\$_smarty_tpl->smarty->registered_plugins['block']['{$tag}'][0][0]", "->{$callback[1]}"); + } else { + $callable = "array(\$_block_plugin{$this->nesting}, '{$callback[1]}')"; + $callback = + array("\$_smarty_tpl->smarty->registered_plugins['block']['{$tag}'][0][0]", "::{$callback[1]}"); + } + } else { + $callable = "\$_block_plugin{$this->nesting}"; + $callback = array("\$_smarty_tpl->smarty->registered_plugins['block']['{$tag}'][0]", ''); + } + } else { + $tag_info = $compiler->default_handler_plugins[ Smarty::PLUGIN_BLOCK ][ $tag ]; + $callback = $tag_info[ 0 ]; + if (is_array($callback)) { + $callable = "array('{$callback[0]}', '{$callback[1]}')"; + $callback = "{$callback[1]}::{$callback[1]}"; + } else { + $callable = null; + } + } + $compiler->tag_nocache = !$tag_info[ 1 ] | $compiler->tag_nocache; + $_paramsArray = array(); + foreach ($_attr as $_key => $_value) { + if (is_int($_key)) { + $_paramsArray[] = "$_key=>$_value"; + } elseif ($compiler->template->caching && in_array($_key, $tag_info[ 2 ])) { + $_value = str_replace('\'', "^#^", $_value); + $_paramsArray[] = "'$_key'=>^#^.var_export($_value,true).^#^"; + } else { + $_paramsArray[] = "'$_key'=>$_value"; + } + } + return array($callback, $_paramsArray, $callable); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_function.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_function.php new file mode 100644 index 0000000000..2591107d23 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_registered_function.php @@ -0,0 +1,91 @@ +<?php +/** + * Smarty Internal Plugin Compile Registered Function + * Compiles code for the execution of a registered function + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Registered Function Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Private_Registered_Function extends Smarty_Internal_CompileBase +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('_any'); + + /** + * Compiles code for the execution of a registered function + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * @param string $tag name of function + * + * @return string compiled code + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter, $tag) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + unset($_attr[ 'nocache' ]); + if (isset($compiler->smarty->registered_plugins[ Smarty::PLUGIN_FUNCTION ][ $tag ])) { + $tag_info = $compiler->smarty->registered_plugins[ Smarty::PLUGIN_FUNCTION ][ $tag ]; + $is_registered = true; + } else { + $tag_info = $compiler->default_handler_plugins[ Smarty::PLUGIN_FUNCTION ][ $tag ]; + $is_registered = false; + } + // not cacheable? + $compiler->tag_nocache = $compiler->tag_nocache || !$tag_info[ 1 ]; + // convert attributes into parameter array string + $_paramsArray = array(); + foreach ($_attr as $_key => $_value) { + if (is_int($_key)) { + $_paramsArray[] = "$_key=>$_value"; + } elseif ($compiler->template->caching && in_array($_key, $tag_info[ 2 ])) { + $_value = str_replace('\'', "^#^", $_value); + $_paramsArray[] = "'$_key'=>^#^.var_export($_value,true).^#^"; + } else { + $_paramsArray[] = "'$_key'=>$_value"; + } + } + $_params = 'array(' . implode(',', $_paramsArray) . ')'; + // compile code + if ($is_registered) { + $output = + "call_user_func_array( \$_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['{$tag}'][0], array( {$_params},\$_smarty_tpl ) )"; + } else { + $function = $tag_info[ 0 ]; + if (!is_array($function)) { + $output = "{$function}({$_params},\$_smarty_tpl)"; + } else { + $output = "{$function[0]}::{$function[1]}({$_params},\$_smarty_tpl)"; + } + } + if (!empty($parameter[ 'modifierlist' ])) { + $output = $compiler->compileTag( + 'private_modifier', + array(), + array( + 'modifierlist' => $parameter[ 'modifierlist' ], + 'value' => $output + ) + ); + } + $output = "<?php echo {$output};?>\n"; + return $output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_special_variable.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_special_variable.php new file mode 100644 index 0000000000..d53ef51ff1 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_special_variable.php @@ -0,0 +1,130 @@ +<?php +/** + * Smarty Internal Plugin Compile Special Smarty Variable + * Compiles the special $smarty variables + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile special Smarty Variable Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the special $smarty variables + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param $parameter + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + $_index = preg_split("/\]\[/", substr($parameter, 1, strlen($parameter) - 2)); + $variable = strtolower($compiler->getId($_index[ 0 ])); + if ($variable === false) { + $compiler->trigger_template_error("special \$Smarty variable name index can not be variable", null, true); + } + if (!isset($compiler->smarty->security_policy) + || $compiler->smarty->security_policy->isTrustedSpecialSmartyVar($variable, $compiler) + ) { + switch ($variable) { + case 'foreach': + case 'section': + if (!isset(Smarty_Internal_TemplateCompilerBase::$_tag_objects[ $variable ])) { + $class = 'Smarty_Internal_Compile_' . ucfirst($variable); + Smarty_Internal_TemplateCompilerBase::$_tag_objects[ $variable ] = new $class; + } + return Smarty_Internal_TemplateCompilerBase::$_tag_objects[ $variable ]->compileSpecialVariable( + array(), + $compiler, + $_index + ); + case 'capture': + if (class_exists('Smarty_Internal_Compile_Capture')) { + return Smarty_Internal_Compile_Capture::compileSpecialVariable(array(), $compiler, $_index); + } + return ''; + case 'now': + return 'time()'; + case 'cookies': + if (isset($compiler->smarty->security_policy) + && !$compiler->smarty->security_policy->allow_super_globals + ) { + $compiler->trigger_template_error("(secure mode) super globals not permitted"); + break; + } + $compiled_ref = '$_COOKIE'; + break; + case 'get': + case 'post': + case 'env': + case 'server': + case 'session': + case 'request': + if (isset($compiler->smarty->security_policy) + && !$compiler->smarty->security_policy->allow_super_globals + ) { + $compiler->trigger_template_error("(secure mode) super globals not permitted"); + break; + } + $compiled_ref = '$_' . strtoupper($variable); + break; + case 'template': + return 'basename($_smarty_tpl->source->filepath)'; + case 'template_object': + if (isset($compiler->smarty->security_policy)) { + $compiler->trigger_template_error("(secure mode) template_object not permitted"); + break; + } + return '$_smarty_tpl'; + case 'current_dir': + return 'dirname($_smarty_tpl->source->filepath)'; + case 'version': + return "Smarty::SMARTY_VERSION"; + case 'const': + if (isset($compiler->smarty->security_policy) + && !$compiler->smarty->security_policy->allow_constants + ) { + $compiler->trigger_template_error("(secure mode) constants not permitted"); + break; + } + if (strpos($_index[ 1 ], '$') === false && strpos($_index[ 1 ], '\'') === false) { + return "(defined('{$_index[1]}') ? constant('{$_index[1]}') : null)"; + } else { + return "(defined({$_index[1]}) ? constant({$_index[1]}) : null)"; + } + // no break + case 'config': + if (isset($_index[ 2 ])) { + return "(is_array(\$tmp = \$_smarty_tpl->smarty->ext->configload->_getConfigVariable(\$_smarty_tpl, $_index[1])) ? \$tmp[$_index[2]] : null)"; + } else { + return "\$_smarty_tpl->smarty->ext->configload->_getConfigVariable(\$_smarty_tpl, $_index[1])"; + } + // no break + case 'ldelim': + return "\$_smarty_tpl->smarty->left_delimiter"; + case 'rdelim': + return "\$_smarty_tpl->smarty->right_delimiter"; + default: + $compiler->trigger_template_error('$smarty.' . trim($_index[ 0 ], "'") . ' is not defined'); + break; + } + if (isset($_index[ 1 ])) { + array_shift($_index); + foreach ($_index as $_ind) { + $compiled_ref = $compiled_ref . "[$_ind]"; + } + } + return $compiled_ref; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_rdelim.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_rdelim.php new file mode 100644 index 0000000000..1cc340c180 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_rdelim.php @@ -0,0 +1,34 @@ +<?php +/** + * Smarty Internal Plugin Compile Rdelim + * Compiles the {rdelim} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Rdelim Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_Compile_Ldelim +{ + /** + * Compiles code for the {rdelim} tag + * This tag does output the right delimiter. + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + parent::compile($args, $compiler); + return $compiler->smarty->right_delimiter; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_section.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_section.php new file mode 100644 index 0000000000..0dee208203 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_section.php @@ -0,0 +1,462 @@ +<?php +/** + * Smarty Internal Plugin Compile Section + * Compiles the {section} {sectionelse} {/section} tags + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Section Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Section extends Smarty_Internal_Compile_Private_ForeachSection +{ + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $required_attributes = array('name', 'loop'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $shorttag_order = array('name', 'loop'); + + /** + * Attribute definition: Overwrites base class. + * + * @var array + * @see Smarty_Internal_CompileBase + */ + public $optional_attributes = array('start', 'step', 'max', 'show', 'properties'); + + /** + * counter + * + * @var int + */ + public $counter = 0; + + /** + * Name of this tag + * + * @var string + */ + public $tagName = 'section'; + + /** + * Valid properties of $smarty.section.name.xxx variable + * + * @var array + */ + public $nameProperties = array( + 'first', 'last', 'index', 'iteration', 'show', 'total', 'rownum', 'index_prev', + 'index_next', 'loop' + ); + + /** + * {section} tag has no item properties + * + * @var array + */ + public $itemProperties = null; + + /** + * {section} tag has always name attribute + * + * @var bool + */ + public $isNamed = true; + + /** + * Compiles code for the {section} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + * @throws \SmartyCompilerException + * @throws \SmartyException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + $compiler->loopNesting++; + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $attributes = array('name' => $compiler->getId($_attr[ 'name' ])); + unset($_attr[ 'name' ]); + foreach ($attributes as $a => $v) { + if ($v === false) { + $compiler->trigger_template_error("'{$a}' attribute/variable has illegal value", null, true); + } + } + $local = "\$__section_{$attributes['name']}_" . $this->counter++ . '_'; + $sectionVar = "\$_smarty_tpl->tpl_vars['__smarty_section_{$attributes['name']}']"; + $this->openTag($compiler, 'section', array('section', $compiler->nocache, $local, $sectionVar)); + // maybe nocache because of nocache variables + $compiler->nocache = $compiler->nocache | $compiler->tag_nocache; + $initLocal = array(); + $initNamedProperty = array(); + $initFor = array(); + $incFor = array(); + $cmpFor = array(); + $propValue = array( + 'index' => "{$sectionVar}->value['index']", 'show' => 'true', 'step' => 1, + 'iteration' => "{$local}iteration", + ); + $propType = array('index' => 2, 'iteration' => 2, 'show' => 0, 'step' => 0,); + // search for used tag attributes + $this->scanForProperties($attributes, $compiler); + if (!empty($this->matchResults[ 'named' ])) { + $namedAttr = $this->matchResults[ 'named' ]; + } + if (isset($_attr[ 'properties' ]) && preg_match_all("/['](.*?)[']/", $_attr[ 'properties' ], $match)) { + foreach ($match[ 1 ] as $prop) { + if (in_array($prop, $this->nameProperties)) { + $namedAttr[ $prop ] = true; + } else { + $compiler->trigger_template_error("Invalid property '{$prop}'", null, true); + } + } + } + $namedAttr[ 'index' ] = true; + $output = "<?php\n"; + foreach ($_attr as $attr_name => $attr_value) { + switch ($attr_name) { + case 'loop': + if (is_numeric($attr_value)) { + $v = (int)$attr_value; + $t = 0; + } else { + $v = "(is_array(@\$_loop=$attr_value) ? count(\$_loop) : max(0, (int) \$_loop))"; + $t = 1; + } + if ($t === 1) { + $initLocal[ 'loop' ] = $v; + $v = "{$local}loop"; + } + break; + case 'show': + if (is_bool($attr_value)) { + $v = $attr_value ? 'true' : 'false'; + $t = 0; + } else { + $v = "(bool) $attr_value"; + $t = 3; + } + break; + case 'step': + if (is_numeric($attr_value)) { + $v = (int)$attr_value; + $v = ($v === 0) ? 1 : $v; + $t = 0; + break; + } + $initLocal[ 'step' ] = "((int)@$attr_value) === 0 ? 1 : (int)@$attr_value"; + $v = "{$local}step"; + $t = 2; + break; + case 'max': + case 'start': + if (is_numeric($attr_value)) { + $v = (int)$attr_value; + $t = 0; + break; + } + $v = "(int)@$attr_value"; + $t = 3; + break; + } + if ($t === 3 && $compiler->getId($attr_value)) { + $t = 1; + } + $propValue[ $attr_name ] = $v; + $propType[ $attr_name ] = $t; + } + if (isset($namedAttr[ 'step' ])) { + $initNamedProperty[ 'step' ] = $propValue[ 'step' ]; + } + if (isset($namedAttr[ 'iteration' ])) { + $propValue[ 'iteration' ] = "{$sectionVar}->value['iteration']"; + } + $incFor[ 'iteration' ] = "{$propValue['iteration']}++"; + $initFor[ 'iteration' ] = "{$propValue['iteration']} = 1"; + if ($propType[ 'step' ] === 0) { + if ($propValue[ 'step' ] === 1) { + $incFor[ 'index' ] = "{$sectionVar}->value['index']++"; + } elseif ($propValue[ 'step' ] > 1) { + $incFor[ 'index' ] = "{$sectionVar}->value['index'] += {$propValue['step']}"; + } else { + $incFor[ 'index' ] = "{$sectionVar}->value['index'] -= " . -$propValue[ 'step' ]; + } + } else { + $incFor[ 'index' ] = "{$sectionVar}->value['index'] += {$propValue['step']}"; + } + if (!isset($propValue[ 'max' ])) { + $propValue[ 'max' ] = $propValue[ 'loop' ]; + $propType[ 'max' ] = $propType[ 'loop' ]; + } elseif ($propType[ 'max' ] !== 0) { + $propValue[ 'max' ] = "{$propValue['max']} < 0 ? {$propValue['loop']} : {$propValue['max']}"; + $propType[ 'max' ] = 1; + } else { + if ($propValue[ 'max' ] < 0) { + $propValue[ 'max' ] = $propValue[ 'loop' ]; + $propType[ 'max' ] = $propType[ 'loop' ]; + } + } + if (!isset($propValue[ 'start' ])) { + $start_code = + array(1 => "{$propValue['step']} > 0 ? ", 2 => '0', 3 => ' : ', 4 => $propValue[ 'loop' ], 5 => ' - 1'); + if ($propType[ 'loop' ] === 0) { + $start_code[ 5 ] = ''; + $start_code[ 4 ] = $propValue[ 'loop' ] - 1; + } + if ($propType[ 'step' ] === 0) { + if ($propValue[ 'step' ] > 0) { + $start_code = array(1 => '0'); + $propType[ 'start' ] = 0; + } else { + $start_code[ 1 ] = $start_code[ 2 ] = $start_code[ 3 ] = ''; + $propType[ 'start' ] = $propType[ 'loop' ]; + } + } else { + $propType[ 'start' ] = 1; + } + $propValue[ 'start' ] = join('', $start_code); + } else { + $start_code = + array( + 1 => "{$propValue['start']} < 0 ? ", 2 => 'max(', 3 => "{$propValue['step']} > 0 ? ", 4 => '0', + 5 => ' : ', 6 => '-1', 7 => ', ', 8 => "{$propValue['start']} + {$propValue['loop']}", 10 => ')', + 11 => ' : ', 12 => 'min(', 13 => $propValue[ 'start' ], 14 => ', ', + 15 => "{$propValue['step']} > 0 ? ", 16 => $propValue[ 'loop' ], 17 => ' : ', + 18 => $propType[ 'loop' ] === 0 ? $propValue[ 'loop' ] - 1 : "{$propValue['loop']} - 1", + 19 => ')' + ); + if ($propType[ 'step' ] === 0) { + $start_code[ 3 ] = $start_code[ 5 ] = $start_code[ 15 ] = $start_code[ 17 ] = ''; + if ($propValue[ 'step' ] > 0) { + $start_code[ 6 ] = $start_code[ 18 ] = ''; + } else { + $start_code[ 4 ] = $start_code[ 16 ] = ''; + } + } + if ($propType[ 'start' ] === 0) { + if ($propType[ 'loop' ] === 0) { + $start_code[ 8 ] = $propValue[ 'start' ] + $propValue[ 'loop' ]; + } + $propType[ 'start' ] = $propType[ 'step' ] + $propType[ 'loop' ]; + $start_code[ 1 ] = ''; + if ($propValue[ 'start' ] < 0) { + for ($i = 11; $i <= 19; $i++) { + $start_code[ $i ] = ''; + } + if ($propType[ 'start' ] === 0) { + $start_code = array( + max( + $propValue[ 'step' ] > 0 ? 0 : -1, + $propValue[ 'start' ] + $propValue[ 'loop' ] + ) + ); + } + } else { + for ($i = 1; $i <= 11; $i++) { + $start_code[ $i ] = ''; + } + if ($propType[ 'start' ] === 0) { + $start_code = + array( + min( + $propValue[ 'step' ] > 0 ? $propValue[ 'loop' ] : $propValue[ 'loop' ] - 1, + $propValue[ 'start' ] + ) + ); + } + } + } + $propValue[ 'start' ] = join('', $start_code); + } + if ($propType[ 'start' ] !== 0) { + $initLocal[ 'start' ] = $propValue[ 'start' ]; + $propValue[ 'start' ] = "{$local}start"; + } + $initFor[ 'index' ] = "{$sectionVar}->value['index'] = {$propValue['start']}"; + if (!isset($_attr[ 'start' ]) && !isset($_attr[ 'step' ]) && !isset($_attr[ 'max' ])) { + $propValue[ 'total' ] = $propValue[ 'loop' ]; + $propType[ 'total' ] = $propType[ 'loop' ]; + } else { + $propType[ 'total' ] = + $propType[ 'start' ] + $propType[ 'loop' ] + $propType[ 'step' ] + $propType[ 'max' ]; + if ($propType[ 'total' ] === 0) { + $propValue[ 'total' ] = + min( + ceil( + ($propValue[ 'step' ] > 0 ? $propValue[ 'loop' ] - $propValue[ 'start' ] : + (int)$propValue[ 'start' ] + 1) / abs($propValue[ 'step' ]) + ), + $propValue[ 'max' ] + ); + } else { + $total_code = array( + 1 => 'min(', 2 => 'ceil(', 3 => '(', 4 => "{$propValue['step']} > 0 ? ", + 5 => $propValue[ 'loop' ], 6 => ' - ', 7 => $propValue[ 'start' ], 8 => ' : ', + 9 => $propValue[ 'start' ], 10 => '+ 1', 11 => ')', 12 => '/ ', 13 => 'abs(', + 14 => $propValue[ 'step' ], 15 => ')', 16 => ')', 17 => ", {$propValue['max']})", + ); + if (!isset($propValue[ 'max' ])) { + $total_code[ 1 ] = $total_code[ 17 ] = ''; + } + if ($propType[ 'loop' ] + $propType[ 'start' ] === 0) { + $total_code[ 5 ] = $propValue[ 'loop' ] - $propValue[ 'start' ]; + $total_code[ 6 ] = $total_code[ 7 ] = ''; + } + if ($propType[ 'start' ] === 0) { + $total_code[ 9 ] = (int)$propValue[ 'start' ] + 1; + $total_code[ 10 ] = ''; + } + if ($propType[ 'step' ] === 0) { + $total_code[ 13 ] = $total_code[ 15 ] = ''; + if ($propValue[ 'step' ] === 1 || $propValue[ 'step' ] === -1) { + $total_code[ 2 ] = $total_code[ 12 ] = $total_code[ 14 ] = $total_code[ 16 ] = ''; + } elseif ($propValue[ 'step' ] < 0) { + $total_code[ 14 ] = -$propValue[ 'step' ]; + } + $total_code[ 4 ] = ''; + if ($propValue[ 'step' ] > 0) { + $total_code[ 8 ] = $total_code[ 9 ] = $total_code[ 10 ] = ''; + } else { + $total_code[ 5 ] = $total_code[ 6 ] = $total_code[ 7 ] = $total_code[ 8 ] = ''; + } + } + $propValue[ 'total' ] = join('', $total_code); + } + } + if (isset($namedAttr[ 'loop' ])) { + $initNamedProperty[ 'loop' ] = "'loop' => {$propValue['loop']}"; + } + if (isset($namedAttr[ 'total' ])) { + $initNamedProperty[ 'total' ] = "'total' => {$propValue['total']}"; + if ($propType[ 'total' ] > 0) { + $propValue[ 'total' ] = "{$sectionVar}->value['total']"; + } + } elseif ($propType[ 'total' ] > 0) { + $initLocal[ 'total' ] = $propValue[ 'total' ]; + $propValue[ 'total' ] = "{$local}total"; + } + $cmpFor[ 'iteration' ] = "{$propValue['iteration']} <= {$propValue['total']}"; + foreach ($initLocal as $key => $code) { + $output .= "{$local}{$key} = {$code};\n"; + } + $_vars = 'array(' . join(', ', $initNamedProperty) . ')'; + $output .= "{$sectionVar} = new Smarty_Variable({$_vars});\n"; + $cond_code = "{$propValue['total']} !== 0"; + if ($propType[ 'total' ] === 0) { + if ($propValue[ 'total' ] === 0) { + $cond_code = 'false'; + } else { + $cond_code = 'true'; + } + } + if ($propType[ 'show' ] > 0) { + $output .= "{$local}show = {$propValue['show']} ? {$cond_code} : false;\n"; + $output .= "if ({$local}show) {\n"; + } elseif ($propValue[ 'show' ] === 'true') { + $output .= "if ({$cond_code}) {\n"; + } else { + $output .= "if (false) {\n"; + } + $jinit = join(', ', $initFor); + $jcmp = join(', ', $cmpFor); + $jinc = join(', ', $incFor); + $output .= "for ({$jinit}; {$jcmp}; {$jinc}){\n"; + if (isset($namedAttr[ 'rownum' ])) { + $output .= "{$sectionVar}->value['rownum'] = {$propValue['iteration']};\n"; + } + if (isset($namedAttr[ 'index_prev' ])) { + $output .= "{$sectionVar}->value['index_prev'] = {$propValue['index']} - {$propValue['step']};\n"; + } + if (isset($namedAttr[ 'index_next' ])) { + $output .= "{$sectionVar}->value['index_next'] = {$propValue['index']} + {$propValue['step']};\n"; + } + if (isset($namedAttr[ 'first' ])) { + $output .= "{$sectionVar}->value['first'] = ({$propValue['iteration']} === 1);\n"; + } + if (isset($namedAttr[ 'last' ])) { + $output .= "{$sectionVar}->value['last'] = ({$propValue['iteration']} === {$propValue['total']});\n"; + } + $output .= '?>'; + return $output; + } +} + +/** + * Smarty Internal Plugin Compile Sectionelse Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Sectionelse extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {sectionelse} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + list($openTag, $nocache, $local, $sectionVar) = $this->closeTag($compiler, array('section')); + $this->openTag($compiler, 'sectionelse', array('sectionelse', $nocache, $local, $sectionVar)); + return "<?php }} else {\n ?>"; + } +} + +/** + * Smarty Internal Plugin Compile Sectionclose Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Sectionclose extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {/section} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + $compiler->loopNesting--; + // must endblock be nocache? + if ($compiler->nocache) { + $compiler->tag_nocache = true; + } + list($openTag, $compiler->nocache, $local, $sectionVar) = + $this->closeTag($compiler, array('section', 'sectionelse')); + $output = "<?php\n"; + if ($openTag === 'sectionelse') { + $output .= "}\n"; + } else { + $output .= "}\n}\n"; + } + $output .= '?>'; + return $output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_setfilter.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_setfilter.php new file mode 100644 index 0000000000..70e2e2f9ff --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_setfilter.php @@ -0,0 +1,68 @@ +<?php +/** + * Smarty Internal Plugin Compile Setfilter + * Compiles code for setfilter tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Setfilter Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Setfilter extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for setfilter tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + $compiler->variable_filter_stack[] = $compiler->variable_filters; + $compiler->variable_filters = $parameter[ 'modifier_list' ]; + // this tag does not return compiled code + $compiler->has_code = false; + return true; + } +} + +/** + * Smarty Internal Plugin Compile Setfilterclose Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Setfilterclose extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {/setfilter} tag + * This tag does not generate compiled output. It resets variable filter. + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + $_attr = $this->getAttributes($compiler, $args); + // reset variable filter to previous state + if (count($compiler->variable_filter_stack)) { + $compiler->variable_filters = array_pop($compiler->variable_filter_stack); + } else { + $compiler->variable_filters = array(); + } + // this tag does not return compiled code + $compiler->has_code = false; + return true; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_shared_inheritance.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_shared_inheritance.php new file mode 100644 index 0000000000..d90262e604 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_shared_inheritance.php @@ -0,0 +1,49 @@ +<?php +/** + * Smarty Internal Plugin Compile Shared Inheritance + * Shared methods for {extends} and {block} tags + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Shared Inheritance Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Shared_Inheritance extends Smarty_Internal_CompileBase +{ + /** + * Compile inheritance initialization code as prefix + * + * @param \Smarty_Internal_TemplateCompilerBase $compiler + * @param bool|false $initChildSequence if true force child template + */ + public static function postCompile(Smarty_Internal_TemplateCompilerBase $compiler, $initChildSequence = false) + { + $compiler->prefixCompiledCode .= "<?php \$_smarty_tpl->_loadInheritance();\n\$_smarty_tpl->inheritance->init(\$_smarty_tpl, " . + var_export($initChildSequence, true) . ");\n?>\n"; + } + + /** + * Register post compile callback to compile inheritance initialization code + * + * @param \Smarty_Internal_TemplateCompilerBase $compiler + * @param bool|false $initChildSequence if true force child template + */ + public function registerInit(Smarty_Internal_TemplateCompilerBase $compiler, $initChildSequence = false) + { + if ($initChildSequence || !isset($compiler->_cache[ 'inheritanceInit' ])) { + $compiler->registerPostCompileCallback( + array('Smarty_Internal_Compile_Shared_Inheritance', 'postCompile'), + array($initChildSequence), + 'inheritanceInit', + $initChildSequence + ); + $compiler->_cache[ 'inheritanceInit' ] = true; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_while.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_while.php new file mode 100644 index 0000000000..5aa3a73301 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_while.php @@ -0,0 +1,100 @@ +<?php +/** + * Smarty Internal Plugin Compile While + * Compiles the {while} tag + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile While Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_While extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {while} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * @param array $parameter array with compilation parameter + * + * @return string compiled code + * @throws \SmartyCompilerException + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + { + $compiler->loopNesting++; + // check and get attributes + $_attr = $this->getAttributes($compiler, $args); + $this->openTag($compiler, 'while', $compiler->nocache); + if (!array_key_exists('if condition', $parameter)) { + $compiler->trigger_template_error('missing while condition', null, true); + } + // maybe nocache because of nocache variables + $compiler->nocache = $compiler->nocache | $compiler->tag_nocache; + if (is_array($parameter[ 'if condition' ])) { + if ($compiler->nocache) { + // create nocache var to make it know for further compiling + if (is_array($parameter[ 'if condition' ][ 'var' ])) { + $var = $parameter[ 'if condition' ][ 'var' ][ 'var' ]; + } else { + $var = $parameter[ 'if condition' ][ 'var' ]; + } + $compiler->setNocacheInVariable($var); + } + $prefixVar = $compiler->getNewPrefixVariable(); + $assignCompiler = new Smarty_Internal_Compile_Assign(); + $assignAttr = array(); + $assignAttr[][ 'value' ] = $prefixVar; + if (is_array($parameter[ 'if condition' ][ 'var' ])) { + $assignAttr[][ 'var' ] = $parameter[ 'if condition' ][ 'var' ][ 'var' ]; + $_output = "<?php while ({$prefixVar} = {$parameter[ 'if condition' ][ 'value' ]}) {?>"; + $_output .= $assignCompiler->compile( + $assignAttr, + $compiler, + array('smarty_internal_index' => $parameter[ 'if condition' ][ 'var' ][ 'smarty_internal_index' ]) + ); + } else { + $assignAttr[][ 'var' ] = $parameter[ 'if condition' ][ 'var' ]; + $_output = "<?php while ({$prefixVar} = {$parameter[ 'if condition' ][ 'value' ]}) {?>"; + $_output .= $assignCompiler->compile($assignAttr, $compiler, array()); + } + return $_output; + } else { + return "<?php\n while ({$parameter['if condition']}) {?>"; + } + } +} + +/** + * Smarty Internal Plugin Compile Whileclose Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Compile_Whileclose extends Smarty_Internal_CompileBase +{ + /** + * Compiles code for the {/while} tag + * + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object + * + * @return string compiled code + */ + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) + { + $compiler->loopNesting--; + // must endblock be nocache? + if ($compiler->nocache) { + $compiler->tag_nocache = true; + } + $compiler->nocache = $this->closeTag($compiler, array('while')); + return "<?php }?>\n"; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compilebase.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compilebase.php new file mode 100644 index 0000000000..2a32e43731 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compilebase.php @@ -0,0 +1,203 @@ +<?php +/** + * Smarty Internal Plugin CompileBase + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * This class does extend all internal compile plugins + * + * @package Smarty + * @subpackage Compiler + */ +abstract class Smarty_Internal_CompileBase +{ + /** + * Array of names of required attribute required by tag + * + * @var array + */ + public $required_attributes = array(); + + /** + * Array of names of optional attribute required by tag + * use array('_any') if there is no restriction of attributes names + * + * @var array + */ + public $optional_attributes = array(); + + /** + * Shorttag attribute order defined by its names + * + * @var array + */ + public $shorttag_order = array(); + + /** + * Array of names of valid option flags + * + * @var array + */ + public $option_flags = array('nocache'); + + /** + * Mapping array for boolean option value + * + * @var array + */ + public $optionMap = array(1 => true, 0 => false, 'true' => true, 'false' => false); + + /** + * Mapping array with attributes as key + * + * @var array + */ + public $mapCache = array(); + + /** + * This function checks if the attributes passed are valid + * The attributes passed for the tag to compile are checked against the list of required and + * optional attributes. Required attributes must be present. Optional attributes are check against + * the corresponding list. The keyword '_any' specifies that any attribute will be accepted + * as valid + * + * @param object $compiler compiler object + * @param array $attributes attributes applied to the tag + * + * @return array of mapped attributes for further processing + */ + public function getAttributes($compiler, $attributes) + { + $_indexed_attr = array(); + if (!isset($this->mapCache[ 'option' ])) { + $this->mapCache[ 'option' ] = array_fill_keys($this->option_flags, true); + } + foreach ($attributes as $key => $mixed) { + // shorthand ? + if (!is_array($mixed)) { + // option flag ? + if (isset($this->mapCache[ 'option' ][ trim($mixed, '\'"') ])) { + $_indexed_attr[ trim($mixed, '\'"') ] = true; + // shorthand attribute ? + } elseif (isset($this->shorttag_order[ $key ])) { + $_indexed_attr[ $this->shorttag_order[ $key ] ] = $mixed; + } else { + // too many shorthands + $compiler->trigger_template_error('too many shorthand attributes', null, true); + } + // named attribute + } else { + foreach ($mixed as $k => $v) { + // option flag? + if (isset($this->mapCache[ 'option' ][ $k ])) { + if (is_bool($v)) { + $_indexed_attr[ $k ] = $v; + } else { + if (is_string($v)) { + $v = trim($v, '\'" '); + } + if (isset($this->optionMap[ $v ])) { + $_indexed_attr[ $k ] = $this->optionMap[ $v ]; + } else { + $compiler->trigger_template_error( + "illegal value '" . var_export($v, true) . + "' for option flag '{$k}'", + null, + true + ); + } + } + // must be named attribute + } else { + $_indexed_attr[ $k ] = $v; + } + } + } + } + // check if all required attributes present + foreach ($this->required_attributes as $attr) { + if (!isset($_indexed_attr[ $attr ])) { + $compiler->trigger_template_error("missing '{$attr}' attribute", null, true); + } + } + // check for not allowed attributes + if ($this->optional_attributes !== array('_any')) { + if (!isset($this->mapCache[ 'all' ])) { + $this->mapCache[ 'all' ] = + array_fill_keys( + array_merge( + $this->required_attributes, + $this->optional_attributes, + $this->option_flags + ), + true + ); + } + foreach ($_indexed_attr as $key => $dummy) { + if (!isset($this->mapCache[ 'all' ][ $key ]) && $key !== 0) { + $compiler->trigger_template_error("unexpected '{$key}' attribute", null, true); + } + } + } + // default 'false' for all option flags not set + foreach ($this->option_flags as $flag) { + if (!isset($_indexed_attr[ $flag ])) { + $_indexed_attr[ $flag ] = false; + } + } + if (isset($_indexed_attr[ 'nocache' ]) && $_indexed_attr[ 'nocache' ]) { + $compiler->tag_nocache = true; + } + return $_indexed_attr; + } + + /** + * Push opening tag name on stack + * Optionally additional data can be saved on stack + * + * @param object $compiler compiler object + * @param string $openTag the opening tag's name + * @param mixed $data optional data saved + */ + public function openTag($compiler, $openTag, $data = null) + { + array_push($compiler->_tag_stack, array($openTag, $data)); + } + + /** + * Pop closing tag + * Raise an error if this stack-top doesn't match with expected opening tags + * + * @param object $compiler compiler object + * @param array|string $expectedTag the expected opening tag names + * + * @return mixed any type the opening tag's name or saved data + */ + public function closeTag($compiler, $expectedTag) + { + if (count($compiler->_tag_stack) > 0) { + // get stacked info + list($_openTag, $_data) = array_pop($compiler->_tag_stack); + // open tag must match with the expected ones + if (in_array($_openTag, (array)$expectedTag)) { + if (is_null($_data)) { + // return opening tag + return $_openTag; + } else { + // return restored data + return $_data; + } + } + // wrong nesting of tags + $compiler->trigger_template_error("unclosed '{$compiler->smarty->left_delimiter}{$_openTag}{$compiler->smarty->right_delimiter}' tag"); + return; + } + // wrong nesting of tags + $compiler->trigger_template_error('unexpected closing tag', null, true); + return; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_config_file_compiler.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_config_file_compiler.php new file mode 100644 index 0000000000..469b9667a3 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_config_file_compiler.php @@ -0,0 +1,211 @@ +<?php +/** + * Smarty Internal Plugin Config File Compiler + * This is the config file compiler class. It calls the lexer and parser to + * perform the compiling. + * + * @package Smarty + * @subpackage Config + * @author Uwe Tews + */ + +/** + * Main config file compiler class + * + * @package Smarty + * @subpackage Config + */ +class Smarty_Internal_Config_File_Compiler +{ + /** + * Lexer class name + * + * @var string + */ + public $lexer_class; + + /** + * Parser class name + * + * @var string + */ + public $parser_class; + + /** + * Lexer object + * + * @var object + */ + public $lex; + + /** + * Parser object + * + * @var object + */ + public $parser; + + /** + * Smarty object + * + * @var Smarty object + */ + public $smarty; + + /** + * Smarty object + * + * @var Smarty_Internal_Template object + */ + public $template; + + /** + * Compiled config data sections and variables + * + * @var array + */ + public $config_data = array(); + + /** + * compiled config data must always be written + * + * @var bool + */ + public $write_compiled_code = true; + + /** + * Initialize compiler + * + * @param string $lexer_class class name + * @param string $parser_class class name + * @param Smarty $smarty global instance + */ + public function __construct($lexer_class, $parser_class, Smarty $smarty) + { + $this->smarty = $smarty; + // get required plugins + $this->lexer_class = $lexer_class; + $this->parser_class = $parser_class; + $this->smarty = $smarty; + $this->config_data[ 'sections' ] = array(); + $this->config_data[ 'vars' ] = array(); + } + + /** + * Method to compile Smarty config source. + * + * @param Smarty_Internal_Template $template + * + * @return bool true if compiling succeeded, false if it failed + * @throws \SmartyException + */ + public function compileTemplate(Smarty_Internal_Template $template) + { + $this->template = $template; + $this->template->compiled->file_dependency[ $this->template->source->uid ] = + array( + $this->template->source->filepath, + $this->template->source->getTimeStamp(), + $this->template->source->type + ); + if ($this->smarty->debugging) { + if (!isset($this->smarty->_debug)) { + $this->smarty->_debug = new Smarty_Internal_Debug(); + } + $this->smarty->_debug->start_compile($this->template); + } + // init the lexer/parser to compile the config file + /* @var Smarty_Internal_ConfigFileLexer $this->lex */ + $this->lex = new $this->lexer_class( + str_replace( + array( + "\r\n", + "\r" + ), + "\n", + $template->source->getContent() + ) . "\n", + $this + ); + /* @var Smarty_Internal_ConfigFileParser $this->parser */ + $this->parser = new $this->parser_class($this->lex, $this); + if (function_exists('mb_internal_encoding') + && function_exists('ini_get') + && ((int)ini_get('mbstring.func_overload')) & 2 + ) { + $mbEncoding = mb_internal_encoding(); + mb_internal_encoding('ASCII'); + } else { + $mbEncoding = null; + } + if ($this->smarty->_parserdebug) { + $this->parser->PrintTrace(); + } + // get tokens from lexer and parse them + while ($this->lex->yylex()) { + if ($this->smarty->_parserdebug) { + echo "<br>Parsing {$this->parser->yyTokenName[$this->lex->token]} Token {$this->lex->value} Line {$this->lex->line} \n"; + } + $this->parser->doParse($this->lex->token, $this->lex->value); + } + // finish parsing process + $this->parser->doParse(0, 0); + if ($mbEncoding) { + mb_internal_encoding($mbEncoding); + } + if ($this->smarty->debugging) { + $this->smarty->_debug->end_compile($this->template); + } + // template header code + $template_header = sprintf( + "<?php /* Smarty version %s, created on %s\n compiled from '%s' */ ?>\n", + Smarty::SMARTY_VERSION, + date("Y-m-d H:i:s"), + str_replace('*/', '* /' , $this->template->source->filepath) + ); + $code = '<?php $_smarty_tpl->smarty->ext->configLoad->_loadConfigVars($_smarty_tpl, ' . + var_export($this->config_data, true) . '); ?>'; + return $template_header . $this->template->smarty->ext->_codeFrame->create($this->template, $code); + } + + /** + * display compiler error messages without dying + * If parameter $args is empty it is a parser detected syntax error. + * In this case the parser is called to obtain information about expected tokens. + * If parameter $args contains a string this is used as error message + * + * @param string $args individual error message or null + * + * @throws SmartyCompilerException + */ + public function trigger_config_file_error($args = null) + { + // get config source line which has error + $line = $this->lex->line; + if (isset($args)) { + // $line--; + } + $match = preg_split("/\n/", $this->lex->data); + $error_text = + "Syntax error in config file '{$this->template->source->filepath}' on line {$line} '{$match[$line - 1]}' "; + if (isset($args)) { + // individual error message + $error_text .= $args; + } else { + // expected token from parser + foreach ($this->parser->yy_get_expected_tokens($this->parser->yymajor) as $token) { + $exp_token = $this->parser->yyTokenName[ $token ]; + if (isset($this->lex->smarty_token_names[ $exp_token ])) { + // token type from lexer + $expect[] = '"' . $this->lex->smarty_token_names[ $exp_token ] . '"'; + } else { + // otherwise internal token name + $expect[] = $this->parser->yyTokenName[ $token ]; + } + } + // output parser error message + $error_text .= ' - Unexpected "' . $this->lex->value . '", expected one of: ' . implode(' , ', $expect); + } + throw new SmartyCompilerException($error_text); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_configfilelexer.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_configfilelexer.php new file mode 100644 index 0000000000..afb3efcb03 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_configfilelexer.php @@ -0,0 +1,739 @@ +<?php +/** + * Smarty Internal Plugin Configfilelexer + * + * This is the lexer to break the config file source into tokens + * + * @package Smarty + * @subpackage Config + * @author Uwe Tews + */ + +/** + * Smarty_Internal_Configfilelexer + * + * This is the config file lexer. + * It is generated from the smarty_internal_configfilelexer.plex file + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ +class Smarty_Internal_Configfilelexer +{ + const START = 1; + const VALUE = 2; + const NAKED_STRING_VALUE = 3; + const COMMENT = 4; + const SECTION = 5; + const TRIPPLE = 6; + + /** + * Source + * + * @var string + */ + public $data; + + /** + * Source length + * + * @var int + */ + public $dataLength = null; + + /** + * byte counter + * + * @var int + */ + public $counter; + + /** + * token number + * + * @var int + */ + public $token; + + /** + * token value + * + * @var string + */ + public $value; + + /** + * current line + * + * @var int + */ + public $line; + + /** + * state number + * + * @var int + */ + public $state = 1; + + /** + * Smarty object + * + * @var Smarty + */ + public $smarty = null; + + /** + * trace file + * + * @var resource + */ + public $yyTraceFILE; + + /** + * trace prompt + * + * @var string + */ + public $yyTracePrompt; + + /** + * state names + * + * @var array + */ + public $state_name = array( + 1 => 'START', 2 => 'VALUE', 3 => 'NAKED_STRING_VALUE', 4 => 'COMMENT', 5 => 'SECTION', 6 => 'TRIPPLE' + ); + + /** + * token names + * + * @var array + */ + public $smarty_token_names = array( // Text for parser error messages + ); + + /** + * compiler object + * + * @var Smarty_Internal_Config_File_Compiler + */ + private $compiler = null; + + /** + * copy of config_booleanize + * + * @var bool + */ + private $configBooleanize = false; + + /** + * storage for assembled token patterns + * + * @var string + */ + private $yy_global_pattern1 = null; + + private $yy_global_pattern2 = null; + + private $yy_global_pattern3 = null; + + private $yy_global_pattern4 = null; + + private $yy_global_pattern5 = null; + + private $yy_global_pattern6 = null; + + private $_yy_state = 1; + + private $_yy_stack = array(); + + /** + * constructor + * + * @param string $data template source + * @param Smarty_Internal_Config_File_Compiler $compiler + */ + public function __construct($data, Smarty_Internal_Config_File_Compiler $compiler) + { + $this->data = $data . "\n"; //now all lines are \n-terminated + $this->dataLength = strlen($data); + $this->counter = 0; + if (preg_match('/^\xEF\xBB\xBF/', $this->data, $match)) { + $this->counter += strlen($match[ 0 ]); + } + $this->line = 1; + $this->compiler = $compiler; + $this->smarty = $compiler->smarty; + $this->configBooleanize = $this->smarty->config_booleanize; + } + + public function replace($input) + { + return $input; + } // end function + + public function PrintTrace() + { + $this->yyTraceFILE = fopen('php://output', 'w'); + $this->yyTracePrompt = '<br>'; + } + + public function yylex() + { + return $this->{'yylex' . $this->_yy_state}(); + } + + public function yypushstate($state) + { + if ($this->yyTraceFILE) { + fprintf( + $this->yyTraceFILE, + "%sState push %s\n", + $this->yyTracePrompt, + isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state + ); + } + array_push($this->_yy_stack, $this->_yy_state); + $this->_yy_state = $state; + if ($this->yyTraceFILE) { + fprintf( + $this->yyTraceFILE, + "%snew State %s\n", + $this->yyTracePrompt, + isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state + ); + } + } + + public function yypopstate() + { + if ($this->yyTraceFILE) { + fprintf( + $this->yyTraceFILE, + "%sState pop %s\n", + $this->yyTracePrompt, + isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state + ); + } + $this->_yy_state = array_pop($this->_yy_stack); + if ($this->yyTraceFILE) { + fprintf( + $this->yyTraceFILE, + "%snew State %s\n", + $this->yyTracePrompt, + isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state + ); + } + } + + public function yybegin($state) + { + $this->_yy_state = $state; + if ($this->yyTraceFILE) { + fprintf( + $this->yyTraceFILE, + "%sState set %s\n", + $this->yyTracePrompt, + isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state + ); + } + } + + public function yylex1() + { + if (!isset($this->yy_global_pattern1)) { + $this->yy_global_pattern1 = + $this->replace("/\G(#|;)|\G(\\[)|\G(\\])|\G(=)|\G([ \t\r]+)|\G(\n)|\G([0-9]*[a-zA-Z_]\\w*)|\G([\S\s])/isS"); + } + if (!isset($this->dataLength)) { + $this->dataLength = strlen($this->data); + } + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + do { + if (preg_match($this->yy_global_pattern1, $this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][ 1 ])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); + } else { + $yymatches = array_filter($yymatches); + } + if (empty($yymatches)) { + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr( + $this->data, + $this->counter, + 5 + ) . '... state START'); + } + next($yymatches); // skip global match + $this->token = key($yymatches); // token number + $this->value = current($yymatches); // token value + $r = $this->{'yy_r1_' . $this->token}(); + if ($r === null) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + // accept this token + return true; + } elseif ($r === true) { + // we have changed state + // process this token in the new state + return $this->yylex(); + } elseif ($r === false) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + // skip this token + continue; + } + } else { + throw new Exception('Unexpected input at line' . $this->line . + ': ' . $this->data[ $this->counter ]); + } + break; + } while (true); + } + + public function yy_r1_1() + { + $this->token = Smarty_Internal_Configfileparser::TPC_COMMENTSTART; + $this->yypushstate(self::COMMENT); + } + + public function yy_r1_2() + { + $this->token = Smarty_Internal_Configfileparser::TPC_OPENB; + $this->yypushstate(self::SECTION); + } + + public function yy_r1_3() + { + $this->token = Smarty_Internal_Configfileparser::TPC_CLOSEB; + } + + public function yy_r1_4() + { + $this->token = Smarty_Internal_Configfileparser::TPC_EQUAL; + $this->yypushstate(self::VALUE); + } // end function + + public function yy_r1_5() + { + return false; + } + + public function yy_r1_6() + { + $this->token = Smarty_Internal_Configfileparser::TPC_NEWLINE; + } + + public function yy_r1_7() + { + $this->token = Smarty_Internal_Configfileparser::TPC_ID; + } + + public function yy_r1_8() + { + $this->token = Smarty_Internal_Configfileparser::TPC_OTHER; + } + + public function yylex2() + { + if (!isset($this->yy_global_pattern2)) { + $this->yy_global_pattern2 = + $this->replace("/\G([ \t\r]+)|\G(\\d+\\.\\d+(?=[ \t\r]*[\n#;]))|\G(\\d+(?=[ \t\r]*[\n#;]))|\G(\"\"\")|\G('[^'\\\\]*(?:\\\\.[^'\\\\]*)*'(?=[ \t\r]*[\n#;]))|\G(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"(?=[ \t\r]*[\n#;]))|\G([a-zA-Z]+(?=[ \t\r]*[\n#;]))|\G([^\n]+?(?=[ \t\r]*\n))|\G(\n)/isS"); + } + if (!isset($this->dataLength)) { + $this->dataLength = strlen($this->data); + } + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + do { + if (preg_match($this->yy_global_pattern2, $this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][ 1 ])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); + } else { + $yymatches = array_filter($yymatches); + } + if (empty($yymatches)) { + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr( + $this->data, + $this->counter, + 5 + ) . '... state VALUE'); + } + next($yymatches); // skip global match + $this->token = key($yymatches); // token number + $this->value = current($yymatches); // token value + $r = $this->{'yy_r2_' . $this->token}(); + if ($r === null) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + // accept this token + return true; + } elseif ($r === true) { + // we have changed state + // process this token in the new state + return $this->yylex(); + } elseif ($r === false) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + // skip this token + continue; + } + } else { + throw new Exception('Unexpected input at line' . $this->line . + ': ' . $this->data[ $this->counter ]); + } + break; + } while (true); + } + + public function yy_r2_1() + { + return false; + } + + public function yy_r2_2() + { + $this->token = Smarty_Internal_Configfileparser::TPC_FLOAT; + $this->yypopstate(); + } + + public function yy_r2_3() + { + $this->token = Smarty_Internal_Configfileparser::TPC_INT; + $this->yypopstate(); + } + + public function yy_r2_4() + { + $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_QUOTES; + $this->yypushstate(self::TRIPPLE); + } + + public function yy_r2_5() + { + $this->token = Smarty_Internal_Configfileparser::TPC_SINGLE_QUOTED_STRING; + $this->yypopstate(); + } + + public function yy_r2_6() + { + $this->token = Smarty_Internal_Configfileparser::TPC_DOUBLE_QUOTED_STRING; + $this->yypopstate(); + } // end function + + public function yy_r2_7() + { + if (!$this->configBooleanize || + !in_array(strtolower($this->value), array('true', 'false', 'on', 'off', 'yes', 'no'))) { + $this->yypopstate(); + $this->yypushstate(self::NAKED_STRING_VALUE); + return true; //reprocess in new state + } else { + $this->token = Smarty_Internal_Configfileparser::TPC_BOOL; + $this->yypopstate(); + } + } + + public function yy_r2_8() + { + $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; + $this->yypopstate(); + } + + public function yy_r2_9() + { + $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; + $this->value = ''; + $this->yypopstate(); + } // end function + + public function yylex3() + { + if (!isset($this->yy_global_pattern3)) { + $this->yy_global_pattern3 = $this->replace("/\G([^\n]+?(?=[ \t\r]*\n))/isS"); + } + if (!isset($this->dataLength)) { + $this->dataLength = strlen($this->data); + } + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + do { + if (preg_match($this->yy_global_pattern3, $this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][ 1 ])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); + } else { + $yymatches = array_filter($yymatches); + } + if (empty($yymatches)) { + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr( + $this->data, + $this->counter, + 5 + ) . '... state NAKED_STRING_VALUE'); + } + next($yymatches); // skip global match + $this->token = key($yymatches); // token number + $this->value = current($yymatches); // token value + $r = $this->{'yy_r3_' . $this->token}(); + if ($r === null) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + // accept this token + return true; + } elseif ($r === true) { + // we have changed state + // process this token in the new state + return $this->yylex(); + } elseif ($r === false) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + // skip this token + continue; + } + } else { + throw new Exception('Unexpected input at line' . $this->line . + ': ' . $this->data[ $this->counter ]); + } + break; + } while (true); + } + + public function yy_r3_1() + { + $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; + $this->yypopstate(); + } + + public function yylex4() + { + if (!isset($this->yy_global_pattern4)) { + $this->yy_global_pattern4 = $this->replace("/\G([ \t\r]+)|\G([^\n]+?(?=[ \t\r]*\n))|\G(\n)/isS"); + } + if (!isset($this->dataLength)) { + $this->dataLength = strlen($this->data); + } + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + do { + if (preg_match($this->yy_global_pattern4, $this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][ 1 ])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); + } else { + $yymatches = array_filter($yymatches); + } + if (empty($yymatches)) { + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr( + $this->data, + $this->counter, + 5 + ) . '... state COMMENT'); + } + next($yymatches); // skip global match + $this->token = key($yymatches); // token number + $this->value = current($yymatches); // token value + $r = $this->{'yy_r4_' . $this->token}(); + if ($r === null) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + // accept this token + return true; + } elseif ($r === true) { + // we have changed state + // process this token in the new state + return $this->yylex(); + } elseif ($r === false) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + // skip this token + continue; + } + } else { + throw new Exception('Unexpected input at line' . $this->line . + ': ' . $this->data[ $this->counter ]); + } + break; + } while (true); + } + + public function yy_r4_1() + { + return false; + } + + public function yy_r4_2() + { + $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; + } // end function + + public function yy_r4_3() + { + $this->token = Smarty_Internal_Configfileparser::TPC_NEWLINE; + $this->yypopstate(); + } + + public function yylex5() + { + if (!isset($this->yy_global_pattern5)) { + $this->yy_global_pattern5 = $this->replace("/\G(\\.)|\G(.*?(?=[\.=[\]\r\n]))/isS"); + } + if (!isset($this->dataLength)) { + $this->dataLength = strlen($this->data); + } + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + do { + if (preg_match($this->yy_global_pattern5, $this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][ 1 ])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); + } else { + $yymatches = array_filter($yymatches); + } + if (empty($yymatches)) { + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr( + $this->data, + $this->counter, + 5 + ) . '... state SECTION'); + } + next($yymatches); // skip global match + $this->token = key($yymatches); // token number + $this->value = current($yymatches); // token value + $r = $this->{'yy_r5_' . $this->token}(); + if ($r === null) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + // accept this token + return true; + } elseif ($r === true) { + // we have changed state + // process this token in the new state + return $this->yylex(); + } elseif ($r === false) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + // skip this token + continue; + } + } else { + throw new Exception('Unexpected input at line' . $this->line . + ': ' . $this->data[ $this->counter ]); + } + break; + } while (true); + } + + public function yy_r5_1() + { + $this->token = Smarty_Internal_Configfileparser::TPC_DOT; + } + + public function yy_r5_2() + { + $this->token = Smarty_Internal_Configfileparser::TPC_SECTION; + $this->yypopstate(); + } // end function + + public function yylex6() + { + if (!isset($this->yy_global_pattern6)) { + $this->yy_global_pattern6 = $this->replace("/\G(\"\"\"(?=[ \t\r]*[\n#;]))|\G([\S\s])/isS"); + } + if (!isset($this->dataLength)) { + $this->dataLength = strlen($this->data); + } + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + do { + if (preg_match($this->yy_global_pattern6, $this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][ 1 ])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); + } else { + $yymatches = array_filter($yymatches); + } + if (empty($yymatches)) { + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr( + $this->data, + $this->counter, + 5 + ) . '... state TRIPPLE'); + } + next($yymatches); // skip global match + $this->token = key($yymatches); // token number + $this->value = current($yymatches); // token value + $r = $this->{'yy_r6_' . $this->token}(); + if ($r === null) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + // accept this token + return true; + } elseif ($r === true) { + // we have changed state + // process this token in the new state + return $this->yylex(); + } elseif ($r === false) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + // skip this token + continue; + } + } else { + throw new Exception('Unexpected input at line' . $this->line . + ': ' . $this->data[ $this->counter ]); + } + break; + } while (true); + } + + public function yy_r6_1() + { + $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_QUOTES_END; + $this->yypopstate(); + $this->yypushstate(self::START); + } + + public function yy_r6_2() + { + $to = strlen($this->data); + preg_match("/\"\"\"[ \t\r]*[\n#;]/", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); + if (isset($match[ 0 ][ 1 ])) { + $to = $match[ 0 ][ 1 ]; + } else { + $this->compiler->trigger_config_file_error('missing or misspelled literal closing tag'); + } + $this->value = substr($this->data, $this->counter, $to - $this->counter); + $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_TEXT; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_configfileparser.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_configfileparser.php new file mode 100644 index 0000000000..36fdb76eeb --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_configfileparser.php @@ -0,0 +1,1046 @@ +<?php + +class TPC_yyStackEntry +{ + public $stateno; /* The state-number */ + public $major; /* The major token value. This is the code + ** number for the token at this stack level */ + public $minor; /* The user-supplied minor token value. This + ** is the value of the token */ +} + +// line 12 "../smarty/lexer/smarty_internal_configfileparser.y" + +/** + * Smarty Internal Plugin Configfileparse + * + * This is the config file parser. + * It is generated from the smarty_internal_configfileparser.y file + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ +class Smarty_Internal_Configfileparser +{ + // line 25 "../smarty/lexer/smarty_internal_configfileparser.y" + const TPC_OPENB = 1; + const TPC_SECTION = 2; + const TPC_CLOSEB = 3; + const TPC_DOT = 4; + const TPC_ID = 5; + const TPC_EQUAL = 6; + const TPC_FLOAT = 7; + const TPC_INT = 8; + const TPC_BOOL = 9; + const TPC_SINGLE_QUOTED_STRING = 10; + const TPC_DOUBLE_QUOTED_STRING = 11; + const TPC_TRIPPLE_QUOTES = 12; + const TPC_TRIPPLE_TEXT = 13; + const TPC_TRIPPLE_QUOTES_END = 14; + const TPC_NAKED_STRING = 15; + const TPC_OTHER = 16; + const TPC_NEWLINE = 17; + const TPC_COMMENTSTART = 18; + const YY_NO_ACTION = 60; + const YY_ACCEPT_ACTION = 59; + const YY_ERROR_ACTION = 58; + const YY_SZ_ACTTAB = 38; + const YY_SHIFT_USE_DFLT = -8; + const YY_SHIFT_MAX = 19; + const YY_REDUCE_USE_DFLT = -17; + const YY_REDUCE_MAX = 10; + const YYNOCODE = 29; + const YYSTACKDEPTH = 100; + const YYNSTATE = 36; + const YYNRULE = 22; + const YYERRORSYMBOL = 19; + const YYERRSYMDT = 'yy0'; + const YYFALLBACK = 0; + + public static $yy_action = array( + 32, 31, 30, 29, 35, 13, 19, 3, 24, 26, + 59, 9, 14, 1, 16, 25, 11, 28, 25, 11, + 17, 27, 34, 20, 18, 15, 23, 5, 6, 22, + 10, 8, 4, 12, 2, 33, 7, 21, + ); + + public static $yy_lookahead = array( + 7, 8, 9, 10, 11, 12, 5, 23, 15, 16, + 20, 21, 2, 23, 4, 17, 18, 14, 17, 18, + 13, 14, 25, 26, 15, 2, 17, 3, 3, 17, + 25, 25, 6, 1, 23, 27, 22, 24, + ); + + public static $yy_shift_ofst = array( + -8, 1, 1, 1, -7, -2, -2, 32, -8, -8, + -8, 9, 10, 7, 25, 24, 23, 3, 12, 26, + ); + + public static $yy_reduce_ofst = array( + -10, -3, -3, -3, 8, 6, 5, 13, 11, 14, + -16, + ); + + public static $yyExpectedTokens = array( + array(), + array(5, 17, 18,), + array(5, 17, 18,), + array(5, 17, 18,), + array(7, 8, 9, 10, 11, 12, 15, 16,), + array(17, 18,), + array(17, 18,), + array(1,), + array(), + array(), + array(), + array(15, 17,), + array(2, 4,), + array(13, 14,), + array(3,), + array(3,), + array(2,), + array(14,), + array(17,), + array(6,), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + ); + + public static $yy_default = array( + 44, 37, 41, 40, 58, 58, 58, 36, 44, 39, + 44, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 43, 38, 57, 56, 53, 55, 54, 52, 51, 49, + 48, 47, 46, 45, 42, 50, + ); + + public static $yyFallback = array(); + + public static $yyRuleName = array( + 'start ::= global_vars sections', + 'global_vars ::= var_list', + 'sections ::= sections section', + 'sections ::=', + 'section ::= OPENB SECTION CLOSEB newline var_list', + 'section ::= OPENB DOT SECTION CLOSEB newline var_list', + 'var_list ::= var_list newline', + 'var_list ::= var_list var', + 'var_list ::=', + 'var ::= ID EQUAL value', + 'value ::= FLOAT', + 'value ::= INT', + 'value ::= BOOL', + 'value ::= SINGLE_QUOTED_STRING', + 'value ::= DOUBLE_QUOTED_STRING', + 'value ::= TRIPPLE_QUOTES TRIPPLE_TEXT TRIPPLE_QUOTES_END', + 'value ::= TRIPPLE_QUOTES TRIPPLE_QUOTES_END', + 'value ::= NAKED_STRING', + 'value ::= OTHER', + 'newline ::= NEWLINE', + 'newline ::= COMMENTSTART NEWLINE', + 'newline ::= COMMENTSTART NAKED_STRING NEWLINE', + ); + + public static $yyRuleInfo = array( + array(0 => 20, 1 => 2), + array(0 => 21, 1 => 1), + array(0 => 22, 1 => 2), + array(0 => 22, 1 => 0), + array(0 => 24, 1 => 5), + array(0 => 24, 1 => 6), + array(0 => 23, 1 => 2), + array(0 => 23, 1 => 2), + array(0 => 23, 1 => 0), + array(0 => 26, 1 => 3), + array(0 => 27, 1 => 1), + array(0 => 27, 1 => 1), + array(0 => 27, 1 => 1), + array(0 => 27, 1 => 1), + array(0 => 27, 1 => 1), + array(0 => 27, 1 => 3), + array(0 => 27, 1 => 2), + array(0 => 27, 1 => 1), + array(0 => 27, 1 => 1), + array(0 => 25, 1 => 1), + array(0 => 25, 1 => 2), + array(0 => 25, 1 => 3), + ); + + public static $yyReduceMap = array( + 0 => 0, + 2 => 0, + 3 => 0, + 19 => 0, + 20 => 0, + 21 => 0, + 1 => 1, + 4 => 4, + 5 => 5, + 6 => 6, + 7 => 7, + 8 => 8, + 9 => 9, + 10 => 10, + 11 => 11, + 12 => 12, + 13 => 13, + 14 => 14, + 15 => 15, + 16 => 16, + 17 => 17, + 18 => 17, + ); + + /** + * helper map + * + * @var array + */ + private static $escapes_single = array( + '\\' => '\\', + '\'' => '\'' + ); + + /** + * result status + * + * @var bool + */ + public $successful = true; + + /** + * return value + * + * @var mixed + */ + public $retvalue = 0; + + /** + * @var + */ + public $yymajor; + + /** + * compiler object + * + * @var Smarty_Internal_Config_File_Compiler + */ + public $compiler = null; + + /** + * smarty object + * + * @var Smarty + */ + public $smarty = null; + + public $yyTraceFILE; + + public $yyTracePrompt; + + public $yyidx; + + public $yyerrcnt; + + public $yystack = array(); + + public $yyTokenName = array( + '$', 'OPENB', 'SECTION', 'CLOSEB', + 'DOT', 'ID', 'EQUAL', 'FLOAT', + 'INT', 'BOOL', 'SINGLE_QUOTED_STRING', 'DOUBLE_QUOTED_STRING', + 'TRIPPLE_QUOTES', 'TRIPPLE_TEXT', 'TRIPPLE_QUOTES_END', 'NAKED_STRING', + 'OTHER', 'NEWLINE', 'COMMENTSTART', 'error', + 'start', 'global_vars', 'sections', 'var_list', + 'section', 'newline', 'var', 'value', + ); + + /** + * lexer object + * + * @var Smarty_Internal_Configfilelexer + */ + private $lex; + + /** + * internal error flag + * + * @var bool + */ + private $internalError = false; + + /** + * copy of config_overwrite property + * + * @var bool + */ + private $configOverwrite = false; + + /** + * copy of config_read_hidden property + * + * @var bool + */ + private $configReadHidden = false; + + private $_retvalue; + + /** + * constructor + * + * @param Smarty_Internal_Configfilelexer $lex + * @param Smarty_Internal_Config_File_Compiler $compiler + */ + public function __construct(Smarty_Internal_Configfilelexer $lex, Smarty_Internal_Config_File_Compiler $compiler) + { + $this->lex = $lex; + $this->smarty = $compiler->smarty; + $this->compiler = $compiler; + $this->configOverwrite = $this->smarty->config_overwrite; + $this->configReadHidden = $this->smarty->config_read_hidden; + } + + public static function yy_destructor($yymajor, $yypminor) + { + switch ($yymajor) { + default: + break; /* If no destructor action specified: do nothing */ + } + } + + /** + * parse single quoted string + * remove outer quotes + * unescape inner quotes + * + * @param string $qstr + * + * @return string + */ + private static function parse_single_quoted_string($qstr) + { + $escaped_string = substr($qstr, 1, strlen($qstr) - 2); //remove outer quotes + $ss = preg_split('/(\\\\.)/', $escaped_string, -1, PREG_SPLIT_DELIM_CAPTURE); + $str = ''; + foreach ($ss as $s) { + if (strlen($s) === 2 && $s[ 0 ] === '\\') { + if (isset(self::$escapes_single[ $s[ 1 ] ])) { + $s = self::$escapes_single[ $s[ 1 ] ]; + } + } + $str .= $s; + } + return $str; + } /* Index of top element in stack */ + /** + * parse double quoted string + * + * @param string $qstr + * + * @return string + */ + private static function parse_double_quoted_string($qstr) + { + $inner_str = substr($qstr, 1, strlen($qstr) - 2); + return stripcslashes($inner_str); + } /* Shifts left before out of the error */ + /** + * parse triple quoted string + * + * @param string $qstr + * + * @return string + */ + private static function parse_tripple_double_quoted_string($qstr) + { + return stripcslashes($qstr); + } /* The parser's stack */ + public function Trace($TraceFILE, $zTracePrompt) + { + if (!$TraceFILE) { + $zTracePrompt = 0; + } elseif (!$zTracePrompt) { + $TraceFILE = 0; + } + $this->yyTraceFILE = $TraceFILE; + $this->yyTracePrompt = $zTracePrompt; + } + + public function PrintTrace() + { + $this->yyTraceFILE = fopen('php://output', 'w'); + $this->yyTracePrompt = '<br>'; + } + + public function tokenName($tokenType) + { + if ($tokenType === 0) { + return 'End of Input'; + } + if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) { + return $this->yyTokenName[ $tokenType ]; + } else { + return 'Unknown'; + } + } + + public function yy_pop_parser_stack() + { + if (empty($this->yystack)) { + return; + } + $yytos = array_pop($this->yystack); + if ($this->yyTraceFILE && $this->yyidx >= 0) { + fwrite( + $this->yyTraceFILE, + $this->yyTracePrompt . 'Popping ' . $this->yyTokenName[ $yytos->major ] . + "\n" + ); + } + $yymajor = $yytos->major; + self::yy_destructor($yymajor, $yytos->minor); + $this->yyidx--; + return $yymajor; + } + + public function __destruct() + { + while ($this->yystack !== array()) { + $this->yy_pop_parser_stack(); + } + if (is_resource($this->yyTraceFILE)) { + fclose($this->yyTraceFILE); + } + } + + public function yy_get_expected_tokens($token) + { + static $res3 = array(); + static $res4 = array(); + $state = $this->yystack[ $this->yyidx ]->stateno; + $expected = self::$yyExpectedTokens[ $state ]; + if (isset($res3[ $state ][ $token ])) { + if ($res3[ $state ][ $token ]) { + return $expected; + } + } else { + if ($res3[ $state ][ $token ] = in_array($token, self::$yyExpectedTokens[ $state ], true)) { + return $expected; + } + } + $stack = $this->yystack; + $yyidx = $this->yyidx; + do { + $yyact = $this->yy_find_shift_action($token); + if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { + // reduce action + $done = 0; + do { + if ($done++ === 100) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + // too much recursion prevents proper detection + // so give up + return array_unique($expected); + } + $yyruleno = $yyact - self::YYNSTATE; + $this->yyidx -= self::$yyRuleInfo[ $yyruleno ][ 1 ]; + $nextstate = $this->yy_find_reduce_action( + $this->yystack[ $this->yyidx ]->stateno, + self::$yyRuleInfo[ $yyruleno ][ 0 ] + ); + if (isset(self::$yyExpectedTokens[ $nextstate ])) { + $expected = array_merge($expected, self::$yyExpectedTokens[ $nextstate ]); + if (isset($res4[ $nextstate ][ $token ])) { + if ($res4[ $nextstate ][ $token ]) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + return array_unique($expected); + } + } else { + if ($res4[ $nextstate ][ $token ] = + in_array($token, self::$yyExpectedTokens[ $nextstate ], true)) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + return array_unique($expected); + } + } + } + if ($nextstate < self::YYNSTATE) { + // we need to shift a non-terminal + $this->yyidx++; + $x = new TPC_yyStackEntry; + $x->stateno = $nextstate; + $x->major = self::$yyRuleInfo[ $yyruleno ][ 0 ]; + $this->yystack[ $this->yyidx ] = $x; + continue 2; + } elseif ($nextstate === self::YYNSTATE + self::YYNRULE + 1) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + // the last token was just ignored, we can't accept + // by ignoring input, this is in essence ignoring a + // syntax error! + return array_unique($expected); + } elseif ($nextstate === self::YY_NO_ACTION) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + // input accepted, but not shifted (I guess) + return $expected; + } else { + $yyact = $nextstate; + } + } while (true); + } + break; + } while (true); + $this->yyidx = $yyidx; + $this->yystack = $stack; + return array_unique($expected); + } + + public function yy_is_expected_token($token) + { + static $res = array(); + static $res2 = array(); + if ($token === 0) { + return true; // 0 is not part of this + } + $state = $this->yystack[ $this->yyidx ]->stateno; + if (isset($res[ $state ][ $token ])) { + if ($res[ $state ][ $token ]) { + return true; + } + } else { + if ($res[ $state ][ $token ] = in_array($token, self::$yyExpectedTokens[ $state ], true)) { + return true; + } + } + $stack = $this->yystack; + $yyidx = $this->yyidx; + do { + $yyact = $this->yy_find_shift_action($token); + if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { + // reduce action + $done = 0; + do { + if ($done++ === 100) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + // too much recursion prevents proper detection + // so give up + return true; + } + $yyruleno = $yyact - self::YYNSTATE; + $this->yyidx -= self::$yyRuleInfo[ $yyruleno ][ 1 ]; + $nextstate = $this->yy_find_reduce_action( + $this->yystack[ $this->yyidx ]->stateno, + self::$yyRuleInfo[ $yyruleno ][ 0 ] + ); + if (isset($res2[ $nextstate ][ $token ])) { + if ($res2[ $nextstate ][ $token ]) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + return true; + } + } else { + if ($res2[ $nextstate ][ $token ] = + (isset(self::$yyExpectedTokens[ $nextstate ]) && + in_array($token, self::$yyExpectedTokens[ $nextstate ], true))) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + return true; + } + } + if ($nextstate < self::YYNSTATE) { + // we need to shift a non-terminal + $this->yyidx++; + $x = new TPC_yyStackEntry; + $x->stateno = $nextstate; + $x->major = self::$yyRuleInfo[ $yyruleno ][ 0 ]; + $this->yystack[ $this->yyidx ] = $x; + continue 2; + } elseif ($nextstate === self::YYNSTATE + self::YYNRULE + 1) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + if (!$token) { + // end of input: this is valid + return true; + } + // the last token was just ignored, we can't accept + // by ignoring input, this is in essence ignoring a + // syntax error! + return false; + } elseif ($nextstate === self::YY_NO_ACTION) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + // input accepted, but not shifted (I guess) + return true; + } else { + $yyact = $nextstate; + } + } while (true); + } + break; + } while (true); + $this->yyidx = $yyidx; + $this->yystack = $stack; + return true; + } + + public function yy_find_shift_action($iLookAhead) + { + $stateno = $this->yystack[ $this->yyidx ]->stateno; + /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ + if (!isset(self::$yy_shift_ofst[ $stateno ])) { + // no shift actions + return self::$yy_default[ $stateno ]; + } + $i = self::$yy_shift_ofst[ $stateno ]; + if ($i === self::YY_SHIFT_USE_DFLT) { + return self::$yy_default[ $stateno ]; + } + if ($iLookAhead === self::YYNOCODE) { + return self::YY_NO_ACTION; + } + $i += $iLookAhead; + if ($i < 0 || $i >= self::YY_SZ_ACTTAB || + self::$yy_lookahead[ $i ] != $iLookAhead) { + if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) + && ($iFallback = self::$yyFallback[ $iLookAhead ]) != 0) { + if ($this->yyTraceFILE) { + fwrite($this->yyTraceFILE, $this->yyTracePrompt . 'FALLBACK ' . + $this->yyTokenName[ $iLookAhead ] . ' => ' . + $this->yyTokenName[ $iFallback ] . "\n"); + } + return $this->yy_find_shift_action($iFallback); + } + return self::$yy_default[ $stateno ]; + } else { + return self::$yy_action[ $i ]; + } + } + + public function yy_find_reduce_action($stateno, $iLookAhead) + { + /* $stateno = $this->yystack[$this->yyidx]->stateno; */ + if (!isset(self::$yy_reduce_ofst[ $stateno ])) { + return self::$yy_default[ $stateno ]; + } + $i = self::$yy_reduce_ofst[ $stateno ]; + if ($i === self::YY_REDUCE_USE_DFLT) { + return self::$yy_default[ $stateno ]; + } + if ($iLookAhead === self::YYNOCODE) { + return self::YY_NO_ACTION; + } + $i += $iLookAhead; + if ($i < 0 || $i >= self::YY_SZ_ACTTAB || + self::$yy_lookahead[ $i ] != $iLookAhead) { + return self::$yy_default[ $stateno ]; + } else { + return self::$yy_action[ $i ]; + } + } + + public function yy_shift($yyNewState, $yyMajor, $yypMinor) + { + $this->yyidx++; + if ($this->yyidx >= self::YYSTACKDEPTH) { + $this->yyidx--; + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sStack Overflow!\n", $this->yyTracePrompt); + } + while ($this->yyidx >= 0) { + $this->yy_pop_parser_stack(); + } + // line 239 "../smarty/lexer/smarty_internal_configfileparser.y" + $this->internalError = true; + $this->compiler->trigger_config_file_error('Stack overflow in configfile parser'); + return; + } + $yytos = new TPC_yyStackEntry; + $yytos->stateno = $yyNewState; + $yytos->major = $yyMajor; + $yytos->minor = $yypMinor; + $this->yystack[] = $yytos; + if ($this->yyTraceFILE && $this->yyidx > 0) { + fprintf( + $this->yyTraceFILE, + "%sShift %d\n", + $this->yyTracePrompt, + $yyNewState + ); + fprintf($this->yyTraceFILE, "%sStack:", $this->yyTracePrompt); + for ($i = 1; $i <= $this->yyidx; $i++) { + fprintf( + $this->yyTraceFILE, + " %s", + $this->yyTokenName[ $this->yystack[ $i ]->major ] + ); + } + fwrite($this->yyTraceFILE, "\n"); + } + } + + public function yy_r0() + { + $this->_retvalue = null; + } + + public function yy_r1() + { + $this->add_global_vars($this->yystack[ $this->yyidx + 0 ]->minor); + $this->_retvalue = null; + } + + public function yy_r4() + { + $this->add_section_vars($this->yystack[ $this->yyidx + -3 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor); + $this->_retvalue = null; + } + + // line 245 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r5() + { + if ($this->configReadHidden) { + $this->add_section_vars( + $this->yystack[ $this->yyidx + -3 ]->minor, + $this->yystack[ $this->yyidx + 0 ]->minor + ); + } + $this->_retvalue = null; + } + + // line 250 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r6() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; + } + + // line 264 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r7() + { + $this->_retvalue = + array_merge($this->yystack[ $this->yyidx + -1 ]->minor, array($this->yystack[ $this->yyidx + 0 ]->minor)); + } + + // line 269 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r8() + { + $this->_retvalue = array(); + } + + // line 277 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r9() + { + $this->_retvalue = + array( + 'key' => $this->yystack[ $this->yyidx + -2 ]->minor, + 'value' => $this->yystack[ $this->yyidx + 0 ]->minor + ); + } + + // line 281 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r10() + { + $this->_retvalue = (float)$this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 285 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r11() + { + $this->_retvalue = (int)$this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 291 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r12() + { + $this->_retvalue = $this->parse_bool($this->yystack[ $this->yyidx + 0 ]->minor); + } + + // line 296 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r13() + { + $this->_retvalue = self::parse_single_quoted_string($this->yystack[ $this->yyidx + 0 ]->minor); + } + + // line 300 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r14() + { + $this->_retvalue = self::parse_double_quoted_string($this->yystack[ $this->yyidx + 0 ]->minor); + } + + // line 304 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r15() + { + $this->_retvalue = self::parse_tripple_double_quoted_string($this->yystack[ $this->yyidx + -1 ]->minor); + } + + // line 308 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r16() + { + $this->_retvalue = ''; + } + + // line 312 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_r17() + { + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 316 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_reduce($yyruleno) + { + if ($this->yyTraceFILE && $yyruleno >= 0 + && $yyruleno < count(self::$yyRuleName)) { + fprintf( + $this->yyTraceFILE, + "%sReduce (%d) [%s].\n", + $this->yyTracePrompt, + $yyruleno, + self::$yyRuleName[ $yyruleno ] + ); + } + $this->_retvalue = $yy_lefthand_side = null; + if (isset(self::$yyReduceMap[ $yyruleno ])) { + // call the action + $this->_retvalue = null; + $this->{'yy_r' . self::$yyReduceMap[ $yyruleno ]}(); + $yy_lefthand_side = $this->_retvalue; + } + $yygoto = self::$yyRuleInfo[ $yyruleno ][ 0 ]; + $yysize = self::$yyRuleInfo[ $yyruleno ][ 1 ]; + $this->yyidx -= $yysize; + for ($i = $yysize; $i; $i--) { + // pop all of the right-hand side parameters + array_pop($this->yystack); + } + $yyact = $this->yy_find_reduce_action($this->yystack[ $this->yyidx ]->stateno, $yygoto); + if ($yyact < self::YYNSTATE) { + if (!$this->yyTraceFILE && $yysize) { + $this->yyidx++; + $x = new TPC_yyStackEntry; + $x->stateno = $yyact; + $x->major = $yygoto; + $x->minor = $yy_lefthand_side; + $this->yystack[ $this->yyidx ] = $x; + } else { + $this->yy_shift($yyact, $yygoto, $yy_lefthand_side); + } + } elseif ($yyact === self::YYNSTATE + self::YYNRULE + 1) { + $this->yy_accept(); + } + } + + // line 320 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_parse_failed() + { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sFail!\n", $this->yyTracePrompt); + } + while ($this->yyidx >= 0) { + $this->yy_pop_parser_stack(); + } + } + + // line 324 "../smarty/lexer/smarty_internal_configfileparser.y" + public function yy_syntax_error($yymajor, $TOKEN) + { + // line 232 "../smarty/lexer/smarty_internal_configfileparser.y" + $this->internalError = true; + $this->yymajor = $yymajor; + $this->compiler->trigger_config_file_error(); + } + + public function yy_accept() + { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sAccept!\n", $this->yyTracePrompt); + } + while ($this->yyidx >= 0) { + $this->yy_pop_parser_stack(); + } + // line 225 "../smarty/lexer/smarty_internal_configfileparser.y" + $this->successful = !$this->internalError; + $this->internalError = false; + $this->retvalue = $this->_retvalue; + } + + public function doParse($yymajor, $yytokenvalue) + { + $yyerrorhit = 0; /* True if yymajor has invoked an error */ + if ($this->yyidx === null || $this->yyidx < 0) { + $this->yyidx = 0; + $this->yyerrcnt = -1; + $x = new TPC_yyStackEntry; + $x->stateno = 0; + $x->major = 0; + $this->yystack = array(); + $this->yystack[] = $x; + } + $yyendofinput = ($yymajor == 0); + if ($this->yyTraceFILE) { + fprintf( + $this->yyTraceFILE, + "%sInput %s\n", + $this->yyTracePrompt, + $this->yyTokenName[ $yymajor ] + ); + } + do { + $yyact = $this->yy_find_shift_action($yymajor); + if ($yymajor < self::YYERRORSYMBOL && + !$this->yy_is_expected_token($yymajor)) { + // force a syntax error + $yyact = self::YY_ERROR_ACTION; + } + if ($yyact < self::YYNSTATE) { + $this->yy_shift($yyact, $yymajor, $yytokenvalue); + $this->yyerrcnt--; + if ($yyendofinput && $this->yyidx >= 0) { + $yymajor = 0; + } else { + $yymajor = self::YYNOCODE; + } + } elseif ($yyact < self::YYNSTATE + self::YYNRULE) { + $this->yy_reduce($yyact - self::YYNSTATE); + } elseif ($yyact === self::YY_ERROR_ACTION) { + if ($this->yyTraceFILE) { + fprintf( + $this->yyTraceFILE, + "%sSyntax Error!\n", + $this->yyTracePrompt + ); + } + if (self::YYERRORSYMBOL) { + if ($this->yyerrcnt < 0) { + $this->yy_syntax_error($yymajor, $yytokenvalue); + } + $yymx = $this->yystack[ $this->yyidx ]->major; + if ($yymx === self::YYERRORSYMBOL || $yyerrorhit) { + if ($this->yyTraceFILE) { + fprintf( + $this->yyTraceFILE, + "%sDiscard input token %s\n", + $this->yyTracePrompt, + $this->yyTokenName[ $yymajor ] + ); + } + $this->yy_destructor($yymajor, $yytokenvalue); + $yymajor = self::YYNOCODE; + } else { + while ($this->yyidx >= 0 && + $yymx !== self::YYERRORSYMBOL && + ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE + ) { + $this->yy_pop_parser_stack(); + } + if ($this->yyidx < 0 || $yymajor == 0) { + $this->yy_destructor($yymajor, $yytokenvalue); + $this->yy_parse_failed(); + $yymajor = self::YYNOCODE; + } elseif ($yymx !== self::YYERRORSYMBOL) { + $u2 = 0; + $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); + } + } + $this->yyerrcnt = 3; + $yyerrorhit = 1; + } else { + if ($this->yyerrcnt <= 0) { + $this->yy_syntax_error($yymajor, $yytokenvalue); + } + $this->yyerrcnt = 3; + $this->yy_destructor($yymajor, $yytokenvalue); + if ($yyendofinput) { + $this->yy_parse_failed(); + } + $yymajor = self::YYNOCODE; + } + } else { + $this->yy_accept(); + $yymajor = self::YYNOCODE; + } + } while ($yymajor !== self::YYNOCODE && $this->yyidx >= 0); + } + + /** + * parse optional boolean keywords + * + * @param string $str + * + * @return bool + */ + private function parse_bool($str) + { + $str = strtolower($str); + if (in_array($str, array('on', 'yes', 'true'))) { + $res = true; + } else { + $res = false; + } + return $res; + } + + /** + * set a config variable in target array + * + * @param array $var + * @param array $target_array + */ + private function set_var(array $var, array &$target_array) + { + $key = $var[ 'key' ]; + $value = $var[ 'value' ]; + if ($this->configOverwrite || !isset($target_array[ 'vars' ][ $key ])) { + $target_array[ 'vars' ][ $key ] = $value; + } else { + settype($target_array[ 'vars' ][ $key ], 'array'); + $target_array[ 'vars' ][ $key ][] = $value; + } + } + + /** + * add config variable to global vars + * + * @param array $vars + */ + private function add_global_vars(array $vars) + { + if (!isset($this->compiler->config_data[ 'vars' ])) { + $this->compiler->config_data[ 'vars' ] = array(); + } + foreach ($vars as $var) { + $this->set_var($var, $this->compiler->config_data); + } + } + + /** + * add config variable to section + * + * @param string $section_name + * @param array $vars + */ + private function add_section_vars($section_name, array $vars) + { + if (!isset($this->compiler->config_data[ 'sections' ][ $section_name ][ 'vars' ])) { + $this->compiler->config_data[ 'sections' ][ $section_name ][ 'vars' ] = array(); + } + foreach ($vars as $var) { + $this->set_var($var, $this->compiler->config_data[ 'sections' ][ $section_name ]); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_data.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_data.php new file mode 100644 index 0000000000..98e3e57b34 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_data.php @@ -0,0 +1,292 @@ +<?php +/** + * Smarty Internal Plugin Data + * This file contains the basic classes and methods for template and variable creation + * + * @package Smarty + * @subpackage Template + * @author Uwe Tews + */ + +/** + * Base class with template and variable methods + * + * @package Smarty + * @subpackage Template + * + * @property int $scope + * @property Smarty $smarty + * The following methods will be dynamically loaded by the extension handler when they are called. + * They are located in a corresponding Smarty_Internal_Method_xxxx class + * + * @method mixed _getConfigVariable(string $varName, bool $errorEnable = true) + * @method mixed getConfigVariable(string $varName, bool $errorEnable = true) + * @method mixed getConfigVars(string $varName = null, bool $searchParents = true) + * @method mixed getGlobal(string $varName = null) + * @method mixed getStreamVariable(string $variable) + * @method Smarty_Internal_Data clearAssign(mixed $tpl_var) + * @method Smarty_Internal_Data clearAllAssign() + * @method Smarty_Internal_Data clearConfig(string $varName = null) + * @method Smarty_Internal_Data configLoad(string $config_file, mixed $sections = null, string $scope = 'local') + */ +abstract class Smarty_Internal_Data +{ + /** + * This object type (Smarty = 1, template = 2, data = 4) + * + * @var int + */ + public $_objType = 4; + + /** + * name of class used for templates + * + * @var string + */ + public $template_class = 'Smarty_Internal_Template'; + + /** + * template variables + * + * @var Smarty_Variable[] + */ + public $tpl_vars = array(); + + /** + * parent template (if any) + * + * @var Smarty|Smarty_Internal_Template|Smarty_Data + */ + public $parent = null; + + /** + * configuration settings + * + * @var string[] + */ + public $config_vars = array(); + + /** + * extension handler + * + * @var Smarty_Internal_Extension_Handler + */ + public $ext = null; + + /** + * Smarty_Internal_Data constructor. + * + * Install extension handler + */ + public function __construct() + { + $this->ext = new Smarty_Internal_Extension_Handler(); + $this->ext->objType = $this->_objType; + } + + /** + * assigns a Smarty variable + * + * @param array|string $tpl_var the template variable name(s) + * @param mixed $value the value to assign + * @param boolean $nocache if true any output of this variable will be not cached + * + * @return Smarty_Internal_Data current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for + * chaining + */ + public function assign($tpl_var, $value = null, $nocache = false) + { + if (is_array($tpl_var)) { + foreach ($tpl_var as $_key => $_val) { + $this->assign($_key, $_val, $nocache); + } + } else { + if ($tpl_var !== '') { + if ($this->_objType === 2) { + /** + * + * + * @var Smarty_Internal_Template $this + */ + $this->_assignInScope($tpl_var, $value, $nocache); + } else { + $this->tpl_vars[ $tpl_var ] = new Smarty_Variable($value, $nocache); + } + } + } + return $this; + } + + /** + * appends values to template variables + * + * @api Smarty::append() + * @link http://www.smarty.net/docs/en/api.append.tpl + * + * @param array|string $tpl_var the template variable name(s) + * @param mixed $value the value to append + * @param bool $merge flag if array elements shall be merged + * @param bool $nocache if true any output of this variable will + * be not cached + * + * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty + */ + public function append($tpl_var, $value = null, $merge = false, $nocache = false) + { + return $this->ext->append->append($this, $tpl_var, $value, $merge, $nocache); + } + + /** + * assigns a global Smarty variable + * + * @param string $varName the global variable name + * @param mixed $value the value to assign + * @param boolean $nocache if true any output of this variable will be not cached + * + * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty + */ + public function assignGlobal($varName, $value = null, $nocache = false) + { + return $this->ext->assignGlobal->assignGlobal($this, $varName, $value, $nocache); + } + + /** + * appends values to template variables by reference + * + * @param string $tpl_var the template variable name + * @param mixed &$value the referenced value to append + * @param boolean $merge flag if array elements shall be merged + * + * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty + */ + public function appendByRef($tpl_var, &$value, $merge = false) + { + return $this->ext->appendByRef->appendByRef($this, $tpl_var, $value, $merge); + } + + /** + * assigns values to template variables by reference + * + * @param string $tpl_var the template variable name + * @param $value + * @param boolean $nocache if true any output of this variable will be not cached + * + * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty + */ + public function assignByRef($tpl_var, &$value, $nocache = false) + { + return $this->ext->assignByRef->assignByRef($this, $tpl_var, $value, $nocache); + } + + /** + * Returns a single or all template variables + * + * @api Smarty::getTemplateVars() + * @link http://www.smarty.net/docs/en/api.get.template.vars.tpl + * + * @param string $varName variable name or null + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $_ptr optional pointer to data object + * @param bool $searchParents include parent templates? + * + * @return mixed variable value or or array of variables + */ + public function getTemplateVars($varName = null, Smarty_Internal_Data $_ptr = null, $searchParents = true) + { + return $this->ext->getTemplateVars->getTemplateVars($this, $varName, $_ptr, $searchParents); + } + + /** + * gets the object of a Smarty variable + * + * @param string $variable the name of the Smarty variable + * @param Smarty_Internal_Data $_ptr optional pointer to data object + * @param boolean $searchParents search also in parent data + * @param bool $error_enable + * + * @return Smarty_Variable|Smarty_Undefined_Variable the object of the variable + * @deprecated since 3.1.28 please use Smarty_Internal_Data::getTemplateVars() instead. + */ + public function getVariable( + $variable = null, + Smarty_Internal_Data $_ptr = null, + $searchParents = true, + $error_enable = true + ) { + return $this->ext->getTemplateVars->_getVariable($this, $variable, $_ptr, $searchParents, $error_enable); + } + + /** + * Follow the parent chain an merge template and config variables + * + * @param \Smarty_Internal_Data|null $data + */ + public function _mergeVars(Smarty_Internal_Data $data = null) + { + if (isset($data)) { + if (!empty($this->tpl_vars)) { + $data->tpl_vars = array_merge($this->tpl_vars, $data->tpl_vars); + } + if (!empty($this->config_vars)) { + $data->config_vars = array_merge($this->config_vars, $data->config_vars); + } + } else { + $data = $this; + } + if (isset($this->parent)) { + $this->parent->_mergeVars($data); + } + } + + /** + * Return true if this instance is a Data obj + * + * @return bool + */ + public function _isDataObj() + { + return $this->_objType === 4; + } + + /** + * Return true if this instance is a template obj + * + * @return bool + */ + public function _isTplObj() + { + return $this->_objType === 2; + } + + /** + * Return true if this instance is a Smarty obj + * + * @return bool + */ + public function _isSmartyObj() + { + return $this->_objType === 1; + } + + /** + * Get Smarty object + * + * @return Smarty + */ + public function _getSmartyObj() + { + return $this->smarty; + } + + /** + * Handle unknown class methods + * + * @param string $name unknown method-name + * @param array $args argument array + * + * @return mixed + */ + public function __call($name, $args) + { + return $this->ext->_callExternalMethod($this, $name, $args); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_debug.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_debug.php new file mode 100644 index 0000000000..24b233e26a --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_debug.php @@ -0,0 +1,425 @@ +<?php +/** + * Smarty Internal Plugin Debug + * Class to collect data for the Smarty Debugging Console + * + * @package Smarty + * @subpackage Debug + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Debug Class + * + * @package Smarty + * @subpackage Debug + */ +class Smarty_Internal_Debug extends Smarty_Internal_Data +{ + /** + * template data + * + * @var array + */ + public $template_data = array(); + + /** + * List of uid's which shall be ignored + * + * @var array + */ + public $ignore_uid = array(); + + /** + * Index of display() and fetch() calls + * + * @var int + */ + public $index = 0; + + /** + * Counter for window offset + * + * @var int + */ + public $offset = 0; + + /** + * Start logging template + * + * @param \Smarty_Internal_Template $template template + * @param null $mode true: display false: fetch null: subtemplate + */ + public function start_template(Smarty_Internal_Template $template, $mode = null) + { + if (isset($mode) && !$template->_isSubTpl()) { + $this->index++; + $this->offset++; + $this->template_data[ $this->index ] = null; + } + $key = $this->get_key($template); + $this->template_data[ $this->index ][ $key ][ 'start_template_time' ] = microtime(true); + } + + /** + * End logging of cache time + * + * @param \Smarty_Internal_Template $template cached template + */ + public function end_template(Smarty_Internal_Template $template) + { + $key = $this->get_key($template); + $this->template_data[ $this->index ][ $key ][ 'total_time' ] += + microtime(true) - $this->template_data[ $this->index ][ $key ][ 'start_template_time' ]; + //$this->template_data[$this->index][$key]['properties'] = $template->properties; + } + + /** + * Start logging of compile time + * + * @param \Smarty_Internal_Template $template + */ + public function start_compile(Smarty_Internal_Template $template) + { + static $_is_stringy = array('string' => true, 'eval' => true); + if (!empty($template->compiler->trace_uid)) { + $key = $template->compiler->trace_uid; + if (!isset($this->template_data[ $this->index ][ $key ])) { + if (isset($_is_stringy[ $template->source->type ])) { + $this->template_data[ $this->index ][ $key ][ 'name' ] = + '\'' . substr($template->source->name, 0, 25) . '...\''; + } else { + $this->template_data[ $this->index ][ $key ][ 'name' ] = $template->source->filepath; + } + $this->template_data[ $this->index ][ $key ][ 'compile_time' ] = 0; + $this->template_data[ $this->index ][ $key ][ 'render_time' ] = 0; + $this->template_data[ $this->index ][ $key ][ 'cache_time' ] = 0; + } + } else { + if (isset($this->ignore_uid[ $template->source->uid ])) { + return; + } + $key = $this->get_key($template); + } + $this->template_data[ $this->index ][ $key ][ 'start_time' ] = microtime(true); + } + + /** + * End logging of compile time + * + * @param \Smarty_Internal_Template $template + */ + public function end_compile(Smarty_Internal_Template $template) + { + if (!empty($template->compiler->trace_uid)) { + $key = $template->compiler->trace_uid; + } else { + if (isset($this->ignore_uid[ $template->source->uid ])) { + return; + } + $key = $this->get_key($template); + } + $this->template_data[ $this->index ][ $key ][ 'compile_time' ] += + microtime(true) - $this->template_data[ $this->index ][ $key ][ 'start_time' ]; + } + + /** + * Start logging of render time + * + * @param \Smarty_Internal_Template $template + */ + public function start_render(Smarty_Internal_Template $template) + { + $key = $this->get_key($template); + $this->template_data[ $this->index ][ $key ][ 'start_time' ] = microtime(true); + } + + /** + * End logging of compile time + * + * @param \Smarty_Internal_Template $template + */ + public function end_render(Smarty_Internal_Template $template) + { + $key = $this->get_key($template); + $this->template_data[ $this->index ][ $key ][ 'render_time' ] += + microtime(true) - $this->template_data[ $this->index ][ $key ][ 'start_time' ]; + } + + /** + * Start logging of cache time + * + * @param \Smarty_Internal_Template $template cached template + */ + public function start_cache(Smarty_Internal_Template $template) + { + $key = $this->get_key($template); + $this->template_data[ $this->index ][ $key ][ 'start_time' ] = microtime(true); + } + + /** + * End logging of cache time + * + * @param \Smarty_Internal_Template $template cached template + */ + public function end_cache(Smarty_Internal_Template $template) + { + $key = $this->get_key($template); + $this->template_data[ $this->index ][ $key ][ 'cache_time' ] += + microtime(true) - $this->template_data[ $this->index ][ $key ][ 'start_time' ]; + } + + /** + * Register template object + * + * @param \Smarty_Internal_Template $template cached template + */ + public function register_template(Smarty_Internal_Template $template) + { + } + + /** + * Register data object + * + * @param \Smarty_Data $data data object + */ + public static function register_data(Smarty_Data $data) + { + } + + /** + * Opens a window for the Smarty Debugging Console and display the data + * + * @param Smarty_Internal_Template|Smarty $obj object to debug + * @param bool $full + * + * @throws \Exception + * @throws \SmartyException + */ + public function display_debug($obj, $full = false) + { + if (!$full) { + $this->offset++; + $savedIndex = $this->index; + $this->index = 9999; + } + $smarty = $obj->_getSmartyObj(); + // create fresh instance of smarty for displaying the debug console + // to avoid problems if the application did overload the Smarty class + $debObj = new Smarty(); + // copy the working dirs from application + $debObj->setCompileDir($smarty->getCompileDir()); + // init properties by hand as user may have edited the original Smarty class + $debObj->setPluginsDir(is_dir(dirname(__FILE__) . '/../plugins') ? dirname(__FILE__) . + '/../plugins' : $smarty->getPluginsDir()); + $debObj->force_compile = false; + $debObj->compile_check = Smarty::COMPILECHECK_ON; + $debObj->left_delimiter = '{'; + $debObj->right_delimiter = '}'; + $debObj->security_policy = null; + $debObj->debugging = false; + $debObj->debugging_ctrl = 'NONE'; + $debObj->error_reporting = E_ALL & ~E_NOTICE; + $debObj->debug_tpl = + isset($smarty->debug_tpl) ? $smarty->debug_tpl : 'file:' . dirname(__FILE__) . '/../debug.tpl'; + $debObj->registered_plugins = array(); + $debObj->registered_resources = array(); + $debObj->registered_filters = array(); + $debObj->autoload_filters = array(); + $debObj->default_modifiers = array(); + $debObj->escape_html = true; + $debObj->caching = Smarty::CACHING_OFF; + $debObj->compile_id = null; + $debObj->cache_id = null; + // prepare information of assigned variables + $ptr = $this->get_debug_vars($obj); + $_assigned_vars = $ptr->tpl_vars; + ksort($_assigned_vars); + $_config_vars = $ptr->config_vars; + ksort($_config_vars); + $debugging = $smarty->debugging; + $_template = new Smarty_Internal_Template($debObj->debug_tpl, $debObj); + if ($obj->_isTplObj()) { + $_template->assign('template_name', $obj->source->type . ':' . $obj->source->name); + } + if ($obj->_objType === 1 || $full) { + $_template->assign('template_data', $this->template_data[ $this->index ]); + } else { + $_template->assign('template_data', null); + } + $_template->assign('assigned_vars', $_assigned_vars); + $_template->assign('config_vars', $_config_vars); + $_template->assign('execution_time', microtime(true) - $smarty->start_time); + $_template->assign('display_mode', $debugging === 2 || !$full); + $_template->assign('offset', $this->offset * 50); + echo $_template->fetch(); + if (isset($full)) { + $this->index--; + } + if (!$full) { + $this->index = $savedIndex; + } + } + + /** + * Recursively gets variables from all template/data scopes + * + * @param Smarty_Internal_Template|Smarty_Data $obj object to debug + * + * @return StdClass + */ + public function get_debug_vars($obj) + { + $config_vars = array(); + foreach ($obj->config_vars as $key => $var) { + $config_vars[ $key ][ 'value' ] = $var; + if ($obj->_isTplObj()) { + $config_vars[ $key ][ 'scope' ] = $obj->source->type . ':' . $obj->source->name; + } elseif ($obj->_isDataObj()) { + $tpl_vars[ $key ][ 'scope' ] = $obj->dataObjectName; + } else { + $config_vars[ $key ][ 'scope' ] = 'Smarty object'; + } + } + $tpl_vars = array(); + foreach ($obj->tpl_vars as $key => $var) { + foreach ($var as $varkey => $varvalue) { + if ($varkey === 'value') { + $tpl_vars[ $key ][ $varkey ] = $varvalue; + } else { + if ($varkey === 'nocache') { + if ($varvalue === true) { + $tpl_vars[ $key ][ $varkey ] = $varvalue; + } + } else { + if ($varkey !== 'scope' || $varvalue !== 0) { + $tpl_vars[ $key ][ 'attributes' ][ $varkey ] = $varvalue; + } + } + } + } + if ($obj->_isTplObj()) { + $tpl_vars[ $key ][ 'scope' ] = $obj->source->type . ':' . $obj->source->name; + } elseif ($obj->_isDataObj()) { + $tpl_vars[ $key ][ 'scope' ] = $obj->dataObjectName; + } else { + $tpl_vars[ $key ][ 'scope' ] = 'Smarty object'; + } + } + if (isset($obj->parent)) { + $parent = $this->get_debug_vars($obj->parent); + foreach ($parent->tpl_vars as $name => $pvar) { + if (isset($tpl_vars[ $name ]) && $tpl_vars[ $name ][ 'value' ] === $pvar[ 'value' ]) { + $tpl_vars[ $name ][ 'scope' ] = $pvar[ 'scope' ]; + } + } + $tpl_vars = array_merge($parent->tpl_vars, $tpl_vars); + foreach ($parent->config_vars as $name => $pvar) { + if (isset($config_vars[ $name ]) && $config_vars[ $name ][ 'value' ] === $pvar[ 'value' ]) { + $config_vars[ $name ][ 'scope' ] = $pvar[ 'scope' ]; + } + } + $config_vars = array_merge($parent->config_vars, $config_vars); + } else { + foreach (Smarty::$global_tpl_vars as $key => $var) { + if (!array_key_exists($key, $tpl_vars)) { + foreach ($var as $varkey => $varvalue) { + if ($varkey === 'value') { + $tpl_vars[ $key ][ $varkey ] = $varvalue; + } else { + if ($varkey === 'nocache') { + if ($varvalue === true) { + $tpl_vars[ $key ][ $varkey ] = $varvalue; + } + } else { + if ($varkey !== 'scope' || $varvalue !== 0) { + $tpl_vars[ $key ][ 'attributes' ][ $varkey ] = $varvalue; + } + } + } + } + $tpl_vars[ $key ][ 'scope' ] = 'Global'; + } + } + } + return (object)array('tpl_vars' => $tpl_vars, 'config_vars' => $config_vars); + } + + /** + * Return key into $template_data for template + * + * @param \Smarty_Internal_Template $template template object + * + * @return string key into $template_data + */ + private function get_key(Smarty_Internal_Template $template) + { + static $_is_stringy = array('string' => true, 'eval' => true); + // calculate Uid if not already done + if ($template->source->uid === '') { + $template->source->filepath; + } + $key = $template->source->uid; + if (isset($this->template_data[ $this->index ][ $key ])) { + return $key; + } else { + if (isset($_is_stringy[ $template->source->type ])) { + $this->template_data[ $this->index ][ $key ][ 'name' ] = + '\'' . substr($template->source->name, 0, 25) . '...\''; + } else { + $this->template_data[ $this->index ][ $key ][ 'name' ] = $template->source->filepath; + } + $this->template_data[ $this->index ][ $key ][ 'compile_time' ] = 0; + $this->template_data[ $this->index ][ $key ][ 'render_time' ] = 0; + $this->template_data[ $this->index ][ $key ][ 'cache_time' ] = 0; + $this->template_data[ $this->index ][ $key ][ 'total_time' ] = 0; + return $key; + } + } + + /** + * Ignore template + * + * @param \Smarty_Internal_Template $template + */ + public function ignore(Smarty_Internal_Template $template) + { + // calculate Uid if not already done + if ($template->source->uid === '') { + $template->source->filepath; + } + $this->ignore_uid[ $template->source->uid ] = true; + } + + /** + * handle 'URL' debugging mode + * + * @param Smarty $smarty + */ + public function debugUrl(Smarty $smarty) + { + if (isset($_SERVER[ 'QUERY_STRING' ])) { + $_query_string = $_SERVER[ 'QUERY_STRING' ]; + } else { + $_query_string = ''; + } + if (false !== strpos($_query_string, $smarty->smarty_debug_id)) { + if (false !== strpos($_query_string, $smarty->smarty_debug_id . '=on')) { + // enable debugging for this browser session + setcookie('SMARTY_DEBUG', true); + $smarty->debugging = true; + } elseif (false !== strpos($_query_string, $smarty->smarty_debug_id . '=off')) { + // disable debugging for this browser session + setcookie('SMARTY_DEBUG', false); + $smarty->debugging = false; + } else { + // enable debugging for this page + $smarty->debugging = true; + } + } else { + if (isset($_COOKIE[ 'SMARTY_DEBUG' ])) { + $smarty->debugging = true; + } + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_errorhandler.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_errorhandler.php new file mode 100644 index 0000000000..56dca18fa9 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_errorhandler.php @@ -0,0 +1,113 @@ +<?php + +/** + * Smarty error handler + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + * + * @deprecated +Smarty does no longer use @filemtime() + */ +class Smarty_Internal_ErrorHandler +{ + /** + * contains directories outside of SMARTY_DIR that are to be muted by muteExpectedErrors() + */ + public static $mutedDirectories = array(); + + /** + * error handler returned by set_error_handler() in self::muteExpectedErrors() + */ + private static $previousErrorHandler = null; + + /** + * Enable error handler to mute expected messages + * + */ + public static function muteExpectedErrors() + { + /* + error muting is done because some people implemented custom error_handlers using + http://php.net/set_error_handler and for some reason did not understand the following paragraph: + + It is important to remember that the standard PHP error handler is completely bypassed for the + error types specified by error_types unless the callback function returns FALSE. + error_reporting() settings will have no effect and your error handler will be called regardless - + however you are still able to read the current value of error_reporting and act appropriately. + Of particular note is that this value will be 0 if the statement that caused the error was + prepended by the @ error-control operator. + + Smarty deliberately uses @filemtime() over file_exists() and filemtime() in some places. Reasons include + - @filemtime() is almost twice as fast as using an additional file_exists() + - between file_exists() and filemtime() a possible race condition is opened, + which does not exist using the simple @filemtime() approach. + */ + $error_handler = array('Smarty_Internal_ErrorHandler', 'mutingErrorHandler'); + $previous = set_error_handler($error_handler); + // avoid dead loops + if ($previous !== $error_handler) { + self::$previousErrorHandler = $previous; + } + } + + /** + * Error Handler to mute expected messages + * + * @link http://php.net/set_error_handler + * + * @param integer $errno Error level + * @param $errstr + * @param $errfile + * @param $errline + * @param $errcontext + * + * @return bool + */ + public static function mutingErrorHandler($errno, $errstr, $errfile, $errline, $errcontext = array()) + { + $_is_muted_directory = false; + // add the SMARTY_DIR to the list of muted directories + if (!isset(self::$mutedDirectories[ SMARTY_DIR ])) { + $smarty_dir = realpath(SMARTY_DIR); + if ($smarty_dir !== false) { + self::$mutedDirectories[ SMARTY_DIR ] = + array('file' => $smarty_dir, 'length' => strlen($smarty_dir),); + } + } + // walk the muted directories and test against $errfile + foreach (self::$mutedDirectories as $key => &$dir) { + if (!$dir) { + // resolve directory and length for speedy comparisons + $file = realpath($key); + if ($file === false) { + // this directory does not exist, remove and skip it + unset(self::$mutedDirectories[ $key ]); + continue; + } + $dir = array('file' => $file, 'length' => strlen($file),); + } + if (!strncmp($errfile, $dir[ 'file' ], $dir[ 'length' ])) { + $_is_muted_directory = true; + break; + } + } + // pass to next error handler if this error did not occur inside SMARTY_DIR + // or the error was within smarty but masked to be ignored + if (!$_is_muted_directory || ($errno && $errno & error_reporting())) { + if (self::$previousErrorHandler) { + return call_user_func( + self::$previousErrorHandler, + $errno, + $errstr, + $errfile, + $errline, + $errcontext + ); + } else { + return false; + } + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php new file mode 100644 index 0000000000..b07615526d --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php @@ -0,0 +1,197 @@ +<?php + +/** + * Smarty Extension handler + * + * Load extensions dynamically + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + * + * Runtime extensions + * @property Smarty_Internal_Runtime_CacheModify $_cacheModify + * @property Smarty_Internal_Runtime_CacheResourceFile $_cacheResourceFile + * @property Smarty_Internal_Runtime_Capture $_capture + * @property Smarty_Internal_Runtime_CodeFrame $_codeFrame + * @property Smarty_Internal_Runtime_FilterHandler $_filterHandler + * @property Smarty_Internal_Runtime_Foreach $_foreach + * @property Smarty_Internal_Runtime_GetIncludePath $_getIncludePath + * @property Smarty_Internal_Runtime_Make_Nocache $_make_nocache + * @property Smarty_Internal_Runtime_UpdateCache $_updateCache + * @property Smarty_Internal_Runtime_UpdateScope $_updateScope + * @property Smarty_Internal_Runtime_TplFunction $_tplFunction + * @property Smarty_Internal_Runtime_WriteFile $_writeFile + * + * Method extensions + * @property Smarty_Internal_Method_GetTemplateVars $getTemplateVars + * @property Smarty_Internal_Method_Append $append + * @property Smarty_Internal_Method_AppendByRef $appendByRef + * @property Smarty_Internal_Method_AssignGlobal $assignGlobal + * @property Smarty_Internal_Method_AssignByRef $assignByRef + * @property Smarty_Internal_Method_LoadFilter $loadFilter + * @property Smarty_Internal_Method_LoadPlugin $loadPlugin + * @property Smarty_Internal_Method_RegisterFilter $registerFilter + * @property Smarty_Internal_Method_RegisterObject $registerObject + * @property Smarty_Internal_Method_RegisterPlugin $registerPlugin + * @property mixed|\Smarty_Template_Cached configLoad + */ +class Smarty_Internal_Extension_Handler +{ + public $objType = null; + + /** + * Cache for property information from generic getter/setter + * Preloaded with names which should not use with generic getter/setter + * + * @var array + */ + private $_property_info = array( + 'AutoloadFilters' => 0, 'DefaultModifiers' => 0, 'ConfigVars' => 0, + 'DebugTemplate' => 0, 'RegisteredObject' => 0, 'StreamVariable' => 0, + 'TemplateVars' => 0, 'Literals' => 'Literals', + );// + + private $resolvedProperties = array(); + + /** + * Call external Method + * + * @param \Smarty_Internal_Data $data + * @param string $name external method names + * @param array $args argument array + * + * @return mixed + */ + public function _callExternalMethod(Smarty_Internal_Data $data, $name, $args) + { + /* @var Smarty $data ->smarty */ + $smarty = isset($data->smarty) ? $data->smarty : $data; + if (!isset($smarty->ext->$name)) { + if (preg_match('/^((set|get)|(.*?))([A-Z].*)$/', $name, $match)) { + $basename = $this->upperCase($match[ 4 ]); + if (!isset($smarty->ext->$basename) && isset($this->_property_info[ $basename ]) + && is_string($this->_property_info[ $basename ]) + ) { + $class = 'Smarty_Internal_Method_' . $this->_property_info[ $basename ]; + if (class_exists($class)) { + $classObj = new $class(); + $methodes = get_class_methods($classObj); + foreach ($methodes as $method) { + $smarty->ext->$method = $classObj; + } + } + } + if (!empty($match[ 2 ]) && !isset($smarty->ext->$name)) { + $class = 'Smarty_Internal_Method_' . $this->upperCase($name); + if (!class_exists($class)) { + $objType = $data->_objType; + $propertyType = false; + if (!isset($this->resolvedProperties[ $match[ 0 ] ][ $objType ])) { + $property = isset($this->resolvedProperties[ 'property' ][ $basename ]) ? + $this->resolvedProperties[ 'property' ][ $basename ] : + $property = $this->resolvedProperties[ 'property' ][ $basename ] = strtolower( + join( + '_', + preg_split( + '/([A-Z][^A-Z]*)/', + $basename, + -1, + PREG_SPLIT_NO_EMPTY | + PREG_SPLIT_DELIM_CAPTURE + ) + ) + ); + if ($property !== false) { + if (property_exists($data, $property)) { + $propertyType = $this->resolvedProperties[ $match[ 0 ] ][ $objType ] = 1; + } elseif (property_exists($smarty, $property)) { + $propertyType = $this->resolvedProperties[ $match[ 0 ] ][ $objType ] = 2; + } else { + $this->resolvedProperties[ 'property' ][ $basename ] = $property = false; + } + } + } else { + $propertyType = $this->resolvedProperties[ $match[ 0 ] ][ $objType ]; + $property = $this->resolvedProperties[ 'property' ][ $basename ]; + } + if ($propertyType) { + $obj = $propertyType === 1 ? $data : $smarty; + if ($match[ 2 ] === 'get') { + return $obj->$property; + } elseif ($match[ 2 ] === 'set') { + return $obj->$property = $args[ 0 ]; + } + } + } + } + } + } + $callback = array($smarty->ext->$name, $name); + array_unshift($args, $data); + if (isset($callback) && $callback[ 0 ]->objMap | $data->_objType) { + return call_user_func_array($callback, $args); + } + return call_user_func_array(array(new Smarty_Internal_Undefined(), $name), $args); + } + + /** + * Make first character of name parts upper case + * + * @param string $name + * + * @return string + */ + public function upperCase($name) + { + $_name = explode('_', $name); + $_name = array_map('ucfirst', $_name); + return implode('_', $_name); + } + + /** + * get extension object + * + * @param string $property_name property name + * + * @return mixed|Smarty_Template_Cached + */ + public function __get($property_name) + { + // object properties of runtime template extensions will start with '_' + if ($property_name[ 0 ] === '_') { + $class = 'Smarty_Internal_Runtime' . $this->upperCase($property_name); + } else { + $class = 'Smarty_Internal_Method_' . $this->upperCase($property_name); + } + if (!class_exists($class)) { + return $this->$property_name = new Smarty_Internal_Undefined($class); + } + return $this->$property_name = new $class(); + } + + /** + * set extension property + * + * @param string $property_name property name + * @param mixed $value value + * + */ + public function __set($property_name, $value) + { + $this->$property_name = $value; + } + + /** + * Call error handler for undefined method + * + * @param string $name unknown method-name + * @param array $args argument array + * + * @return mixed + */ + public function __call($name, $args) + { + return call_user_func_array(array(new Smarty_Internal_Undefined(), $name), array($this)); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_addautoloadfilters.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_addautoloadfilters.php new file mode 100644 index 0000000000..a05f55a822 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_addautoloadfilters.php @@ -0,0 +1,53 @@ +<?php + +/** + * Smarty Method AddAutoloadFilters + * + * Smarty::addAutoloadFilters() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_AddAutoloadFilters extends Smarty_Internal_Method_SetAutoloadFilters +{ + /** + * Add autoload filters + * + * @api Smarty::setAutoloadFilters() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param array $filters filters to load automatically + * @param string $type "pre", "output", … specify + * the filter type to set. + * Defaults to none treating + * $filters' keys as the + * appropriate types + * + * @return \Smarty|\Smarty_Internal_Template + * @throws \SmartyException + */ + public function addAutoloadFilters(Smarty_Internal_TemplateBase $obj, $filters, $type = null) + { + $smarty = $obj->_getSmartyObj(); + if ($type !== null) { + $this->_checkFilterType($type); + if (!empty($smarty->autoload_filters[ $type ])) { + $smarty->autoload_filters[ $type ] = array_merge($smarty->autoload_filters[ $type ], (array)$filters); + } else { + $smarty->autoload_filters[ $type ] = (array)$filters; + } + } else { + foreach ((array)$filters as $type => $value) { + $this->_checkFilterType($type); + if (!empty($smarty->autoload_filters[ $type ])) { + $smarty->autoload_filters[ $type ] = + array_merge($smarty->autoload_filters[ $type ], (array)$value); + } else { + $smarty->autoload_filters[ $type ] = (array)$value; + } + } + } + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_adddefaultmodifiers.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_adddefaultmodifiers.php new file mode 100644 index 0000000000..c3feb3d8b9 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_adddefaultmodifiers.php @@ -0,0 +1,42 @@ +<?php + +/** + * Smarty Method AddDefaultModifiers + * + * Smarty::addDefaultModifiers() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_AddDefaultModifiers +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Add default modifiers + * + * @api Smarty::addDefaultModifiers() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param array|string $modifiers modifier or list of modifiers + * to add + * + * @return \Smarty|\Smarty_Internal_Template + */ + public function addDefaultModifiers(Smarty_Internal_TemplateBase $obj, $modifiers) + { + $smarty = $obj->_getSmartyObj(); + if (is_array($modifiers)) { + $smarty->default_modifiers = array_merge($smarty->default_modifiers, $modifiers); + } else { + $smarty->default_modifiers[] = $modifiers; + } + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_append.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_append.php new file mode 100644 index 0000000000..881375efe9 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_append.php @@ -0,0 +1,74 @@ +<?php + +/** + * Smarty Method Append + * + * Smarty::append() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_Append +{ + /** + * Valid for all objects + * + * @var int + */ + public $objMap = 7; + + /** + * appends values to template variables + * + * @api Smarty::append() + * @link http://www.smarty.net/docs/en/api.append.tpl + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * @param array|string $tpl_var the template variable name(s) + * @param mixed $value the value to append + * @param bool $merge flag if array elements shall be merged + * @param bool $nocache if true any output of this variable will + * be not cached + * + * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty + */ + public function append(Smarty_Internal_Data $data, $tpl_var, $value = null, $merge = false, $nocache = false) + { + if (is_array($tpl_var)) { + // $tpl_var is an array, ignore $value + foreach ($tpl_var as $_key => $_val) { + if ($_key !== '') { + $this->append($data, $_key, $_val, $merge, $nocache); + } + } + } else { + if ($tpl_var !== '' && isset($value)) { + if (!isset($data->tpl_vars[ $tpl_var ])) { + $tpl_var_inst = $data->ext->getTemplateVars->_getVariable($data, $tpl_var, null, true, false); + if ($tpl_var_inst instanceof Smarty_Undefined_Variable) { + $data->tpl_vars[ $tpl_var ] = new Smarty_Variable(null, $nocache); + } else { + $data->tpl_vars[ $tpl_var ] = clone $tpl_var_inst; + } + } + if (!(is_array($data->tpl_vars[ $tpl_var ]->value) + || $data->tpl_vars[ $tpl_var ]->value instanceof ArrayAccess) + ) { + settype($data->tpl_vars[ $tpl_var ]->value, 'array'); + } + if ($merge && is_array($value)) { + foreach ($value as $_mkey => $_mval) { + $data->tpl_vars[ $tpl_var ]->value[ $_mkey ] = $_mval; + } + } else { + $data->tpl_vars[ $tpl_var ]->value[] = $value; + } + } + if ($data->_isTplObj() && $data->scope) { + $data->ext->_updateScope->_updateScope($data, $tpl_var); + } + } + return $data; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_appendbyref.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_appendbyref.php new file mode 100644 index 0000000000..c959044600 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_appendbyref.php @@ -0,0 +1,49 @@ +<?php + +/** + * Smarty Method AppendByRef + * + * Smarty::appendByRef() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_AppendByRef +{ + /** + * appends values to template variables by reference + * + * @api Smarty::appendByRef() + * @link http://www.smarty.net/docs/en/api.append.by.ref.tpl + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * @param string $tpl_var the template variable name + * @param mixed &$value the referenced value to append + * @param bool $merge flag if array elements shall be merged + * + * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty + */ + public static function appendByRef(Smarty_Internal_Data $data, $tpl_var, &$value, $merge = false) + { + if ($tpl_var !== '' && isset($value)) { + if (!isset($data->tpl_vars[ $tpl_var ])) { + $data->tpl_vars[ $tpl_var ] = new Smarty_Variable(); + } + if (!is_array($data->tpl_vars[ $tpl_var ]->value)) { + settype($data->tpl_vars[ $tpl_var ]->value, 'array'); + } + if ($merge && is_array($value)) { + foreach ($value as $_key => $_val) { + $data->tpl_vars[ $tpl_var ]->value[ $_key ] = &$value[ $_key ]; + } + } else { + $data->tpl_vars[ $tpl_var ]->value[] = &$value; + } + if ($data->_isTplObj() && $data->scope) { + $data->ext->_updateScope->_updateScope($data, $tpl_var); + } + } + return $data; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_assignbyref.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_assignbyref.php new file mode 100644 index 0000000000..fa705bb80d --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_assignbyref.php @@ -0,0 +1,36 @@ +<?php + +/** + * Smarty Method AssignByRef + * + * Smarty::assignByRef() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_AssignByRef +{ + /** + * assigns values to template variables by reference + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * @param string $tpl_var the template variable name + * @param $value + * @param boolean $nocache if true any output of this variable will + * be not cached + * + * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty + */ + public function assignByRef(Smarty_Internal_Data $data, $tpl_var, &$value, $nocache) + { + if ($tpl_var !== '') { + $data->tpl_vars[ $tpl_var ] = new Smarty_Variable(null, $nocache); + $data->tpl_vars[ $tpl_var ]->value = &$value; + if ($data->_isTplObj() && $data->scope) { + $data->ext->_updateScope->_updateScope($data, $tpl_var); + } + } + return $data; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_assignglobal.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_assignglobal.php new file mode 100644 index 0000000000..08cfa4693e --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_assignglobal.php @@ -0,0 +1,44 @@ +<?php + +/** + * Smarty Method AssignGlobal + * + * Smarty::assignGlobal() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_AssignGlobal +{ + /** + * Valid for all objects + * + * @var int + */ + public $objMap = 7; + + /** + * assigns a global Smarty variable + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * @param string $varName the global variable name + * @param mixed $value the value to assign + * @param boolean $nocache if true any output of this variable will + * be not cached + * + * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty + */ + public function assignGlobal(Smarty_Internal_Data $data, $varName, $value = null, $nocache = false) + { + if ($varName !== '') { + Smarty::$global_tpl_vars[ $varName ] = new Smarty_Variable($value, $nocache); + $ptr = $data; + while ($ptr->_isTplObj()) { + $ptr->tpl_vars[ $varName ] = clone Smarty::$global_tpl_vars[ $varName ]; + $ptr = $ptr->parent; + } + } + return $data; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallassign.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallassign.php new file mode 100644 index 0000000000..29ff2ffb04 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallassign.php @@ -0,0 +1,36 @@ +<?php + +/** + * Smarty Method ClearAllAssign + * + * Smarty::clearAllAssign() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_ClearAllAssign +{ + /** + * Valid for all objects + * + * @var int + */ + public $objMap = 7; + + /** + * clear all the assigned template variables. + * + * @api Smarty::clearAllAssign() + * @link http://www.smarty.net/docs/en/api.clear.all.assign.tpl + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * + * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty + */ + public function clearAllAssign(Smarty_Internal_Data $data) + { + $data->tpl_vars = array(); + return $data; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallcache.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallcache.php new file mode 100644 index 0000000000..30d55f7d20 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearallcache.php @@ -0,0 +1,41 @@ +<?php + +/** + * Smarty Method ClearAllCache + * + * Smarty::clearAllCache() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_ClearAllCache +{ + /** + * Valid for Smarty object + * + * @var int + */ + public $objMap = 1; + + /** + * Empty cache folder + * + * @api Smarty::clearAllCache() + * @link http://www.smarty.net/docs/en/api.clear.all.cache.tpl + * + * @param \Smarty $smarty + * @param integer $exp_time expiration time + * @param string $type resource type + * + * @return int number of cache files deleted + * @throws \SmartyException + */ + public function clearAllCache(Smarty $smarty, $exp_time = null, $type = null) + { + $smarty->_clearTemplateCache(); + // load cache resource and call clearAll + $_cache_resource = Smarty_CacheResource::load($smarty, $type); + return $_cache_resource->clearAll($smarty, $exp_time); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearassign.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearassign.php new file mode 100644 index 0000000000..22bfa2d31d --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearassign.php @@ -0,0 +1,43 @@ +<?php + +/** + * Smarty Method ClearAssign + * + * Smarty::clearAssign() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_ClearAssign +{ + /** + * Valid for all objects + * + * @var int + */ + public $objMap = 7; + + /** + * clear the given assigned template variable(s). + * + * @api Smarty::clearAssign() + * @link http://www.smarty.net/docs/en/api.clear.assign.tpl + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * @param string|array $tpl_var the template variable(s) to clear + * + * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty + */ + public function clearAssign(Smarty_Internal_Data $data, $tpl_var) + { + if (is_array($tpl_var)) { + foreach ($tpl_var as $curr_var) { + unset($data->tpl_vars[ $curr_var ]); + } + } else { + unset($data->tpl_vars[ $tpl_var ]); + } + return $data; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcache.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcache.php new file mode 100644 index 0000000000..a5dd4e26eb --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcache.php @@ -0,0 +1,50 @@ +<?php + +/** + * Smarty Method ClearCache + * + * Smarty::clearCache() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_ClearCache +{ + /** + * Valid for Smarty object + * + * @var int + */ + public $objMap = 1; + + /** + * Empty cache for a specific template + * + * @api Smarty::clearCache() + * @link http://www.smarty.net/docs/en/api.clear.cache.tpl + * + * @param \Smarty $smarty + * @param string $template_name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param integer $exp_time expiration time + * @param string $type resource type + * + * @return int number of cache files deleted + * @throws \SmartyException + */ + public function clearCache( + Smarty $smarty, + $template_name, + $cache_id = null, + $compile_id = null, + $exp_time = null, + $type = null + ) { + $smarty->_clearTemplateCache(); + // load cache resource and call clear + $_cache_resource = Smarty_CacheResource::load($smarty, $type); + return $_cache_resource->clear($smarty, $template_name, $cache_id, $compile_id, $exp_time); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcompiledtemplate.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcompiledtemplate.php new file mode 100644 index 0000000000..bf49298079 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearcompiledtemplate.php @@ -0,0 +1,131 @@ +<?php + +/** + * Smarty Method ClearCompiledTemplate + * + * Smarty::clearCompiledTemplate() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_ClearCompiledTemplate +{ + /** + * Valid for Smarty object + * + * @var int + */ + public $objMap = 1; + + /** + * Delete compiled template file + * + * @api Smarty::clearCompiledTemplate() + * @link http://www.smarty.net/docs/en/api.clear.compiled.template.tpl + * + * @param \Smarty $smarty + * @param string $resource_name template name + * @param string $compile_id compile id + * @param integer $exp_time expiration time + * + * @return int number of template files deleted + * @throws \SmartyException + */ + public function clearCompiledTemplate(Smarty $smarty, $resource_name = null, $compile_id = null, $exp_time = null) + { + // clear template objects cache + $smarty->_clearTemplateCache(); + $_compile_dir = $smarty->getCompileDir(); + if ($_compile_dir === '/') { //We should never want to delete this! + return 0; + } + $_compile_id = isset($compile_id) ? preg_replace('![^\w]+!', '_', $compile_id) : null; + $_dir_sep = $smarty->use_sub_dirs ? DIRECTORY_SEPARATOR : '^'; + if (isset($resource_name)) { + $_save_stat = $smarty->caching; + $smarty->caching = Smarty::CACHING_OFF; + /* @var Smarty_Internal_Template $tpl */ + $tpl = $smarty->createTemplate($resource_name); + $smarty->caching = $_save_stat; + if (!$tpl->source->handler->uncompiled && !$tpl->source->handler->recompiled && $tpl->source->exists) { + $_resource_part_1 = basename(str_replace('^', DIRECTORY_SEPARATOR, $tpl->compiled->filepath)); + $_resource_part_1_length = strlen($_resource_part_1); + } else { + return 0; + } + $_resource_part_2 = str_replace('.php', '.cache.php', $_resource_part_1); + $_resource_part_2_length = strlen($_resource_part_2); + } + $_dir = $_compile_dir; + if ($smarty->use_sub_dirs && isset($_compile_id)) { + $_dir .= $_compile_id . $_dir_sep; + } + if (isset($_compile_id)) { + $_compile_id_part = $_compile_dir . $_compile_id . $_dir_sep; + $_compile_id_part_length = strlen($_compile_id_part); + } + $_count = 0; + try { + $_compileDirs = new RecursiveDirectoryIterator($_dir); + // NOTE: UnexpectedValueException thrown for PHP >= 5.3 + } catch (Exception $e) { + return 0; + } + $_compile = new RecursiveIteratorIterator($_compileDirs, RecursiveIteratorIterator::CHILD_FIRST); + foreach ($_compile as $_file) { + if (substr(basename($_file->getPathname()), 0, 1) === '.') { + continue; + } + $_filepath = (string)$_file; + if ($_file->isDir()) { + if (!$_compile->isDot()) { + // delete folder if empty + @rmdir($_file->getPathname()); + } + } else { + // delete only php files + if (substr($_filepath, -4) !== '.php') { + continue; + } + $unlink = false; + if ((!isset($_compile_id) || + (isset($_filepath[ $_compile_id_part_length ]) && + $a = !strncmp($_filepath, $_compile_id_part, $_compile_id_part_length))) + && (!isset($resource_name) || (isset($_filepath[ $_resource_part_1_length ]) + && substr_compare( + $_filepath, + $_resource_part_1, + -$_resource_part_1_length, + $_resource_part_1_length + ) === 0) || (isset($_filepath[ $_resource_part_2_length ]) + && substr_compare( + $_filepath, + $_resource_part_2, + -$_resource_part_2_length, + $_resource_part_2_length + ) === 0)) + ) { + if (isset($exp_time)) { + if (is_file($_filepath) && time() - filemtime($_filepath) >= $exp_time) { + $unlink = true; + } + } else { + $unlink = true; + } + } + if ($unlink && is_file($_filepath) && @unlink($_filepath)) { + $_count++; + if (function_exists('opcache_invalidate') + && (!function_exists('ini_get') || strlen(ini_get('opcache.restrict_api')) < 1) + ) { + opcache_invalidate($_filepath, true); + } elseif (function_exists('apc_delete_file')) { + apc_delete_file($_filepath); + } + } + } + } + return $_count; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearconfig.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearconfig.php new file mode 100644 index 0000000000..15bf492a16 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_clearconfig.php @@ -0,0 +1,41 @@ +<?php + +/** + * Smarty Method ClearConfig + * + * Smarty::clearConfig() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_ClearConfig +{ + /** + * Valid for all objects + * + * @var int + */ + public $objMap = 7; + + /** + * clear a single or all config variables + * + * @api Smarty::clearConfig() + * @link http://www.smarty.net/docs/en/api.clear.config.tpl + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * @param string|null $name variable name or null + * + * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty + */ + public function clearConfig(Smarty_Internal_Data $data, $name = null) + { + if (isset($name)) { + unset($data->config_vars[ $name ]); + } else { + $data->config_vars = array(); + } + return $data; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_compileallconfig.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_compileallconfig.php new file mode 100644 index 0000000000..3934ca042c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_compileallconfig.php @@ -0,0 +1,36 @@ +<?php + +/** + * Smarty Method CompileAllConfig + * + * Smarty::compileAllConfig() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_CompileAllConfig extends Smarty_Internal_Method_CompileAllTemplates +{ + /** + * Compile all config files + * + * @api Smarty::compileAllConfig() + * + * @param \Smarty $smarty passed smarty object + * @param string $extension file extension + * @param bool $force_compile force all to recompile + * @param int $time_limit + * @param int $max_errors + * + * @return int number of template files recompiled + */ + public function compileAllConfig( + Smarty $smarty, + $extension = '.conf', + $force_compile = false, + $time_limit = 0, + $max_errors = null + ) { + return $this->compileAll($smarty, $extension, $force_compile, $time_limit, $max_errors, true); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_compilealltemplates.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_compilealltemplates.php new file mode 100644 index 0000000000..5c046da407 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_compilealltemplates.php @@ -0,0 +1,130 @@ +<?php + +/** + * Smarty Method CompileAllTemplates + * + * Smarty::compileAllTemplates() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_CompileAllTemplates +{ + /** + * Valid for Smarty object + * + * @var int + */ + public $objMap = 1; + + /** + * Compile all template files + * + * @api Smarty::compileAllTemplates() + * + * @param \Smarty $smarty passed smarty object + * @param string $extension file extension + * @param bool $force_compile force all to recompile + * @param int $time_limit + * @param int $max_errors + * + * @return integer number of template files recompiled + */ + public function compileAllTemplates( + Smarty $smarty, + $extension = '.tpl', + $force_compile = false, + $time_limit = 0, + $max_errors = null + ) { + return $this->compileAll($smarty, $extension, $force_compile, $time_limit, $max_errors); + } + + /** + * Compile all template or config files + * + * @param \Smarty $smarty + * @param string $extension template file name extension + * @param bool $force_compile force all to recompile + * @param int $time_limit set maximum execution time + * @param int $max_errors set maximum allowed errors + * @param bool $isConfig flag true if called for config files + * + * @return int number of template files compiled + */ + protected function compileAll( + Smarty $smarty, + $extension, + $force_compile, + $time_limit, + $max_errors, + $isConfig = false + ) { + // switch off time limit + if (function_exists('set_time_limit')) { + @set_time_limit($time_limit); + } + $_count = 0; + $_error_count = 0; + $sourceDir = $isConfig ? $smarty->getConfigDir() : $smarty->getTemplateDir(); + // loop over array of source directories + foreach ($sourceDir as $_dir) { + $_dir_1 = new RecursiveDirectoryIterator( + $_dir, + defined('FilesystemIterator::FOLLOW_SYMLINKS') ? + FilesystemIterator::FOLLOW_SYMLINKS : 0 + ); + $_dir_2 = new RecursiveIteratorIterator($_dir_1); + foreach ($_dir_2 as $_fileinfo) { + $_file = $_fileinfo->getFilename(); + if (substr(basename($_fileinfo->getPathname()), 0, 1) === '.' || strpos($_file, '.svn') !== false) { + continue; + } + if (substr_compare($_file, $extension, -strlen($extension)) !== 0) { + continue; + } + if ($_fileinfo->getPath() !== substr($_dir, 0, -1)) { + $_file = substr($_fileinfo->getPath(), strlen($_dir)) . DIRECTORY_SEPARATOR . $_file; + } + echo "\n<br>", $_dir, '---', $_file; + flush(); + $_start_time = microtime(true); + $_smarty = clone $smarty; + // + $_smarty->_cache = array(); + $_smarty->ext = new Smarty_Internal_Extension_Handler(); + $_smarty->ext->objType = $_smarty->_objType; + $_smarty->force_compile = $force_compile; + try { + /* @var Smarty_Internal_Template $_tpl */ + $_tpl = new $smarty->template_class($_file, $_smarty); + $_tpl->caching = Smarty::CACHING_OFF; + $_tpl->source = + $isConfig ? Smarty_Template_Config::load($_tpl) : Smarty_Template_Source::load($_tpl); + if ($_tpl->mustCompile()) { + $_tpl->compileTemplateSource(); + $_count++; + echo ' compiled in ', microtime(true) - $_start_time, ' seconds'; + flush(); + } else { + echo ' is up to date'; + flush(); + } + } catch (Exception $e) { + echo "\n<br> ------>Error: ", $e->getMessage(), "<br><br>\n"; + $_error_count++; + } + // free memory + unset($_tpl); + $_smarty->_clearTemplateCache(); + if ($max_errors !== null && $_error_count === $max_errors) { + echo "\n<br><br>too many errors\n"; + exit(1); + } + } + } + echo "\n<br>"; + return $_count; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_configload.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_configload.php new file mode 100644 index 0000000000..2e62548809 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_configload.php @@ -0,0 +1,182 @@ +<?php + +/** + * Smarty Method ConfigLoad + * + * Smarty::configLoad() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_ConfigLoad +{ + /** + * Valid for all objects + * + * @var int + */ + public $objMap = 7; + + /** + * load a config file, optionally load just selected sections + * + * @api Smarty::configLoad() + * @link http://www.smarty.net/docs/en/api.config.load.tpl + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * @param string $config_file filename + * @param mixed $sections array of section names, single + * section or null + * + * @return \Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template + * @throws \Exception + */ + public function configLoad(Smarty_Internal_Data $data, $config_file, $sections = null) + { + $this->_loadConfigFile($data, $config_file, $sections, null); + return $data; + } + + /** + * load a config file, optionally load just selected sections + * + * @api Smarty::configLoad() + * @link http://www.smarty.net/docs/en/api.config.load.tpl + * + * @param \Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template $data + * @param string $config_file filename + * @param mixed $sections array of section names, single + * section or null + * @param int $scope scope into which config variables + * shall be loaded + * + * @throws \Exception + */ + public function _loadConfigFile(Smarty_Internal_Data $data, $config_file, $sections = null, $scope = 0) + { + /* @var \Smarty $smarty */ + $smarty = $data->_getSmartyObj(); + /* @var \Smarty_Internal_Template $confObj */ + $confObj = new Smarty_Internal_Template($config_file, $smarty, $data, null, null, null, null, true); + $confObj->caching = Smarty::CACHING_OFF; + $confObj->source->config_sections = $sections; + $confObj->source->scope = $scope; + $confObj->compiled = Smarty_Template_Compiled::load($confObj); + $confObj->compiled->render($confObj); + if ($data->_isTplObj()) { + $data->compiled->file_dependency[ $confObj->source->uid ] = + array($confObj->source->filepath, $confObj->source->getTimeStamp(), $confObj->source->type); + } + } + + /** + * load config variables into template object + * + * @param \Smarty_Internal_Template $tpl + * @param array $new_config_vars + */ + public function _loadConfigVars(Smarty_Internal_Template $tpl, $new_config_vars) + { + $this->_assignConfigVars($tpl->parent->config_vars, $tpl, $new_config_vars); + $tagScope = $tpl->source->scope; + if ($tagScope >= 0) { + if ($tagScope === Smarty::SCOPE_LOCAL) { + $this->_updateVarStack($tpl, $new_config_vars); + $tagScope = 0; + if (!$tpl->scope) { + return; + } + } + if ($tpl->parent->_isTplObj() && ($tagScope || $tpl->parent->scope)) { + $mergedScope = $tagScope | $tpl->scope; + if ($mergedScope) { + // update scopes + /* @var \Smarty_Internal_Template|\Smarty|\Smarty_Internal_Data $ptr */ + foreach ($tpl->smarty->ext->_updateScope->_getAffectedScopes($tpl->parent, $mergedScope) as $ptr) { + $this->_assignConfigVars($ptr->config_vars, $tpl, $new_config_vars); + if ($tagScope && $ptr->_isTplObj() && isset($tpl->_cache[ 'varStack' ])) { + $this->_updateVarStack($tpl, $new_config_vars); + } + } + } + } + } + } + + /** + * Assign all config variables in given scope + * + * @param array $config_vars config variables in scope + * @param \Smarty_Internal_Template $tpl + * @param array $new_config_vars loaded config variables + */ + public function _assignConfigVars(&$config_vars, Smarty_Internal_Template $tpl, $new_config_vars) + { + // copy global config vars + foreach ($new_config_vars[ 'vars' ] as $variable => $value) { + if ($tpl->smarty->config_overwrite || !isset($config_vars[ $variable ])) { + $config_vars[ $variable ] = $value; + } else { + $config_vars[ $variable ] = array_merge((array)$config_vars[ $variable ], (array)$value); + } + } + // scan sections + $sections = $tpl->source->config_sections; + if (!empty($sections)) { + foreach ((array)$sections as $tpl_section) { + if (isset($new_config_vars[ 'sections' ][ $tpl_section ])) { + foreach ($new_config_vars[ 'sections' ][ $tpl_section ][ 'vars' ] as $variable => $value) { + if ($tpl->smarty->config_overwrite || !isset($config_vars[ $variable ])) { + $config_vars[ $variable ] = $value; + } else { + $config_vars[ $variable ] = array_merge((array)$config_vars[ $variable ], (array)$value); + } + } + } + } + } + } + + /** + * Update config variables in template local variable stack + * + * @param \Smarty_Internal_Template $tpl + * @param array $config_vars + */ + public function _updateVarStack(Smarty_Internal_Template $tpl, $config_vars) + { + $i = 0; + while (isset($tpl->_cache[ 'varStack' ][ $i ])) { + $this->_assignConfigVars($tpl->_cache[ 'varStack' ][ $i ][ 'config' ], $tpl, $config_vars); + $i++; + } + } + + /** + * gets a config variable value + * + * @param \Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template $data + * @param string $varName the name of the config variable + * @param bool $errorEnable + * + * @return null|string the value of the config variable + */ + public function _getConfigVariable(Smarty_Internal_Data $data, $varName, $errorEnable = true) + { + $_ptr = $data; + while ($_ptr !== null) { + if (isset($_ptr->config_vars[ $varName ])) { + // found it, return it + return $_ptr->config_vars[ $varName ]; + } + // not found, try at parent + $_ptr = $_ptr->parent; + } + if ($data->smarty->error_unassigned && $errorEnable) { + // force a notice + $x = $$varName; + } + return null; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_createdata.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_createdata.php new file mode 100644 index 0000000000..f95097519c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_createdata.php @@ -0,0 +1,44 @@ +<?php + +/** + * Smarty Method CreateData + * + * Smarty::createData() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_CreateData +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * creates a data object + * + * @api Smarty::createData() + * @link http://www.smarty.net/docs/en/api.create.data.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param \Smarty_Internal_Template|\Smarty_Internal_Data|\Smarty_Data|\Smarty $parent next higher level of Smarty + * variables + * @param string $name optional data block name + * + * @return \Smarty_Data data object + */ + public function createData(Smarty_Internal_TemplateBase $obj, Smarty_Internal_Data $parent = null, $name = null) + { + /* @var Smarty $smarty */ + $smarty = $obj->_getSmartyObj(); + $dataObj = new Smarty_Data($parent, $smarty, $name); + if ($smarty->debugging) { + Smarty_Internal_Debug::register_data($dataObj); + } + return $dataObj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getautoloadfilters.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getautoloadfilters.php new file mode 100644 index 0000000000..4145db10b2 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getautoloadfilters.php @@ -0,0 +1,37 @@ +<?php + +/** + * Smarty Method GetAutoloadFilters + * + * Smarty::getAutoloadFilters() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_GetAutoloadFilters extends Smarty_Internal_Method_SetAutoloadFilters +{ + /** + * Get autoload filters + * + * @api Smarty::getAutoloadFilters() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $type type of filter to get auto loads + * for. Defaults to all autoload + * filters + * + * @return array array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type + * was specified + * @throws \SmartyException + */ + public function getAutoloadFilters(Smarty_Internal_TemplateBase $obj, $type = null) + { + $smarty = $obj->_getSmartyObj(); + if ($type !== null) { + $this->_checkFilterType($type); + return isset($smarty->autoload_filters[ $type ]) ? $smarty->autoload_filters[ $type ] : array(); + } + return $smarty->autoload_filters; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvariable.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvariable.php new file mode 100644 index 0000000000..b54815123f --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvariable.php @@ -0,0 +1,34 @@ +<?php + +/** + * Smarty Method GetConfigVariable + * + * Smarty::getConfigVariable() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_GetConfigVariable +{ + /** + * Valid for all objects + * + * @var int + */ + public $objMap = 7; + + /** + * gets a config variable value + * + * @param \Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template $data + * @param string $varName the name of the config variable + * @param bool $errorEnable + * + * @return null|string the value of the config variable + */ + public function getConfigVariable(Smarty_Internal_Data $data, $varName = null, $errorEnable = true) + { + return $data->ext->configLoad->_getConfigVariable($data, $varName, $errorEnable); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvars.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvars.php new file mode 100644 index 0000000000..1d11e44c16 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getconfigvars.php @@ -0,0 +1,58 @@ +<?php + +/** + * Smarty Method GetConfigVars + * + * Smarty::getConfigVars() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_GetConfigVars +{ + /** + * Valid for all objects + * + * @var int + */ + public $objMap = 7; + + /** + * Returns a single or all config variables + * + * @api Smarty::getConfigVars() + * @link http://www.smarty.net/docs/en/api.get.config.vars.tpl + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * @param string $varname variable name or null + * @param bool $search_parents include parent templates? + * + * @return mixed variable value or or array of variables + */ + public function getConfigVars(Smarty_Internal_Data $data, $varname = null, $search_parents = true) + { + $_ptr = $data; + $var_array = array(); + while ($_ptr !== null) { + if (isset($varname)) { + if (isset($_ptr->config_vars[ $varname ])) { + return $_ptr->config_vars[ $varname ]; + } + } else { + $var_array = array_merge($_ptr->config_vars, $var_array); + } + // not found, try at parent + if ($search_parents) { + $_ptr = $_ptr->parent; + } else { + $_ptr = null; + } + } + if (isset($varname)) { + return ''; + } else { + return $var_array; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getdebugtemplate.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getdebugtemplate.php new file mode 100644 index 0000000000..77d908c15b --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getdebugtemplate.php @@ -0,0 +1,35 @@ +<?php + +/** + * Smarty Method GetDebugTemplate + * + * Smarty::getDebugTemplate() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_GetDebugTemplate +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * return name of debugging template + * + * @api Smarty::getDebugTemplate() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * + * @return string + */ + public function getDebugTemplate(Smarty_Internal_TemplateBase $obj) + { + $smarty = $obj->_getSmartyObj(); + return $smarty->debug_tpl; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getdefaultmodifiers.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getdefaultmodifiers.php new file mode 100644 index 0000000000..57da85c497 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getdefaultmodifiers.php @@ -0,0 +1,35 @@ +<?php + +/** + * Smarty Method GetDefaultModifiers + * + * Smarty::getDefaultModifiers() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_GetDefaultModifiers +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Get default modifiers + * + * @api Smarty::getDefaultModifiers() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * + * @return array list of default modifiers + */ + public function getDefaultModifiers(Smarty_Internal_TemplateBase $obj) + { + $smarty = $obj->_getSmartyObj(); + return $smarty->default_modifiers; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getglobal.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getglobal.php new file mode 100644 index 0000000000..2be11d7e87 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getglobal.php @@ -0,0 +1,47 @@ +<?php + +/** + * Smarty Method GetGlobal + * + * Smarty::getGlobal() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_GetGlobal +{ + /** + * Valid for all objects + * + * @var int + */ + public $objMap = 7; + + /** + * Returns a single or all global variables + * + * @api Smarty::getGlobal() + * + * @param \Smarty_Internal_Data $data + * @param string $varName variable name or null + * + * @return string|array variable value or or array of variables + */ + public function getGlobal(Smarty_Internal_Data $data, $varName = null) + { + if (isset($varName)) { + if (isset(Smarty::$global_tpl_vars[ $varName ])) { + return Smarty::$global_tpl_vars[ $varName ]->value; + } else { + return ''; + } + } else { + $_result = array(); + foreach (Smarty::$global_tpl_vars as $key => $var) { + $_result[ $key ] = $var->value; + } + return $_result; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getregisteredobject.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getregisteredobject.php new file mode 100644 index 0000000000..df6ede1307 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getregisteredobject.php @@ -0,0 +1,44 @@ +<?php + +/** + * Smarty Method GetRegisteredObject + * + * Smarty::getRegisteredObject() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_GetRegisteredObject +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * return a reference to a registered object + * + * @api Smarty::getRegisteredObject() + * @link http://www.smarty.net/docs/en/api.get.registered.object.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $object_name object name + * + * @return object + * @throws \SmartyException if no such object is found + */ + public function getRegisteredObject(Smarty_Internal_TemplateBase $obj, $object_name) + { + $smarty = $obj->_getSmartyObj(); + if (!isset($smarty->registered_objects[ $object_name ])) { + throw new SmartyException("'$object_name' is not a registered object"); + } + if (!is_object($smarty->registered_objects[ $object_name ][ 0 ])) { + throw new SmartyException("registered '$object_name' is not an object"); + } + return $smarty->registered_objects[ $object_name ][ 0 ]; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getstreamvariable.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getstreamvariable.php new file mode 100644 index 0000000000..8db39c525c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getstreamvariable.php @@ -0,0 +1,50 @@ +<?php + +/** + * Smarty Method GetStreamVariable + * + * Smarty::getStreamVariable() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_GetStreamVariable +{ + /** + * Valid for all objects + * + * @var int + */ + public $objMap = 7; + + /** + * gets a stream variable + * + * @api Smarty::getStreamVariable() + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * @param string $variable the stream of the variable + * + * @return mixed + * @throws \SmartyException + */ + public function getStreamVariable(Smarty_Internal_Data $data, $variable) + { + $_result = ''; + $fp = fopen($variable, 'r+'); + if ($fp) { + while (!feof($fp) && ($current_line = fgets($fp)) !== false) { + $_result .= $current_line; + } + fclose($fp); + return $_result; + } + $smarty = isset($data->smarty) ? $data->smarty : $data; + if ($smarty->error_unassigned) { + throw new SmartyException('Undefined stream variable "' . $variable . '"'); + } else { + return null; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php new file mode 100644 index 0000000000..c07ae07ec7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettags.php @@ -0,0 +1,63 @@ +<?php + +/** + * Smarty Method GetTags + * + * Smarty::getTags() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_GetTags +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Return array of tag/attributes of all tags used by an template + * + * @api Smarty::getTags() + * @link http://www.smarty.net/docs/en/api.get.tags.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param null|string|Smarty_Internal_Template $template + * + * @return array of tag/attributes + * @throws \Exception + * @throws \SmartyException + */ + public function getTags(Smarty_Internal_TemplateBase $obj, $template = null) + { + /* @var Smarty $smarty */ + $smarty = $obj->_getSmartyObj(); + if ($obj->_isTplObj() && !isset($template)) { + $tpl = clone $obj; + } elseif (isset($template) && $template->_isTplObj()) { + $tpl = clone $template; + } elseif (isset($template) && is_string($template)) { + /* @var Smarty_Internal_Template $tpl */ + $tpl = new $smarty->template_class($template, $smarty); + // checks if template exists + if (!$tpl->source->exists) { + throw new SmartyException("Unable to load template {$tpl->source->type} '{$tpl->source->name}'"); + } + } + if (isset($tpl)) { + $tpl->smarty = clone $tpl->smarty; + $tpl->smarty->_cache[ 'get_used_tags' ] = true; + $tpl->_cache[ 'used_tags' ] = array(); + $tpl->smarty->merge_compiled_includes = false; + $tpl->smarty->disableSecurity(); + $tpl->caching = Smarty::CACHING_OFF; + $tpl->loadCompiler(); + $tpl->compiler->compileTemplate($tpl); + return $tpl->_cache[ 'used_tags' ]; + } + throw new SmartyException('Missing template specification'); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettemplatevars.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettemplatevars.php new file mode 100644 index 0000000000..9ef7d46bb7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_gettemplatevars.php @@ -0,0 +1,119 @@ +<?php + +/** + * Smarty Method GetTemplateVars + * + * Smarty::getTemplateVars() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_GetTemplateVars +{ + /** + * Valid for all objects + * + * @var int + */ + public $objMap = 7; + + /** + * Returns a single or all template variables + * + * @api Smarty::getTemplateVars() + * @link http://www.smarty.net/docs/en/api.get.template.vars.tpl + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * @param string $varName variable name or null + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $_ptr optional pointer to data object + * @param bool $searchParents include parent templates? + * + * @return mixed variable value or or array of variables + */ + public function getTemplateVars( + Smarty_Internal_Data $data, + $varName = null, + Smarty_Internal_Data $_ptr = null, + $searchParents = true + ) { + if (isset($varName)) { + $_var = $this->_getVariable($data, $varName, $_ptr, $searchParents, false); + if (is_object($_var)) { + return $_var->value; + } else { + return null; + } + } else { + $_result = array(); + if ($_ptr === null) { + $_ptr = $data; + } + while ($_ptr !== null) { + foreach ($_ptr->tpl_vars as $key => $var) { + if (!array_key_exists($key, $_result)) { + $_result[ $key ] = $var->value; + } + } + // not found, try at parent + if ($searchParents && isset($_ptr->parent)) { + $_ptr = $_ptr->parent; + } else { + $_ptr = null; + } + } + if ($searchParents && isset(Smarty::$global_tpl_vars)) { + foreach (Smarty::$global_tpl_vars as $key => $var) { + if (!array_key_exists($key, $_result)) { + $_result[ $key ] = $var->value; + } + } + } + return $_result; + } + } + + /** + * gets the object of a Smarty variable + * + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data + * @param string $varName the name of the Smarty variable + * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $_ptr optional pointer to data object + * @param bool $searchParents search also in parent data + * @param bool $errorEnable + * + * @return \Smarty_Variable + */ + public function _getVariable( + Smarty_Internal_Data $data, + $varName, + Smarty_Internal_Data $_ptr = null, + $searchParents = true, + $errorEnable = true + ) { + if ($_ptr === null) { + $_ptr = $data; + } + while ($_ptr !== null) { + if (isset($_ptr->tpl_vars[ $varName ])) { + // found it, return it + return $_ptr->tpl_vars[ $varName ]; + } + // not found, try at parent + if ($searchParents && isset($_ptr->parent)) { + $_ptr = $_ptr->parent; + } else { + $_ptr = null; + } + } + if (isset(Smarty::$global_tpl_vars[ $varName ])) { + // found it, return it + return Smarty::$global_tpl_vars[ $varName ]; + } + if ($errorEnable && $data->_getSmartyObj()->error_unassigned) { + // force a notice + $x = $$varName; + } + return new Smarty_Undefined_Variable; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php new file mode 100644 index 0000000000..bfa3f58ecf --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_literals.php @@ -0,0 +1,100 @@ +<?php + +/** + * Smarty Method GetLiterals + * + * Smarty::getLiterals() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_Literals +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Get literals + * + * @api Smarty::getLiterals() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * + * @return array list of literals + */ + public function getLiterals(Smarty_Internal_TemplateBase $obj) + { + $smarty = $obj->_getSmartyObj(); + return (array)$smarty->literals; + } + + /** + * Add literals + * + * @api Smarty::addLiterals() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param array|string $literals literal or list of literals + * to addto add + * + * @return \Smarty|\Smarty_Internal_Template + * @throws \SmartyException + */ + public function addLiterals(Smarty_Internal_TemplateBase $obj, $literals = null) + { + if (isset($literals)) { + $this->set($obj->_getSmartyObj(), (array)$literals); + } + return $obj; + } + + /** + * Set literals + * + * @api Smarty::setLiterals() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param array|string $literals literal or list of literals + * to setto set + * + * @return \Smarty|\Smarty_Internal_Template + * @throws \SmartyException + */ + public function setLiterals(Smarty_Internal_TemplateBase $obj, $literals = null) + { + $smarty = $obj->_getSmartyObj(); + $smarty->literals = array(); + if (!empty($literals)) { + $this->set($smarty, (array)$literals); + } + return $obj; + } + + /** + * common setter for literals for easier handling of duplicates the + * Smarty::$literals array gets filled with identical key values + * + * @param \Smarty $smarty + * @param array $literals + * + * @throws \SmartyException + */ + private function set(Smarty $smarty, $literals) + { + $literals = array_combine($literals, $literals); + $error = isset($literals[ $smarty->left_delimiter ]) ? array($smarty->left_delimiter) : array(); + $error = isset($literals[ $smarty->right_delimiter ]) ? $error[] = $smarty->right_delimiter : $error; + if (!empty($error)) { + throw new SmartyException( + 'User defined literal(s) "' . $error . + '" may not be identical with left or right delimiter' + ); + } + $smarty->literals = array_merge((array)$smarty->literals, (array)$literals); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadfilter.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadfilter.php new file mode 100644 index 0000000000..66d80d474b --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadfilter.php @@ -0,0 +1,77 @@ +<?php + +/** + * Smarty Method LoadFilter + * + * Smarty::loadFilter() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_LoadFilter +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Valid filter types + * + * @var array + */ + private $filterTypes = array('pre' => true, 'post' => true, 'output' => true, 'variable' => true); + + /** + * load a filter of specified type and name + * + * @api Smarty::loadFilter() + * + * @link http://www.smarty.net/docs/en/api.load.filter.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $type filter type + * @param string $name filter name + * + * @return bool + * @throws SmartyException if filter could not be loaded + */ + public function loadFilter(Smarty_Internal_TemplateBase $obj, $type, $name) + { + $smarty = $obj->_getSmartyObj(); + $this->_checkFilterType($type); + $_plugin = "smarty_{$type}filter_{$name}"; + $_filter_name = $_plugin; + if (is_callable($_plugin)) { + $smarty->registered_filters[ $type ][ $_filter_name ] = $_plugin; + return true; + } + if ($smarty->loadPlugin($_plugin)) { + if (class_exists($_plugin, false)) { + $_plugin = array($_plugin, 'execute'); + } + if (is_callable($_plugin)) { + $smarty->registered_filters[ $type ][ $_filter_name ] = $_plugin; + return true; + } + } + throw new SmartyException("{$type}filter '{$name}' not found or callable"); + } + + /** + * Check if filter type is valid + * + * @param string $type + * + * @throws \SmartyException + */ + public function _checkFilterType($type) + { + if (!isset($this->filterTypes[ $type ])) { + throw new SmartyException("Illegal filter type '{$type}'"); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadplugin.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadplugin.php new file mode 100644 index 0000000000..3bd659cb86 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadplugin.php @@ -0,0 +1,111 @@ +<?php + +/** + * Smarty Extension Loadplugin + * + * $smarty->loadPlugin() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_LoadPlugin +{ + /** + * Cache of searched plugin files + * + * @var array + */ + public $plugin_files = array(); + + /** + * Takes unknown classes and loads plugin files for them + * class name format: Smarty_PluginType_PluginName + * plugin filename format: plugintype.pluginname.php + * + * @param \Smarty $smarty + * @param string $plugin_name class plugin name to load + * @param bool $check check if already loaded + * + * @return bool|string + * @throws \SmartyException + */ + public function loadPlugin(Smarty $smarty, $plugin_name, $check) + { + // if function or class exists, exit silently (already loaded) + if ($check && (is_callable($plugin_name) || class_exists($plugin_name, false))) { + return true; + } + if (!preg_match('#^smarty_((internal)|([^_]+))_(.+)$#i', $plugin_name, $match)) { + throw new SmartyException("plugin {$plugin_name} is not a valid name format"); + } + if (!empty($match[ 2 ])) { + $file = SMARTY_SYSPLUGINS_DIR . strtolower($plugin_name) . '.php'; + if (isset($this->plugin_files[ $file ])) { + if ($this->plugin_files[ $file ] !== false) { + return $this->plugin_files[ $file ]; + } else { + return false; + } + } else { + if (is_file($file)) { + $this->plugin_files[ $file ] = $file; + include_once $file; + return $file; + } else { + $this->plugin_files[ $file ] = false; + return false; + } + } + } + // plugin filename is expected to be: [type].[name].php + $_plugin_filename = "{$match[1]}.{$match[4]}.php"; + $_lower_filename = strtolower($_plugin_filename); + if (isset($this->plugin_files)) { + if (isset($this->plugin_files[ 'plugins_dir' ][ $_lower_filename ])) { + if (!$smarty->use_include_path || $this->plugin_files[ 'plugins_dir' ][ $_lower_filename ] !== false) { + return $this->plugin_files[ 'plugins_dir' ][ $_lower_filename ]; + } + } + if (!$smarty->use_include_path || $smarty->ext->_getIncludePath->isNewIncludePath($smarty)) { + unset($this->plugin_files[ 'include_path' ]); + } else { + if (isset($this->plugin_files[ 'include_path' ][ $_lower_filename ])) { + return $this->plugin_files[ 'include_path' ][ $_lower_filename ]; + } + } + } + $_file_names = array($_plugin_filename); + if ($_lower_filename !== $_plugin_filename) { + $_file_names[] = $_lower_filename; + } + $_p_dirs = $smarty->getPluginsDir(); + if (!isset($this->plugin_files[ 'plugins_dir' ][ $_lower_filename ])) { + // loop through plugin dirs and find the plugin + foreach ($_p_dirs as $_plugin_dir) { + foreach ($_file_names as $name) { + $file = $_plugin_dir . $name; + if (is_file($file)) { + $this->plugin_files[ 'plugins_dir' ][ $_lower_filename ] = $file; + include_once $file; + return $file; + } + $this->plugin_files[ 'plugins_dir' ][ $_lower_filename ] = false; + } + } + } + if ($smarty->use_include_path) { + foreach ($_file_names as $_file_name) { + // try PHP include_path + $file = $smarty->ext->_getIncludePath->getIncludePath($_p_dirs, $_file_name, $smarty); + $this->plugin_files[ 'include_path' ][ $_lower_filename ] = $file; + if ($file !== false) { + include_once $file; + return $file; + } + } + } + // no plugin loaded + return false; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_mustcompile.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_mustcompile.php new file mode 100644 index 0000000000..39318838ee --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_mustcompile.php @@ -0,0 +1,50 @@ +<?php + +/** + * Smarty Method MustCompile + * + * Smarty_Internal_Template::mustCompile() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_MustCompile +{ + /** + * Valid for template object + * + * @var int + */ + public $objMap = 2; + + /** + * Returns if the current template must be compiled by the Smarty compiler + * It does compare the timestamps of template source and the compiled templates and checks the force compile + * configuration + * + * @param \Smarty_Internal_Template $_template + * + * @return bool + * @throws \SmartyException + */ + public function mustCompile(Smarty_Internal_Template $_template) + { + if (!$_template->source->exists) { + if ($_template->_isSubTpl()) { + $parent_resource = " in '$_template->parent->template_resource}'"; + } else { + $parent_resource = ''; + } + throw new SmartyException("Unable to load template {$_template->source->type} '{$_template->source->name}'{$parent_resource}"); + } + if ($_template->mustCompile === null) { + $_template->mustCompile = (!$_template->source->handler->uncompiled && + ($_template->smarty->force_compile || $_template->source->handler->recompiled || + !$_template->compiled->exists || ($_template->compile_check && + $_template->compiled->getTimeStamp() < + $_template->source->getTimeStamp()))); + } + return $_template->mustCompile; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registercacheresource.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registercacheresource.php new file mode 100644 index 0000000000..6483656190 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registercacheresource.php @@ -0,0 +1,42 @@ +<?php + +/** + * Smarty Method RegisterCacheResource + * + * Smarty::registerCacheResource() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_RegisterCacheResource +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Registers a resource to fetch a template + * + * @api Smarty::registerCacheResource() + * @link http://www.smarty.net/docs/en/api.register.cacheresource.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $name name of resource type + * @param \Smarty_CacheResource $resource_handler + * + * @return \Smarty|\Smarty_Internal_Template + */ + public function registerCacheResource( + Smarty_Internal_TemplateBase $obj, + $name, + Smarty_CacheResource $resource_handler + ) { + $smarty = $obj->_getSmartyObj(); + $smarty->registered_cache_resources[ $name ] = $resource_handler; + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerclass.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerclass.php new file mode 100644 index 0000000000..8d18547e27 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerclass.php @@ -0,0 +1,46 @@ +<?php + +/** + * Smarty Method RegisterClass + * + * Smarty::registerClass() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_RegisterClass +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Registers static classes to be used in templates + * + * @api Smarty::registerClass() + * @link http://www.smarty.net/docs/en/api.register.class.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $class_name + * @param string $class_impl the referenced PHP class to + * register + * + * @return \Smarty|\Smarty_Internal_Template + * @throws \SmartyException + */ + public function registerClass(Smarty_Internal_TemplateBase $obj, $class_name, $class_impl) + { + $smarty = $obj->_getSmartyObj(); + // test if exists + if (!class_exists($class_impl)) { + throw new SmartyException("Undefined class '$class_impl' in register template class"); + } + // register the class + $smarty->registered_classes[ $class_name ] = $class_impl; + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultconfighandler.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultconfighandler.php new file mode 100644 index 0000000000..b340f178de --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultconfighandler.php @@ -0,0 +1,42 @@ +<?php + +/** + * Smarty Method RegisterDefaultConfigHandler + * + * Smarty::registerDefaultConfigHandler() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_RegisterDefaultConfigHandler +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Register config default handler + * + * @api Smarty::registerDefaultConfigHandler() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param callable $callback class/method name + * + * @return \Smarty|\Smarty_Internal_Template + * @throws SmartyException if $callback is not callable + */ + public function registerDefaultConfigHandler(Smarty_Internal_TemplateBase $obj, $callback) + { + $smarty = $obj->_getSmartyObj(); + if (is_callable($callback)) { + $smarty->default_config_handler_func = $callback; + } else { + throw new SmartyException('Default config handler not callable'); + } + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php new file mode 100644 index 0000000000..a9fb78dc6f --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php @@ -0,0 +1,43 @@ +<?php + +/** + * Smarty Method RegisterDefaultPluginHandler + * + * Smarty::registerDefaultPluginHandler() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_RegisterDefaultPluginHandler +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Registers a default plugin handler + * + * @api Smarty::registerDefaultPluginHandler() + * @link http://www.smarty.net/docs/en/api.register.default.plugin.handler.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param callable $callback class/method name + * + * @return \Smarty|\Smarty_Internal_Template + * @throws SmartyException if $callback is not callable + */ + public function registerDefaultPluginHandler(Smarty_Internal_TemplateBase $obj, $callback) + { + $smarty = $obj->_getSmartyObj(); + if (is_callable($callback)) { + $smarty->default_plugin_handler_func = $callback; + } else { + throw new SmartyException("Default plugin handler '$callback' not callable"); + } + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php new file mode 100644 index 0000000000..cbc133ccd8 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php @@ -0,0 +1,88 @@ +<?php + +/** + * Smarty Method RegisterDefaultTemplateHandler + * + * Smarty::registerDefaultTemplateHandler() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_RegisterDefaultTemplateHandler +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Register template default handler + * + * @api Smarty::registerDefaultTemplateHandler() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param callable $callback class/method name + * + * @return \Smarty|\Smarty_Internal_Template + * @throws SmartyException if $callback is not callable + */ + public function registerDefaultTemplateHandler(Smarty_Internal_TemplateBase $obj, $callback) + { + $smarty = $obj->_getSmartyObj(); + if (is_callable($callback)) { + $smarty->default_template_handler_func = $callback; + } else { + throw new SmartyException('Default template handler not callable'); + } + return $obj; + } + + /** + * get default content from template or config resource handler + * + * @param Smarty_Template_Source $source + * + * @throws \SmartyException + */ + public static function _getDefaultTemplate(Smarty_Template_Source $source) + { + if ($source->isConfig) { + $default_handler = $source->smarty->default_config_handler_func; + } else { + $default_handler = $source->smarty->default_template_handler_func; + } + $_content = $_timestamp = null; + $_return = call_user_func_array( + $default_handler, + array($source->type, $source->name, &$_content, &$_timestamp, $source->smarty) + ); + if (is_string($_return)) { + $source->exists = is_file($_return); + if ($source->exists) { + $source->timestamp = filemtime($_return); + } else { + throw new SmartyException( + 'Default handler: Unable to load ' . + ($source->isConfig ? 'config' : 'template') . + " default file '{$_return}' for '{$source->type}:{$source->name}'" + ); + } + $source->name = $source->filepath = $_return; + $source->uid = sha1($source->filepath); + } elseif ($_return === true) { + $source->content = $_content; + $source->exists = true; + $source->uid = $source->name = sha1($_content); + $source->handler = Smarty_Resource::load($source->smarty, 'eval'); + } else { + $source->exists = false; + throw new SmartyException( + 'Default handler: No ' . ($source->isConfig ? 'config' : 'template') . + " default content for '{$source->type}:{$source->name}'" + ); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerfilter.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerfilter.php new file mode 100644 index 0000000000..c0f9fff105 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerfilter.php @@ -0,0 +1,87 @@ +<?php + +/** + * Smarty Method RegisterFilter + * + * Smarty::registerFilter() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_RegisterFilter +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Valid filter types + * + * @var array + */ + private $filterTypes = array('pre' => true, 'post' => true, 'output' => true, 'variable' => true); + + /** + * Registers a filter function + * + * @api Smarty::registerFilter() + * + * @link http://www.smarty.net/docs/en/api.register.filter.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $type filter type + * @param callback $callback + * @param string|null $name optional filter name + * + * @return \Smarty|\Smarty_Internal_Template + * @throws \SmartyException + */ + public function registerFilter(Smarty_Internal_TemplateBase $obj, $type, $callback, $name = null) + { + $smarty = $obj->_getSmartyObj(); + $this->_checkFilterType($type); + $name = isset($name) ? $name : $this->_getFilterName($callback); + if (!is_callable($callback)) { + throw new SmartyException("{$type}filter '{$name}' not callable"); + } + $smarty->registered_filters[ $type ][ $name ] = $callback; + return $obj; + } + + /** + * Return internal filter name + * + * @param callback $function_name + * + * @return string internal filter name + */ + public function _getFilterName($function_name) + { + if (is_array($function_name)) { + $_class_name = (is_object($function_name[ 0 ]) ? get_class($function_name[ 0 ]) : $function_name[ 0 ]); + return $_class_name . '_' . $function_name[ 1 ]; + } elseif (is_string($function_name)) { + return $function_name; + } else { + return 'closure'; + } + } + + /** + * Check if filter type is valid + * + * @param string $type + * + * @throws \SmartyException + */ + public function _checkFilterType($type) + { + if (!isset($this->filterTypes[ $type ])) { + throw new SmartyException("Illegal filter type '{$type}'"); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerobject.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerobject.php new file mode 100644 index 0000000000..4646e4f225 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerobject.php @@ -0,0 +1,84 @@ +<?php + +/** + * Smarty Method RegisterObject + * + * Smarty::registerObject() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_RegisterObject +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Registers object to be used in templates + * + * @api Smarty::registerObject() + * @link http://www.smarty.net/docs/en/api.register.object.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $object_name + * @param object $object the + * referenced + * PHP + * object + * to + * register + * + * @param array $allowed_methods_properties list of + * allowed + * methods + * (empty + * = all) + * + * @param bool $format smarty + * argument + * format, + * else + * traditional + * + * @param array $block_methods list of + * block-methods + * + * @return \Smarty|\Smarty_Internal_Template + * @throws \SmartyException + */ + public function registerObject( + Smarty_Internal_TemplateBase $obj, + $object_name, + $object, + $allowed_methods_properties = array(), + $format = true, + $block_methods = array() + ) { + $smarty = $obj->_getSmartyObj(); + // test if allowed methods callable + if (!empty($allowed_methods_properties)) { + foreach ((array)$allowed_methods_properties as $method) { + if (!is_callable(array($object, $method)) && !property_exists($object, $method)) { + throw new SmartyException("Undefined method or property '$method' in registered object"); + } + } + } + // test if block methods callable + if (!empty($block_methods)) { + foreach ((array)$block_methods as $method) { + if (!is_callable(array($object, $method))) { + throw new SmartyException("Undefined method '$method' in registered object"); + } + } + } + // register the object + $smarty->registered_objects[ $object_name ] = + array($object, (array)$allowed_methods_properties, (boolean)$format, (array)$block_methods); + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerplugin.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerplugin.php new file mode 100644 index 0000000000..ed18d84bbc --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerplugin.php @@ -0,0 +1,58 @@ +<?php + +/** + * Smarty Method RegisterPlugin + * + * Smarty::registerPlugin() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_RegisterPlugin +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Registers plugin to be used in templates + * + * @api Smarty::registerPlugin() + * @link http://www.smarty.net/docs/en/api.register.plugin.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $type plugin type + * @param string $name name of template tag + * @param callback $callback PHP callback to register + * @param bool $cacheable if true (default) this + * function is cache able + * @param mixed $cache_attr caching attributes if any + * + * @return \Smarty|\Smarty_Internal_Template + * @throws SmartyException when the plugin tag is invalid + */ + public function registerPlugin( + Smarty_Internal_TemplateBase $obj, + $type, + $name, + $callback, + $cacheable = true, + $cache_attr = null + ) { + $smarty = $obj->_getSmartyObj(); + if (isset($smarty->registered_plugins[ $type ][ $name ])) { + throw new SmartyException("Plugin tag '{$name}' already registered"); + } elseif (!is_callable($callback)) { + throw new SmartyException("Plugin '{$name}' not callable"); + } elseif ($cacheable && $cache_attr) { + throw new SmartyException("Cannot set caching attributes for plugin '{$name}' when it is cacheable."); + } else { + $smarty->registered_plugins[ $type ][ $name ] = array($callback, (bool)$cacheable, (array)$cache_attr); + } + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerresource.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerresource.php new file mode 100644 index 0000000000..7c7d0f78af --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_registerresource.php @@ -0,0 +1,46 @@ +<?php + +/** + * Smarty Method RegisterResource + * + * Smarty::registerResource() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_RegisterResource +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Registers a resource to fetch a template + * + * @api Smarty::registerResource() + * @link http://www.smarty.net/docs/en/api.register.resource.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $name name of resource type + * @param Smarty_Resource|array $resource_handler or instance of + * Smarty_Resource, + * or array of + * callbacks to + * handle + * resource + * (deprecated) + * + * @return \Smarty|\Smarty_Internal_Template + */ + public function registerResource(Smarty_Internal_TemplateBase $obj, $name, $resource_handler) + { + $smarty = $obj->_getSmartyObj(); + $smarty->registered_resources[ $name ] = + $resource_handler instanceof Smarty_Resource ? $resource_handler : array($resource_handler, false); + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setautoloadfilters.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setautoloadfilters.php new file mode 100644 index 0000000000..2972f3ce1b --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setautoloadfilters.php @@ -0,0 +1,72 @@ +<?php + +/** + * Smarty Method SetAutoloadFilters + * + * Smarty::setAutoloadFilters() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_SetAutoloadFilters +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Valid filter types + * + * @var array + */ + private $filterTypes = array('pre' => true, 'post' => true, 'output' => true, 'variable' => true); + + /** + * Set autoload filters + * + * @api Smarty::setAutoloadFilters() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param array $filters filters to load automatically + * @param string $type "pre", "output", … specify + * the filter type to set. + * Defaults to none treating + * $filters' keys as the + * appropriate types + * + * @return \Smarty|\Smarty_Internal_Template + * @throws \SmartyException + */ + public function setAutoloadFilters(Smarty_Internal_TemplateBase $obj, $filters, $type = null) + { + $smarty = $obj->_getSmartyObj(); + if ($type !== null) { + $this->_checkFilterType($type); + $smarty->autoload_filters[ $type ] = (array)$filters; + } else { + foreach ((array)$filters as $type => $value) { + $this->_checkFilterType($type); + } + $smarty->autoload_filters = (array)$filters; + } + return $obj; + } + + /** + * Check if filter type is valid + * + * @param string $type + * + * @throws \SmartyException + */ + public function _checkFilterType($type) + { + if (!isset($this->filterTypes[ $type ])) { + throw new SmartyException("Illegal filter type '{$type}'"); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setdebugtemplate.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setdebugtemplate.php new file mode 100644 index 0000000000..cc9d23e2ae --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setdebugtemplate.php @@ -0,0 +1,41 @@ +<?php + +/** + * Smarty Method SetDebugTemplate + * + * Smarty::setDebugTemplate() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_SetDebugTemplate +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * set the debug template + * + * @api Smarty::setDebugTemplate() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $tpl_name + * + * @return \Smarty|\Smarty_Internal_Template + * @throws SmartyException if file is not readable + */ + public function setDebugTemplate(Smarty_Internal_TemplateBase $obj, $tpl_name) + { + $smarty = $obj->_getSmartyObj(); + if (!is_readable($tpl_name)) { + throw new SmartyException("Unknown file '{$tpl_name}'"); + } + $smarty->debug_tpl = $tpl_name; + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setdefaultmodifiers.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setdefaultmodifiers.php new file mode 100644 index 0000000000..eadc2de1bf --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_setdefaultmodifiers.php @@ -0,0 +1,38 @@ +<?php + +/** + * Smarty Method SetDefaultModifiers + * + * Smarty::setDefaultModifiers() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_SetDefaultModifiers +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Set default modifiers + * + * @api Smarty::setDefaultModifiers() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param array|string $modifiers modifier or list of modifiers + * to set + * + * @return \Smarty|\Smarty_Internal_Template + */ + public function setDefaultModifiers(Smarty_Internal_TemplateBase $obj, $modifiers) + { + $smarty = $obj->_getSmartyObj(); + $smarty->default_modifiers = (array)$modifiers; + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unloadfilter.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unloadfilter.php new file mode 100644 index 0000000000..55e1596be1 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unloadfilter.php @@ -0,0 +1,43 @@ +<?php + +/** + * Smarty Method UnloadFilter + * + * Smarty::unloadFilter() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_UnloadFilter extends Smarty_Internal_Method_LoadFilter +{ + /** + * load a filter of specified type and name + * + * @api Smarty::unloadFilter() + * + * @link http://www.smarty.net/docs/en/api.unload.filter.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $type filter type + * @param string $name filter name + * + * @return Smarty_Internal_TemplateBase + * @throws \SmartyException + */ + public function unloadFilter(Smarty_Internal_TemplateBase $obj, $type, $name) + { + $smarty = $obj->_getSmartyObj(); + $this->_checkFilterType($type); + if (isset($smarty->registered_filters[ $type ])) { + $_filter_name = "smarty_{$type}filter_{$name}"; + if (isset($smarty->registered_filters[ $type ][ $_filter_name ])) { + unset($smarty->registered_filters[ $type ][ $_filter_name ]); + if (empty($smarty->registered_filters[ $type ])) { + unset($smarty->registered_filters[ $type ]); + } + } + } + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregistercacheresource.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregistercacheresource.php new file mode 100644 index 0000000000..b999038672 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregistercacheresource.php @@ -0,0 +1,40 @@ +<?php + +/** + * Smarty Method UnregisterCacheResource + * + * Smarty::unregisterCacheResource() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_UnregisterCacheResource +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Registers a resource to fetch a template + * + * @api Smarty::unregisterCacheResource() + * @link http://www.smarty.net/docs/en/api.unregister.cacheresource.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param $name + * + * @return \Smarty|\Smarty_Internal_Template + */ + public function unregisterCacheResource(Smarty_Internal_TemplateBase $obj, $name) + { + $smarty = $obj->_getSmartyObj(); + if (isset($smarty->registered_cache_resources[ $name ])) { + unset($smarty->registered_cache_resources[ $name ]); + } + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterfilter.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterfilter.php new file mode 100644 index 0000000000..9cb494a52a --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterfilter.php @@ -0,0 +1,43 @@ +<?php + +/** + * Smarty Method UnregisterFilter + * + * Smarty::unregisterFilter() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_UnregisterFilter extends Smarty_Internal_Method_RegisterFilter +{ + /** + * Unregisters a filter function + * + * @api Smarty::unregisterFilter() + * + * @link http://www.smarty.net/docs/en/api.unregister.filter.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $type filter type + * @param callback|string $callback + * + * @return \Smarty|\Smarty_Internal_Template + * @throws \SmartyException + */ + public function unregisterFilter(Smarty_Internal_TemplateBase $obj, $type, $callback) + { + $smarty = $obj->_getSmartyObj(); + $this->_checkFilterType($type); + if (isset($smarty->registered_filters[ $type ])) { + $name = is_string($callback) ? $callback : $this->_getFilterName($callback); + if (isset($smarty->registered_filters[ $type ][ $name ])) { + unset($smarty->registered_filters[ $type ][ $name ]); + if (empty($smarty->registered_filters[ $type ])) { + unset($smarty->registered_filters[ $type ]); + } + } + } + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterobject.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterobject.php new file mode 100644 index 0000000000..1e592b339b --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterobject.php @@ -0,0 +1,40 @@ +<?php + +/** + * Smarty Method UnregisterObject + * + * Smarty::unregisterObject() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_UnregisterObject +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Registers plugin to be used in templates + * + * @api Smarty::unregisterObject() + * @link http://www.smarty.net/docs/en/api.unregister.object.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $object_name name of object + * + * @return \Smarty|\Smarty_Internal_Template + */ + public function unregisterObject(Smarty_Internal_TemplateBase $obj, $object_name) + { + $smarty = $obj->_getSmartyObj(); + if (isset($smarty->registered_objects[ $object_name ])) { + unset($smarty->registered_objects[ $object_name ]); + } + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterplugin.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterplugin.php new file mode 100644 index 0000000000..f39e316782 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterplugin.php @@ -0,0 +1,41 @@ +<?php + +/** + * Smarty Method UnregisterPlugin + * + * Smarty::unregisterPlugin() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_UnregisterPlugin +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Registers plugin to be used in templates + * + * @api Smarty::unregisterPlugin() + * @link http://www.smarty.net/docs/en/api.unregister.plugin.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $type plugin type + * @param string $name name of template tag + * + * @return \Smarty|\Smarty_Internal_Template + */ + public function unregisterPlugin(Smarty_Internal_TemplateBase $obj, $type, $name) + { + $smarty = $obj->_getSmartyObj(); + if (isset($smarty->registered_plugins[ $type ][ $name ])) { + unset($smarty->registered_plugins[ $type ][ $name ]); + } + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterresource.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterresource.php new file mode 100644 index 0000000000..a79db42996 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterresource.php @@ -0,0 +1,40 @@ +<?php + +/** + * Smarty Method UnregisterResource + * + * Smarty::unregisterResource() method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Method_UnregisterResource +{ + /** + * Valid for Smarty and template object + * + * @var int + */ + public $objMap = 3; + + /** + * Registers a resource to fetch a template + * + * @api Smarty::unregisterResource() + * @link http://www.smarty.net/docs/en/api.unregister.resource.tpl + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param string $type name of resource type + * + * @return \Smarty|\Smarty_Internal_Template + */ + public function unregisterResource(Smarty_Internal_TemplateBase $obj, $type) + { + $smarty = $obj->_getSmartyObj(); + if (isset($smarty->registered_resources[ $type ])) { + unset($smarty->registered_resources[ $type ]); + } + return $obj; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_nocache_insert.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_nocache_insert.php new file mode 100644 index 0000000000..88694dcfdc --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_nocache_insert.php @@ -0,0 +1,51 @@ +<?php +/** + * Smarty Internal Plugin Nocache Insert + * Compiles the {insert} tag into the cache file + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Smarty Internal Plugin Compile Insert Class + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_Nocache_Insert +{ + /** + * Compiles code for the {insert} tag into cache file + * + * @param string $_function insert function name + * @param array $_attr array with parameter + * @param Smarty_Internal_Template $_template template object + * @param string $_script script name to load or 'null' + * @param string $_assign optional variable name + * + * @return string compiled code + */ + public static function compile($_function, $_attr, $_template, $_script, $_assign = null) + { + $_output = '<?php '; + if ($_script !== 'null') { + // script which must be included + // code for script file loading + $_output .= "require_once '{$_script}';"; + } + // call insert + if (isset($_assign)) { + $_output .= "\$_smarty_tpl->assign('{$_assign}' , {$_function} (" . var_export($_attr, true) . + ',\$_smarty_tpl), true);?>'; + } else { + $_output .= "echo {$_function}(" . var_export($_attr, true) . ',$_smarty_tpl);?>'; + } + $_tpl = $_template; + while ($_tpl->_isSubTpl()) { + $_tpl = $_tpl->parent; + } + return "/*%%SmartyNocache:{$_tpl->compiled->nocache_hash}%%*/{$_output}/*/%%SmartyNocache:{$_tpl->compiled->nocache_hash}%%*/"; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree.php new file mode 100644 index 0000000000..9f7678526b --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree.php @@ -0,0 +1,50 @@ +<?php +/** + * Smarty Internal Plugin Templateparser Parsetree + * These are classes to build parsetree in the template parser + * + * @package Smarty + * @subpackage Compiler + * @author Thue Kristensen + * @author Uwe Tews + */ + +/** + * @package Smarty + * @subpackage Compiler + * @ignore + */ +abstract class Smarty_Internal_ParseTree +{ + /** + * Buffer content + * + * @var mixed + */ + public $data; + + /** + * Subtree array + * + * @var array + */ + public $subtrees = array(); + + /** + * Return buffer + * + * @param \Smarty_Internal_Templateparser $parser + * + * @return string buffer content + */ + abstract public function to_smarty_php(Smarty_Internal_Templateparser $parser); + + /** + * Template data object destructor + */ + public function __destruct() + { + $this->data = null; + $this->subtrees = null; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_code.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_code.php new file mode 100644 index 0000000000..7bd0bc45c4 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_code.php @@ -0,0 +1,42 @@ +<?php +/** + * Smarty Internal Plugin Templateparser Parse Tree + * These are classes to build parse trees in the template parser + * + * @package Smarty + * @subpackage Compiler + * @author Thue Kristensen + * @author Uwe Tews + */ + +/** + * Code fragment inside a tag . + * + * @package Smarty + * @subpackage Compiler + * @ignore + */ +class Smarty_Internal_ParseTree_Code extends Smarty_Internal_ParseTree +{ + /** + * Create parse tree buffer for code fragment + * + * @param string $data content + */ + public function __construct($data) + { + $this->data = $data; + } + + /** + * Return buffer content in parentheses + * + * @param \Smarty_Internal_Templateparser $parser + * + * @return string content + */ + public function to_smarty_php(Smarty_Internal_Templateparser $parser) + { + return sprintf('(%s)', $this->data); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dq.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dq.php new file mode 100644 index 0000000000..8655f5869e --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dq.php @@ -0,0 +1,95 @@ +<?php +/** + * Double quoted string inside a tag. + * + * @package Smarty + * @subpackage Compiler + * @ignore + */ + +/** + * Double quoted string inside a tag. + * + * @package Smarty + * @subpackage Compiler + * @ignore + */ +class Smarty_Internal_ParseTree_Dq extends Smarty_Internal_ParseTree +{ + /** + * Create parse tree buffer for double quoted string subtrees + * + * @param object $parser parser object + * @param Smarty_Internal_ParseTree $subtree parse tree buffer + */ + public function __construct($parser, Smarty_Internal_ParseTree $subtree) + { + $this->subtrees[] = $subtree; + if ($subtree instanceof Smarty_Internal_ParseTree_Tag) { + $parser->block_nesting_level = count($parser->compiler->_tag_stack); + } + } + + /** + * Append buffer to subtree + * + * @param \Smarty_Internal_Templateparser $parser + * @param Smarty_Internal_ParseTree $subtree parse tree buffer + */ + public function append_subtree(Smarty_Internal_Templateparser $parser, Smarty_Internal_ParseTree $subtree) + { + $last_subtree = count($this->subtrees) - 1; + if ($last_subtree >= 0 && $this->subtrees[ $last_subtree ] instanceof Smarty_Internal_ParseTree_Tag + && $this->subtrees[ $last_subtree ]->saved_block_nesting < $parser->block_nesting_level + ) { + if ($subtree instanceof Smarty_Internal_ParseTree_Code) { + $this->subtrees[ $last_subtree ]->data = + $parser->compiler->appendCode( + $this->subtrees[ $last_subtree ]->data, + '<?php echo ' . $subtree->data . ';?>' + ); + } elseif ($subtree instanceof Smarty_Internal_ParseTree_DqContent) { + $this->subtrees[ $last_subtree ]->data = + $parser->compiler->appendCode( + $this->subtrees[ $last_subtree ]->data, + '<?php echo "' . $subtree->data . '";?>' + ); + } else { + $this->subtrees[ $last_subtree ]->data = + $parser->compiler->appendCode($this->subtrees[ $last_subtree ]->data, $subtree->data); + } + } else { + $this->subtrees[] = $subtree; + } + if ($subtree instanceof Smarty_Internal_ParseTree_Tag) { + $parser->block_nesting_level = count($parser->compiler->_tag_stack); + } + } + + /** + * Merge subtree buffer content together + * + * @param \Smarty_Internal_Templateparser $parser + * + * @return string compiled template code + */ + public function to_smarty_php(Smarty_Internal_Templateparser $parser) + { + $code = ''; + foreach ($this->subtrees as $subtree) { + if ($code !== '') { + $code .= '.'; + } + if ($subtree instanceof Smarty_Internal_ParseTree_Tag) { + $more_php = $subtree->assign_to_var($parser); + } else { + $more_php = $subtree->to_smarty_php($parser); + } + $code .= $more_php; + if (!$subtree instanceof Smarty_Internal_ParseTree_DqContent) { + $parser->compiler->has_variable_string = true; + } + } + return $code; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dqcontent.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dqcontent.php new file mode 100644 index 0000000000..a8ca389d9c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_dqcontent.php @@ -0,0 +1,42 @@ +<?php +/** + * Smarty Internal Plugin Templateparser Parse Tree + * These are classes to build parse tree in the template parser + * + * @package Smarty + * @subpackage Compiler + * @author Thue Kristensen + * @author Uwe Tews + */ + +/** + * Raw chars as part of a double quoted string. + * + * @package Smarty + * @subpackage Compiler + * @ignore + */ +class Smarty_Internal_ParseTree_DqContent extends Smarty_Internal_ParseTree +{ + /** + * Create parse tree buffer with string content + * + * @param string $data string section + */ + public function __construct($data) + { + $this->data = $data; + } + + /** + * Return content as double quoted string + * + * @param \Smarty_Internal_Templateparser $parser + * + * @return string doubled quoted string + */ + public function to_smarty_php(Smarty_Internal_Templateparser $parser) + { + return '"' . $this->data . '"'; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_tag.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_tag.php new file mode 100644 index 0000000000..e6c755604c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_tag.php @@ -0,0 +1,67 @@ +<?php +/** + * Smarty Internal Plugin Templateparser Parse Tree + * These are classes to build parse tree in the template parser + * + * @package Smarty + * @subpackage Compiler + * @author Thue Kristensen + * @author Uwe Tews + */ + +/** + * A complete smarty tag. + * + * @package Smarty + * @subpackage Compiler + * @ignore + */ +class Smarty_Internal_ParseTree_Tag extends Smarty_Internal_ParseTree +{ + /** + * Saved block nesting level + * + * @var int + */ + public $saved_block_nesting; + + /** + * Create parse tree buffer for Smarty tag + * + * @param \Smarty_Internal_Templateparser $parser parser object + * @param string $data content + */ + public function __construct(Smarty_Internal_Templateparser $parser, $data) + { + $this->data = $data; + $this->saved_block_nesting = $parser->block_nesting_level; + } + + /** + * Return buffer content + * + * @param \Smarty_Internal_Templateparser $parser + * + * @return string content + */ + public function to_smarty_php(Smarty_Internal_Templateparser $parser) + { + return $this->data; + } + + /** + * Return complied code that loads the evaluated output of buffer content into a temporary variable + * + * @param \Smarty_Internal_Templateparser $parser + * + * @return string template code + */ + public function assign_to_var(Smarty_Internal_Templateparser $parser) + { + $var = $parser->compiler->getNewPrefixVariable(); + $tmp = $parser->compiler->appendCode('<?php ob_start();?>', $this->data); + $tmp = $parser->compiler->appendCode($tmp, "<?php {$var}=ob_get_clean();?>"); + $parser->compiler->prefix_code[] = sprintf('%s', $tmp); + return $var; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_template.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_template.php new file mode 100644 index 0000000000..ab4c3ec3b6 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_template.php @@ -0,0 +1,169 @@ +<?php +/** + * Smarty Internal Plugin Templateparser Parse Tree + * These are classes to build parse tree in the template parser + * + * @package Smarty + * @subpackage Compiler + * @author Thue Kristensen + * @author Uwe Tews + */ + +/** + * Template element + * + * @package Smarty + * @subpackage Compiler + * @ignore + */ +class Smarty_Internal_ParseTree_Template extends Smarty_Internal_ParseTree +{ + /** + * Array of template elements + * + * @var array + */ + public $subtrees = array(); + + /** + * Create root of parse tree for template elements + */ + public function __construct() + { + } + + /** + * Append buffer to subtree + * + * @param \Smarty_Internal_Templateparser $parser + * @param Smarty_Internal_ParseTree $subtree + */ + public function append_subtree(Smarty_Internal_Templateparser $parser, Smarty_Internal_ParseTree $subtree) + { + if (!empty($subtree->subtrees)) { + $this->subtrees = array_merge($this->subtrees, $subtree->subtrees); + } else { + if ($subtree->data !== '') { + $this->subtrees[] = $subtree; + } + } + } + + /** + * Append array to subtree + * + * @param \Smarty_Internal_Templateparser $parser + * @param \Smarty_Internal_ParseTree[] $array + */ + public function append_array(Smarty_Internal_Templateparser $parser, $array = array()) + { + if (!empty($array)) { + $this->subtrees = array_merge($this->subtrees, (array)$array); + } + } + + /** + * Prepend array to subtree + * + * @param \Smarty_Internal_Templateparser $parser + * @param \Smarty_Internal_ParseTree[] $array + */ + public function prepend_array(Smarty_Internal_Templateparser $parser, $array = array()) + { + if (!empty($array)) { + $this->subtrees = array_merge((array)$array, $this->subtrees); + } + } + + /** + * Sanitize and merge subtree buffers together + * + * @param \Smarty_Internal_Templateparser $parser + * + * @return string template code content + */ + public function to_smarty_php(Smarty_Internal_Templateparser $parser) + { + $code = ''; + + foreach ($this->getChunkedSubtrees() as $chunk) { + $text = ''; + switch ($chunk['mode']) { + case 'textstripped': + foreach ($chunk['subtrees'] as $subtree) { + $text .= $subtree->to_smarty_php($parser); + } + $code .= preg_replace( + '/((<%)|(%>)|(<\?php)|(<\?)|(\?>)|(<\/?script))/', + "<?php echo '\$1'; ?>\n", + $parser->compiler->processText($text) + ); + break; + case 'text': + foreach ($chunk['subtrees'] as $subtree) { + $text .= $subtree->to_smarty_php($parser); + } + $code .= preg_replace( + '/((<%)|(%>)|(<\?php)|(<\?)|(\?>)|(<\/?script))/', + "<?php echo '\$1'; ?>\n", + $text + ); + break; + case 'tag': + foreach ($chunk['subtrees'] as $subtree) { + $text = $parser->compiler->appendCode($text, $subtree->to_smarty_php($parser)); + } + $code .= $text; + break; + default: + foreach ($chunk['subtrees'] as $subtree) { + $text = $subtree->to_smarty_php($parser); + } + $code .= $text; + + } + } + return $code; + } + + private function getChunkedSubtrees() { + $chunks = array(); + $currentMode = null; + $currentChunk = array(); + for ($key = 0, $cnt = count($this->subtrees); $key < $cnt; $key++) { + + if ($this->subtrees[ $key ]->data === '' && in_array($currentMode, array('textstripped', 'text', 'tag'))) { + continue; + } + + if ($this->subtrees[ $key ] instanceof Smarty_Internal_ParseTree_Text + && $this->subtrees[ $key ]->isToBeStripped()) { + $newMode = 'textstripped'; + } elseif ($this->subtrees[ $key ] instanceof Smarty_Internal_ParseTree_Text) { + $newMode = 'text'; + } elseif ($this->subtrees[ $key ] instanceof Smarty_Internal_ParseTree_Tag) { + $newMode = 'tag'; + } else { + $newMode = 'other'; + } + + if ($newMode == $currentMode) { + $currentChunk[] = $this->subtrees[ $key ]; + } else { + $chunks[] = array( + 'mode' => $currentMode, + 'subtrees' => $currentChunk + ); + $currentMode = $newMode; + $currentChunk = array($this->subtrees[ $key ]); + } + } + if ($currentMode && $currentChunk) { + $chunks[] = array( + 'mode' => $currentMode, + 'subtrees' => $currentChunk + ); + } + return $chunks; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_text.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_text.php new file mode 100644 index 0000000000..399e84941d --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_text.php @@ -0,0 +1,57 @@ +<?php + +/** + * Smarty Internal Plugin Templateparser Parse Tree + * These are classes to build parse tree in the template parser + * + * @package Smarty + * @subpackage Compiler + * @author Thue Kristensen + * @author Uwe Tews + * * + * template text + * @package Smarty + * @subpackage Compiler + * @ignore + */ +class Smarty_Internal_ParseTree_Text extends Smarty_Internal_ParseTree +{ + + /** + * Wether this section should be stripped on output to smarty php + * @var bool + */ + private $toBeStripped = false; + + /** + * Create template text buffer + * + * @param string $data text + * @param bool $toBeStripped wether this section should be stripped on output to smarty php + */ + public function __construct($data, $toBeStripped = false) + { + $this->data = $data; + $this->toBeStripped = $toBeStripped; + } + + /** + * Wether this section should be stripped on output to smarty php + * @return bool + */ + public function isToBeStripped() { + return $this->toBeStripped; + } + + /** + * Return buffer content + * + * @param \Smarty_Internal_Templateparser $parser + * + * @return string text + */ + public function to_smarty_php(Smarty_Internal_Templateparser $parser) + { + return $this->data; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_eval.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_eval.php new file mode 100644 index 0000000000..3b552a589f --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_eval.php @@ -0,0 +1,94 @@ +<?php +/** + * Smarty Internal Plugin Resource Eval + * + * @package Smarty + * @subpackage TemplateResources + * @author Uwe Tews + * @author Rodney Rehm + */ + +/** + * Smarty Internal Plugin Resource Eval + * Implements the strings as resource for Smarty template + * {@internal unlike string-resources the compiled state of eval-resources is NOT saved for subsequent access}} + * + * @package Smarty + * @subpackage TemplateResources + */ +class Smarty_Internal_Resource_Eval extends Smarty_Resource_Recompiled +{ + /** + * populate Source Object with meta data from Resource + * + * @param Smarty_Template_Source $source source object + * @param Smarty_Internal_Template $_template template object + * + * @return void + */ + public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) + { + $source->uid = $source->filepath = sha1($source->name); + $source->timestamp = $source->exists = true; + } + + /** + * Load template's source from $resource_name into current template object + * + * @uses decode() to decode base64 and urlencoded template_resources + * + * @param Smarty_Template_Source $source source object + * + * @return string template source + */ + public function getContent(Smarty_Template_Source $source) + { + return $this->decode($source->name); + } + + /** + * decode base64 and urlencode + * + * @param string $string template_resource to decode + * + * @return string decoded template_resource + */ + protected function decode($string) + { + // decode if specified + if (($pos = strpos($string, ':')) !== false) { + if (!strncmp($string, 'base64', 6)) { + return base64_decode(substr($string, 7)); + } elseif (!strncmp($string, 'urlencode', 9)) { + return urldecode(substr($string, 10)); + } + } + return $string; + } + + /** + * modify resource_name according to resource handlers specifications + * + * @param Smarty $smarty Smarty instance + * @param string $resource_name resource_name to make unique + * @param boolean $isConfig flag for config resource + * + * @return string unique resource name + */ + public function buildUniqueResourceName(Smarty $smarty, $resource_name, $isConfig = false) + { + return get_class($this) . '#' . $this->decode($resource_name); + } + + /** + * Determine basename for compiled filename + * + * @param Smarty_Template_Source $source source object + * + * @return string resource's basename + */ + public function getBasename(Smarty_Template_Source $source) + { + return ''; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_extends.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_extends.php new file mode 100644 index 0000000000..80946932ea --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_extends.php @@ -0,0 +1,126 @@ +<?php +/** + * Smarty Internal Plugin Resource Extends + * + * @package Smarty + * @subpackage TemplateResources + * @author Uwe Tews + * @author Rodney Rehm + */ + +/** + * Smarty Internal Plugin Resource Extends + * Implements the file system as resource for Smarty which {extend}s a chain of template files templates + * + * @package Smarty + * @subpackage TemplateResources + */ +class Smarty_Internal_Resource_Extends extends Smarty_Resource +{ + /** + * mbstring.overload flag + * + * @var int + */ + public $mbstring_overload = 0; + + /** + * populate Source Object with meta data from Resource + * + * @param Smarty_Template_Source $source source object + * @param Smarty_Internal_Template $_template template object + * + * @throws SmartyException + */ + public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) + { + $uid = ''; + $sources = array(); + $components = explode('|', $source->name); + $smarty = &$source->smarty; + $exists = true; + foreach ($components as $component) { + /* @var \Smarty_Template_Source $_s */ + $_s = Smarty_Template_Source::load(null, $smarty, $component); + if ($_s->type === 'php') { + throw new SmartyException("Resource type {$_s->type} cannot be used with the extends resource type"); + } + $sources[ $_s->uid ] = $_s; + $uid .= $_s->filepath; + if ($_template) { + $exists = $exists && $_s->exists; + } + } + $source->components = $sources; + $source->filepath = $_s->filepath; + $source->uid = sha1($uid . $source->smarty->_joined_template_dir); + $source->exists = $exists; + if ($_template) { + $source->timestamp = $_s->timestamp; + } + } + + /** + * populate Source Object with timestamp and exists from Resource + * + * @param Smarty_Template_Source $source source object + */ + public function populateTimestamp(Smarty_Template_Source $source) + { + $source->exists = true; + /* @var \Smarty_Template_Source $_s */ + foreach ($source->components as $_s) { + $source->exists = $source->exists && $_s->exists; + } + $source->timestamp = $source->exists ? $_s->getTimeStamp() : false; + } + + /** + * Load template's source from files into current template object + * + * @param Smarty_Template_Source $source source object + * + * @return string template source + * @throws SmartyException if source cannot be loaded + */ + public function getContent(Smarty_Template_Source $source) + { + if (!$source->exists) { + throw new SmartyException("Unable to load template '{$source->type}:{$source->name}'"); + } + $_components = array_reverse($source->components); + $_content = ''; + /* @var \Smarty_Template_Source $_s */ + foreach ($_components as $_s) { + // read content + $_content .= $_s->getContent(); + } + return $_content; + } + + /** + * Determine basename for compiled filename + * + * @param Smarty_Template_Source $source source object + * + * @return string resource's basename + */ + public function getBasename(Smarty_Template_Source $source) + { + return str_replace(':', '.', basename($source->filepath)); + } + + /* + * Disable timestamp checks for extends resource. + * The individual source components will be checked. + * + * @return bool + */ + /** + * @return bool + */ + public function checkTimestamps() + { + return false; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_file.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_file.php new file mode 100644 index 0000000000..ae2060673e --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_file.php @@ -0,0 +1,180 @@ +<?php +/** + * Smarty Internal Plugin Resource File + * + * @package Smarty + * @subpackage TemplateResources + * @author Uwe Tews + * @author Rodney Rehm + */ + +/** + * Smarty Internal Plugin Resource File + * Implements the file system as resource for Smarty templates + * + * @package Smarty + * @subpackage TemplateResources + */ +class Smarty_Internal_Resource_File extends Smarty_Resource +{ + /** + * populate Source Object with meta data from Resource + * + * @param Smarty_Template_Source $source source object + * @param Smarty_Internal_Template $_template template object + * + * @throws \SmartyException + */ + public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) + { + $source->filepath = $this->buildFilepath($source, $_template); + if ($source->filepath !== false) { + if (isset($source->smarty->security_policy) && is_object($source->smarty->security_policy)) { + $source->smarty->security_policy->isTrustedResourceDir($source->filepath, $source->isConfig); + } + $source->exists = true; + $source->uid = sha1( + $source->filepath . ($source->isConfig ? $source->smarty->_joined_config_dir : + $source->smarty->_joined_template_dir) + ); + $source->timestamp = filemtime($source->filepath); + } else { + $source->timestamp = $source->exists = false; + } + } + + /** + * populate Source Object with timestamp and exists from Resource + * + * @param Smarty_Template_Source $source source object + */ + public function populateTimestamp(Smarty_Template_Source $source) + { + if (!$source->exists) { + $source->timestamp = $source->exists = is_file($source->filepath); + } + if ($source->exists) { + $source->timestamp = filemtime($source->filepath); + } + } + + /** + * Load template's source from file into current template object + * + * @param Smarty_Template_Source $source source object + * + * @return string template source + * @throws SmartyException if source cannot be loaded + */ + public function getContent(Smarty_Template_Source $source) + { + if ($source->exists) { + return file_get_contents($source->filepath); + } + throw new SmartyException( + 'Unable to read ' . ($source->isConfig ? 'config' : 'template') . + " {$source->type} '{$source->name}'" + ); + } + + /** + * Determine basename for compiled filename + * + * @param Smarty_Template_Source $source source object + * + * @return string resource's basename + */ + public function getBasename(Smarty_Template_Source $source) + { + return basename($source->filepath); + } + + /** + * build template filepath by traversing the template_dir array + * + * @param Smarty_Template_Source $source source object + * @param Smarty_Internal_Template $_template template object + * + * @return string fully qualified filepath + * @throws SmartyException + */ + protected function buildFilepath(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) + { + $file = $source->name; + // absolute file ? + if ($file[ 0 ] === '/' || $file[ 1 ] === ':') { + $file = $source->smarty->_realpath($file, true); + return is_file($file) ? $file : false; + } + // go relative to a given template? + if ($file[ 0 ] === '.' && $_template && $_template->_isSubTpl() + && preg_match('#^[.]{1,2}[\\\/]#', $file) + ) { + if ($_template->parent->source->type !== 'file' && $_template->parent->source->type !== 'extends' + && !isset($_template->parent->_cache[ 'allow_relative_path' ]) + ) { + throw new SmartyException("Template '{$file}' cannot be relative to template of resource type '{$_template->parent->source->type}'"); + } + // normalize path + $path = + $source->smarty->_realpath(dirname($_template->parent->source->filepath) . DIRECTORY_SEPARATOR . $file); + // files relative to a template only get one shot + return is_file($path) ? $path : false; + } + // normalize DIRECTORY_SEPARATOR + if (strpos($file, DIRECTORY_SEPARATOR === '/' ? '\\' : '/') !== false) { + $file = str_replace(DIRECTORY_SEPARATOR === '/' ? '\\' : '/', DIRECTORY_SEPARATOR, $file); + } + $_directories = $source->smarty->getTemplateDir(null, $source->isConfig); + // template_dir index? + if ($file[ 0 ] === '[' && preg_match('#^\[([^\]]+)\](.+)$#', $file, $fileMatch)) { + $file = $fileMatch[ 2 ]; + $_indices = explode(',', $fileMatch[ 1 ]); + $_index_dirs = array(); + foreach ($_indices as $index) { + $index = trim($index); + // try string indexes + if (isset($_directories[ $index ])) { + $_index_dirs[] = $_directories[ $index ]; + } elseif (is_numeric($index)) { + // try numeric index + $index = (int)$index; + if (isset($_directories[ $index ])) { + $_index_dirs[] = $_directories[ $index ]; + } else { + // try at location index + $keys = array_keys($_directories); + if (isset($_directories[ $keys[ $index ] ])) { + $_index_dirs[] = $_directories[ $keys[ $index ] ]; + } + } + } + } + if (empty($_index_dirs)) { + // index not found + return false; + } else { + $_directories = $_index_dirs; + } + } + // relative file name? + foreach ($_directories as $_directory) { + $path = $_directory . $file; + if (is_file($path)) { + return (strpos($path, '.' . DIRECTORY_SEPARATOR) !== false) ? $source->smarty->_realpath($path) : $path; + } + } + if (!isset($_index_dirs)) { + // Could be relative to cwd + $path = $source->smarty->_realpath($file, true); + if (is_file($path)) { + return $path; + } + } + // Use include path ? + if ($source->smarty->use_include_path) { + return $source->smarty->ext->_getIncludePath->getIncludePath($_directories, $file, $source->smarty); + } + return false; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_php.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_php.php new file mode 100644 index 0000000000..9d98ae181f --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_php.php @@ -0,0 +1,116 @@ +<?php + +/** + * Smarty Internal Plugin Resource PHP + * Implements the file system as resource for PHP templates + * + * @package Smarty + * @subpackage TemplateResources + * @author Uwe Tews + * @author Rodney Rehm + */ +class Smarty_Internal_Resource_Php extends Smarty_Internal_Resource_File +{ + /** + * Flag that it's an uncompiled resource + * + * @var bool + */ + public $uncompiled = true; + + /** + * Resource does implement populateCompiledFilepath() method + * + * @var bool + */ + public $hasCompiledHandler = true; + + /** + * container for short_open_tag directive's value before executing PHP templates + * + * @var string + */ + protected $short_open_tag; + + /** + * Create a new PHP Resource + */ + public function __construct() + { + $this->short_open_tag = function_exists('ini_get') ? ini_get('short_open_tag') : 1; + } + + /** + * Load template's source from file into current template object + * + * @param Smarty_Template_Source $source source object + * + * @return string template source + * @throws SmartyException if source cannot be loaded + */ + public function getContent(Smarty_Template_Source $source) + { + if ($source->exists) { + return ''; + } + throw new SmartyException("Unable to read template {$source->type} '{$source->name}'"); + } + + /** + * populate compiled object with compiled filepath + * + * @param Smarty_Template_Compiled $compiled compiled object + * @param Smarty_Internal_Template $_template template object (is ignored) + */ + public function populateCompiledFilepath(Smarty_Template_Compiled $compiled, Smarty_Internal_Template $_template) + { + $compiled->filepath = $_template->source->filepath; + $compiled->timestamp = $_template->source->timestamp; + $compiled->exists = $_template->source->exists; + $compiled->file_dependency[ $_template->source->uid ] = + array( + $compiled->filepath, + $compiled->timestamp, + $_template->source->type, + ); + } + + /** + * Render and output the template (without using the compiler) + * + * @param Smarty_Template_Source $source source object + * @param Smarty_Internal_Template $_template template object + * + * @return void + * @throws SmartyException if template cannot be loaded or allow_php_templates is disabled + */ + public function renderUncompiled(Smarty_Template_Source $source, Smarty_Internal_Template $_template) + { + if (!$source->smarty->allow_php_templates) { + throw new SmartyException('PHP templates are disabled'); + } + if (!$source->exists) { + throw new SmartyException( + "Unable to load template '{$source->type}:{$source->name}'" . + ($_template->_isSubTpl() ? " in '{$_template->parent->template_resource}'" : '') + ); + } + // prepare variables + extract($_template->getTemplateVars()); + // include PHP template with short open tags enabled + if (function_exists('ini_set')) { + ini_set('short_open_tag', '1'); + } + /** + * + * + * @var Smarty_Internal_Template $_smarty_template + * used in included file + */ + $_smarty_template = $_template; + include $source->filepath; + if (function_exists('ini_set')) { + ini_set('short_open_tag', $this->short_open_tag); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_registered.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_registered.php new file mode 100644 index 0000000000..df526101f0 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_registered.php @@ -0,0 +1,101 @@ +<?php +/** + * Smarty Internal Plugin Resource Registered + * + * @package Smarty + * @subpackage TemplateResources + * @author Uwe Tews + * @author Rodney Rehm + */ + +/** + * Smarty Internal Plugin Resource Registered + * Implements the registered resource for Smarty template + * + * @package Smarty + * @subpackage TemplateResources + * @deprecated + */ +class Smarty_Internal_Resource_Registered extends Smarty_Resource +{ + /** + * populate Source Object with meta data from Resource + * + * @param Smarty_Template_Source $source source object + * @param Smarty_Internal_Template $_template template object + * + * @return void + */ + public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) + { + $source->filepath = $source->type . ':' . $source->name; + $source->uid = sha1($source->filepath . $source->smarty->_joined_template_dir); + $source->timestamp = $this->getTemplateTimestamp($source); + $source->exists = !!$source->timestamp; + } + + /** + * populate Source Object with timestamp and exists from Resource + * + * @param Smarty_Template_Source $source source object + * + * @return void + */ + public function populateTimestamp(Smarty_Template_Source $source) + { + $source->timestamp = $this->getTemplateTimestamp($source); + $source->exists = !!$source->timestamp; + } + + /** + * Get timestamp (epoch) the template source was modified + * + * @param Smarty_Template_Source $source source object + * + * @return integer|boolean timestamp (epoch) the template was modified, false if resources has no timestamp + */ + public function getTemplateTimestamp(Smarty_Template_Source $source) + { + // return timestamp + $time_stamp = false; + call_user_func_array( + $source->smarty->registered_resources[ $source->type ][ 0 ][ 1 ], + array($source->name, &$time_stamp, $source->smarty) + ); + return is_numeric($time_stamp) ? (int)$time_stamp : $time_stamp; + } + + /** + * Load template's source by invoking the registered callback into current template object + * + * @param Smarty_Template_Source $source source object + * + * @return string template source + * @throws SmartyException if source cannot be loaded + */ + public function getContent(Smarty_Template_Source $source) + { + // return template string + $content = null; + $t = call_user_func_array( + $source->smarty->registered_resources[ $source->type ][ 0 ][ 0 ], + array($source->name, &$content, $source->smarty) + ); + if (is_bool($t) && !$t) { + throw new SmartyException("Unable to read template {$source->type} '{$source->name}'"); + } + return $content; + } + + /** + * Determine basename for compiled filename + * + * @param Smarty_Template_Source $source source object + * + * @return string resource's basename + */ + public function getBasename(Smarty_Template_Source $source) + { + return basename($source->name); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_stream.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_stream.php new file mode 100644 index 0000000000..9956bd0730 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_stream.php @@ -0,0 +1,78 @@ +<?php +/** + * Smarty Internal Plugin Resource Stream + * Implements the streams as resource for Smarty template + * + * @package Smarty + * @subpackage TemplateResources + * @author Uwe Tews + * @author Rodney Rehm + */ + +/** + * Smarty Internal Plugin Resource Stream + * Implements the streams as resource for Smarty template + * + * @link http://php.net/streams + * @package Smarty + * @subpackage TemplateResources + */ +class Smarty_Internal_Resource_Stream extends Smarty_Resource_Recompiled +{ + /** + * populate Source Object with meta data from Resource + * + * @param Smarty_Template_Source $source source object + * @param Smarty_Internal_Template $_template template object + * + * @return void + */ + public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) + { + if (strpos($source->resource, '://') !== false) { + $source->filepath = $source->resource; + } else { + $source->filepath = str_replace(':', '://', $source->resource); + } + $source->uid = false; + $source->content = $this->getContent($source); + $source->timestamp = $source->exists = !!$source->content; + } + + /** + * Load template's source from stream into current template object + * + * @param Smarty_Template_Source $source source object + * + * @return string template source + */ + public function getContent(Smarty_Template_Source $source) + { + $t = ''; + // the availability of the stream has already been checked in Smarty_Resource::fetch() + $fp = fopen($source->filepath, 'r+'); + if ($fp) { + while (!feof($fp) && ($current_line = fgets($fp)) !== false) { + $t .= $current_line; + } + fclose($fp); + return $t; + } else { + return false; + } + } + + /** + * modify resource_name according to resource handlers specifications + * + * @param Smarty $smarty Smarty instance + * @param string $resource_name resource_name to make unique + * @param boolean $isConfig flag for config resource + * + * @return string unique resource name + */ + public function buildUniqueResourceName(Smarty $smarty, $resource_name, $isConfig = false) + { + return get_class($this) . '#' . $resource_name; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_string.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_string.php new file mode 100644 index 0000000000..3fecbb7ef7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_resource_string.php @@ -0,0 +1,108 @@ +<?php +/** + * Smarty Internal Plugin Resource String + * + * @package Smarty + * @subpackage TemplateResources + * @author Uwe Tews + * @author Rodney Rehm + */ + +/** + * Smarty Internal Plugin Resource String + * Implements the strings as resource for Smarty template + * {@internal unlike eval-resources the compiled state of string-resources is saved for subsequent access}} + * + * @package Smarty + * @subpackage TemplateResources + */ +class Smarty_Internal_Resource_String extends Smarty_Resource +{ + /** + * populate Source Object with meta data from Resource + * + * @param Smarty_Template_Source $source source object + * @param Smarty_Internal_Template $_template template object + * + * @return void + */ + public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) + { + $source->uid = $source->filepath = sha1($source->name . $source->smarty->_joined_template_dir); + $source->timestamp = $source->exists = true; + } + + /** + * Load template's source from $resource_name into current template object + * + * @uses decode() to decode base64 and urlencoded template_resources + * + * @param Smarty_Template_Source $source source object + * + * @return string template source + */ + public function getContent(Smarty_Template_Source $source) + { + return $this->decode($source->name); + } + + /** + * decode base64 and urlencode + * + * @param string $string template_resource to decode + * + * @return string decoded template_resource + */ + protected function decode($string) + { + // decode if specified + if (($pos = strpos($string, ':')) !== false) { + if (!strncmp($string, 'base64', 6)) { + return base64_decode(substr($string, 7)); + } elseif (!strncmp($string, 'urlencode', 9)) { + return urldecode(substr($string, 10)); + } + } + return $string; + } + + /** + * modify resource_name according to resource handlers specifications + * + * @param Smarty $smarty Smarty instance + * @param string $resource_name resource_name to make unique + * @param boolean $isConfig flag for config resource + * + * @return string unique resource name + */ + public function buildUniqueResourceName(Smarty $smarty, $resource_name, $isConfig = false) + { + return get_class($this) . '#' . $this->decode($resource_name); + } + + /** + * Determine basename for compiled filename + * Always returns an empty string. + * + * @param Smarty_Template_Source $source source object + * + * @return string resource's basename + */ + public function getBasename(Smarty_Template_Source $source) + { + return ''; + } + + /* + * Disable timestamp checks for string resource. + * + * @return bool + */ + /** + * @return bool + */ + public function checkTimestamps() + { + return false; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cachemodify.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cachemodify.php new file mode 100644 index 0000000000..6e12d2ae19 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cachemodify.php @@ -0,0 +1,68 @@ +<?php + +/** + * Inline Runtime Methods render, setSourceByUid, setupSubTemplate + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + **/ +class Smarty_Internal_Runtime_CacheModify +{ + /** + * check client side cache + * + * @param \Smarty_Template_Cached $cached + * @param \Smarty_Internal_Template $_template + * @param string $content + * + * @throws \Exception + * @throws \SmartyException + */ + public function cacheModifiedCheck(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template, $content) + { + $_isCached = $_template->isCached() && !$_template->compiled->has_nocache_code; + $_last_modified_date = + @substr($_SERVER[ 'HTTP_IF_MODIFIED_SINCE' ], 0, strpos($_SERVER[ 'HTTP_IF_MODIFIED_SINCE' ], 'GMT') + 3); + if ($_isCached && $cached->timestamp <= strtotime($_last_modified_date)) { + switch (PHP_SAPI) { + case 'cgi': // php-cgi < 5.3 + case 'cgi-fcgi': // php-cgi >= 5.3 + case 'fpm-fcgi': // php-fpm >= 5.3.3 + header('Status: 304 Not Modified'); + break; + case 'cli': + if (/* ^phpunit */ + !empty($_SERVER[ 'SMARTY_PHPUNIT_DISABLE_HEADERS' ]) /* phpunit$ */ + ) { + $_SERVER[ 'SMARTY_PHPUNIT_HEADERS' ][] = '304 Not Modified'; + } + break; + default: + if (/* ^phpunit */ + !empty($_SERVER[ 'SMARTY_PHPUNIT_DISABLE_HEADERS' ]) /* phpunit$ */ + ) { + $_SERVER[ 'SMARTY_PHPUNIT_HEADERS' ][] = '304 Not Modified'; + } else { + header($_SERVER[ 'SERVER_PROTOCOL' ] . ' 304 Not Modified'); + } + break; + } + } else { + switch (PHP_SAPI) { + case 'cli': + if (/* ^phpunit */ + !empty($_SERVER[ 'SMARTY_PHPUNIT_DISABLE_HEADERS' ]) /* phpunit$ */ + ) { + $_SERVER[ 'SMARTY_PHPUNIT_HEADERS' ][] = + 'Last-Modified: ' . gmdate('D, d M Y H:i:s', $cached->timestamp) . ' GMT'; + } + break; + default: + header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $cached->timestamp) . ' GMT'); + break; + } + echo $content; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php new file mode 100644 index 0000000000..2870964383 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php @@ -0,0 +1,139 @@ +<?php +/** + * Smarty cache resource file clear method + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ + +/** + * Smarty Internal Runtime Cache Resource File Class + * + * @package Smarty + * @subpackage PluginsInternal + */ +class Smarty_Internal_Runtime_CacheResourceFile +{ + /** + * Empty cache for a specific template + * + * @param Smarty $smarty + * @param string $resource_name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param integer $exp_time expiration time (number of seconds, not timestamp) + * + * @return integer number of cache files deleted + */ + public function clear(Smarty $smarty, $resource_name, $cache_id, $compile_id, $exp_time) + { + $_cache_id = isset($cache_id) ? preg_replace('![^\w\|]+!', '_', $cache_id) : null; + $_compile_id = isset($compile_id) ? preg_replace('![^\w]+!', '_', $compile_id) : null; + $_dir_sep = $smarty->use_sub_dirs ? '/' : '^'; + $_compile_id_offset = $smarty->use_sub_dirs ? 3 : 0; + $_dir = $smarty->getCacheDir(); + if ($_dir === '/') { //We should never want to delete this! + return 0; + } + $_dir_length = strlen($_dir); + if (isset($_cache_id)) { + $_cache_id_parts = explode('|', $_cache_id); + $_cache_id_parts_count = count($_cache_id_parts); + if ($smarty->use_sub_dirs) { + foreach ($_cache_id_parts as $id_part) { + $_dir .= $id_part . '/'; + } + } + } + if (isset($resource_name)) { + $_save_stat = $smarty->caching; + $smarty->caching = Smarty::CACHING_LIFETIME_CURRENT; + $tpl = new $smarty->template_class($resource_name, $smarty); + $smarty->caching = $_save_stat; + // remove from template cache + $tpl->source; // have the template registered before unset() + if ($tpl->source->exists) { + $_resourcename_parts = basename(str_replace('^', '/', $tpl->cached->filepath)); + } else { + return 0; + } + } + $_count = 0; + $_time = time(); + if (file_exists($_dir)) { + $_cacheDirs = new RecursiveDirectoryIterator($_dir); + $_cache = new RecursiveIteratorIterator($_cacheDirs, RecursiveIteratorIterator::CHILD_FIRST); + foreach ($_cache as $_file) { + if (substr(basename($_file->getPathname()), 0, 1) === '.') { + continue; + } + $_filepath = (string)$_file; + // directory ? + if ($_file->isDir()) { + if (!$_cache->isDot()) { + // delete folder if empty + @rmdir($_file->getPathname()); + } + } else { + // delete only php files + if (substr($_filepath, -4) !== '.php') { + continue; + } + $_parts = explode($_dir_sep, str_replace('\\', '/', substr($_filepath, $_dir_length))); + $_parts_count = count($_parts); + // check name + if (isset($resource_name)) { + if ($_parts[ $_parts_count - 1 ] !== $_resourcename_parts) { + continue; + } + } + // check compile id + if (isset($_compile_id) && (!isset($_parts[ $_parts_count - 2 - $_compile_id_offset ]) + || $_parts[ $_parts_count - 2 - $_compile_id_offset ] !== $_compile_id) + ) { + continue; + } + // check cache id + if (isset($_cache_id)) { + // count of cache id parts + $_parts_count = (isset($_compile_id)) ? $_parts_count - 2 - $_compile_id_offset : + $_parts_count - 1 - $_compile_id_offset; + if ($_parts_count < $_cache_id_parts_count) { + continue; + } + for ($i = 0; $i < $_cache_id_parts_count; $i++) { + if ($_parts[ $i ] !== $_cache_id_parts[ $i ]) { + continue 2; + } + } + } + if (is_file($_filepath)) { + // expired ? + if (isset($exp_time)) { + if ($exp_time < 0) { + preg_match('#\'cache_lifetime\' =>\s*(\d*)#', file_get_contents($_filepath), $match); + if ($_time < (filemtime($_filepath) + $match[ 1 ])) { + continue; + } + } else { + if ($_time - filemtime($_filepath) < $exp_time) { + continue; + } + } + } + $_count += @unlink($_filepath) ? 1 : 0; + if (function_exists('opcache_invalidate') + && (!function_exists('ini_get') || strlen(ini_get("opcache.restrict_api")) < 1) + ) { + opcache_invalidate($_filepath, true); + } elseif (function_exists('apc_delete_file')) { + apc_delete_file($_filepath); + } + } + } + } + } + return $_count; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php new file mode 100644 index 0000000000..c9dca83d95 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_capture.php @@ -0,0 +1,174 @@ +<?php + +/** + * Runtime Extension Capture + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Runtime_Capture +{ + /** + * Flag that this instance will not be cached + * + * @var bool + */ + public $isPrivateExtension = true; + + /** + * Stack of capture parameter + * + * @var array + */ + private $captureStack = array(); + + /** + * Current open capture sections + * + * @var int + */ + private $captureCount = 0; + + /** + * Count stack + * + * @var int[] + */ + private $countStack = array(); + + /** + * Named buffer + * + * @var string[] + */ + private $namedBuffer = array(); + + /** + * Flag if callbacks are registered + * + * @var bool + */ + private $isRegistered = false; + + /** + * Open capture section + * + * @param \Smarty_Internal_Template $_template + * @param string $buffer capture name + * @param string $assign variable name + * @param string $append variable name + */ + public function open(Smarty_Internal_Template $_template, $buffer, $assign, $append) + { + if (!$this->isRegistered) { + $this->register($_template); + } + $this->captureStack[] = array( + $buffer, + $assign, + $append + ); + $this->captureCount++; + ob_start(); + } + + /** + * Register callbacks in template class + * + * @param \Smarty_Internal_Template $_template + */ + private function register(Smarty_Internal_Template $_template) + { + $_template->startRenderCallbacks[] = array( + $this, + 'startRender' + ); + $_template->endRenderCallbacks[] = array( + $this, + 'endRender' + ); + $this->startRender($_template); + $this->isRegistered = true; + } + + /** + * Start render callback + * + * @param \Smarty_Internal_Template $_template + */ + public function startRender(Smarty_Internal_Template $_template) + { + $this->countStack[] = $this->captureCount; + $this->captureCount = 0; + } + + /** + * Close capture section + * + * @param \Smarty_Internal_Template $_template + * + * @throws \SmartyException + */ + public function close(Smarty_Internal_Template $_template) + { + if ($this->captureCount) { + list($buffer, $assign, $append) = array_pop($this->captureStack); + $this->captureCount--; + if (isset($assign)) { + $_template->assign($assign, ob_get_contents()); + } + if (isset($append)) { + $_template->append($append, ob_get_contents()); + } + $this->namedBuffer[ $buffer ] = ob_get_clean(); + } else { + $this->error($_template); + } + } + + /** + * Error exception on not matching {capture}{/capture} + * + * @param \Smarty_Internal_Template $_template + * + * @throws \SmartyException + */ + public function error(Smarty_Internal_Template $_template) + { + throw new SmartyException("Not matching {capture}{/capture} in '{$_template->template_resource}'"); + } + + /** + * Return content of named capture buffer by key or as array + * + * @param \Smarty_Internal_Template $_template + * @param string|null $name + * + * @return string|string[]|null + */ + public function getBuffer(Smarty_Internal_Template $_template, $name = null) + { + if (isset($name)) { + return isset($this->namedBuffer[ $name ]) ? $this->namedBuffer[ $name ] : null; + } else { + return $this->namedBuffer; + } + } + + /** + * End render callback + * + * @param \Smarty_Internal_Template $_template + * + * @throws \SmartyException + */ + public function endRender(Smarty_Internal_Template $_template) + { + if ($this->captureCount) { + $this->error($_template); + } else { + $this->captureCount = array_pop($this->countStack); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php new file mode 100644 index 0000000000..4a7781c446 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php @@ -0,0 +1,103 @@ +<?php +/** + * Smarty Internal Extension + * This file contains the Smarty template extension to create a code frame + * + * @package Smarty + * @subpackage Template + * @author Uwe Tews + */ + +/** + * Class Smarty_Internal_Extension_CodeFrame + * Create code frame for compiled and cached templates + */ +class Smarty_Internal_Runtime_CodeFrame +{ + /** + * Create code frame for compiled and cached templates + * + * @param Smarty_Internal_Template $_template + * @param string $content optional template content + * @param string $functions compiled template function and block code + * @param bool $cache flag for cache file + * @param \Smarty_Internal_TemplateCompilerBase $compiler + * + * @return string + */ + public function create( + Smarty_Internal_Template $_template, + $content = '', + $functions = '', + $cache = false, + Smarty_Internal_TemplateCompilerBase $compiler = null + ) { + // build property code + $properties[ 'version' ] = Smarty::SMARTY_VERSION; + $properties[ 'unifunc' ] = 'content_' . str_replace(array('.', ','), '_', uniqid('', true)); + if (!$cache) { + $properties[ 'has_nocache_code' ] = $_template->compiled->has_nocache_code; + $properties[ 'file_dependency' ] = $_template->compiled->file_dependency; + $properties[ 'includes' ] = $_template->compiled->includes; + } else { + $properties[ 'has_nocache_code' ] = $_template->cached->has_nocache_code; + $properties[ 'file_dependency' ] = $_template->cached->file_dependency; + $properties[ 'cache_lifetime' ] = $_template->cache_lifetime; + } + $output = sprintf( + "<?php\n/* Smarty version %s, created on %s\n from '%s' */\n\n", + $properties[ 'version' ], + date("Y-m-d H:i:s"), + str_replace('*/', '* /', $_template->source->filepath) + ); + $output .= "/* @var Smarty_Internal_Template \$_smarty_tpl */\n"; + $dec = "\$_smarty_tpl->_decodeProperties(\$_smarty_tpl, " . var_export($properties, true) . ',' . + ($cache ? 'true' : 'false') . ')'; + $output .= "if ({$dec}) {\n"; + $output .= "function {$properties['unifunc']} (Smarty_Internal_Template \$_smarty_tpl) {\n"; + if (!$cache && !empty($compiler->tpl_function)) { + $output .= '$_smarty_tpl->smarty->ext->_tplFunction->registerTplFunctions($_smarty_tpl, '; + $output .= var_export($compiler->tpl_function, true); + $output .= ");\n"; + } + if ($cache && isset($_template->smarty->ext->_tplFunction)) { + $output .= "\$_smarty_tpl->smarty->ext->_tplFunction->registerTplFunctions(\$_smarty_tpl, " . + var_export($_template->smarty->ext->_tplFunction->getTplFunction($_template), true) . ");\n"; + } + $output .= "?>"; + $output .= $content; + $output .= "<?php }\n?>"; + $output .= $functions; + $output .= "<?php }\n"; + // remove unneeded PHP tags + if (preg_match('/\s*\?>[\n]?<\?php\s*/', $output)) { + $curr_split = preg_split( + '/\s*\?>[\n]?<\?php\s*/', + $output + ); + preg_match_all( + '/\s*\?>[\n]?<\?php\s*/', + $output, + $curr_parts + ); + $output = ''; + foreach ($curr_split as $idx => $curr_output) { + $output .= $curr_output; + if (isset($curr_parts[ 0 ][ $idx ])) { + $output .= "\n"; + } + } + } + if (preg_match('/\?>\s*$/', $output)) { + $curr_split = preg_split( + '/\?>\s*$/', + $output + ); + $output = ''; + foreach ($curr_split as $idx => $curr_output) { + $output .= $curr_output; + } + } + return $output; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php new file mode 100644 index 0000000000..9f868e1a40 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php @@ -0,0 +1,69 @@ +<?php +/** + * Smarty Internal Plugin Filter Handler + * Smarty filter handler class + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ + +/** + * Class for filter processing + * + * @package Smarty + * @subpackage PluginsInternal + */ +class Smarty_Internal_Runtime_FilterHandler +{ + /** + * Run filters over content + * The filters will be lazy loaded if required + * class name format: Smarty_FilterType_FilterName + * plugin filename format: filtertype.filtername.php + * Smarty2 filter plugins could be used + * + * @param string $type the type of filter ('pre','post','output') which shall run + * @param string $content the content which shall be processed by the filters + * @param Smarty_Internal_Template $template template object + * + * @throws SmartyException + * @return string the filtered content + */ + public function runFilter($type, $content, Smarty_Internal_Template $template) + { + // loop over autoload filters of specified type + if (!empty($template->smarty->autoload_filters[ $type ])) { + foreach ((array)$template->smarty->autoload_filters[ $type ] as $name) { + $plugin_name = "Smarty_{$type}filter_{$name}"; + if (function_exists($plugin_name)) { + $callback = $plugin_name; + } elseif (class_exists($plugin_name, false) && is_callable(array($plugin_name, 'execute'))) { + $callback = array($plugin_name, 'execute'); + } elseif ($template->smarty->loadPlugin($plugin_name, false)) { + if (function_exists($plugin_name)) { + // use loaded Smarty2 style plugin + $callback = $plugin_name; + } elseif (class_exists($plugin_name, false) && is_callable(array($plugin_name, 'execute'))) { + // loaded class of filter plugin + $callback = array($plugin_name, 'execute'); + } else { + throw new SmartyException("Auto load {$type}-filter plugin method '{$plugin_name}::execute' not callable"); + } + } else { + // nothing found, throw exception + throw new SmartyException("Unable to auto load {$type}-filter plugin '{$plugin_name}'"); + } + $content = call_user_func($callback, $content, $template); + } + } + // loop over registered filters of specified type + if (!empty($template->smarty->registered_filters[ $type ])) { + foreach ($template->smarty->registered_filters[ $type ] as $key => $name) { + $content = call_user_func($template->smarty->registered_filters[ $type ][ $key ], $content, $template); + } + } + // return filtered output + return $content; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_foreach.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_foreach.php new file mode 100644 index 0000000000..badead1654 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_foreach.php @@ -0,0 +1,162 @@ +<?php + +/** + * Foreach Runtime Methods count(), init(), restore() + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Runtime_Foreach +{ + /** + * Stack of saved variables + * + * @var array + */ + private $stack = array(); + + /** + * Init foreach loop + * - save item and key variables, named foreach property data if defined + * - init item and key variables, named foreach property data if required + * - count total if required + * + * @param \Smarty_Internal_Template $tpl + * @param mixed $from values to loop over + * @param string $item variable name + * @param bool $needTotal flag if we need to count values + * @param null|string $key variable name + * @param null|string $name of named foreach + * @param array $properties of named foreach + * + * @return mixed $from + */ + public function init( + Smarty_Internal_Template $tpl, + $from, + $item, + $needTotal = false, + $key = null, + $name = null, + $properties = array() + ) { + $needTotal = $needTotal || isset($properties[ 'total' ]); + $saveVars = array(); + $total = null; + if (!is_array($from)) { + if (is_object($from)) { + if ($needTotal) { + $total = $this->count($from); + } + } else { + settype($from, 'array'); + } + } + if (!isset($total)) { + $total = empty($from) ? 0 : ($needTotal ? count($from) : 1); + } + if (isset($tpl->tpl_vars[ $item ])) { + $saveVars[ 'item' ] = array( + $item, + $tpl->tpl_vars[ $item ] + ); + } + $tpl->tpl_vars[ $item ] = new Smarty_Variable(null, $tpl->isRenderingCache); + if ($total === 0) { + $from = null; + } else { + if ($key) { + if (isset($tpl->tpl_vars[ $key ])) { + $saveVars[ 'key' ] = array( + $key, + $tpl->tpl_vars[ $key ] + ); + } + $tpl->tpl_vars[ $key ] = new Smarty_Variable(null, $tpl->isRenderingCache); + } + } + if ($needTotal) { + $tpl->tpl_vars[ $item ]->total = $total; + } + if ($name) { + $namedVar = "__smarty_foreach_{$name}"; + if (isset($tpl->tpl_vars[ $namedVar ])) { + $saveVars[ 'named' ] = array( + $namedVar, + $tpl->tpl_vars[ $namedVar ] + ); + } + $namedProp = array(); + if (isset($properties[ 'total' ])) { + $namedProp[ 'total' ] = $total; + } + if (isset($properties[ 'iteration' ])) { + $namedProp[ 'iteration' ] = 0; + } + if (isset($properties[ 'index' ])) { + $namedProp[ 'index' ] = -1; + } + if (isset($properties[ 'show' ])) { + $namedProp[ 'show' ] = ($total > 0); + } + $tpl->tpl_vars[ $namedVar ] = new Smarty_Variable($namedProp); + } + $this->stack[] = $saveVars; + return $from; + } + + /** + * [util function] counts an array, arrayAccess/traversable or PDOStatement object + * + * @param mixed $value + * + * @return int the count for arrays and objects that implement countable, 1 for other objects that don't, and 0 + * for empty elements + */ + public function count($value) + { + if ($value instanceof IteratorAggregate) { + // Note: getIterator() returns a Traversable, not an Iterator + // thus rewind() and valid() methods may not be present + return iterator_count($value->getIterator()); + } elseif ($value instanceof Iterator) { + return $value instanceof Generator ? 1 : iterator_count($value); + } elseif ($value instanceof Countable) { + return count($value); + } elseif ($value instanceof PDOStatement) { + return $value->rowCount(); + } elseif ($value instanceof Traversable) { + return iterator_count($value); + } + return count((array)$value); + } + + /** + * Restore saved variables + * + * will be called by {break n} or {continue n} for the required number of levels + * + * @param \Smarty_Internal_Template $tpl + * @param int $levels number of levels + */ + public function restore(Smarty_Internal_Template $tpl, $levels = 1) + { + while ($levels) { + $saveVars = array_pop($this->stack); + if (!empty($saveVars)) { + if (isset($saveVars[ 'item' ])) { + $item = &$saveVars[ 'item' ]; + $tpl->tpl_vars[ $item[ 0 ] ]->value = $item[ 1 ]->value; + } + if (isset($saveVars[ 'key' ])) { + $tpl->tpl_vars[ $saveVars[ 'key' ][ 0 ] ] = $saveVars[ 'key' ][ 1 ]; + } + if (isset($saveVars[ 'named' ])) { + $tpl->tpl_vars[ $saveVars[ 'named' ][ 0 ] ] = $saveVars[ 'named' ][ 1 ]; + } + } + $levels--; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_getincludepath.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_getincludepath.php new file mode 100644 index 0000000000..5ae98304ea --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_getincludepath.php @@ -0,0 +1,181 @@ +<?php +/** + * Smarty read include path plugin + * + * @package Smarty + * @subpackage PluginsInternal + * @author Monte Ohrt + */ + +/** + * Smarty Internal Read Include Path Class + * + * @package Smarty + * @subpackage PluginsInternal + */ +class Smarty_Internal_Runtime_GetIncludePath +{ + /** + * include path cache + * + * @var string + */ + public $_include_path = ''; + + /** + * include path directory cache + * + * @var array + */ + public $_include_dirs = array(); + + /** + * include path directory cache + * + * @var array + */ + public $_user_dirs = array(); + + /** + * stream cache + * + * @var string[][] + */ + public $isFile = array(); + + /** + * stream cache + * + * @var string[] + */ + public $isPath = array(); + + /** + * stream cache + * + * @var int[] + */ + public $number = array(); + + /** + * status cache + * + * @var bool + */ + public $_has_stream_include = null; + + /** + * Number for array index + * + * @var int + */ + public $counter = 0; + + /** + * Check if include path was updated + * + * @param \Smarty $smarty + * + * @return bool + */ + public function isNewIncludePath(Smarty $smarty) + { + $_i_path = get_include_path(); + if ($this->_include_path !== $_i_path) { + $this->_include_dirs = array(); + $this->_include_path = $_i_path; + $_dirs = (array)explode(PATH_SEPARATOR, $_i_path); + foreach ($_dirs as $_path) { + if (is_dir($_path)) { + $this->_include_dirs[] = $smarty->_realpath($_path . DIRECTORY_SEPARATOR, true); + } + } + return true; + } + return false; + } + + /** + * return array with include path directories + * + * @param \Smarty $smarty + * + * @return array + */ + public function getIncludePathDirs(Smarty $smarty) + { + $this->isNewIncludePath($smarty); + return $this->_include_dirs; + } + + /** + * Return full file path from PHP include_path + * + * @param string[] $dirs + * @param string $file + * @param \Smarty $smarty + * + * @return bool|string full filepath or false + */ + public function getIncludePath($dirs, $file, Smarty $smarty) + { + //if (!(isset($this->_has_stream_include) ? $this->_has_stream_include : $this->_has_stream_include = false)) { + if (!(isset($this->_has_stream_include) ? $this->_has_stream_include : + $this->_has_stream_include = function_exists('stream_resolve_include_path')) + ) { + $this->isNewIncludePath($smarty); + } + // try PHP include_path + foreach ($dirs as $dir) { + $dir_n = isset($this->number[ $dir ]) ? $this->number[ $dir ] : $this->number[ $dir ] = $this->counter++; + if (isset($this->isFile[ $dir_n ][ $file ])) { + if ($this->isFile[ $dir_n ][ $file ]) { + return $this->isFile[ $dir_n ][ $file ]; + } else { + continue; + } + } + if (isset($this->_user_dirs[ $dir_n ])) { + if (false === $this->_user_dirs[ $dir_n ]) { + continue; + } else { + $dir = $this->_user_dirs[ $dir_n ]; + } + } else { + if ($dir[ 0 ] === '/' || $dir[ 1 ] === ':') { + $dir = str_ireplace(getcwd(), '.', $dir); + if ($dir[ 0 ] === '/' || $dir[ 1 ] === ':') { + $this->_user_dirs[ $dir_n ] = false; + continue; + } + } + $dir = substr($dir, 2); + $this->_user_dirs[ $dir_n ] = $dir; + } + if ($this->_has_stream_include) { + $path = stream_resolve_include_path($dir . (isset($file) ? $file : '')); + if ($path) { + return $this->isFile[ $dir_n ][ $file ] = $path; + } + } else { + foreach ($this->_include_dirs as $key => $_i_path) { + $path = isset($this->isPath[ $key ][ $dir_n ]) ? $this->isPath[ $key ][ $dir_n ] : + $this->isPath[ $key ][ $dir_n ] = is_dir($_dir_path = $_i_path . $dir) ? $_dir_path : false; + if ($path === false) { + continue; + } + if (isset($file)) { + $_file = $this->isFile[ $dir_n ][ $file ] = (is_file($path . $file)) ? $path . $file : false; + if ($_file) { + return $_file; + } + } else { + // no file was given return directory path + return $path; + } + } + } + } + return false; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php new file mode 100644 index 0000000000..8f7f02d59b --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php @@ -0,0 +1,251 @@ +<?php + +/** + * Inheritance Runtime Methods processBlock, endChild, init + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + **/ +class Smarty_Internal_Runtime_Inheritance +{ + /** + * State machine + * - 0 idle next extends will create a new inheritance tree + * - 1 processing child template + * - 2 wait for next inheritance template + * - 3 assume parent template, if child will loaded goto state 1 + * a call to a sub template resets the state to 0 + * + * @var int + */ + public $state = 0; + + /** + * Array of root child {block} objects + * + * @var Smarty_Internal_Block[] + */ + public $childRoot = array(); + + /** + * inheritance template nesting level + * + * @var int + */ + public $inheritanceLevel = 0; + + /** + * inheritance template index + * + * @var int + */ + public $tplIndex = -1; + + /** + * Array of template source objects + * + * @var Smarty_Template_Source[] + */ + public $sources = array(); + + /** + * Stack of source objects while executing block code + * + * @var Smarty_Template_Source[] + */ + public $sourceStack = array(); + + /** + * Initialize inheritance + * + * @param \Smarty_Internal_Template $tpl template object of caller + * @param bool $initChild if true init for child template + * @param array $blockNames outer level block name + */ + public function init(Smarty_Internal_Template $tpl, $initChild, $blockNames = array()) + { + // if called while executing parent template it must be a sub-template with new inheritance root + if ($initChild && $this->state === 3 && (strpos($tpl->template_resource, 'extendsall') === false)) { + $tpl->inheritance = new Smarty_Internal_Runtime_Inheritance(); + $tpl->inheritance->init($tpl, $initChild, $blockNames); + return; + } + ++$this->tplIndex; + $this->sources[ $this->tplIndex ] = $tpl->source; + // start of child sub template(s) + if ($initChild) { + $this->state = 1; + if (!$this->inheritanceLevel) { + //grab any output of child templates + ob_start(); + } + ++$this->inheritanceLevel; + // $tpl->startRenderCallbacks[ 'inheritance' ] = array($this, 'subTemplateStart'); + // $tpl->endRenderCallbacks[ 'inheritance' ] = array($this, 'subTemplateEnd'); + } + // if state was waiting for parent change state to parent + if ($this->state === 2) { + $this->state = 3; + } + } + + /** + * End of child template(s) + * - if outer level is reached flush output buffer and switch to wait for parent template state + * + * @param \Smarty_Internal_Template $tpl + * @param null|string $template optional name of inheritance parent template + * @param null|string $uid uid of inline template + * @param null|string $func function call name of inline template + * + * @throws \Exception + * @throws \SmartyException + */ + public function endChild(Smarty_Internal_Template $tpl, $template = null, $uid = null, $func = null) + { + --$this->inheritanceLevel; + if (!$this->inheritanceLevel) { + ob_end_clean(); + $this->state = 2; + } + if (isset($template) && (($tpl->parent->_isTplObj() && $tpl->parent->source->type !== 'extends') + || $tpl->smarty->extends_recursion) + ) { + $tpl->_subTemplateRender( + $template, + $tpl->cache_id, + $tpl->compile_id, + $tpl->caching ? 9999 : 0, + $tpl->cache_lifetime, + array(), + 2, + false, + $uid, + $func + ); + } + } + + /** + * Smarty_Internal_Block constructor. + * - if outer level {block} of child template ($state === 1) save it as child root block + * - otherwise process inheritance and render + * + * @param \Smarty_Internal_Template $tpl + * @param $className + * @param string $name + * @param int|null $tplIndex index of outer level {block} if nested + * + * @throws \SmartyException + */ + public function instanceBlock(Smarty_Internal_Template $tpl, $className, $name, $tplIndex = null) + { + $block = new $className($name, isset($tplIndex) ? $tplIndex : $this->tplIndex); + if (isset($this->childRoot[ $name ])) { + $block->child = $this->childRoot[ $name ]; + } + if ($this->state === 1) { + $this->childRoot[ $name ] = $block; + return; + } + // make sure we got child block of child template of current block + while ($block->child && $block->child->child && $block->tplIndex <= $block->child->tplIndex) { + $block->child = $block->child->child; + } + $this->process($tpl, $block); + } + + /** + * Goto child block or render this + * + * @param \Smarty_Internal_Template $tpl + * @param \Smarty_Internal_Block $block + * @param \Smarty_Internal_Block|null $parent + * + * @throws \SmartyException + */ + public function process( + Smarty_Internal_Template $tpl, + Smarty_Internal_Block $block, + Smarty_Internal_Block $parent = null + ) { + if ($block->hide && !isset($block->child)) { + return; + } + if (isset($block->child) && $block->child->hide && !isset($block->child->child)) { + $block->child = null; + } + $block->parent = $parent; + if ($block->append && !$block->prepend && isset($parent)) { + $this->callParent($tpl, $block, '\'{block append}\''); + } + if ($block->callsChild || !isset($block->child) || ($block->child->hide && !isset($block->child->child))) { + $this->callBlock($block, $tpl); + } else { + $this->process($tpl, $block->child, $block); + } + if ($block->prepend && isset($parent)) { + $this->callParent($tpl, $block, '{block prepend}'); + if ($block->append) { + if ($block->callsChild || !isset($block->child) + || ($block->child->hide && !isset($block->child->child)) + ) { + $this->callBlock($block, $tpl); + } else { + $this->process($tpl, $block->child, $block); + } + } + } + $block->parent = null; + } + + /** + * Render child on \$smarty.block.child + * + * @param \Smarty_Internal_Template $tpl + * @param \Smarty_Internal_Block $block + * + * @return null|string block content + * @throws \SmartyException + */ + public function callChild(Smarty_Internal_Template $tpl, Smarty_Internal_Block $block) + { + if (isset($block->child)) { + $this->process($tpl, $block->child, $block); + } + } + + /** + * Render parent block on \$smarty.block.parent or {block append/prepend} + * + * @param \Smarty_Internal_Template $tpl + * @param \Smarty_Internal_Block $block + * @param string $tag + * + * @return null|string block content + * @throws \SmartyException + */ + public function callParent(Smarty_Internal_Template $tpl, Smarty_Internal_Block $block, $tag) + { + if (isset($block->parent)) { + $this->callBlock($block->parent, $tpl); + } else { + throw new SmartyException("inheritance: illegal '{$tag}' used in child template '{$tpl->inheritance->sources[$block->tplIndex]->filepath}' block '{$block->name}'"); + } + } + + /** + * render block + * + * @param \Smarty_Internal_Block $block + * @param \Smarty_Internal_Template $tpl + */ + public function callBlock(Smarty_Internal_Block $block, Smarty_Internal_Template $tpl) + { + $this->sourceStack[] = $tpl->source; + $tpl->source = $this->sources[ $block->tplIndex ]; + $block->callBlock($tpl); + $tpl->source = array_pop($this->sourceStack); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_make_nocache.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_make_nocache.php new file mode 100644 index 0000000000..53069148dd --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_make_nocache.php @@ -0,0 +1,54 @@ +<?php + +/** + * {make_nocache} Runtime Methods save(), store() + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Runtime_Make_Nocache +{ + /** + * Save current variable value while rendering compiled template and inject nocache code to + * assign variable value in cahed template + * + * @param \Smarty_Internal_Template $tpl + * @param string $var variable name + * + * @throws \SmartyException + */ + public function save(Smarty_Internal_Template $tpl, $var) + { + if (isset($tpl->tpl_vars[ $var ])) { + $export = + preg_replace('/^Smarty_Variable::__set_state[(]|[)]$/', '', var_export($tpl->tpl_vars[ $var ], true)); + if (preg_match('/(\w+)::__set_state/', $export, $match)) { + throw new SmartyException("{make_nocache \${$var}} in template '{$tpl->source->name}': variable does contain object '{$match[1]}' not implementing method '__set_state'"); + } + echo "/*%%SmartyNocache:{$tpl->compiled->nocache_hash}%%*/<?php " . + addcslashes("\$_smarty_tpl->smarty->ext->_make_nocache->store(\$_smarty_tpl, '{$var}', ", '\\') . + $export . ");?>\n/*/%%SmartyNocache:{$tpl->compiled->nocache_hash}%%*/"; + } + } + + /** + * Store variable value saved while rendering compiled template in cached template context + * + * @param \Smarty_Internal_Template $tpl + * @param string $var variable name + * @param array $properties + */ + public function store(Smarty_Internal_Template $tpl, $var, $properties) + { + // do not overwrite existing nocache variables + if (!isset($tpl->tpl_vars[ $var ]) || !$tpl->tpl_vars[ $var ]->nocache) { + $newVar = new Smarty_Variable(); + unset($properties[ 'nocache' ]); + foreach ($properties as $k => $v) { + $newVar->$k = $v; + } + $tpl->tpl_vars[ $var ] = $newVar; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_tplfunction.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_tplfunction.php new file mode 100644 index 0000000000..e5f8e48f79 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_tplfunction.php @@ -0,0 +1,177 @@ +<?php + +/** + * TplFunction Runtime Methods callTemplateFunction + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + **/ +class Smarty_Internal_Runtime_TplFunction +{ + /** + * Call template function + * + * @param \Smarty_Internal_Template $tpl template object + * @param string $name template function name + * @param array $params parameter array + * @param bool $nocache true if called nocache + * + * @throws \SmartyException + */ + public function callTemplateFunction(Smarty_Internal_Template $tpl, $name, $params, $nocache) + { + $funcParam = isset($tpl->tplFunctions[ $name ]) ? $tpl->tplFunctions[ $name ] : + (isset($tpl->smarty->tplFunctions[ $name ]) ? $tpl->smarty->tplFunctions[ $name ] : null); + if (isset($funcParam)) { + if (!$tpl->caching || ($tpl->caching && $nocache)) { + $function = $funcParam[ 'call_name' ]; + } else { + if (isset($funcParam[ 'call_name_caching' ])) { + $function = $funcParam[ 'call_name_caching' ]; + } else { + $function = $funcParam[ 'call_name' ]; + } + } + if (function_exists($function)) { + $this->saveTemplateVariables($tpl, $name); + $function($tpl, $params); + $this->restoreTemplateVariables($tpl, $name); + return; + } + // try to load template function dynamically + if ($this->addTplFuncToCache($tpl, $name, $function)) { + $this->saveTemplateVariables($tpl, $name); + $function($tpl, $params); + $this->restoreTemplateVariables($tpl, $name); + return; + } + } + throw new SmartyException("Unable to find template function '{$name}'"); + } + + /** + * Register template functions defined by template + * + * @param \Smarty|\Smarty_Internal_Template|\Smarty_Internal_TemplateBase $obj + * @param array $tplFunctions source information array of + * template functions defined + * in template + * @param bool $override if true replace existing + * functions with same name + */ + public function registerTplFunctions(Smarty_Internal_TemplateBase $obj, $tplFunctions, $override = true) + { + $obj->tplFunctions = + $override ? array_merge($obj->tplFunctions, $tplFunctions) : array_merge($tplFunctions, $obj->tplFunctions); + // make sure that the template functions are known in parent templates + if ($obj->_isSubTpl()) { + $obj->smarty->ext->_tplFunction->registerTplFunctions($obj->parent, $tplFunctions, false); + } else { + $obj->smarty->tplFunctions = $override ? array_merge($obj->smarty->tplFunctions, $tplFunctions) : + array_merge($tplFunctions, $obj->smarty->tplFunctions); + } + } + + /** + * Return source parameter array for single or all template functions + * + * @param \Smarty_Internal_Template $tpl template object + * @param null|string $name template function name + * + * @return array|bool|mixed + */ + public function getTplFunction(Smarty_Internal_Template $tpl, $name = null) + { + if (isset($name)) { + return isset($tpl->tplFunctions[ $name ]) ? $tpl->tplFunctions[ $name ] : + (isset($tpl->smarty->tplFunctions[ $name ]) ? $tpl->smarty->tplFunctions[ $name ] : false); + } else { + return empty($tpl->tplFunctions) ? $tpl->smarty->tplFunctions : $tpl->tplFunctions; + } + } + + /** + * Add template function to cache file for nocache calls + * + * @param Smarty_Internal_Template $tpl + * @param string $_name template function name + * @param string $_function PHP function name + * + * @return bool + */ + public function addTplFuncToCache(Smarty_Internal_Template $tpl, $_name, $_function) + { + $funcParam = $tpl->tplFunctions[ $_name ]; + if (is_file($funcParam[ 'compiled_filepath' ])) { + // read compiled file + $code = file_get_contents($funcParam[ 'compiled_filepath' ]); + // grab template function + if (preg_match("/\/\* {$_function} \*\/([\S\s]*?)\/\*\/ {$_function} \*\//", $code, $match)) { + // grab source info from file dependency + preg_match("/\s*'{$funcParam['uid']}'([\S\s]*?)\),/", $code, $match1); + unset($code); + // make PHP function known + eval($match[ 0 ]); + if (function_exists($_function)) { + // search cache file template + $tplPtr = $tpl; + while (!isset($tplPtr->cached) && isset($tplPtr->parent)) { + $tplPtr = $tplPtr->parent; + } + // add template function code to cache file + if (isset($tplPtr->cached)) { + $content = $tplPtr->cached->read($tplPtr); + if ($content) { + // check if we must update file dependency + if (!preg_match("/'{$funcParam['uid']}'(.*?)'nocache_hash'/", $content, $match2)) { + $content = preg_replace("/('file_dependency'(.*?)\()/", "\\1{$match1[0]}", $content); + } + $tplPtr->smarty->ext->_updateCache->write( + $tplPtr, + preg_replace('/\s*\?>\s*$/', "\n", $content) . + "\n" . preg_replace( + array( + '/^\s*<\?php\s+/', + '/\s*\?>\s*$/', + ), + "\n", + $match[ 0 ] + ) + ); + } + } + return true; + } + } + } + return false; + } + + /** + * Save current template variables on stack + * + * @param \Smarty_Internal_Template $tpl + * @param string $name stack name + */ + public function saveTemplateVariables(Smarty_Internal_Template $tpl, $name) + { + $tpl->_cache[ 'varStack' ][] = + array('tpl' => $tpl->tpl_vars, 'config' => $tpl->config_vars, 'name' => "_tplFunction_{$name}"); + } + + /** + * Restore saved variables into template objects + * + * @param \Smarty_Internal_Template $tpl + * @param string $name stack name + */ + public function restoreTemplateVariables(Smarty_Internal_Template $tpl, $name) + { + if (isset($tpl->_cache[ 'varStack' ])) { + $vars = array_pop($tpl->_cache[ 'varStack' ]); + $tpl->tpl_vars = $vars[ 'tpl' ]; + $tpl->config_vars = $vars[ 'config' ]; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php new file mode 100644 index 0000000000..c1abbb321a --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatecache.php @@ -0,0 +1,183 @@ +<?php + +/** + * Inline Runtime Methods render, setSourceByUid, setupSubTemplate + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + **/ +class Smarty_Internal_Runtime_UpdateCache +{ + /** + * check client side cache + * + * @param \Smarty_Template_Cached $cached + * @param Smarty_Internal_Template $_template + * @param string $content + */ + public function cacheModifiedCheck(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template, $content) + { + } + + /** + * Cache was invalid , so render from compiled and write to cache + * + * @param \Smarty_Template_Cached $cached + * @param \Smarty_Internal_Template $_template + * @param $no_output_filter + * + * @throws \Exception + */ + public function updateCache(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template, $no_output_filter) + { + ob_start(); + if (!isset($_template->compiled)) { + $_template->loadCompiled(); + } + $_template->compiled->render($_template); + if ($_template->smarty->debugging) { + $_template->smarty->_debug->start_cache($_template); + } + $this->removeNoCacheHash($cached, $_template, $no_output_filter); + $compile_check = (int)$_template->compile_check; + $_template->compile_check = Smarty::COMPILECHECK_OFF; + if ($_template->_isSubTpl()) { + $_template->compiled->unifunc = $_template->parent->compiled->unifunc; + } + if (!$_template->cached->processed) { + $_template->cached->process($_template, true); + } + $_template->compile_check = $compile_check; + $cached->getRenderedTemplateCode($_template); + if ($_template->smarty->debugging) { + $_template->smarty->_debug->end_cache($_template); + } + } + + /** + * Sanitize content and write it to cache resource + * + * @param \Smarty_Template_Cached $cached + * @param Smarty_Internal_Template $_template + * @param bool $no_output_filter + * + * @throws \SmartyException + */ + public function removeNoCacheHash( + Smarty_Template_Cached $cached, + Smarty_Internal_Template $_template, + $no_output_filter + ) { + $php_pattern = '/(<%|%>|<\?php|<\?|\?>|<script\s+language\s*=\s*[\"\']?\s*php\s*[\"\']?\s*>)/'; + $content = ob_get_clean(); + $hash_array = $cached->hashes; + $hash_array[ $_template->compiled->nocache_hash ] = true; + $hash_array = array_keys($hash_array); + $nocache_hash = '(' . implode('|', $hash_array) . ')'; + $_template->cached->has_nocache_code = false; + // get text between non-cached items + $cache_split = + preg_split( + "!/\*%%SmartyNocache:{$nocache_hash}%%\*\/(.+?)/\*/%%SmartyNocache:{$nocache_hash}%%\*/!s", + $content + ); + // get non-cached items + preg_match_all( + "!/\*%%SmartyNocache:{$nocache_hash}%%\*\/(.+?)/\*/%%SmartyNocache:{$nocache_hash}%%\*/!s", + $content, + $cache_parts + ); + $content = ''; + // loop over items, stitch back together + foreach ($cache_split as $curr_idx => $curr_split) { + if (preg_match($php_pattern, $curr_split)) { + // escape PHP tags in template content + $php_split = preg_split( + $php_pattern, + $curr_split + ); + preg_match_all( + $php_pattern, + $curr_split, + $php_parts + ); + foreach ($php_split as $idx_php => $curr_php) { + $content .= $curr_php; + if (isset($php_parts[ 0 ][ $idx_php ])) { + $content .= "<?php echo '{$php_parts[ 1 ][ $idx_php ]}'; ?>\n"; + } + } + } else { + $content .= $curr_split; + } + if (isset($cache_parts[ 0 ][ $curr_idx ])) { + $_template->cached->has_nocache_code = true; + $content .= $cache_parts[ 2 ][ $curr_idx ]; + } + } + if (!$no_output_filter && !$_template->cached->has_nocache_code + && (isset($_template->smarty->autoload_filters[ 'output' ]) + || isset($_template->smarty->registered_filters[ 'output' ])) + ) { + $content = $_template->smarty->ext->_filterHandler->runFilter('output', $content, $_template); + } + // write cache file content + $this->writeCachedContent($_template, $content); + } + + /** + * Writes the content to cache resource + * + * @param Smarty_Internal_Template $_template + * @param string $content + * + * @return bool + */ + public function writeCachedContent(Smarty_Internal_Template $_template, $content) + { + if ($_template->source->handler->recompiled || !$_template->caching + ) { + // don't write cache file + return false; + } + if (!isset($_template->cached)) { + $_template->loadCached(); + } + $content = $_template->smarty->ext->_codeFrame->create($_template, $content, '', true); + return $this->write($_template, $content); + } + + /** + * Write this cache object to handler + * + * @param Smarty_Internal_Template $_template template object + * @param string $content content to cache + * + * @return bool success + */ + public function write(Smarty_Internal_Template $_template, $content) + { + if (!$_template->source->handler->recompiled) { + $cached = $_template->cached; + if ($cached->handler->writeCachedContent($_template, $content)) { + $cached->content = null; + $cached->timestamp = time(); + $cached->exists = true; + $cached->valid = true; + $cached->cache_lifetime = $_template->cache_lifetime; + $cached->processed = false; + if ($_template->smarty->cache_locking) { + $cached->handler->releaseLock($_template->smarty, $cached); + } + return true; + } + $cached->content = null; + $cached->timestamp = false; + $cached->exists = false; + $cached->valid = false; + $cached->processed = false; + } + return false; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatescope.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatescope.php new file mode 100644 index 0000000000..2240f97cac --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_updatescope.php @@ -0,0 +1,115 @@ +<?php + +/** + * Runtime Extension updateScope + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + **/ +class Smarty_Internal_Runtime_UpdateScope +{ + /** + * Update new assigned template or config variable in other effected scopes + * + * @param Smarty_Internal_Template $tpl data object + * @param string|null $varName variable name + * @param int $tagScope tag scope to which bubble up variable value + */ + public function _updateScope(Smarty_Internal_Template $tpl, $varName, $tagScope = 0) + { + if ($tagScope) { + $this->_updateVarStack($tpl, $varName); + $tagScope = $tagScope & ~Smarty::SCOPE_LOCAL; + if (!$tpl->scope && !$tagScope) { + return; + } + } + $mergedScope = $tagScope | $tpl->scope; + if ($mergedScope) { + if ($mergedScope & Smarty::SCOPE_GLOBAL && $varName) { + Smarty::$global_tpl_vars[ $varName ] = $tpl->tpl_vars[ $varName ]; + } + // update scopes + foreach ($this->_getAffectedScopes($tpl, $mergedScope) as $ptr) { + $this->_updateVariableInOtherScope($ptr->tpl_vars, $tpl, $varName); + if ($tagScope && $ptr->_isTplObj() && isset($tpl->_cache[ 'varStack' ])) { + $this->_updateVarStack($ptr, $varName); + } + } + } + } + + /** + * Get array of objects which needs to be updated by given scope value + * + * @param Smarty_Internal_Template $tpl + * @param int $mergedScope merged tag and template scope to which bubble up variable value + * + * @return array + */ + public function _getAffectedScopes(Smarty_Internal_Template $tpl, $mergedScope) + { + $_stack = array(); + $ptr = $tpl->parent; + if ($mergedScope && isset($ptr) && $ptr->_isTplObj()) { + $_stack[] = $ptr; + $mergedScope = $mergedScope & ~Smarty::SCOPE_PARENT; + if (!$mergedScope) { + // only parent was set, we are done + return $_stack; + } + $ptr = $ptr->parent; + } + while (isset($ptr) && $ptr->_isTplObj()) { + $_stack[] = $ptr; + $ptr = $ptr->parent; + } + if ($mergedScope & Smarty::SCOPE_SMARTY) { + if (isset($tpl->smarty)) { + $_stack[] = $tpl->smarty; + } + } elseif ($mergedScope & Smarty::SCOPE_ROOT) { + while (isset($ptr)) { + if (!$ptr->_isTplObj()) { + $_stack[] = $ptr; + break; + } + $ptr = $ptr->parent; + } + } + return $_stack; + } + + /** + * Update variable in other scope + * + * @param array $tpl_vars template variable array + * @param \Smarty_Internal_Template $from + * @param string $varName variable name + */ + public function _updateVariableInOtherScope(&$tpl_vars, Smarty_Internal_Template $from, $varName) + { + if (!isset($tpl_vars[ $varName ])) { + $tpl_vars[ $varName ] = clone $from->tpl_vars[ $varName ]; + } else { + $tpl_vars[ $varName ] = clone $tpl_vars[ $varName ]; + $tpl_vars[ $varName ]->value = $from->tpl_vars[ $varName ]->value; + } + } + + /** + * Update variable in template local variable stack + * + * @param \Smarty_Internal_Template $tpl + * @param string|null $varName variable name or null for config variables + */ + public function _updateVarStack(Smarty_Internal_Template $tpl, $varName) + { + $i = 0; + while (isset($tpl->_cache[ 'varStack' ][ $i ])) { + $this->_updateVariableInOtherScope($tpl->_cache[ 'varStack' ][ $i ][ 'tpl' ], $tpl, $varName); + $i++; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php new file mode 100644 index 0000000000..4383e6f38f --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php @@ -0,0 +1,100 @@ +<?php +/** + * Smarty write file plugin + * + * @package Smarty + * @subpackage PluginsInternal + * @author Monte Ohrt + */ + +/** + * Smarty Internal Write File Class + * + * @package Smarty + * @subpackage PluginsInternal + */ +class Smarty_Internal_Runtime_WriteFile +{ + /** + * Writes file in a safe way to disk + * + * @param string $_filepath complete filepath + * @param string $_contents file content + * @param Smarty $smarty smarty instance + * + * @throws SmartyException + * @return boolean true + */ + public function writeFile($_filepath, $_contents, Smarty $smarty) + { + $_error_reporting = error_reporting(); + error_reporting($_error_reporting & ~E_NOTICE & ~E_WARNING); + $_file_perms = property_exists($smarty, '_file_perms') ? $smarty->_file_perms : 0644; + $_dir_perms = + property_exists($smarty, '_dir_perms') ? (isset($smarty->_dir_perms) ? $smarty->_dir_perms : 0777) : 0771; + if ($_file_perms !== null) { + $old_umask = umask(0); + } + $_dirpath = dirname($_filepath); + // if subdirs, create dir structure + if ($_dirpath !== '.') { + $i = 0; + // loop if concurrency problem occurs + // see https://bugs.php.net/bug.php?id=35326 + while (!is_dir($_dirpath)) { + if (@mkdir($_dirpath, $_dir_perms, true)) { + break; + } + clearstatcache(); + if (++$i === 3) { + error_reporting($_error_reporting); + throw new SmartyException("unable to create directory {$_dirpath}"); + } + sleep(1); + } + } + // write to tmp file, then move to overt file lock race condition + $_tmp_file = $_dirpath . DIRECTORY_SEPARATOR . str_replace(array('.', ','), '_', uniqid('wrt', true)); + if (!file_put_contents($_tmp_file, $_contents)) { + error_reporting($_error_reporting); + throw new SmartyException("unable to write file {$_tmp_file}"); + } + /* + * Windows' rename() fails if the destination exists, + * Linux' rename() properly handles the overwrite. + * Simply unlink()ing a file might cause other processes + * currently reading that file to fail, but linux' rename() + * seems to be smart enough to handle that for us. + */ + if (Smarty::$_IS_WINDOWS) { + // remove original file + if (is_file($_filepath)) { + @unlink($_filepath); + } + // rename tmp file + $success = @rename($_tmp_file, $_filepath); + } else { + // rename tmp file + $success = @rename($_tmp_file, $_filepath); + if (!$success) { + // remove original file + if (is_file($_filepath)) { + @unlink($_filepath); + } + // rename tmp file + $success = @rename($_tmp_file, $_filepath); + } + } + if (!$success) { + error_reporting($_error_reporting); + throw new SmartyException("unable to write file {$_filepath}"); + } + if ($_file_perms !== null) { + // set file permissions + chmod($_filepath, $_file_perms); + umask($old_umask); + } + error_reporting($_error_reporting); + return true; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php new file mode 100644 index 0000000000..21f4e3fddc --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php @@ -0,0 +1,184 @@ +<?php +/** + * Smarty Internal Plugin Smarty Template Compiler Base + * This file contains the basic classes and methods for compiling Smarty templates with lexer/parser + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Class SmartyTemplateCompiler + * + * @package Smarty + * @subpackage Compiler + */ +class Smarty_Internal_SmartyTemplateCompiler extends Smarty_Internal_TemplateCompilerBase +{ + /** + * Lexer class name + * + * @var string + */ + public $lexer_class; + + /** + * Parser class name + * + * @var string + */ + public $parser_class; + + /** + * array of vars which can be compiled in local scope + * + * @var array + */ + public $local_var = array(); + + /** + * array of callbacks called when the normal compile process of template is finished + * + * @var array + */ + public $postCompileCallbacks = array(); + + /** + * prefix code + * + * @var string + */ + public $prefixCompiledCode = ''; + + /** + * postfix code + * + * @var string + */ + public $postfixCompiledCode = ''; + + /** + * Initialize compiler + * + * @param string $lexer_class class name + * @param string $parser_class class name + * @param Smarty $smarty global instance + */ + public function __construct($lexer_class, $parser_class, Smarty $smarty) + { + parent::__construct($smarty); + // get required plugins + $this->lexer_class = $lexer_class; + $this->parser_class = $parser_class; + } + + /** + * method to compile a Smarty template + * + * @param mixed $_content template source + * @param bool $isTemplateSource + * + * @return bool true if compiling succeeded, false if it failed + * @throws \SmartyCompilerException + */ + protected function doCompile($_content, $isTemplateSource = false) + { + /* here is where the compiling takes place. Smarty + tags in the templates are replaces with PHP code, + then written to compiled files. */ + // init the lexer/parser to compile the template + $this->parser = + new $this->parser_class( + new $this->lexer_class( + str_replace( + array( + "\r\n", + "\r" + ), + "\n", + $_content + ), + $this + ), + $this + ); + if ($isTemplateSource && $this->template->caching) { + $this->parser->insertPhpCode("<?php\n\$_smarty_tpl->compiled->nocache_hash = '{$this->nocache_hash}';\n?>\n"); + } + if (function_exists('mb_internal_encoding') + && function_exists('ini_get') + && ((int)ini_get('mbstring.func_overload')) & 2 + ) { + $mbEncoding = mb_internal_encoding(); + mb_internal_encoding('ASCII'); + } else { + $mbEncoding = null; + } + if ($this->smarty->_parserdebug) { + $this->parser->PrintTrace(); + $this->parser->lex->PrintTrace(); + } + // get tokens from lexer and parse them + while ($this->parser->lex->yylex()) { + if ($this->smarty->_parserdebug) { + echo "<pre>Line {$this->parser->lex->line} Parsing {$this->parser->yyTokenName[$this->parser->lex->token]} Token " . + htmlentities($this->parser->lex->value) . "</pre>"; + } + $this->parser->doParse($this->parser->lex->token, $this->parser->lex->value); + } + // finish parsing process + $this->parser->doParse(0, 0); + if ($mbEncoding) { + mb_internal_encoding($mbEncoding); + } + // check for unclosed tags + if (count($this->_tag_stack) > 0) { + // get stacked info + list($openTag, $_data) = array_pop($this->_tag_stack); + $this->trigger_template_error( + "unclosed {$this->smarty->left_delimiter}" . $openTag . + "{$this->smarty->right_delimiter} tag" + ); + } + // call post compile callbacks + foreach ($this->postCompileCallbacks as $cb) { + $parameter = $cb; + $parameter[ 0 ] = $this; + call_user_func_array($cb[ 0 ], $parameter); + } + // return compiled code + return $this->prefixCompiledCode . $this->parser->retvalue . $this->postfixCompiledCode; + } + + /** + * Register a post compile callback + * - when the callback is called after template compiling the compiler object will be inserted as first parameter + * + * @param callback $callback + * @param array $parameter optional parameter array + * @param string $key optional key for callback + * @param bool $replace if true replace existing keyed callback + */ + public function registerPostCompileCallback($callback, $parameter = array(), $key = null, $replace = false) + { + array_unshift($parameter, $callback); + if (isset($key)) { + if ($replace || !isset($this->postCompileCallbacks[ $key ])) { + $this->postCompileCallbacks[ $key ] = $parameter; + } + } else { + $this->postCompileCallbacks[] = $parameter; + } + } + + /** + * Remove a post compile callback + * + * @param string $key callback key + */ + public function unregisterPostCompileCallback($key) + { + unset($this->postCompileCallbacks[ $key ]); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php new file mode 100644 index 0000000000..bae22a7d58 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php @@ -0,0 +1,740 @@ +<?php +/** + * Smarty Internal Plugin Template + * This file contains the Smarty template engine + * + * @package Smarty + * @subpackage Template + * @author Uwe Tews + */ + +/** + * Main class with template data structures and methods + * + * @package Smarty + * @subpackage Template + * + * @property Smarty_Template_Compiled $compiled + * @property Smarty_Template_Cached $cached + * @property Smarty_Internal_TemplateCompilerBase $compiler + * @property mixed|\Smarty_Template_Cached registered_plugins + * + * The following methods will be dynamically loaded by the extension handler when they are called. + * They are located in a corresponding Smarty_Internal_Method_xxxx class + * + * @method bool mustCompile() + */ +class Smarty_Internal_Template extends Smarty_Internal_TemplateBase +{ + /** + * Template object cache + * + * @var Smarty_Internal_Template[] + */ + public static $tplObjCache = array(); + + /** + * Template object cache for Smarty::isCached() === true + * + * @var Smarty_Internal_Template[] + */ + public static $isCacheTplObj = array(); + + /** + * Sub template Info Cache + * - index name + * - value use count + * + * @var int[] + */ + public static $subTplInfo = array(); + + /** + * This object type (Smarty = 1, template = 2, data = 4) + * + * @var int + */ + public $_objType = 2; + + /** + * Global smarty instance + * + * @var Smarty + */ + public $smarty = null; + + /** + * Source instance + * + * @var Smarty_Template_Source|Smarty_Template_Config + */ + public $source = null; + + /** + * Inheritance runtime extension + * + * @var Smarty_Internal_Runtime_Inheritance + */ + public $inheritance = null; + + /** + * Template resource + * + * @var string + */ + public $template_resource = null; + + /** + * flag if compiled template is invalid and must be (re)compiled + * + * @var bool + */ + public $mustCompile = null; + + /** + * Template Id + * + * @var null|string + */ + public $templateId = null; + + /** + * Scope in which variables shall be assigned + * + * @var int + */ + public $scope = 0; + + /** + * Flag which is set while rending a cache file + * + * @var bool + */ + public $isRenderingCache = false; + + /** + * Callbacks called before rendering template + * + * @var callback[] + */ + public $startRenderCallbacks = array(); + + /** + * Callbacks called after rendering template + * + * @var callback[] + */ + public $endRenderCallbacks = array(); + + /** + * Create template data object + * Some of the global Smarty settings copied to template scope + * It load the required template resources and caching plugins + * + * @param string $template_resource template resource string + * @param Smarty $smarty Smarty instance + * @param null|\Smarty_Internal_Template|\Smarty|\Smarty_Internal_Data $_parent back pointer to parent + * object with variables or + * null + * @param mixed $_cache_id cache id or null + * @param mixed $_compile_id compile id or null + * @param bool|int|null $_caching use caching? + * @param int|null $_cache_lifetime cache life-time in + * seconds + * @param bool $_isConfig + * + * @throws \SmartyException + */ + public function __construct( + $template_resource, + Smarty $smarty, + Smarty_Internal_Data $_parent = null, + $_cache_id = null, + $_compile_id = null, + $_caching = null, + $_cache_lifetime = null, + $_isConfig = false + ) { + $this->smarty = $smarty; + // Smarty parameter + $this->cache_id = $_cache_id === null ? $this->smarty->cache_id : $_cache_id; + $this->compile_id = $_compile_id === null ? $this->smarty->compile_id : $_compile_id; + $this->caching = (int)($_caching === null ? $this->smarty->caching : $_caching); + $this->cache_lifetime = $_cache_lifetime === null ? $this->smarty->cache_lifetime : $_cache_lifetime; + $this->compile_check = (int)$smarty->compile_check; + $this->parent = $_parent; + // Template resource + $this->template_resource = $template_resource; + $this->source = $_isConfig ? Smarty_Template_Config::load($this) : Smarty_Template_Source::load($this); + parent::__construct(); + if ($smarty->security_policy && method_exists($smarty->security_policy, 'registerCallBacks')) { + $smarty->security_policy->registerCallBacks($this); + } + } + + /** + * render template + * + * @param bool $no_output_filter if true do not run output filter + * @param null|bool $display true: display, false: fetch null: sub-template + * + * @return string + * @throws \Exception + * @throws \SmartyException + */ + public function render($no_output_filter = true, $display = null) + { + if ($this->smarty->debugging) { + if (!isset($this->smarty->_debug)) { + $this->smarty->_debug = new Smarty_Internal_Debug(); + } + $this->smarty->_debug->start_template($this, $display); + } + // checks if template exists + if (!$this->source->exists) { + throw new SmartyException( + "Unable to load template '{$this->source->type}:{$this->source->name}'" . + ($this->_isSubTpl() ? " in '{$this->parent->template_resource}'" : '') + ); + } + // disable caching for evaluated code + if ($this->source->handler->recompiled) { + $this->caching = Smarty::CACHING_OFF; + } + // read from cache or render + if ($this->caching === Smarty::CACHING_LIFETIME_CURRENT || $this->caching === Smarty::CACHING_LIFETIME_SAVED) { + if (!isset($this->cached) || $this->cached->cache_id !== $this->cache_id + || $this->cached->compile_id !== $this->compile_id + ) { + $this->loadCached(true); + } + $this->cached->render($this, $no_output_filter); + } else { + if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) { + $this->loadCompiled(true); + } + $this->compiled->render($this); + } + // display or fetch + if ($display) { + if ($this->caching && $this->smarty->cache_modified_check) { + $this->smarty->ext->_cacheModify->cacheModifiedCheck( + $this->cached, + $this, + isset($content) ? $content : ob_get_clean() + ); + } else { + if ((!$this->caching || $this->cached->has_nocache_code || $this->source->handler->recompiled) + && !$no_output_filter && (isset($this->smarty->autoload_filters[ 'output' ]) + || isset($this->smarty->registered_filters[ 'output' ])) + ) { + echo $this->smarty->ext->_filterHandler->runFilter('output', ob_get_clean(), $this); + } else { + echo ob_get_clean(); + } + } + if ($this->smarty->debugging) { + $this->smarty->_debug->end_template($this); + // debug output + $this->smarty->_debug->display_debug($this, true); + } + return ''; + } else { + if ($this->smarty->debugging) { + $this->smarty->_debug->end_template($this); + if ($this->smarty->debugging === 2 && $display === false) { + $this->smarty->_debug->display_debug($this, true); + } + } + if (!$no_output_filter + && (!$this->caching || $this->cached->has_nocache_code || $this->source->handler->recompiled) + && (isset($this->smarty->autoload_filters[ 'output' ]) + || isset($this->smarty->registered_filters[ 'output' ])) + ) { + return $this->smarty->ext->_filterHandler->runFilter('output', ob_get_clean(), $this); + } + // return cache content + return null; + } + } + + /** + * Runtime function to render sub-template + * + * @param string $template template name + * @param mixed $cache_id cache id + * @param mixed $compile_id compile id + * @param integer $caching cache mode + * @param integer $cache_lifetime life time of cache data + * @param array $data passed parameter template variables + * @param int $scope scope in which {include} should execute + * @param bool $forceTplCache cache template object + * @param string $uid file dependency uid + * @param string $content_func function name + * + * @throws \Exception + * @throws \SmartyException + */ + public function _subTemplateRender( + $template, + $cache_id, + $compile_id, + $caching, + $cache_lifetime, + $data, + $scope, + $forceTplCache, + $uid = null, + $content_func = null + ) { + $tpl = clone $this; + $tpl->parent = $this; + $smarty = &$this->smarty; + $_templateId = $smarty->_getTemplateId($template, $cache_id, $compile_id, $caching, $tpl); + // recursive call ? + if (isset($tpl->templateId) ? $tpl->templateId : $tpl->_getTemplateId() !== $_templateId) { + // already in template cache? + if (isset(self::$tplObjCache[ $_templateId ])) { + // copy data from cached object + $cachedTpl = &self::$tplObjCache[ $_templateId ]; + $tpl->templateId = $cachedTpl->templateId; + $tpl->template_resource = $cachedTpl->template_resource; + $tpl->cache_id = $cachedTpl->cache_id; + $tpl->compile_id = $cachedTpl->compile_id; + $tpl->source = $cachedTpl->source; + if (isset($cachedTpl->compiled)) { + $tpl->compiled = $cachedTpl->compiled; + } else { + unset($tpl->compiled); + } + if ($caching !== 9999 && isset($cachedTpl->cached)) { + $tpl->cached = $cachedTpl->cached; + } else { + unset($tpl->cached); + } + } else { + $tpl->templateId = $_templateId; + $tpl->template_resource = $template; + $tpl->cache_id = $cache_id; + $tpl->compile_id = $compile_id; + if (isset($uid)) { + // for inline templates we can get all resource information from file dependency + list($filepath, $timestamp, $type) = $tpl->compiled->file_dependency[ $uid ]; + $tpl->source = new Smarty_Template_Source($smarty, $filepath, $type, $filepath); + $tpl->source->filepath = $filepath; + $tpl->source->timestamp = $timestamp; + $tpl->source->exists = true; + $tpl->source->uid = $uid; + } else { + $tpl->source = Smarty_Template_Source::load($tpl); + unset($tpl->compiled); + } + if ($caching !== 9999) { + unset($tpl->cached); + } + } + } else { + // on recursive calls force caching + $forceTplCache = true; + } + $tpl->caching = $caching; + $tpl->cache_lifetime = $cache_lifetime; + // set template scope + $tpl->scope = $scope; + if (!isset(self::$tplObjCache[ $tpl->templateId ]) && !$tpl->source->handler->recompiled) { + // check if template object should be cached + if ($forceTplCache || (isset(self::$subTplInfo[ $tpl->template_resource ]) + && self::$subTplInfo[ $tpl->template_resource ] > 1) + || ($tpl->_isSubTpl() && isset(self::$tplObjCache[ $tpl->parent->templateId ])) + ) { + self::$tplObjCache[ $tpl->templateId ] = $tpl; + } + } + if (!empty($data)) { + // set up variable values + foreach ($data as $_key => $_val) { + $tpl->tpl_vars[ $_key ] = new Smarty_Variable($_val, $this->isRenderingCache); + } + } + if ($tpl->caching === 9999) { + if (!isset($tpl->compiled)) { + $this->loadCompiled(true); + } + if ($tpl->compiled->has_nocache_code) { + $this->cached->hashes[ $tpl->compiled->nocache_hash ] = true; + } + } + $tpl->_cache = array(); + if (isset($uid)) { + if ($smarty->debugging) { + if (!isset($smarty->_debug)) { + $smarty->_debug = new Smarty_Internal_Debug(); + } + $smarty->_debug->start_template($tpl); + $smarty->_debug->start_render($tpl); + } + $tpl->compiled->getRenderedTemplateCode($tpl, $content_func); + if ($smarty->debugging) { + $smarty->_debug->end_template($tpl); + $smarty->_debug->end_render($tpl); + } + } else { + if (isset($tpl->compiled)) { + $tpl->compiled->render($tpl); + } else { + $tpl->render(); + } + } + } + + /** + * Get called sub-templates and save call count + */ + public function _subTemplateRegister() + { + foreach ($this->compiled->includes as $name => $count) { + if (isset(self::$subTplInfo[ $name ])) { + self::$subTplInfo[ $name ] += $count; + } else { + self::$subTplInfo[ $name ] = $count; + } + } + } + + /** + * Check if this is a sub template + * + * @return bool true is sub template + */ + public function _isSubTpl() + { + return isset($this->parent) && $this->parent->_isTplObj(); + } + + /** + * Assign variable in scope + * + * @param string $varName variable name + * @param mixed $value value + * @param bool $nocache nocache flag + * @param int $scope scope into which variable shall be assigned + */ + public function _assignInScope($varName, $value, $nocache = false, $scope = 0) + { + if (isset($this->tpl_vars[ $varName ])) { + $this->tpl_vars[ $varName ] = clone $this->tpl_vars[ $varName ]; + $this->tpl_vars[ $varName ]->value = $value; + if ($nocache || $this->isRenderingCache) { + $this->tpl_vars[ $varName ]->nocache = true; + } + } else { + $this->tpl_vars[ $varName ] = new Smarty_Variable($value, $nocache || $this->isRenderingCache); + } + if ($scope >= 0) { + if ($scope > 0 || $this->scope > 0) { + $this->smarty->ext->_updateScope->_updateScope($this, $varName, $scope); + } + } + } + + /** + * Check if plugins are callable require file otherwise + * + * @param array $plugins required plugins + * + * @throws \SmartyException + */ + public function _checkPlugins($plugins) + { + static $checked = array(); + foreach ($plugins as $plugin) { + $name = join('::', (array)$plugin[ 'function' ]); + if (!isset($checked[ $name ])) { + if (!is_callable($plugin[ 'function' ])) { + if (is_file($plugin[ 'file' ])) { + include_once $plugin[ 'file' ]; + if (is_callable($plugin[ 'function' ])) { + $checked[ $name ] = true; + } + } + } else { + $checked[ $name ] = true; + } + } + if (!isset($checked[ $name ])) { + if (false !== $this->smarty->loadPlugin($name)) { + $checked[ $name ] = true; + } else { + throw new SmartyException("Plugin '{$name}' not callable"); + } + } + } + } + + /** + * This function is executed automatically when a compiled or cached template file is included + * - Decode saved properties from compiled template and cache files + * - Check if compiled or cache file is valid + * + * @param \Smarty_Internal_Template $tpl + * @param array $properties special template properties + * @param bool $cache flag if called from cache file + * + * @return bool flag if compiled or cache file is valid + * @throws \SmartyException + */ + public function _decodeProperties(Smarty_Internal_Template $tpl, $properties, $cache = false) + { + // on cache resources other than file check version stored in cache code + if (!isset($properties[ 'version' ]) || Smarty::SMARTY_VERSION !== $properties[ 'version' ]) { + if ($cache) { + $tpl->smarty->clearAllCache(); + } else { + $tpl->smarty->clearCompiledTemplate(); + } + return false; + } + $is_valid = true; + if (!empty($properties[ 'file_dependency' ]) + && ((!$cache && $tpl->compile_check) || $tpl->compile_check === Smarty::COMPILECHECK_ON) + ) { + // check file dependencies at compiled code + foreach ($properties[ 'file_dependency' ] as $_file_to_check) { + if ($_file_to_check[ 2 ] === 'file' || $_file_to_check[ 2 ] === 'php') { + if ($tpl->source->filepath === $_file_to_check[ 0 ]) { + // do not recheck current template + continue; + //$mtime = $tpl->source->getTimeStamp(); + } else { + // file and php types can be checked without loading the respective resource handlers + $mtime = is_file($_file_to_check[ 0 ]) ? filemtime($_file_to_check[ 0 ]) : false; + } + } else { + $handler = Smarty_Resource::load($tpl->smarty, $_file_to_check[ 2 ]); + if ($handler->checkTimestamps()) { + $source = Smarty_Template_Source::load($tpl, $tpl->smarty, $_file_to_check[ 0 ]); + $mtime = $source->getTimeStamp(); + } else { + continue; + } + } + if ($mtime === false || $mtime > $_file_to_check[ 1 ]) { + $is_valid = false; + break; + } + } + } + if ($cache) { + // CACHING_LIFETIME_SAVED cache expiry has to be validated here since otherwise we'd define the unifunc + if ($tpl->caching === Smarty::CACHING_LIFETIME_SAVED && $properties[ 'cache_lifetime' ] >= 0 + && (time() > ($tpl->cached->timestamp + $properties[ 'cache_lifetime' ])) + ) { + $is_valid = false; + } + $tpl->cached->cache_lifetime = $properties[ 'cache_lifetime' ]; + $tpl->cached->valid = $is_valid; + $resource = $tpl->cached; + } else { + $tpl->mustCompile = !$is_valid; + $resource = $tpl->compiled; + $resource->includes = isset($properties[ 'includes' ]) ? $properties[ 'includes' ] : array(); + } + if ($is_valid) { + $resource->unifunc = $properties[ 'unifunc' ]; + $resource->has_nocache_code = $properties[ 'has_nocache_code' ]; + // $tpl->compiled->nocache_hash = $properties['nocache_hash']; + $resource->file_dependency = $properties[ 'file_dependency' ]; + } + return $is_valid && !function_exists($properties[ 'unifunc' ]); + } + + /** + * Compiles the template + * If the template is not evaluated the compiled template is saved on disk + * + * @throws \Exception + */ + public function compileTemplateSource() + { + return $this->compiled->compileTemplateSource($this); + } + + /** + * Writes the content to cache resource + * + * @param string $content + * + * @return bool + */ + public function writeCachedContent($content) + { + return $this->smarty->ext->_updateCache->writeCachedContent($this, $content); + } + + /** + * Get unique template id + * + * @return string + * @throws \SmartyException + */ + public function _getTemplateId() + { + return isset($this->templateId) ? $this->templateId : $this->templateId = + $this->smarty->_getTemplateId($this->template_resource, $this->cache_id, $this->compile_id); + } + + /** + * runtime error not matching capture tags + * + * @throws \SmartyException + */ + public function capture_error() + { + throw new SmartyException("Not matching {capture} open/close in '{$this->template_resource}'"); + } + + /** + * Load compiled object + * + * @param bool $force force new compiled object + */ + public function loadCompiled($force = false) + { + if ($force || !isset($this->compiled)) { + $this->compiled = Smarty_Template_Compiled::load($this); + } + } + + /** + * Load cached object + * + * @param bool $force force new cached object + */ + public function loadCached($force = false) + { + if ($force || !isset($this->cached)) { + $this->cached = Smarty_Template_Cached::load($this); + } + } + + /** + * Load inheritance object + */ + public function _loadInheritance() + { + if (!isset($this->inheritance)) { + $this->inheritance = new Smarty_Internal_Runtime_Inheritance(); + } + } + + /** + * Unload inheritance object + */ + public function _cleanUp() + { + $this->startRenderCallbacks = array(); + $this->endRenderCallbacks = array(); + $this->inheritance = null; + } + + /** + * Load compiler object + * + * @throws \SmartyException + */ + public function loadCompiler() + { + if (!class_exists($this->source->compiler_class)) { + $this->smarty->loadPlugin($this->source->compiler_class); + } + $this->compiler = + new $this->source->compiler_class( + $this->source->template_lexer_class, + $this->source->template_parser_class, + $this->smarty + ); + } + + /** + * Handle unknown class methods + * + * @param string $name unknown method-name + * @param array $args argument array + * + * @return mixed + */ + public function __call($name, $args) + { + // method of Smarty object? + if (method_exists($this->smarty, $name)) { + return call_user_func_array(array($this->smarty, $name), $args); + } + // parent + return parent::__call($name, $args); + } + + /** + * get Smarty property in template context + * + * @param string $property_name property name + * + * @return mixed|Smarty_Template_Cached + * @throws SmartyException + */ + public function __get($property_name) + { + switch ($property_name) { + case 'compiled': + $this->loadCompiled(); + return $this->compiled; + case 'cached': + $this->loadCached(); + return $this->cached; + case 'compiler': + $this->loadCompiler(); + return $this->compiler; + default: + // Smarty property ? + if (property_exists($this->smarty, $property_name)) { + return $this->smarty->$property_name; + } + } + throw new SmartyException("template property '$property_name' does not exist."); + } + + /** + * set Smarty property in template context + * + * @param string $property_name property name + * @param mixed $value value + * + * @throws SmartyException + */ + public function __set($property_name, $value) + { + switch ($property_name) { + case 'compiled': + case 'cached': + case 'compiler': + $this->$property_name = $value; + return; + default: + // Smarty property ? + if (property_exists($this->smarty, $property_name)) { + $this->smarty->$property_name = $value; + return; + } + } + throw new SmartyException("invalid template property '$property_name'."); + } + + /** + * Template data object destructor + */ + public function __destruct() + { + if ($this->smarty->cache_locking && isset($this->cached) && $this->cached->is_locked) { + $this->cached->handler->releaseLock($this->smarty, $this->cached); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php new file mode 100644 index 0000000000..741a9eea6c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php @@ -0,0 +1,394 @@ +<?php +/** + * Smarty Internal Plugin Smarty Template Base + * This file contains the basic shared methods for template handling + * + * @package Smarty + * @subpackage Template + * @author Uwe Tews + */ + +/** + * Class with shared smarty/template methods + * + * @package Smarty + * @subpackage Template + * + * @property int $_objType + * + * The following methods will be dynamically loaded by the extension handler when they are called. + * They are located in a corresponding Smarty_Internal_Method_xxxx class + * + * @method Smarty_Internal_TemplateBase addAutoloadFilters(mixed $filters, string $type = null) + * @method Smarty_Internal_TemplateBase addDefaultModifiers(mixed $modifiers) + * @method Smarty_Internal_TemplateBase addLiterals(mixed $literals) + * @method Smarty_Internal_TemplateBase createData(Smarty_Internal_Data $parent = null, string $name = null) + * @method array getAutoloadFilters(string $type = null) + * @method string getDebugTemplate() + * @method array getDefaultModifier() + * @method array getLiterals() + * @method array getTags(mixed $template = null) + * @method object getRegisteredObject(string $object_name) + * @method Smarty_Internal_TemplateBase registerCacheResource(string $name, Smarty_CacheResource $resource_handler) + * @method Smarty_Internal_TemplateBase registerClass(string $class_name, string $class_impl) + * @method Smarty_Internal_TemplateBase registerDefaultConfigHandler(callback $callback) + * @method Smarty_Internal_TemplateBase registerDefaultPluginHandler(callback $callback) + * @method Smarty_Internal_TemplateBase registerDefaultTemplateHandler(callback $callback) + * @method Smarty_Internal_TemplateBase registerResource(string $name, mixed $resource_handler) + * @method Smarty_Internal_TemplateBase setAutoloadFilters(mixed $filters, string $type = null) + * @method Smarty_Internal_TemplateBase setDebugTemplate(string $tpl_name) + * @method Smarty_Internal_TemplateBase setDefaultModifiers(mixed $modifiers) + * @method Smarty_Internal_TemplateBase setLiterals(mixed $literals) + * @method Smarty_Internal_TemplateBase unloadFilter(string $type, string $name) + * @method Smarty_Internal_TemplateBase unregisterCacheResource(string $name) + * @method Smarty_Internal_TemplateBase unregisterObject(string $object_name) + * @method Smarty_Internal_TemplateBase unregisterPlugin(string $type, string $name) + * @method Smarty_Internal_TemplateBase unregisterFilter(string $type, mixed $callback) + * @method Smarty_Internal_TemplateBase unregisterResource(string $name) + */ +abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data +{ + /** + * Set this if you want different sets of cache files for the same + * templates. + * + * @var string + */ + public $cache_id = null; + + /** + * Set this if you want different sets of compiled files for the same + * templates. + * + * @var string + */ + public $compile_id = null; + + /** + * caching enabled + * + * @var int + */ + public $caching = Smarty::CACHING_OFF; + + /** + * check template for modifications? + * + * @var int + */ + public $compile_check = Smarty::COMPILECHECK_ON; + + /** + * cache lifetime in seconds + * + * @var integer + */ + public $cache_lifetime = 3600; + + /** + * Array of source information for known template functions + * + * @var array + */ + public $tplFunctions = array(); + + /** + * universal cache + * + * @var array() + */ + public $_cache = array(); + + /** + * fetches a rendered Smarty template + * + * @param string $template the resource handle of the template file or template object + * @param mixed $cache_id cache id to be used with this template + * @param mixed $compile_id compile id to be used with this template + * @param object $parent next higher level of Smarty variables + * + * @throws Exception + * @throws SmartyException + * @return string rendered template output + */ + public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null) + { + $result = $this->_execute($template, $cache_id, $compile_id, $parent, 0); + return $result === null ? ob_get_clean() : $result; + } + + /** + * displays a Smarty template + * + * @param string $template the resource handle of the template file or template object + * @param mixed $cache_id cache id to be used with this template + * @param mixed $compile_id compile id to be used with this template + * @param object $parent next higher level of Smarty variables + * + * @throws \Exception + * @throws \SmartyException + */ + public function display($template = null, $cache_id = null, $compile_id = null, $parent = null) + { + // display template + $this->_execute($template, $cache_id, $compile_id, $parent, 1); + } + + /** + * test if cache is valid + * + * @api Smarty::isCached() + * @link http://www.smarty.net/docs/en/api.is.cached.tpl + * + * @param null|string|\Smarty_Internal_Template $template the resource handle of the template file or template + * object + * @param mixed $cache_id cache id to be used with this template + * @param mixed $compile_id compile id to be used with this template + * @param object $parent next higher level of Smarty variables + * + * @return bool cache status + * @throws \Exception + * @throws \SmartyException + */ + public function isCached($template = null, $cache_id = null, $compile_id = null, $parent = null) + { + return $this->_execute($template, $cache_id, $compile_id, $parent, 2); + } + + /** + * fetches a rendered Smarty template + * + * @param string $template the resource handle of the template file or template object + * @param mixed $cache_id cache id to be used with this template + * @param mixed $compile_id compile id to be used with this template + * @param object $parent next higher level of Smarty variables + * @param string $function function type 0 = fetch, 1 = display, 2 = isCache + * + * @return mixed + * @throws \Exception + * @throws \SmartyException + */ + private function _execute($template, $cache_id, $compile_id, $parent, $function) + { + $smarty = $this->_getSmartyObj(); + $saveVars = true; + if ($template === null) { + if (!$this->_isTplObj()) { + throw new SmartyException($function . '():Missing \'$template\' parameter'); + } else { + $template = $this; + } + } elseif (is_object($template)) { + /* @var Smarty_Internal_Template $template */ + if (!isset($template->_objType) || !$template->_isTplObj()) { + throw new SmartyException($function . '():Template object expected'); + } + } else { + // get template object + $saveVars = false; + $template = $smarty->createTemplate($template, $cache_id, $compile_id, $parent ? $parent : $this, false); + if ($this->_objType === 1) { + // set caching in template object + $template->caching = $this->caching; + } + } + // make sure we have integer values + $template->caching = (int)$template->caching; + // fetch template content + $level = ob_get_level(); + try { + $_smarty_old_error_level = + isset($smarty->error_reporting) ? error_reporting($smarty->error_reporting) : null; + if ($this->_objType === 2) { + /* @var Smarty_Internal_Template $this */ + $template->tplFunctions = $this->tplFunctions; + $template->inheritance = $this->inheritance; + } + /* @var Smarty_Internal_Template $parent */ + if (isset($parent->_objType) && ($parent->_objType === 2) && !empty($parent->tplFunctions)) { + $template->tplFunctions = array_merge($parent->tplFunctions, $template->tplFunctions); + } + if ($function === 2) { + if ($template->caching) { + // return cache status of template + if (!isset($template->cached)) { + $template->loadCached(); + } + $result = $template->cached->isCached($template); + Smarty_Internal_Template::$isCacheTplObj[ $template->_getTemplateId() ] = $template; + } else { + return false; + } + } else { + if ($saveVars) { + $savedTplVars = $template->tpl_vars; + $savedConfigVars = $template->config_vars; + } + ob_start(); + $template->_mergeVars(); + if (!empty(Smarty::$global_tpl_vars)) { + $template->tpl_vars = array_merge(Smarty::$global_tpl_vars, $template->tpl_vars); + } + $result = $template->render(false, $function); + $template->_cleanUp(); + if ($saveVars) { + $template->tpl_vars = $savedTplVars; + $template->config_vars = $savedConfigVars; + } else { + if (!$function && !isset(Smarty_Internal_Template::$tplObjCache[ $template->templateId ])) { + $template->parent = null; + $template->tpl_vars = $template->config_vars = array(); + Smarty_Internal_Template::$tplObjCache[ $template->templateId ] = $template; + } + } + } + if (isset($_smarty_old_error_level)) { + error_reporting($_smarty_old_error_level); + } + return $result; + } catch (Exception $e) { // PHP 5.x specific + while (ob_get_level() > $level) { + ob_end_clean(); + } + if (isset($_smarty_old_error_level)) { + error_reporting($_smarty_old_error_level); + } + throw $e; + } catch (Throwable $e) { // For PHP ^7.0 this can also catch Errors + while (ob_get_level() > $level) { + ob_end_clean(); + } + if (isset($_smarty_old_error_level)) { + error_reporting($_smarty_old_error_level); + } + throw $e; + } + } + + /** + * Registers plugin to be used in templates + * + * @api Smarty::registerPlugin() + * @link http://www.smarty.net/docs/en/api.register.plugin.tpl + * + * @param string $type plugin type + * @param string $name name of template tag + * @param callable $callback PHP callback to register + * @param bool $cacheable if true (default) this function is cache able + * @param mixed $cache_attr caching attributes if any + * + * @return \Smarty|\Smarty_Internal_Template + * @throws \SmartyException + */ + public function registerPlugin($type, $name, $callback, $cacheable = true, $cache_attr = null) + { + return $this->ext->registerPlugin->registerPlugin($this, $type, $name, $callback, $cacheable, $cache_attr); + } + + /** + * load a filter of specified type and name + * + * @api Smarty::loadFilter() + * @link http://www.smarty.net/docs/en/api.load.filter.tpl + * + * @param string $type filter type + * @param string $name filter name + * + * @return bool + * @throws \SmartyException + */ + public function loadFilter($type, $name) + { + return $this->ext->loadFilter->loadFilter($this, $type, $name); + } + + /** + * Registers a filter function + * + * @api Smarty::registerFilter() + * @link http://www.smarty.net/docs/en/api.register.filter.tpl + * + * @param string $type filter type + * @param callable $callback + * @param string|null $name optional filter name + * + * @return \Smarty|\Smarty_Internal_Template + * @throws \SmartyException + */ + public function registerFilter($type, $callback, $name = null) + { + return $this->ext->registerFilter->registerFilter($this, $type, $callback, $name); + } + + /** + * Registers object to be used in templates + * + * @api Smarty::registerObject() + * @link http://www.smarty.net/docs/en/api.register.object.tpl + * + * @param string $object_name + * @param object $object the referenced PHP object to register + * @param array $allowed_methods_properties list of allowed methods (empty = all) + * @param bool $format smarty argument format, else traditional + * @param array $block_methods list of block-methods + * + * @return \Smarty|\Smarty_Internal_Template + * @throws \SmartyException + */ + public function registerObject( + $object_name, + $object, + $allowed_methods_properties = array(), + $format = true, + $block_methods = array() + ) { + return $this->ext->registerObject->registerObject( + $this, + $object_name, + $object, + $allowed_methods_properties, + $format, + $block_methods + ); + } + + /** + * @param int $compile_check + */ + public function setCompileCheck($compile_check) + { + $this->compile_check = (int)$compile_check; + } + + /** + * @param int $caching + */ + public function setCaching($caching) + { + $this->caching = (int)$caching; + } + + /** + * @param int $cache_lifetime + */ + public function setCacheLifetime($cache_lifetime) + { + $this->cache_lifetime = $cache_lifetime; + } + + /** + * @param string $compile_id + */ + public function setCompileId($compile_id) + { + $this->compile_id = $compile_id; + } + + /** + * @param string $cache_id + */ + public function setCacheId($cache_id) + { + $this->cache_id = $cache_id; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php new file mode 100644 index 0000000000..b4e270c188 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php @@ -0,0 +1,1764 @@ +<?php +/** + * Smarty Internal Plugin Smarty Template Compiler Base + * This file contains the basic classes and methods for compiling Smarty templates with lexer/parser + * + * @package Smarty + * @subpackage Compiler + * @author Uwe Tews + */ + +/** + * Main abstract compiler class + * + * @package Smarty + * @subpackage Compiler + * + * @property Smarty_Internal_SmartyTemplateCompiler $prefixCompiledCode = '' + * @property Smarty_Internal_SmartyTemplateCompiler $postfixCompiledCode = '' + * @method registerPostCompileCallback($callback, $parameter = array(), $key = null, $replace = false) + * @method unregisterPostCompileCallback($key) + */ +abstract class Smarty_Internal_TemplateCompilerBase +{ + /** + * compile tag objects cache + * + * @var array + */ + public static $_tag_objects = array(); + + /** + * counter for prefix variable number + * + * @var int + */ + public static $prefixVariableNumber = 0; + + /** + * Smarty object + * + * @var Smarty + */ + public $smarty = null; + + /** + * Parser object + * + * @var Smarty_Internal_Templateparser + */ + public $parser = null; + + /** + * hash for nocache sections + * + * @var mixed + */ + public $nocache_hash = null; + + /** + * suppress generation of nocache code + * + * @var bool + */ + public $suppressNocacheProcessing = false; + + /** + * caching enabled (copied from template object) + * + * @var int + */ + public $caching = 0; + + /** + * tag stack + * + * @var array + */ + public $_tag_stack = array(); + + /** + * tag stack count + * + * @var array + */ + public $_tag_stack_count = array(); + + /** + * Plugins used by template + * + * @var array + */ + public $required_plugins = array('compiled' => array(), 'nocache' => array()); + + /** + * Required plugins stack + * + * @var array + */ + public $required_plugins_stack = array(); + + /** + * current template + * + * @var Smarty_Internal_Template + */ + public $template = null; + + /** + * merged included sub template data + * + * @var array + */ + public $mergedSubTemplatesData = array(); + + /** + * merged sub template code + * + * @var array + */ + public $mergedSubTemplatesCode = array(); + + /** + * collected template properties during compilation + * + * @var array + */ + public $templateProperties = array(); + + /** + * source line offset for error messages + * + * @var int + */ + public $trace_line_offset = 0; + + /** + * trace uid + * + * @var string + */ + public $trace_uid = ''; + + /** + * trace file path + * + * @var string + */ + public $trace_filepath = ''; + + /** + * stack for tracing file and line of nested {block} tags + * + * @var array + */ + public $trace_stack = array(); + + /** + * plugins loaded by default plugin handler + * + * @var array + */ + public $default_handler_plugins = array(); + + /** + * saved preprocessed modifier list + * + * @var mixed + */ + public $default_modifier_list = null; + + /** + * force compilation of complete template as nocache + * + * @var boolean + */ + public $forceNocache = false; + + /** + * flag if compiled template file shall we written + * + * @var bool + */ + public $write_compiled_code = true; + + /** + * Template functions + * + * @var array + */ + public $tpl_function = array(); + + /** + * called sub functions from template function + * + * @var array + */ + public $called_functions = array(); + + /** + * compiled template or block function code + * + * @var string + */ + public $blockOrFunctionCode = ''; + + /** + * php_handling setting either from Smarty or security + * + * @var int + */ + public $php_handling = 0; + + /** + * flags for used modifier plugins + * + * @var array + */ + public $modifier_plugins = array(); + + /** + * type of already compiled modifier + * + * @var array + */ + public $known_modifier_type = array(); + + /** + * parent compiler object for merged subtemplates and template functions + * + * @var Smarty_Internal_TemplateCompilerBase + */ + public $parent_compiler = null; + + /** + * Flag true when compiling nocache section + * + * @var bool + */ + public $nocache = false; + + /** + * Flag true when tag is compiled as nocache + * + * @var bool + */ + public $tag_nocache = false; + + /** + * Compiled tag prefix code + * + * @var array + */ + public $prefix_code = array(); + + /** + * used prefix variables by current compiled tag + * + * @var array + */ + public $usedPrefixVariables = array(); + + /** + * Prefix code stack + * + * @var array + */ + public $prefixCodeStack = array(); + + /** + * Tag has compiled code + * + * @var bool + */ + public $has_code = false; + + /** + * A variable string was compiled + * + * @var bool + */ + public $has_variable_string = false; + + /** + * Stack for {setfilter} {/setfilter} + * + * @var array + */ + public $variable_filter_stack = array(); + + /** + * variable filters for {setfilter} {/setfilter} + * + * @var array + */ + public $variable_filters = array(); + + /** + * Nesting count of looping tags like {foreach}, {for}, {section}, {while} + * + * @var int + */ + public $loopNesting = 0; + + /** + * Strip preg pattern + * + * @var string + */ + public $stripRegEx = '![\t ]*[\r\n]+[\t ]*!'; + + /** + * plugin search order + * + * @var array + */ + public $plugin_search_order = array( + 'function', + 'block', + 'compiler', + 'class' + ); + + /** + * General storage area for tag compiler plugins + * + * @var array + */ + public $_cache = array(); + + /** + * Lexer preg pattern for left delimiter + * + * @var string + */ + private $ldelPreg = '[{]'; + + /** + * Lexer preg pattern for right delimiter + * + * @var string + */ + private $rdelPreg = '[}]'; + + /** + * Length of right delimiter + * + * @var int + */ + private $rdelLength = 0; + + /** + * Length of left delimiter + * + * @var int + */ + private $ldelLength = 0; + + /** + * Lexer preg pattern for user literals + * + * @var string + */ + private $literalPreg = ''; + + /** + * Initialize compiler + * + * @param Smarty $smarty global instance + */ + public function __construct(Smarty $smarty) + { + $this->smarty = $smarty; + $this->nocache_hash = str_replace( + array( + '.', + ',' + ), + '_', + uniqid(mt_rand(), true) + ); + } + + /** + * Method to compile a Smarty template + * + * @param Smarty_Internal_Template $template template object to compile + * @param bool $nocache true is shall be compiled in nocache mode + * @param null|Smarty_Internal_TemplateCompilerBase $parent_compiler + * + * @return bool true if compiling succeeded, false if it failed + * @throws \Exception + */ + public function compileTemplate( + Smarty_Internal_Template $template, + $nocache = null, + Smarty_Internal_TemplateCompilerBase $parent_compiler = null + ) { + // get code frame of compiled template + $_compiled_code = $template->smarty->ext->_codeFrame->create( + $template, + $this->compileTemplateSource( + $template, + $nocache, + $parent_compiler + ), + $this->postFilter($this->blockOrFunctionCode) . + join('', $this->mergedSubTemplatesCode), + false, + $this + ); + return $_compiled_code; + } + + /** + * Compile template source and run optional post filter + * + * @param \Smarty_Internal_Template $template + * @param null|bool $nocache flag if template must be compiled in nocache mode + * @param \Smarty_Internal_TemplateCompilerBase $parent_compiler + * + * @return string + * @throws \Exception + */ + public function compileTemplateSource( + Smarty_Internal_Template $template, + $nocache = null, + Smarty_Internal_TemplateCompilerBase $parent_compiler = null + ) { + try { + // save template object in compiler class + $this->template = $template; + if (property_exists($this->template->smarty, 'plugin_search_order')) { + $this->plugin_search_order = $this->template->smarty->plugin_search_order; + } + if ($this->smarty->debugging) { + if (!isset($this->smarty->_debug)) { + $this->smarty->_debug = new Smarty_Internal_Debug(); + } + $this->smarty->_debug->start_compile($this->template); + } + if (isset($this->template->smarty->security_policy)) { + $this->php_handling = $this->template->smarty->security_policy->php_handling; + } else { + $this->php_handling = $this->template->smarty->php_handling; + } + $this->parent_compiler = $parent_compiler ? $parent_compiler : $this; + $nocache = isset($nocache) ? $nocache : false; + if (empty($template->compiled->nocache_hash)) { + $template->compiled->nocache_hash = $this->nocache_hash; + } else { + $this->nocache_hash = $template->compiled->nocache_hash; + } + $this->caching = $template->caching; + // flag for nocache sections + $this->nocache = $nocache; + $this->tag_nocache = false; + // reset has nocache code flag + $this->template->compiled->has_nocache_code = false; + $this->has_variable_string = false; + $this->prefix_code = array(); + // add file dependency + if ($this->smarty->merge_compiled_includes || $this->template->source->handler->checkTimestamps()) { + $this->parent_compiler->template->compiled->file_dependency[ $this->template->source->uid ] = + array( + $this->template->source->filepath, + $this->template->source->getTimeStamp(), + $this->template->source->type, + ); + } + $this->smarty->_current_file = $this->template->source->filepath; + // get template source + if (!empty($this->template->source->components)) { + // we have array of inheritance templates by extends: resource + // generate corresponding source code sequence + $_content = + Smarty_Internal_Compile_Extends::extendsSourceArrayCode($this->template); + } else { + // get template source + $_content = $this->template->source->getContent(); + } + $_compiled_code = $this->postFilter($this->doCompile($this->preFilter($_content), true)); + if (!empty($this->required_plugins[ 'compiled' ]) || !empty($this->required_plugins[ 'nocache' ])) { + $_compiled_code = '<?php ' . $this->compileRequiredPlugins() . "?>\n" . $_compiled_code; + } + } catch (Exception $e) { + if ($this->smarty->debugging) { + $this->smarty->_debug->end_compile($this->template); + } + $this->_tag_stack = array(); + // free memory + $this->parent_compiler = null; + $this->template = null; + $this->parser = null; + throw $e; + } + if ($this->smarty->debugging) { + $this->smarty->_debug->end_compile($this->template); + } + $this->parent_compiler = null; + $this->parser = null; + return $_compiled_code; + } + + /** + * Optionally process compiled code by post filter + * + * @param string $code compiled code + * + * @return string + * @throws \SmartyException + */ + public function postFilter($code) + { + // run post filter if on code + if (!empty($code) + && (isset($this->smarty->autoload_filters[ 'post' ]) || isset($this->smarty->registered_filters[ 'post' ])) + ) { + return $this->smarty->ext->_filterHandler->runFilter('post', $code, $this->template); + } else { + return $code; + } + } + + /** + * Run optional prefilter + * + * @param string $_content template source + * + * @return string + * @throws \SmartyException + */ + public function preFilter($_content) + { + // run pre filter if required + if ($_content !== '' + && ((isset($this->smarty->autoload_filters[ 'pre' ]) || isset($this->smarty->registered_filters[ 'pre' ]))) + ) { + return $this->smarty->ext->_filterHandler->runFilter('pre', $_content, $this->template); + } else { + return $_content; + } + } + + /** + * Compile Tag + * This is a call back from the lexer/parser + * + * Save current prefix code + * Compile tag + * Merge tag prefix code with saved one + * (required nested tags in attributes) + * + * @param string $tag tag name + * @param array $args array with tag attributes + * @param array $parameter array with compilation parameter + * + * @throws SmartyCompilerException + * @throws SmartyException + * @return string compiled code + */ + public function compileTag($tag, $args, $parameter = array()) + { + $this->prefixCodeStack[] = $this->prefix_code; + $this->prefix_code = array(); + $result = $this->compileTag2($tag, $args, $parameter); + $this->prefix_code = array_merge($this->prefix_code, array_pop($this->prefixCodeStack)); + return $result; + } + + /** + * compile variable + * + * @param string $variable + * + * @return string + */ + public function compileVariable($variable) + { + if (!strpos($variable, '(')) { + // not a variable variable + $var = trim($variable, '\''); + $this->tag_nocache = $this->tag_nocache | + $this->template->ext->getTemplateVars->_getVariable( + $this->template, + $var, + null, + true, + false + )->nocache; + // todo $this->template->compiled->properties['variables'][$var] = $this->tag_nocache | $this->nocache; + } + return '$_smarty_tpl->tpl_vars[' . $variable . ']->value'; + } + + /** + * compile config variable + * + * @param string $variable + * + * @return string + */ + public function compileConfigVariable($variable) + { + // return '$_smarty_tpl->config_vars[' . $variable . ']'; + return '$_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, ' . $variable . ')'; + } + + /** + * compile PHP function call + * + * @param string $name + * @param array $parameter + * + * @return string + * @throws \SmartyCompilerException + */ + public function compilePHPFunctionCall($name, $parameter) + { + if (!$this->smarty->security_policy || $this->smarty->security_policy->isTrustedPhpFunction($name, $this)) { + if (strcasecmp($name, 'isset') === 0 || strcasecmp($name, 'empty') === 0 + || strcasecmp($name, 'array') === 0 || is_callable($name) + ) { + $func_name = strtolower($name); + + if ($func_name === 'isset') { + if (count($parameter) === 0) { + $this->trigger_template_error('Illegal number of parameter in "isset()"'); + } + + $pa = array(); + foreach ($parameter as $p) { + $pa[] = $this->syntaxMatchesVariable($p) ? 'isset(' . $p . ')' : '(' . $p . ' !== null )'; + } + return '(' . implode(' && ', $pa) . ')'; + + } elseif (in_array( + $func_name, + array( + 'empty', + 'reset', + 'current', + 'end', + 'prev', + 'next' + ) + ) + ) { + if (count($parameter) !== 1) { + $this->trigger_template_error("Illegal number of parameter in '{$func_name()}'"); + } + if ($func_name === 'empty') { + if (!$this->syntaxMatchesVariable($parameter[0]) && version_compare(PHP_VERSION, '5.5.0', '<')) { + return '(' . $parameter[ 0 ] . ' === false )'; + } else { + return $func_name . '(' . + str_replace("')->value", "',null,true,false)->value", $parameter[ 0 ]) . ')'; + } + } else { + return $func_name . '(' . $parameter[ 0 ] . ')'; + } + } else { + return $name . '(' . implode(',', $parameter) . ')'; + } + } else { + $this->trigger_template_error("unknown function '{$name}'"); + } + } + } + + /** + * Determines whether the passed string represents a valid (PHP) variable. + * This is important, because `isset()` only works on variables and `empty()` can only be passed + * a variable prior to php5.5 + * @param $string + * @return bool + */ + private function syntaxMatchesVariable($string) { + static $regex_pattern = '/^\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*((->)[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|\[.*]*\])*$/'; + return 1 === preg_match($regex_pattern, trim($string)); + } + + /** + * This method is called from parser to process a text content section if strip is enabled + * - remove text from inheritance child templates as they may generate output + * + * @param string $text + * + * @return string + */ + public function processText($text) + { + + if (strpos($text, '<') === false) { + return preg_replace($this->stripRegEx, '', $text); + } + + $store = array(); + $_store = 0; + + // capture html elements not to be messed with + $_offset = 0; + if (preg_match_all( + '#(<script[^>]*>.*?</script[^>]*>)|(<textarea[^>]*>.*?</textarea[^>]*>)|(<pre[^>]*>.*?</pre[^>]*>)#is', + $text, + $matches, + PREG_OFFSET_CAPTURE | PREG_SET_ORDER + ) + ) { + foreach ($matches as $match) { + $store[] = $match[ 0 ][ 0 ]; + $_length = strlen($match[ 0 ][ 0 ]); + $replace = '@!@SMARTY:' . $_store . ':SMARTY@!@'; + $text = substr_replace($text, $replace, $match[ 0 ][ 1 ] - $_offset, $_length); + $_offset += $_length - strlen($replace); + $_store++; + } + } + $expressions = array(// replace multiple spaces between tags by a single space + '#(:SMARTY@!@|>)[\040\011]+(?=@!@SMARTY:|<)#s' => '\1 \2', + // remove newline between tags + '#(:SMARTY@!@|>)[\040\011]*[\n]\s*(?=@!@SMARTY:|<)#s' => '\1\2', + // remove multiple spaces between attributes (but not in attribute values!) + '#(([a-z0-9]\s*=\s*("[^"]*?")|(\'[^\']*?\'))|<[a-z0-9_]+)\s+([a-z/>])#is' => '\1 \5', + '#>[\040\011]+$#Ss' => '> ', + '#>[\040\011]*[\n]\s*$#Ss' => '>', + $this->stripRegEx => '', + ); + $text = preg_replace(array_keys($expressions), array_values($expressions), $text); + $_offset = 0; + if (preg_match_all( + '#@!@SMARTY:([0-9]+):SMARTY@!@#is', + $text, + $matches, + PREG_OFFSET_CAPTURE | PREG_SET_ORDER + ) + ) { + foreach ($matches as $match) { + $_length = strlen($match[ 0 ][ 0 ]); + $replace = $store[ $match[ 1 ][ 0 ] ]; + $text = substr_replace($text, $replace, $match[ 0 ][ 1 ] + $_offset, $_length); + $_offset += strlen($replace) - $_length; + $_store++; + } + } + return $text; + } + + /** + * lazy loads internal compile plugin for tag and calls the compile method + * compile objects cached for reuse. + * class name format: Smarty_Internal_Compile_TagName + * plugin filename format: Smarty_Internal_TagName.php + * + * @param string $tag tag name + * @param array $args list of tag attributes + * @param mixed $param1 optional parameter + * @param mixed $param2 optional parameter + * @param mixed $param3 optional parameter + * + * @return bool|string compiled code or false + * @throws \SmartyCompilerException + */ + public function callTagCompiler($tag, $args, $param1 = null, $param2 = null, $param3 = null) + { + /* @var Smarty_Internal_CompileBase $tagCompiler */ + $tagCompiler = $this->getTagCompiler($tag); + // compile this tag + return $tagCompiler === false ? false : $tagCompiler->compile($args, $this, $param1, $param2, $param3); + } + + /** + * lazy loads internal compile plugin for tag compile objects cached for reuse. + * + * class name format: Smarty_Internal_Compile_TagName + * plugin filename format: Smarty_Internal_TagName.php + * + * @param string $tag tag name + * + * @return bool|\Smarty_Internal_CompileBase tag compiler object or false if not found + */ + public function getTagCompiler($tag) + { + // re-use object if already exists + if (!isset(self::$_tag_objects[ $tag ])) { + // lazy load internal compiler plugin + $_tag = explode('_', $tag); + $_tag = array_map('ucfirst', $_tag); + $class_name = 'Smarty_Internal_Compile_' . implode('_', $_tag); + if (class_exists($class_name) + && (!isset($this->smarty->security_policy) || $this->smarty->security_policy->isTrustedTag($tag, $this)) + ) { + self::$_tag_objects[ $tag ] = new $class_name; + } else { + self::$_tag_objects[ $tag ] = false; + } + } + return self::$_tag_objects[ $tag ]; + } + + /** + * Check for plugins and return function name + * + * @param $plugin_name + * @param string $plugin_type type of plugin + * + * @return string call name of function + * @throws \SmartyException + */ + public function getPlugin($plugin_name, $plugin_type) + { + $function = null; + if ($this->caching && ($this->nocache || $this->tag_nocache)) { + if (isset($this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ])) { + $function = + $this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ][ 'function' ]; + } elseif (isset($this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ])) { + $this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ] = + $this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ]; + $function = + $this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ][ 'function' ]; + } + } else { + if (isset($this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ])) { + $function = + $this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ][ 'function' ]; + } elseif (isset($this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ])) { + $this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ] = + $this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ]; + $function = + $this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ][ 'function' ]; + } + } + if (isset($function)) { + if ($plugin_type === 'modifier') { + $this->modifier_plugins[ $plugin_name ] = true; + } + return $function; + } + // loop through plugin dirs and find the plugin + $function = 'smarty_' . $plugin_type . '_' . $plugin_name; + $file = $this->smarty->loadPlugin($function, false); + if (is_string($file)) { + if ($this->caching && ($this->nocache || $this->tag_nocache)) { + $this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ][ 'file' ] = + $file; + $this->required_plugins[ 'nocache' ][ $plugin_name ][ $plugin_type ][ 'function' ] = + $function; + } else { + $this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ][ 'file' ] = + $file; + $this->required_plugins[ 'compiled' ][ $plugin_name ][ $plugin_type ][ 'function' ] = + $function; + } + if ($plugin_type === 'modifier') { + $this->modifier_plugins[ $plugin_name ] = true; + } + return $function; + } + if (is_callable($function)) { + // plugin function is defined in the script + return $function; + } + return false; + } + + /** + * Check for plugins by default plugin handler + * + * @param string $tag name of tag + * @param string $plugin_type type of plugin + * + * @return bool true if found + * @throws \SmartyCompilerException + */ + public function getPluginFromDefaultHandler($tag, $plugin_type) + { + $callback = null; + $script = null; + $cacheable = true; + $result = call_user_func_array( + $this->smarty->default_plugin_handler_func, + array( + $tag, + $plugin_type, + $this->template, + &$callback, + &$script, + &$cacheable, + ) + ); + if ($result) { + $this->tag_nocache = $this->tag_nocache || !$cacheable; + if ($script !== null) { + if (is_file($script)) { + if ($this->caching && ($this->nocache || $this->tag_nocache)) { + $this->required_plugins[ 'nocache' ][ $tag ][ $plugin_type ][ 'file' ] = + $script; + $this->required_plugins[ 'nocache' ][ $tag ][ $plugin_type ][ 'function' ] = + $callback; + } else { + $this->required_plugins[ 'compiled' ][ $tag ][ $plugin_type ][ 'file' ] = + $script; + $this->required_plugins[ 'compiled' ][ $tag ][ $plugin_type ][ 'function' ] = + $callback; + } + include_once $script; + } else { + $this->trigger_template_error("Default plugin handler: Returned script file '{$script}' for '{$tag}' not found"); + } + } + if (is_callable($callback)) { + $this->default_handler_plugins[ $plugin_type ][ $tag ] = array( + $callback, + true, + array() + ); + return true; + } else { + $this->trigger_template_error("Default plugin handler: Returned callback for '{$tag}' not callable"); + } + } + return false; + } + + /** + * Append code segments and remove unneeded ?> <?php transitions + * + * @param string $left + * @param string $right + * + * @return string + */ + public function appendCode($left, $right) + { + if (preg_match('/\s*\?>\s?$/D', $left) && preg_match('/^<\?php\s+/', $right)) { + $left = preg_replace('/\s*\?>\s?$/D', "\n", $left); + $left .= preg_replace('/^<\?php\s+/', '', $right); + } else { + $left .= $right; + } + return $left; + } + + /** + * Inject inline code for nocache template sections + * This method gets the content of each template element from the parser. + * If the content is compiled code and it should be not cached the code is injected + * into the rendered output. + * + * @param string $content content of template element + * @param boolean $is_code true if content is compiled code + * + * @return string content + */ + public function processNocacheCode($content, $is_code) + { + // If the template is not evaluated and we have a nocache section and or a nocache tag + if ($is_code && !empty($content)) { + // generate replacement code + if ((!($this->template->source->handler->recompiled) || $this->forceNocache) && $this->caching + && !$this->suppressNocacheProcessing && ($this->nocache || $this->tag_nocache) + ) { + $this->template->compiled->has_nocache_code = true; + $_output = addcslashes($content, '\'\\'); + $_output = str_replace('^#^', '\'', $_output); + $_output = + "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/{$_output}/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>\n"; + // make sure we include modifier plugins for nocache code + foreach ($this->modifier_plugins as $plugin_name => $dummy) { + if (isset($this->required_plugins[ 'compiled' ][ $plugin_name ][ 'modifier' ])) { + $this->required_plugins[ 'nocache' ][ $plugin_name ][ 'modifier' ] = + $this->required_plugins[ 'compiled' ][ $plugin_name ][ 'modifier' ]; + } + } + } else { + $_output = $content; + } + } else { + $_output = $content; + } + $this->modifier_plugins = array(); + $this->suppressNocacheProcessing = false; + $this->tag_nocache = false; + return $_output; + } + + /** + * Get Id + * + * @param string $input + * + * @return bool|string + */ + public function getId($input) + { + if (preg_match('~^([\'"]*)([0-9]*[a-zA-Z_]\w*)\1$~', $input, $match)) { + return $match[ 2 ]; + } + return false; + } + + /** + * Get variable name from string + * + * @param string $input + * + * @return bool|string + */ + public function getVariableName($input) + { + if (preg_match('~^[$]_smarty_tpl->tpl_vars\[[\'"]*([0-9]*[a-zA-Z_]\w*)[\'"]*\]->value$~', $input, $match)) { + return $match[ 1 ]; + } + return false; + } + + /** + * Set nocache flag in variable or create new variable + * + * @param string $varName + */ + public function setNocacheInVariable($varName) + { + // create nocache var to make it know for further compiling + if ($_var = $this->getId($varName)) { + if (isset($this->template->tpl_vars[ $_var ])) { + $this->template->tpl_vars[ $_var ] = clone $this->template->tpl_vars[ $_var ]; + $this->template->tpl_vars[ $_var ]->nocache = true; + } else { + $this->template->tpl_vars[ $_var ] = new Smarty_Variable(null, true); + } + } + } + + /** + * @param array $_attr tag attributes + * @param array $validScopes + * + * @return int|string + * @throws \SmartyCompilerException + */ + public function convertScope($_attr, $validScopes) + { + $_scope = 0; + if (isset($_attr[ 'scope' ])) { + $_scopeName = trim($_attr[ 'scope' ], '\'"'); + if (is_numeric($_scopeName) && in_array($_scopeName, $validScopes)) { + $_scope = $_scopeName; + } elseif (is_string($_scopeName)) { + $_scopeName = trim($_scopeName, '\'"'); + $_scope = isset($validScopes[ $_scopeName ]) ? $validScopes[ $_scopeName ] : false; + } else { + $_scope = false; + } + if ($_scope === false) { + $err = var_export($_scopeName, true); + $this->trigger_template_error("illegal value '{$err}' for \"scope\" attribute", null, true); + } + } + return $_scope; + } + + /** + * Generate nocache code string + * + * @param string $code PHP code + * + * @return string + */ + public function makeNocacheCode($code) + { + return "echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/<?php " . + str_replace('^#^', '\'', addcslashes($code, '\'\\')) . + "?>/*/%%SmartyNocache:{$this->nocache_hash}%%*/';\n"; + } + + /** + * display compiler error messages without dying + * If parameter $args is empty it is a parser detected syntax error. + * In this case the parser is called to obtain information about expected tokens. + * If parameter $args contains a string this is used as error message + * + * @param string $args individual error message or null + * @param string $line line-number + * @param null|bool $tagline if true the line number of last tag + * + * @throws \SmartyCompilerException when an unexpected token is found + */ + public function trigger_template_error($args = null, $line = null, $tagline = null) + { + $lex = $this->parser->lex; + if ($tagline === true) { + // get line number of Tag + $line = $lex->taglineno; + } elseif (!isset($line)) { + // get template source line which has error + $line = $lex->line; + } else { + $line = (int)$line; + } + if (in_array( + $this->template->source->type, + array( + 'eval', + 'string' + ) + ) + ) { + $templateName = $this->template->source->type . ':' . trim( + preg_replace( + '![\t\r\n]+!', + ' ', + strlen($lex->data) > 40 ? + substr($lex->data, 0, 40) . + '...' : $lex->data + ) + ); + } else { + $templateName = $this->template->source->type . ':' . $this->template->source->filepath; + } + // $line += $this->trace_line_offset; + $match = preg_split("/\n/", $lex->data); + $error_text = + 'Syntax error in template "' . (empty($this->trace_filepath) ? $templateName : $this->trace_filepath) . + '" on line ' . ($line + $this->trace_line_offset) . ' "' . + trim(preg_replace('![\t\r\n]+!', ' ', $match[ $line - 1 ])) . '" '; + if (isset($args)) { + // individual error message + $error_text .= $args; + } else { + $expect = array(); + // expected token from parser + $error_text .= ' - Unexpected "' . $lex->value . '"'; + if (count($this->parser->yy_get_expected_tokens($this->parser->yymajor)) <= 4) { + foreach ($this->parser->yy_get_expected_tokens($this->parser->yymajor) as $token) { + $exp_token = $this->parser->yyTokenName[ $token ]; + if (isset($lex->smarty_token_names[ $exp_token ])) { + // token type from lexer + $expect[] = '"' . $lex->smarty_token_names[ $exp_token ] . '"'; + } else { + // otherwise internal token name + $expect[] = $this->parser->yyTokenName[ $token ]; + } + } + $error_text .= ', expected one of: ' . implode(' , ', $expect); + } + } + if ($this->smarty->_parserdebug) { + $this->parser->errorRunDown(); + echo ob_get_clean(); + flush(); + } + $e = new SmartyCompilerException($error_text); + $e->line = $line; + $e->source = trim(preg_replace('![\t\r\n]+!', ' ', $match[ $line - 1 ])); + $e->desc = $args; + $e->template = $this->template->source->filepath; + throw $e; + } + + /** + * Return var_export() value with all white spaces removed + * + * @param mixed $value + * + * @return string + */ + public function getVarExport($value) + { + return preg_replace('/\s/', '', var_export($value, true)); + } + + /** + * enter double quoted string + * - save tag stack count + */ + public function enterDoubleQuote() + { + array_push($this->_tag_stack_count, $this->getTagStackCount()); + } + + /** + * Return tag stack count + * + * @return int + */ + public function getTagStackCount() + { + return count($this->_tag_stack); + } + + /** + * @param $lexerPreg + * + * @return mixed + */ + public function replaceDelimiter($lexerPreg) + { + return str_replace( + array('SMARTYldel', 'SMARTYliteral', 'SMARTYrdel', 'SMARTYautoliteral', 'SMARTYal'), + array( + $this->ldelPreg, $this->literalPreg, $this->rdelPreg, + $this->smarty->getAutoLiteral() ? '{1,}' : '{9}', + $this->smarty->getAutoLiteral() ? '' : '\\s*' + ), + $lexerPreg + ); + } + + /** + * Build lexer regular expressions for left and right delimiter and user defined literals + */ + public function initDelimiterPreg() + { + $ldel = $this->smarty->getLeftDelimiter(); + $this->ldelLength = strlen($ldel); + $this->ldelPreg = ''; + foreach (str_split($ldel, 1) as $chr) { + $this->ldelPreg .= '[' . preg_quote($chr,'/') . ']'; + } + $rdel = $this->smarty->getRightDelimiter(); + $this->rdelLength = strlen($rdel); + $this->rdelPreg = ''; + foreach (str_split($rdel, 1) as $chr) { + $this->rdelPreg .= '[' . preg_quote($chr,'/') . ']'; + } + $literals = $this->smarty->getLiterals(); + if (!empty($literals)) { + foreach ($literals as $key => $literal) { + $literalPreg = ''; + foreach (str_split($literal, 1) as $chr) { + $literalPreg .= '[' . preg_quote($chr,'/') . ']'; + } + $literals[ $key ] = $literalPreg; + } + $this->literalPreg = '|' . implode('|', $literals); + } else { + $this->literalPreg = ''; + } + } + + /** + * leave double quoted string + * - throw exception if block in string was not closed + * + * @throws \SmartyCompilerException + */ + public function leaveDoubleQuote() + { + if (array_pop($this->_tag_stack_count) !== $this->getTagStackCount()) { + $tag = $this->getOpenBlockTag(); + $this->trigger_template_error( + "unclosed '{{$tag}}' in doubled quoted string", + null, + true + ); + } + } + + /** + * Get left delimiter preg + * + * @return string + */ + public function getLdelPreg() + { + return $this->ldelPreg; + } + + /** + * Get right delimiter preg + * + * @return string + */ + public function getRdelPreg() + { + return $this->rdelPreg; + } + + /** + * Get length of left delimiter + * + * @return int + */ + public function getLdelLength() + { + return $this->ldelLength; + } + + /** + * Get length of right delimiter + * + * @return int + */ + public function getRdelLength() + { + return $this->rdelLength; + } + + /** + * Get name of current open block tag + * + * @return string|boolean + */ + public function getOpenBlockTag() + { + $tagCount = $this->getTagStackCount(); + if ($tagCount) { + return $this->_tag_stack[ $tagCount - 1 ][ 0 ]; + } else { + return false; + } + } + + /** + * Check if $value contains variable elements + * + * @param mixed $value + * + * @return bool|int + */ + public function isVariable($value) + { + if (is_string($value)) { + return preg_match('/[$(]/', $value); + } + if (is_bool($value) || is_numeric($value)) { + return false; + } + if (is_array($value)) { + foreach ($value as $k => $v) { + if ($this->isVariable($k) || $this->isVariable($v)) { + return true; + } + } + return false; + } + return false; + } + + /** + * Get new prefix variable name + * + * @return string + */ + public function getNewPrefixVariable() + { + ++self::$prefixVariableNumber; + return $this->getPrefixVariable(); + } + + /** + * Get current prefix variable name + * + * @return string + */ + public function getPrefixVariable() + { + return '$_prefixVariable' . self::$prefixVariableNumber; + } + + /** + * append code to prefix buffer + * + * @param string $code + */ + public function appendPrefixCode($code) + { + $this->prefix_code[] = $code; + } + + /** + * get prefix code string + * + * @return string + */ + public function getPrefixCode() + { + $code = ''; + $prefixArray = array_merge($this->prefix_code, array_pop($this->prefixCodeStack)); + $this->prefixCodeStack[] = array(); + foreach ($prefixArray as $c) { + $code = $this->appendCode($code, $c); + } + $this->prefix_code = array(); + return $code; + } + + /** + * Save current required plugins + * + * @param bool $init if true init required plugins + */ + public function saveRequiredPlugins($init = false) + { + $this->required_plugins_stack[] = $this->required_plugins; + if ($init) { + $this->required_plugins = array('compiled' => array(), 'nocache' => array()); + } + } + + /** + * Restore required plugins + */ + public function restoreRequiredPlugins() + { + $this->required_plugins = array_pop($this->required_plugins_stack); + } + + /** + * Compile code to call Smarty_Internal_Template::_checkPlugins() + * for required plugins + * + * @return string + */ + public function compileRequiredPlugins() + { + $code = $this->compileCheckPlugins($this->required_plugins[ 'compiled' ]); + if ($this->caching && !empty($this->required_plugins[ 'nocache' ])) { + $code .= $this->makeNocacheCode($this->compileCheckPlugins($this->required_plugins[ 'nocache' ])); + } + return $code; + } + + /** + * Compile code to call Smarty_Internal_Template::_checkPlugins + * - checks if plugin is callable require otherwise + * + * @param $requiredPlugins + * + * @return string + */ + public function compileCheckPlugins($requiredPlugins) + { + if (!empty($requiredPlugins)) { + $plugins = array(); + foreach ($requiredPlugins as $plugin) { + foreach ($plugin as $data) { + $plugins[] = $data; + } + } + return '$_smarty_tpl->_checkPlugins(' . $this->getVarExport($plugins) . ');' . "\n"; + } else { + return ''; + } + } + + /** + * method to compile a Smarty template + * + * @param mixed $_content template source + * @param bool $isTemplateSource + * + * @return bool true if compiling succeeded, false if it failed + */ + abstract protected function doCompile($_content, $isTemplateSource = false); + + public function cStyleComment($string) { + return '/*' . str_replace('*/', '* /' , $string) . '*/'; + } + + /** + * Compile Tag + * + * @param string $tag tag name + * @param array $args array with tag attributes + * @param array $parameter array with compilation parameter + * + * @throws SmartyCompilerException + * @throws SmartyException + * @return string compiled code + */ + private function compileTag2($tag, $args, $parameter) + { + $plugin_type = ''; + // $args contains the attributes parsed and compiled by the lexer/parser + // assume that tag does compile into code, but creates no HTML output + $this->has_code = true; + // log tag/attributes + if (isset($this->smarty->_cache[ 'get_used_tags' ])) { + $this->template->_cache[ 'used_tags' ][] = array( + $tag, + $args + ); + } + // check nocache option flag + foreach ($args as $arg) { + if (!is_array($arg)) { + if ($arg === "'nocache'" || $arg === 'nocache') { + $this->tag_nocache = true; + } + } else { + foreach ($arg as $k => $v) { + if (($k === "'nocache'" || $k === 'nocache') && (trim($v, "'\" ") === 'true')) { + $this->tag_nocache = true; + } + } + } + } + // compile the smarty tag (required compile classes to compile the tag are auto loaded) + if (($_output = $this->callTagCompiler($tag, $args, $parameter)) === false) { + if (isset($this->parent_compiler->tpl_function[ $tag ]) + || (isset($this->template->smarty->ext->_tplFunction) + && $this->template->smarty->ext->_tplFunction->getTplFunction($this->template, $tag) !== false) + ) { + // template defined by {template} tag + $args[ '_attr' ][ 'name' ] = "'{$tag}'"; + $_output = $this->callTagCompiler('call', $args, $parameter); + } + } + if ($_output !== false) { + if ($_output !== true) { + // did we get compiled code + if ($this->has_code) { + // return compiled code + return $_output; + } + } + // tag did not produce compiled code + return null; + } else { + // map_named attributes + if (isset($args[ '_attr' ])) { + foreach ($args[ '_attr' ] as $key => $attribute) { + if (is_array($attribute)) { + $args = array_merge($args, $attribute); + } + } + } + // not an internal compiler tag + if (strlen($tag) < 6 || substr($tag, -5) !== 'close') { + // check if tag is a registered object + if (isset($this->smarty->registered_objects[ $tag ]) && isset($parameter[ 'object_method' ])) { + $method = $parameter[ 'object_method' ]; + if (!in_array($method, $this->smarty->registered_objects[ $tag ][ 3 ]) + && (empty($this->smarty->registered_objects[ $tag ][ 1 ]) + || in_array($method, $this->smarty->registered_objects[ $tag ][ 1 ])) + ) { + return $this->callTagCompiler('private_object_function', $args, $parameter, $tag, $method); + } elseif (in_array($method, $this->smarty->registered_objects[ $tag ][ 3 ])) { + return $this->callTagCompiler( + 'private_object_block_function', + $args, + $parameter, + $tag, + $method + ); + } else { + // throw exception + $this->trigger_template_error( + 'not allowed method "' . $method . '" in registered object "' . + $tag . '"', + null, + true + ); + } + } + // check if tag is registered + foreach (array( + Smarty::PLUGIN_COMPILER, + Smarty::PLUGIN_FUNCTION, + Smarty::PLUGIN_BLOCK, + ) as $plugin_type) { + if (isset($this->smarty->registered_plugins[ $plugin_type ][ $tag ])) { + // if compiler function plugin call it now + if ($plugin_type === Smarty::PLUGIN_COMPILER) { + $new_args = array(); + foreach ($args as $key => $mixed) { + if (is_array($mixed)) { + $new_args = array_merge($new_args, $mixed); + } else { + $new_args[ $key ] = $mixed; + } + } + if (!$this->smarty->registered_plugins[ $plugin_type ][ $tag ][ 1 ]) { + $this->tag_nocache = true; + } + return call_user_func_array( + $this->smarty->registered_plugins[ $plugin_type ][ $tag ][ 0 ], + array( + $new_args, + $this + ) + ); + } + // compile registered function or block function + if ($plugin_type === Smarty::PLUGIN_FUNCTION || $plugin_type === Smarty::PLUGIN_BLOCK) { + return $this->callTagCompiler( + 'private_registered_' . $plugin_type, + $args, + $parameter, + $tag + ); + } + } + } + // check plugins from plugins folder + foreach ($this->plugin_search_order as $plugin_type) { + if ($plugin_type === Smarty::PLUGIN_COMPILER + && $this->smarty->loadPlugin('smarty_compiler_' . $tag) + && (!isset($this->smarty->security_policy) + || $this->smarty->security_policy->isTrustedTag($tag, $this)) + ) { + $plugin = 'smarty_compiler_' . $tag; + if (is_callable($plugin)) { + // convert arguments format for old compiler plugins + $new_args = array(); + foreach ($args as $key => $mixed) { + if (is_array($mixed)) { + $new_args = array_merge($new_args, $mixed); + } else { + $new_args[ $key ] = $mixed; + } + } + return $plugin($new_args, $this->smarty); + } + if (class_exists($plugin, false)) { + $plugin_object = new $plugin; + if (method_exists($plugin_object, 'compile')) { + return $plugin_object->compile($args, $this); + } + } + throw new SmartyException("Plugin '{$tag}' not callable"); + } else { + if ($function = $this->getPlugin($tag, $plugin_type)) { + if (!isset($this->smarty->security_policy) + || $this->smarty->security_policy->isTrustedTag($tag, $this) + ) { + return $this->callTagCompiler( + 'private_' . $plugin_type . '_plugin', + $args, + $parameter, + $tag, + $function + ); + } + } + } + } + if (is_callable($this->smarty->default_plugin_handler_func)) { + $found = false; + // look for already resolved tags + foreach ($this->plugin_search_order as $plugin_type) { + if (isset($this->default_handler_plugins[ $plugin_type ][ $tag ])) { + $found = true; + break; + } + } + if (!$found) { + // call default handler + foreach ($this->plugin_search_order as $plugin_type) { + if ($this->getPluginFromDefaultHandler($tag, $plugin_type)) { + $found = true; + break; + } + } + } + if ($found) { + // if compiler function plugin call it now + if ($plugin_type === Smarty::PLUGIN_COMPILER) { + $new_args = array(); + foreach ($args as $key => $mixed) { + if (is_array($mixed)) { + $new_args = array_merge($new_args, $mixed); + } else { + $new_args[ $key ] = $mixed; + } + } + return call_user_func_array( + $this->default_handler_plugins[ $plugin_type ][ $tag ][ 0 ], + array( + $new_args, + $this + ) + ); + } else { + return $this->callTagCompiler( + 'private_registered_' . $plugin_type, + $args, + $parameter, + $tag + ); + } + } + } + } else { + // compile closing tag of block function + $base_tag = substr($tag, 0, -5); + // check if closing tag is a registered object + if (isset($this->smarty->registered_objects[ $base_tag ]) && isset($parameter[ 'object_method' ])) { + $method = $parameter[ 'object_method' ]; + if (in_array($method, $this->smarty->registered_objects[ $base_tag ][ 3 ])) { + return $this->callTagCompiler( + 'private_object_block_function', + $args, + $parameter, + $tag, + $method + ); + } else { + // throw exception + $this->trigger_template_error( + 'not allowed closing tag method "' . $method . + '" in registered object "' . $base_tag . '"', + null, + true + ); + } + } + // registered block tag ? + if (isset($this->smarty->registered_plugins[ Smarty::PLUGIN_BLOCK ][ $base_tag ]) + || isset($this->default_handler_plugins[ Smarty::PLUGIN_BLOCK ][ $base_tag ]) + ) { + return $this->callTagCompiler('private_registered_block', $args, $parameter, $tag); + } + // registered function tag ? + if (isset($this->smarty->registered_plugins[ Smarty::PLUGIN_FUNCTION ][ $tag ])) { + return $this->callTagCompiler('private_registered_function', $args, $parameter, $tag); + } + // block plugin? + if ($function = $this->getPlugin($base_tag, Smarty::PLUGIN_BLOCK)) { + return $this->callTagCompiler('private_block_plugin', $args, $parameter, $tag, $function); + } + // function plugin? + if ($function = $this->getPlugin($tag, Smarty::PLUGIN_FUNCTION)) { + if (!isset($this->smarty->security_policy) + || $this->smarty->security_policy->isTrustedTag($tag, $this) + ) { + return $this->callTagCompiler('private_function_plugin', $args, $parameter, $tag, $function); + } + } + // registered compiler plugin ? + if (isset($this->smarty->registered_plugins[ Smarty::PLUGIN_COMPILER ][ $tag ])) { + // if compiler function plugin call it now + $args = array(); + if (!$this->smarty->registered_plugins[ Smarty::PLUGIN_COMPILER ][ $tag ][ 1 ]) { + $this->tag_nocache = true; + } + return call_user_func_array( + $this->smarty->registered_plugins[ Smarty::PLUGIN_COMPILER ][ $tag ][ 0 ], + array( + $args, + $this + ) + ); + } + if ($this->smarty->loadPlugin('smarty_compiler_' . $tag)) { + $plugin = 'smarty_compiler_' . $tag; + if (is_callable($plugin)) { + return $plugin($args, $this->smarty); + } + if (class_exists($plugin, false)) { + $plugin_object = new $plugin; + if (method_exists($plugin_object, 'compile')) { + return $plugin_object->compile($args, $this); + } + } + throw new SmartyException("Plugin '{$tag}' not callable"); + } + } + $this->trigger_template_error("unknown tag '{$tag}'", null, true); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatelexer.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatelexer.php new file mode 100644 index 0000000000..867a31d264 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatelexer.php @@ -0,0 +1,1095 @@ +<?php +/* + * This file is part of Smarty. + * + * (c) 2015 Uwe Tews + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * Smarty_Internal_Templatelexer + * This is the template file lexer. + * It is generated from the smarty_internal_templatelexer.plex file + * + * + * @author Uwe Tews <uwe.tews@googlemail.com> + */ +class Smarty_Internal_Templatelexer +{ + const TEXT = 1; + const TAG = 2; + const TAGBODY = 3; + const LITERAL = 4; + const DOUBLEQUOTEDSTRING = 5; + + /** + * Source + * + * @var string + */ + public $data; + + /** + * Source length + * + * @var int + */ + public $dataLength = null; + + /** + * byte counter + * + * @var int + */ + public $counter; + + /** + * token number + * + * @var int + */ + public $token; + + /** + * token value + * + * @var string + */ + public $value; + + /** + * current line + * + * @var int + */ + public $line; + + /** + * tag start line + * + * @var + */ + public $taglineno; + + /** + * php code type + * + * @var string + */ + public $phpType = ''; + + /** + * state number + * + * @var int + */ + public $state = 1; + + /** + * Smarty object + * + * @var Smarty + */ + public $smarty = null; + + /** + * compiler object + * + * @var Smarty_Internal_TemplateCompilerBase + */ + public $compiler = null; + + /** + * trace file + * + * @var resource + */ + public $yyTraceFILE; + + /** + * trace prompt + * + * @var string + */ + public $yyTracePrompt; + + /** + * XML flag true while processing xml + * + * @var bool + */ + public $is_xml = false; + + /** + * state names + * + * @var array + */ + public $state_name = array(1 => 'TEXT', 2 => 'TAG', 3 => 'TAGBODY', 4 => 'LITERAL', 5 => 'DOUBLEQUOTEDSTRING',); + + /** + * token names + * + * @var array + */ + public $smarty_token_names = array( // Text for parser error messages + 'NOT' => '(!,not)', + 'OPENP' => '(', + 'CLOSEP' => ')', + 'OPENB' => '[', + 'CLOSEB' => ']', + 'PTR' => '->', + 'APTR' => '=>', + 'EQUAL' => '=', + 'NUMBER' => 'number', + 'UNIMATH' => '+" , "-', + 'MATH' => '*" , "/" , "%', + 'INCDEC' => '++" , "--', + 'SPACE' => ' ', + 'DOLLAR' => '$', + 'SEMICOLON' => ';', + 'COLON' => ':', + 'DOUBLECOLON' => '::', + 'AT' => '@', + 'HATCH' => '#', + 'QUOTE' => '"', + 'BACKTICK' => '`', + 'VERT' => '"|" modifier', + 'DOT' => '.', + 'COMMA' => '","', + 'QMARK' => '"?"', + 'ID' => 'id, name', + 'TEXT' => 'text', + 'LDELSLASH' => '{/..} closing tag', + 'LDEL' => '{...} Smarty tag', + 'COMMENT' => 'comment', + 'AS' => 'as', + 'TO' => 'to', + 'PHP' => '"<?php", "<%", "{php}" tag', + 'LOGOP' => '"<", "==" ... logical operator', + 'TLOGOP' => '"lt", "eq" ... logical operator; "is div by" ... if condition', + 'SCOND' => '"is even" ... if condition', + ); + + /** + * literal tag nesting level + * + * @var int + */ + private $literal_cnt = 0; + + /** + * preg token pattern for state TEXT + * + * @var string + */ + private $yy_global_pattern1 = null; + + /** + * preg token pattern for state TAG + * + * @var string + */ + private $yy_global_pattern2 = null; + + /** + * preg token pattern for state TAGBODY + * + * @var string + */ + private $yy_global_pattern3 = null; + + /** + * preg token pattern for state LITERAL + * + * @var string + */ + private $yy_global_pattern4 = null; + + /** + * preg token pattern for state DOUBLEQUOTEDSTRING + * + * @var null + */ + private $yy_global_pattern5 = null; + + /** + * preg token pattern for text + * + * @var null + */ + private $yy_global_text = null; + + /** + * preg token pattern for literal + * + * @var null + */ + private $yy_global_literal = null; + + private $_yy_state = 1; + + private $_yy_stack = array(); + + /** + * constructor + * + * @param string $source template source + * @param Smarty_Internal_TemplateCompilerBase $compiler + */ + public function __construct($source, Smarty_Internal_TemplateCompilerBase $compiler) + { + $this->data = $source; + $this->dataLength = strlen($this->data); + $this->counter = 0; + if (preg_match('/^\xEF\xBB\xBF/i', $this->data, $match)) { + $this->counter += strlen($match[ 0 ]); + } + $this->line = 1; + $this->smarty = $compiler->template->smarty; + $this->compiler = $compiler; + $this->compiler->initDelimiterPreg(); + $this->smarty_token_names[ 'LDEL' ] = $this->smarty->getLeftDelimiter(); + $this->smarty_token_names[ 'RDEL' ] = $this->smarty->getRightDelimiter(); + } + + /** + * open lexer/parser trace file + * + */ + public function PrintTrace() + { + $this->yyTraceFILE = fopen('php://output', 'w'); + $this->yyTracePrompt = '<br>'; + } + + /** + * replace placeholders with runtime preg code + * + * @param string $preg + * + * @return string + */ + public function replace($preg) + { + return $this->compiler->replaceDelimiter($preg); + } + + /** + * check if current value is an autoliteral left delimiter + * + * @return bool + */ + public function isAutoLiteral() + { + return $this->smarty->getAutoLiteral() && isset($this->value[ $this->compiler->getLdelLength() ]) ? + strpos(" \n\t\r", $this->value[ $this->compiler->getLdelLength() ]) !== false : false; + } // end function + + public function yylex() + { + return $this->{'yylex' . $this->_yy_state}(); + } + + public function yypushstate($state) + { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sState push %s\n", $this->yyTracePrompt, + isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state); + } + array_push($this->_yy_stack, $this->_yy_state); + $this->_yy_state = $state; + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%snew State %s\n", $this->yyTracePrompt, + isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state); + } + } + + public function yypopstate() + { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sState pop %s\n", $this->yyTracePrompt, + isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state); + } + $this->_yy_state = array_pop($this->_yy_stack); + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%snew State %s\n", $this->yyTracePrompt, + isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state); + } + } + + public function yybegin($state) + { + $this->_yy_state = $state; + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sState set %s\n", $this->yyTracePrompt, + isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : $this->_yy_state); + } + } + + public function yylex1() + { + if (!isset($this->yy_global_pattern1)) { + $this->yy_global_pattern1 = + $this->replace("/\G([{][}])|\G((SMARTYldel)SMARTYal[*])|\G((SMARTYldel)SMARTYalphp([ ].*?)?SMARTYrdel|(SMARTYldel)SMARTYal[\/]phpSMARTYrdel)|\G((SMARTYldel)SMARTYautoliteral\\s+SMARTYliteral)|\G((SMARTYldel)SMARTYalliteral\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal[\/]literal\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal)|\G([<][?]((php\\s+|=)|\\s+)|[<][%]|[<][?]xml\\s+|[<]script\\s+language\\s*=\\s*[\"']?\\s*php\\s*[\"']?\\s*[>]|[?][>]|[%][>])|\G([\S\s])/isS"); + } + if (!isset($this->dataLength)) { + $this->dataLength = strlen($this->data); + } + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + do { + if (preg_match($this->yy_global_pattern1, $this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][ 1 ])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); + } else { + $yymatches = array_filter($yymatches); + } + if (empty($yymatches)) { + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr($this->data, + $this->counter, 5) . '... state TEXT'); + } + next($yymatches); // skip global match + $this->token = key($yymatches); // token number + $this->value = current($yymatches); // token value + $r = $this->{'yy_r1_' . $this->token}(); + if ($r === null) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + // accept this token + return true; + } elseif ($r === true) { + // we have changed state + // process this token in the new state + return $this->yylex(); + } elseif ($r === false) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + // skip this token + continue; + } + } else { + throw new Exception('Unexpected input at line ' . $this->line . + ': ' . $this->data[ $this->counter ]); + } + break; + } while (true); + } + + public function yy_r1_1() + { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + + public function yy_r1_2() + { + $to = $this->dataLength; + preg_match("/[*]{$this->compiler->getRdelPreg()}[\n]?/", $this->data, $match, PREG_OFFSET_CAPTURE, + $this->counter); + if (isset($match[ 0 ][ 1 ])) { + $to = $match[ 0 ][ 1 ] + strlen($match[ 0 ][ 0 ]); + } else { + $this->compiler->trigger_template_error("missing or misspelled comment closing tag '{$this->smarty->getRightDelimiter()}'"); + } + $this->value = substr($this->data, $this->counter, $to - $this->counter); + return false; + } + + public function yy_r1_4() + { + $this->compiler->getTagCompiler('private_php')->parsePhp($this); + } + + public function yy_r1_8() + { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + + public function yy_r1_10() + { + $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; + $this->yypushstate(self::LITERAL); + } + + public function yy_r1_12() + { + $this->token = Smarty_Internal_Templateparser::TP_LITERALEND; + $this->yypushstate(self::LITERAL); + } // end function + + public function yy_r1_14() + { + $this->yypushstate(self::TAG); + return true; + } + + public function yy_r1_16() + { + $this->compiler->getTagCompiler('private_php')->parsePhp($this); + } + + public function yy_r1_19() + { + if (!isset($this->yy_global_text)) { + $this->yy_global_text = + $this->replace('/(SMARTYldel)SMARTYal|[<][?]((php\s+|=)|\s+)|[<][%]|[<][?]xml\s+|[<]script\s+language\s*=\s*["\']?\s*php\s*["\']?\s*[>]|[?][>]|[%][>]SMARTYliteral/isS'); + } + $to = $this->dataLength; + preg_match($this->yy_global_text, $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); + if (isset($match[ 0 ][ 1 ])) { + $to = $match[ 0 ][ 1 ]; + } + $this->value = substr($this->data, $this->counter, $to - $this->counter); + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + + public function yylex2() + { + if (!isset($this->yy_global_pattern2)) { + $this->yy_global_pattern2 = + $this->replace("/\G((SMARTYldel)SMARTYal(if|elseif|else if|while)\\s+)|\G((SMARTYldel)SMARTYalfor\\s+)|\G((SMARTYldel)SMARTYalforeach(?![^\s]))|\G((SMARTYldel)SMARTYalsetfilter\\s+)|\G((SMARTYldel)SMARTYalmake_nocache\\s+)|\G((SMARTYldel)SMARTYal[0-9]*[a-zA-Z_]\\w*(\\s+nocache)?\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal[$]smarty\\.block\\.(child|parent)\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal[\/][0-9]*[a-zA-Z_]\\w*\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal[$][0-9]*[a-zA-Z_]\\w*(\\s+nocache)?\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal[\/])|\G((SMARTYldel)SMARTYal)/isS"); + } + if (!isset($this->dataLength)) { + $this->dataLength = strlen($this->data); + } + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + do { + if (preg_match($this->yy_global_pattern2, $this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][ 1 ])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); + } else { + $yymatches = array_filter($yymatches); + } + if (empty($yymatches)) { + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr($this->data, + $this->counter, 5) . '... state TAG'); + } + next($yymatches); // skip global match + $this->token = key($yymatches); // token number + $this->value = current($yymatches); // token value + $r = $this->{'yy_r2_' . $this->token}(); + if ($r === null) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + // accept this token + return true; + } elseif ($r === true) { + // we have changed state + // process this token in the new state + return $this->yylex(); + } elseif ($r === false) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + // skip this token + continue; + } + } else { + throw new Exception('Unexpected input at line ' . $this->line . + ': ' . $this->data[ $this->counter ]); + } + break; + } while (true); + } + + public function yy_r2_1() + { + $this->token = Smarty_Internal_Templateparser::TP_LDELIF; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + + public function yy_r2_4() + { + $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + + public function yy_r2_6() + { + $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + + public function yy_r2_8() + { + $this->token = Smarty_Internal_Templateparser::TP_LDELSETFILTER; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + + public function yy_r2_10() + { + $this->token = Smarty_Internal_Templateparser::TP_LDELMAKENOCACHE; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + + public function yy_r2_12() + { + $this->yypopstate(); + $this->token = Smarty_Internal_Templateparser::TP_SIMPLETAG; + $this->taglineno = $this->line; + } + + public function yy_r2_15() + { + $this->yypopstate(); + $this->token = Smarty_Internal_Templateparser::TP_SMARTYBLOCKCHILDPARENT; + $this->taglineno = $this->line; + } + + public function yy_r2_18() + { + $this->yypopstate(); + $this->token = Smarty_Internal_Templateparser::TP_CLOSETAG; + $this->taglineno = $this->line; + } + + public function yy_r2_20() + { + if ($this->_yy_stack[ count($this->_yy_stack) - 1 ] === self::TEXT) { + $this->yypopstate(); + $this->token = Smarty_Internal_Templateparser::TP_SIMPELOUTPUT; + $this->taglineno = $this->line; + } else { + $this->value = $this->smarty->getLeftDelimiter(); + $this->token = Smarty_Internal_Templateparser::TP_LDEL; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + } // end function + + public function yy_r2_23() + { + $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + + public function yy_r2_25() + { + $this->token = Smarty_Internal_Templateparser::TP_LDEL; + $this->yybegin(self::TAGBODY); + $this->taglineno = $this->line; + } + + public function yylex3() + { + if (!isset($this->yy_global_pattern3)) { + $this->yy_global_pattern3 = + $this->replace("/\G(\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal)|\G([\"])|\G('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|\G([$][0-9]*[a-zA-Z_]\\w*)|\G([$])|\G(\\s+is\\s+in\\s+)|\G(\\s+as\\s+)|\G(\\s+to\\s+)|\G(\\s+step\\s+)|\G(\\s+instanceof\\s+)|\G(\\s*([!=][=]{1,2}|[<][=>]?|[>][=]?|[&|]{2})\\s*)|\G(\\s+(eq|ne|neq|gt|ge|gte|lt|le|lte|mod|and|or|xor)\\s+)|\G(\\s+is\\s+(not\\s+)?(odd|even|div)\\s+by\\s+)|\G(\\s+is\\s+(not\\s+)?(odd|even))|\G([!]\\s*|not\\s+)|\G([(](int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)[)]\\s*)|\G(\\s*[(]\\s*)|\G(\\s*[)])|\G(\\[\\s*)|\G(\\s*\\])|\G(\\s*[-][>]\\s*)|\G(\\s*[=][>]\\s*)|\G(\\s*[=]\\s*)|\G(([+]|[-]){2})|\G(\\s*([+]|[-])\\s*)|\G(\\s*([*]{1,2}|[%\/^&]|[<>]{2})\\s*)|\G([@])|\G(array\\s*[(]\\s*)|\G([#])|\G(\\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\\s*[=]\\s*)|\G(([0-9]*[a-zA-Z_]\\w*)?(\\\\[0-9]*[a-zA-Z_]\\w*)+)|\G([0-9]*[a-zA-Z_]\\w*)|\G(\\d+)|\G([`])|\G([|][@]?)|\G([.])|\G(\\s*[,]\\s*)|\G(\\s*[;]\\s*)|\G([:]{2})|\G(\\s*[:]\\s*)|\G(\\s*[?]\\s*)|\G(0[xX][0-9a-fA-F]+)|\G(\\s+)|\G([\S\s])/isS"); + } + if (!isset($this->dataLength)) { + $this->dataLength = strlen($this->data); + } + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + do { + if (preg_match($this->yy_global_pattern3, $this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][ 1 ])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); + } else { + $yymatches = array_filter($yymatches); + } + if (empty($yymatches)) { + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr($this->data, + $this->counter, 5) . '... state TAGBODY'); + } + next($yymatches); // skip global match + $this->token = key($yymatches); // token number + $this->value = current($yymatches); // token value + $r = $this->{'yy_r3_' . $this->token}(); + if ($r === null) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + // accept this token + return true; + } elseif ($r === true) { + // we have changed state + // process this token in the new state + return $this->yylex(); + } elseif ($r === false) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + // skip this token + continue; + } + } else { + throw new Exception('Unexpected input at line ' . $this->line . + ': ' . $this->data[ $this->counter ]); + } + break; + } while (true); + } + + public function yy_r3_1() + { + $this->token = Smarty_Internal_Templateparser::TP_RDEL; + $this->yypopstate(); + } + + public function yy_r3_2() + { + $this->yypushstate(self::TAG); + return true; + } + + public function yy_r3_4() + { + $this->token = Smarty_Internal_Templateparser::TP_QUOTE; + $this->yypushstate(self::DOUBLEQUOTEDSTRING); + $this->compiler->enterDoubleQuote(); + } + + public function yy_r3_5() + { + $this->token = Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING; + } + + public function yy_r3_6() + { + $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; + } + + public function yy_r3_7() + { + $this->token = Smarty_Internal_Templateparser::TP_DOLLAR; + } + + public function yy_r3_8() + { + $this->token = Smarty_Internal_Templateparser::TP_ISIN; + } + + public function yy_r3_9() + { + $this->token = Smarty_Internal_Templateparser::TP_AS; + } + + public function yy_r3_10() + { + $this->token = Smarty_Internal_Templateparser::TP_TO; + } + + public function yy_r3_11() + { + $this->token = Smarty_Internal_Templateparser::TP_STEP; + } + + public function yy_r3_12() + { + $this->token = Smarty_Internal_Templateparser::TP_INSTANCEOF; + } + + public function yy_r3_13() + { + $this->token = Smarty_Internal_Templateparser::TP_LOGOP; + } + + public function yy_r3_15() + { + $this->token = Smarty_Internal_Templateparser::TP_SLOGOP; + } + + public function yy_r3_17() + { + $this->token = Smarty_Internal_Templateparser::TP_TLOGOP; + } + + public function yy_r3_20() + { + $this->token = Smarty_Internal_Templateparser::TP_SINGLECOND; + } + + public function yy_r3_23() + { + $this->token = Smarty_Internal_Templateparser::TP_NOT; + } + + public function yy_r3_24() + { + $this->token = Smarty_Internal_Templateparser::TP_TYPECAST; + } + + public function yy_r3_28() + { + $this->token = Smarty_Internal_Templateparser::TP_OPENP; + } + + public function yy_r3_29() + { + $this->token = Smarty_Internal_Templateparser::TP_CLOSEP; + } + + public function yy_r3_30() + { + $this->token = Smarty_Internal_Templateparser::TP_OPENB; + } + + public function yy_r3_31() + { + $this->token = Smarty_Internal_Templateparser::TP_CLOSEB; + } + + public function yy_r3_32() + { + $this->token = Smarty_Internal_Templateparser::TP_PTR; + } + + public function yy_r3_33() + { + $this->token = Smarty_Internal_Templateparser::TP_APTR; + } + + public function yy_r3_34() + { + $this->token = Smarty_Internal_Templateparser::TP_EQUAL; + } + + public function yy_r3_35() + { + $this->token = Smarty_Internal_Templateparser::TP_INCDEC; + } + + public function yy_r3_37() + { + $this->token = Smarty_Internal_Templateparser::TP_UNIMATH; + } + + public function yy_r3_39() + { + $this->token = Smarty_Internal_Templateparser::TP_MATH; + } + + public function yy_r3_41() + { + $this->token = Smarty_Internal_Templateparser::TP_AT; + } + + public function yy_r3_42() + { + $this->token = Smarty_Internal_Templateparser::TP_ARRAYOPEN; + } + + public function yy_r3_43() + { + $this->token = Smarty_Internal_Templateparser::TP_HATCH; + } + + public function yy_r3_44() + { + // resolve conflicts with shorttag and right_delimiter starting with '=' + if (substr($this->data, $this->counter + strlen($this->value) - 1, $this->compiler->getRdelLength()) === + $this->smarty->getRightDelimiter()) { + preg_match('/\s+/', $this->value, $match); + $this->value = $match[ 0 ]; + $this->token = Smarty_Internal_Templateparser::TP_SPACE; + } else { + $this->token = Smarty_Internal_Templateparser::TP_ATTR; + } + } + + public function yy_r3_45() + { + $this->token = Smarty_Internal_Templateparser::TP_NAMESPACE; + } + + public function yy_r3_48() + { + $this->token = Smarty_Internal_Templateparser::TP_ID; + } + + public function yy_r3_49() + { + $this->token = Smarty_Internal_Templateparser::TP_INTEGER; + } + + public function yy_r3_50() + { + $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; + $this->yypopstate(); + } + + public function yy_r3_51() + { + $this->token = Smarty_Internal_Templateparser::TP_VERT; + } + + public function yy_r3_52() + { + $this->token = Smarty_Internal_Templateparser::TP_DOT; + } + + public function yy_r3_53() + { + $this->token = Smarty_Internal_Templateparser::TP_COMMA; + } + + public function yy_r3_54() + { + $this->token = Smarty_Internal_Templateparser::TP_SEMICOLON; + } + + public function yy_r3_55() + { + $this->token = Smarty_Internal_Templateparser::TP_DOUBLECOLON; + } + + public function yy_r3_56() + { + $this->token = Smarty_Internal_Templateparser::TP_COLON; + } + + public function yy_r3_57() + { + $this->token = Smarty_Internal_Templateparser::TP_QMARK; + } + + public function yy_r3_58() + { + $this->token = Smarty_Internal_Templateparser::TP_HEX; + } + + public function yy_r3_59() + { + $this->token = Smarty_Internal_Templateparser::TP_SPACE; + } // end function + + public function yy_r3_60() + { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + + public function yylex4() + { + if (!isset($this->yy_global_pattern4)) { + $this->yy_global_pattern4 = + $this->replace("/\G((SMARTYldel)SMARTYalliteral\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal[\/]literal\\s*SMARTYrdel)|\G([\S\s])/isS"); + } + if (!isset($this->dataLength)) { + $this->dataLength = strlen($this->data); + } + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + do { + if (preg_match($this->yy_global_pattern4, $this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][ 1 ])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); + } else { + $yymatches = array_filter($yymatches); + } + if (empty($yymatches)) { + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr($this->data, + $this->counter, 5) . '... state LITERAL'); + } + next($yymatches); // skip global match + $this->token = key($yymatches); // token number + $this->value = current($yymatches); // token value + $r = $this->{'yy_r4_' . $this->token}(); + if ($r === null) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + // accept this token + return true; + } elseif ($r === true) { + // we have changed state + // process this token in the new state + return $this->yylex(); + } elseif ($r === false) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + // skip this token + continue; + } + } else { + throw new Exception('Unexpected input at line ' . $this->line . + ': ' . $this->data[ $this->counter ]); + } + break; + } while (true); + } + + public function yy_r4_1() + { + $this->literal_cnt++; + $this->token = Smarty_Internal_Templateparser::TP_LITERAL; + } + + public function yy_r4_3() + { + if ($this->literal_cnt) { + $this->literal_cnt--; + $this->token = Smarty_Internal_Templateparser::TP_LITERAL; + } else { + $this->token = Smarty_Internal_Templateparser::TP_LITERALEND; + $this->yypopstate(); + } + } + + public function yy_r4_5() + { + if (!isset($this->yy_global_literal)) { + $this->yy_global_literal = $this->replace('/(SMARTYldel)SMARTYal[\/]?literalSMARTYrdel/isS'); + } + $to = $this->dataLength; + preg_match($this->yy_global_literal, $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); + if (isset($match[ 0 ][ 1 ])) { + $to = $match[ 0 ][ 1 ]; + } else { + $this->compiler->trigger_template_error("missing or misspelled literal closing tag"); + } + $this->value = substr($this->data, $this->counter, $to - $this->counter); + $this->token = Smarty_Internal_Templateparser::TP_LITERAL; + } // end function + + public function yylex5() + { + if (!isset($this->yy_global_pattern5)) { + $this->yy_global_pattern5 = + $this->replace("/\G((SMARTYldel)SMARTYautoliteral\\s+SMARTYliteral)|\G((SMARTYldel)SMARTYalliteral\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal[\/]literal\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal[\/])|\G((SMARTYldel)SMARTYal[0-9]*[a-zA-Z_]\\w*)|\G((SMARTYldel)SMARTYal)|\G([\"])|\G([`][$])|\G([$][0-9]*[a-zA-Z_]\\w*)|\G([$])|\G(([^\"\\\\]*?)((?:\\\\.[^\"\\\\]*?)*?)(?=((SMARTYldel)SMARTYal|\\$|`\\$|\"SMARTYliteral)))|\G([\S\s])/isS"); + } + if (!isset($this->dataLength)) { + $this->dataLength = strlen($this->data); + } + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + do { + if (preg_match($this->yy_global_pattern5, $this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][ 1 ])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); + } else { + $yymatches = array_filter($yymatches); + } + if (empty($yymatches)) { + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr($this->data, + $this->counter, 5) . '... state DOUBLEQUOTEDSTRING'); + } + next($yymatches); // skip global match + $this->token = key($yymatches); // token number + $this->value = current($yymatches); // token value + $r = $this->{'yy_r5_' . $this->token}(); + if ($r === null) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + // accept this token + return true; + } elseif ($r === true) { + // we have changed state + // process this token in the new state + return $this->yylex(); + } elseif ($r === false) { + $this->counter += strlen($this->value); + $this->line += substr_count($this->value, "\n"); + if ($this->counter >= $this->dataLength) { + return false; // end of input + } + // skip this token + continue; + } + } else { + throw new Exception('Unexpected input at line ' . $this->line . + ': ' . $this->data[ $this->counter ]); + } + break; + } while (true); + } + + public function yy_r5_1() + { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + + public function yy_r5_3() + { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + + public function yy_r5_5() + { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + + public function yy_r5_7() + { + $this->yypushstate(self::TAG); + return true; + } + + public function yy_r5_9() + { + $this->yypushstate(self::TAG); + return true; + } + + public function yy_r5_11() + { + $this->token = Smarty_Internal_Templateparser::TP_LDEL; + $this->taglineno = $this->line; + $this->yypushstate(self::TAGBODY); + } + + public function yy_r5_13() + { + $this->token = Smarty_Internal_Templateparser::TP_QUOTE; + $this->yypopstate(); + } + + public function yy_r5_14() + { + $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; + $this->value = substr($this->value, 0, -1); + $this->yypushstate(self::TAGBODY); + $this->taglineno = $this->line; + } + + public function yy_r5_15() + { + $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; + } + + public function yy_r5_16() + { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + + public function yy_r5_17() + { + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } + + public function yy_r5_22() + { + $to = $this->dataLength; + $this->value = substr($this->data, $this->counter, $to - $this->counter); + $this->token = Smarty_Internal_Templateparser::TP_TEXT; + } +} + + diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php new file mode 100644 index 0000000000..7c8735cfd3 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php @@ -0,0 +1,3627 @@ +<?php + +class TP_yyStackEntry +{ + public $stateno; /* The state-number */ + public $major; /* The major token value. This is the code + ** number for the token at this stack level */ + public $minor; /* The user-supplied minor token value. This + ** is the value of the token */ +} + +// line 11 "../smarty/lexer/smarty_internal_templateparser.y" + +/** + * Smarty Template Parser Class + * + * This is the template parser. + * It is generated from the smarty_internal_templateparser.y file + * + * @author Uwe Tews <uwe.tews@googlemail.com> + */ +class Smarty_Internal_Templateparser +{ + // line 23 "../smarty/lexer/smarty_internal_templateparser.y" + const ERR1 = 'Security error: Call to private object member not allowed'; + const ERR2 = 'Security error: Call to dynamic object member not allowed'; + const ERR3 = 'PHP in template not allowed. Use SmartyBC to enable it'; + const TP_VERT = 1; + const TP_COLON = 2; + const TP_PHP = 3; + const TP_TEXT = 4; + const TP_STRIPON = 5; + const TP_STRIPOFF = 6; + const TP_LITERALSTART = 7; + const TP_LITERALEND = 8; + const TP_LITERAL = 9; + const TP_SIMPELOUTPUT = 10; + const TP_SIMPLETAG = 11; + const TP_SMARTYBLOCKCHILDPARENT = 12; + const TP_LDEL = 13; + const TP_RDEL = 14; + const TP_DOLLARID = 15; + const TP_EQUAL = 16; + const TP_ID = 17; + const TP_PTR = 18; + const TP_LDELMAKENOCACHE = 19; + const TP_LDELIF = 20; + const TP_LDELFOR = 21; + const TP_SEMICOLON = 22; + const TP_INCDEC = 23; + const TP_TO = 24; + const TP_STEP = 25; + const TP_LDELFOREACH = 26; + const TP_SPACE = 27; + const TP_AS = 28; + const TP_APTR = 29; + const TP_LDELSETFILTER = 30; + const TP_CLOSETAG = 31; + const TP_LDELSLASH = 32; + const TP_ATTR = 33; + const TP_INTEGER = 34; + const TP_COMMA = 35; + const TP_OPENP = 36; + const TP_CLOSEP = 37; + const TP_MATH = 38; + const TP_UNIMATH = 39; + const TP_ISIN = 40; + const TP_QMARK = 41; + const TP_NOT = 42; + const TP_TYPECAST = 43; + const TP_HEX = 44; + const TP_DOT = 45; + const TP_INSTANCEOF = 46; + const TP_SINGLEQUOTESTRING = 47; + const TP_DOUBLECOLON = 48; + const TP_NAMESPACE = 49; + const TP_AT = 50; + const TP_HATCH = 51; + const TP_OPENB = 52; + const TP_CLOSEB = 53; + const TP_DOLLAR = 54; + const TP_LOGOP = 55; + const TP_SLOGOP = 56; + const TP_TLOGOP = 57; + const TP_SINGLECOND = 58; + const TP_ARRAYOPEN = 59; + const TP_QUOTE = 60; + const TP_BACKTICK = 61; + const YY_NO_ACTION = 516; + const YY_ACCEPT_ACTION = 515; + const YY_ERROR_ACTION = 514; + const YY_SZ_ACTTAB = 2071; + const YY_SHIFT_USE_DFLT = -31; + const YY_SHIFT_MAX = 230; + const YY_REDUCE_USE_DFLT = -91; + const YY_REDUCE_MAX = 178; + const YYNOCODE = 110; + const YYSTACKDEPTH = 500; + const YYNSTATE = 327; + const YYNRULE = 187; + const YYERRORSYMBOL = 62; + const YYERRSYMDT = 'yy0'; + const YYFALLBACK = 0; + + public static $yy_action = array( + 251, 234, 237, 1, 144, 127, 428, 184, 199, 212, + 10, 54, 19, 175, 282, 215, 109, 389, 428, 428, + 224, 321, 223, 303, 203, 389, 13, 389, 281, 43, + 389, 428, 41, 40, 266, 225, 389, 213, 389, 194, + 389, 52, 4, 308, 301, 383, 34, 209, 222, 3, + 50, 153, 251, 234, 237, 1, 199, 131, 383, 198, + 305, 212, 10, 54, 383, 16, 199, 428, 109, 385, + 132, 18, 224, 321, 223, 222, 221, 12, 32, 428, + 116, 43, 385, 262, 41, 40, 266, 225, 385, 233, + 95, 194, 16, 52, 4, 131, 301, 252, 18, 265, + 164, 3, 50, 324, 251, 234, 237, 1, 23, 130, + 229, 198, 150, 212, 10, 54, 326, 11, 170, 284, + 109, 42, 22, 239, 224, 321, 223, 193, 221, 261, + 13, 52, 157, 43, 301, 286, 41, 40, 266, 225, + 205, 233, 5, 194, 96, 52, 4, 263, 301, 301, + 99, 349, 96, 3, 50, 199, 251, 234, 237, 1, + 238, 130, 241, 181, 349, 212, 10, 54, 382, 240, + 349, 36, 109, 185, 104, 256, 224, 321, 223, 132, + 191, 382, 13, 49, 91, 43, 12, 382, 41, 40, + 266, 225, 257, 233, 152, 194, 457, 52, 4, 457, + 301, 301, 228, 457, 282, 3, 50, 285, 251, 234, + 237, 1, 301, 131, 441, 198, 238, 212, 10, 54, + 349, 441, 325, 175, 109, 30, 349, 273, 224, 321, + 223, 20, 221, 295, 32, 211, 457, 39, 166, 49, + 41, 40, 266, 225, 87, 233, 205, 194, 279, 52, + 4, 24, 301, 204, 200, 280, 99, 3, 50, 199, + 251, 234, 237, 1, 31, 130, 96, 198, 205, 212, + 10, 54, 350, 55, 293, 207, 109, 283, 99, 96, + 224, 321, 223, 199, 180, 350, 13, 134, 230, 43, + 222, 350, 41, 40, 266, 225, 104, 233, 316, 194, + 279, 52, 4, 24, 301, 165, 284, 280, 85, 3, + 50, 25, 251, 234, 237, 1, 131, 129, 210, 198, + 14, 212, 10, 54, 269, 270, 301, 116, 109, 295, + 216, 211, 224, 321, 223, 171, 221, 95, 13, 28, + 219, 43, 323, 9, 41, 40, 266, 225, 151, 233, + 324, 194, 52, 52, 4, 301, 301, 30, 282, 302, + 178, 3, 50, 7, 251, 234, 237, 1, 136, 130, + 304, 179, 238, 212, 10, 54, 279, 175, 282, 24, + 109, 238, 429, 280, 224, 321, 223, 177, 221, 270, + 13, 255, 281, 43, 429, 49, 41, 40, 266, 225, + 275, 233, 318, 194, 49, 52, 4, 276, 301, 163, + 26, 199, 8, 3, 50, 119, 251, 234, 237, 1, + 11, 93, 291, 51, 107, 212, 10, 54, 226, 428, + 206, 201, 109, 148, 178, 322, 224, 321, 223, 441, + 221, 428, 13, 282, 9, 43, 441, 115, 41, 40, + 266, 225, 167, 233, 227, 194, 457, 52, 4, 457, + 301, 96, 158, 457, 101, 3, 50, 271, 251, 234, + 237, 1, 282, 130, 235, 186, 135, 212, 10, 54, + 199, 37, 119, 315, 109, 165, 284, 176, 224, 321, + 223, 104, 221, 149, 13, 281, 146, 43, 281, 300, + 41, 40, 266, 225, 30, 233, 289, 194, 21, 52, + 4, 272, 301, 211, 18, 301, 161, 3, 50, 110, + 251, 234, 237, 1, 137, 128, 282, 198, 268, 212, + 10, 54, 222, 169, 515, 92, 109, 172, 284, 31, + 224, 321, 223, 29, 221, 238, 6, 260, 53, 43, + 232, 139, 41, 40, 266, 225, 154, 233, 178, 194, + 168, 52, 4, 214, 301, 145, 99, 33, 49, 3, + 50, 245, 208, 211, 320, 282, 90, 111, 311, 183, + 98, 70, 309, 297, 236, 178, 95, 319, 142, 258, + 247, 267, 249, 264, 250, 195, 231, 199, 246, 324, + 317, 253, 254, 259, 126, 137, 133, 251, 234, 237, + 1, 326, 290, 105, 143, 156, 212, 10, 54, 88, + 84, 83, 484, 109, 322, 282, 37, 224, 321, 223, + 245, 208, 211, 320, 281, 90, 111, 298, 182, 98, + 56, 245, 298, 211, 178, 95, 103, 147, 258, 197, + 102, 75, 141, 250, 195, 231, 95, 246, 324, 258, + 279, 242, 89, 24, 250, 195, 231, 280, 246, 324, + 298, 298, 298, 298, 298, 298, 298, 16, 298, 192, + 277, 298, 298, 18, 294, 44, 45, 38, 298, 298, + 251, 234, 237, 2, 298, 296, 298, 298, 298, 212, + 10, 54, 310, 312, 313, 314, 109, 162, 298, 298, + 224, 321, 223, 298, 298, 298, 294, 282, 298, 42, + 22, 239, 251, 234, 237, 2, 298, 296, 298, 298, + 298, 212, 10, 54, 298, 159, 298, 298, 109, 298, + 298, 17, 224, 321, 223, 282, 298, 42, 22, 239, + 298, 298, 245, 298, 211, 278, 298, 103, 111, 298, + 183, 98, 70, 298, 298, 298, 298, 95, 298, 298, + 258, 298, 292, 17, 298, 250, 195, 231, 279, 246, + 324, 24, 298, 395, 245, 280, 211, 298, 298, 103, + 298, 298, 197, 102, 75, 16, 298, 140, 298, 95, + 298, 18, 258, 298, 298, 298, 298, 250, 195, 231, + 298, 246, 324, 298, 298, 298, 298, 428, 298, 395, + 395, 395, 202, 277, 298, 245, 298, 211, 298, 428, + 103, 298, 298, 197, 120, 69, 395, 395, 395, 395, + 95, 298, 298, 258, 298, 298, 298, 160, 250, 195, + 231, 86, 246, 324, 245, 16, 211, 282, 298, 103, + 196, 18, 197, 120, 69, 298, 44, 45, 38, 95, + 298, 298, 258, 298, 298, 298, 178, 250, 195, 231, + 298, 246, 324, 310, 312, 313, 314, 298, 298, 190, + 245, 298, 211, 298, 298, 103, 298, 298, 197, 102, + 75, 298, 298, 298, 298, 95, 298, 298, 258, 298, + 298, 298, 298, 250, 195, 231, 298, 246, 324, 298, + 298, 298, 245, 298, 211, 298, 199, 100, 298, 288, + 197, 120, 47, 298, 106, 298, 298, 95, 298, 353, + 258, 155, 298, 218, 298, 250, 195, 231, 298, 246, + 324, 282, 16, 42, 22, 239, 298, 245, 18, 211, + 298, 428, 103, 298, 298, 197, 120, 69, 298, 298, + 298, 298, 95, 428, 298, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 100, 189, 298, 197, 120, 59, 245, 207, 211, + 298, 95, 103, 298, 258, 197, 120, 81, 298, 250, + 195, 231, 95, 246, 324, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 298, 245, 298, 211, + 298, 298, 103, 298, 298, 197, 120, 80, 298, 298, + 298, 298, 95, 298, 298, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 103, 298, 298, 197, 120, 67, 245, 298, 211, + 298, 95, 103, 298, 258, 197, 120, 57, 298, 250, + 195, 231, 95, 246, 324, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 298, 245, 298, 211, + 298, 298, 103, 298, 298, 197, 120, 58, 298, 298, + 298, 298, 95, 298, 298, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 103, 298, 298, 197, 120, 82, 245, 298, 211, + 298, 95, 103, 298, 258, 197, 97, 76, 298, 250, + 195, 231, 95, 246, 324, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 298, 245, 298, 211, + 298, 298, 103, 298, 298, 197, 120, 71, 298, 298, + 298, 298, 95, 298, 298, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 103, 298, 298, 187, 120, 61, 245, 298, 211, + 298, 95, 103, 298, 258, 197, 120, 63, 298, 250, + 195, 231, 95, 246, 324, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 298, 245, 298, 211, + 298, 298, 103, 298, 298, 197, 94, 79, 298, 298, + 298, 298, 95, 298, 298, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 103, 298, 298, 197, 120, 59, 245, 298, 211, + 298, 95, 103, 298, 258, 197, 120, 77, 298, 250, + 195, 231, 95, 246, 324, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 298, 245, 298, 211, + 298, 298, 103, 298, 298, 188, 108, 64, 298, 298, + 298, 298, 95, 298, 298, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 103, 298, 298, 197, 120, 65, 245, 298, 211, + 298, 95, 103, 298, 258, 197, 97, 66, 298, 250, + 195, 231, 95, 246, 324, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 298, 245, 298, 211, + 298, 298, 103, 298, 298, 197, 120, 68, 298, 298, + 298, 298, 95, 298, 298, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 103, 298, 298, 197, 120, 62, 245, 298, 211, + 298, 95, 103, 298, 258, 197, 120, 60, 298, 250, + 195, 231, 95, 246, 324, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 298, 245, 298, 211, + 298, 298, 103, 298, 298, 197, 120, 74, 298, 298, + 298, 298, 95, 298, 298, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 103, 298, 298, 197, 120, 72, 245, 298, 211, + 298, 95, 103, 298, 258, 197, 120, 48, 298, 250, + 195, 231, 95, 246, 324, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 298, 245, 298, 211, + 298, 298, 103, 298, 298, 197, 120, 46, 298, 298, + 298, 298, 95, 298, 298, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 103, 298, 298, 197, 120, 78, 245, 298, 211, + 298, 95, 103, 298, 258, 197, 120, 73, 298, 250, + 195, 231, 95, 246, 324, 258, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 298, 245, 298, 211, + 298, 298, 103, 298, 298, 197, 125, 298, 298, 298, + 298, 298, 95, 298, 298, 298, 298, 298, 298, 244, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 103, 298, 298, 197, 114, 298, 245, 298, 211, + 298, 95, 103, 298, 298, 197, 122, 298, 243, 250, + 195, 231, 95, 246, 324, 298, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 298, 245, 298, 211, + 298, 298, 103, 298, 298, 197, 117, 298, 298, 298, + 298, 298, 95, 298, 298, 298, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 103, 298, 298, 197, 121, 298, 245, 298, 211, + 298, 95, 103, 298, 298, 197, 124, 298, 298, 250, + 195, 231, 95, 246, 324, 298, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 298, 245, 298, 211, + 298, 298, 103, 298, 298, 197, 118, 298, 298, 298, + 298, 298, 95, 298, 298, 298, 298, 298, 298, 298, + 250, 195, 231, 298, 246, 324, 245, 298, 211, 298, + 298, 103, 298, 298, 197, 123, 298, 245, 298, 211, + 298, 95, 103, 298, 298, 197, 113, 298, 298, 250, + 195, 231, 95, 246, 324, 298, 298, 298, 298, 298, + 250, 195, 231, 220, 246, 324, 298, 27, 298, 16, + 298, 457, 298, 298, 457, 18, 298, 26, 457, 441, + 44, 45, 38, 217, 44, 45, 38, 298, 298, 298, + 298, 298, 298, 298, 298, 298, 298, 310, 312, 313, + 314, 310, 312, 313, 314, 298, 441, 298, 298, 441, + 298, 457, 220, 441, 457, 298, 298, 457, 298, 298, + 457, 457, 441, 457, 298, 298, 220, 457, 441, 298, + 298, 298, 298, 298, 457, 298, 298, 457, 298, 298, + 5, 457, 441, 298, 298, 298, 298, 298, 298, 441, + 298, 298, 441, 298, 457, 441, 441, 298, 441, 298, + 457, 298, 441, 306, 298, 298, 298, 298, 298, 441, + 298, 298, 441, 298, 457, 220, 441, 298, 298, 298, + 298, 298, 298, 457, 298, 298, 457, 298, 298, 15, + 457, 441, 35, 274, 44, 45, 38, 457, 298, 298, + 457, 298, 298, 298, 457, 441, 298, 298, 298, 298, + 298, 310, 312, 313, 314, 298, 298, 298, 441, 298, + 298, 441, 298, 457, 298, 441, 287, 298, 44, 45, + 38, 298, 441, 298, 298, 441, 298, 457, 298, 441, + 248, 298, 298, 298, 298, 310, 312, 313, 314, 298, + 44, 45, 38, 298, 298, 112, 298, 44, 45, 38, + 298, 173, 298, 298, 44, 45, 38, 310, 312, 313, + 314, 44, 45, 38, 310, 312, 313, 314, 298, 298, + 299, 310, 312, 313, 314, 44, 45, 38, 310, 312, + 313, 314, 174, 298, 298, 298, 138, 298, 298, 298, + 298, 298, 310, 312, 313, 314, 44, 45, 38, 298, + 298, 298, 44, 45, 38, 298, 44, 45, 38, 298, + 44, 45, 38, 310, 312, 313, 314, 307, 298, 310, + 312, 313, 314, 310, 312, 313, 314, 310, 312, 313, + 314, + ); + + public static $yy_lookahead = array( + 10, 11, 12, 13, 74, 15, 36, 17, 1, 19, + 20, 21, 29, 103, 84, 45, 26, 14, 48, 36, + 30, 31, 32, 53, 34, 22, 36, 24, 98, 39, + 27, 48, 42, 43, 44, 45, 33, 47, 35, 49, + 37, 51, 52, 53, 54, 14, 16, 16, 45, 59, + 60, 96, 10, 11, 12, 13, 1, 15, 27, 17, + 53, 19, 20, 21, 33, 27, 1, 36, 26, 14, + 45, 33, 30, 31, 32, 45, 34, 52, 36, 48, + 72, 39, 27, 75, 42, 43, 44, 45, 33, 47, + 82, 49, 27, 51, 52, 15, 54, 17, 33, 91, + 83, 59, 60, 95, 10, 11, 12, 13, 13, 15, + 15, 17, 17, 19, 20, 21, 97, 35, 99, 100, + 26, 86, 87, 88, 30, 31, 32, 66, 34, 49, + 36, 51, 96, 39, 54, 53, 42, 43, 44, 45, + 72, 47, 16, 49, 18, 51, 52, 79, 54, 54, + 82, 14, 18, 59, 60, 1, 10, 11, 12, 13, + 23, 15, 15, 17, 27, 19, 20, 21, 14, 17, + 33, 13, 26, 15, 48, 17, 30, 31, 32, 45, + 34, 27, 36, 46, 83, 39, 52, 33, 42, 43, + 44, 45, 34, 47, 74, 49, 10, 51, 52, 13, + 54, 54, 50, 17, 84, 59, 60, 14, 10, 11, + 12, 13, 54, 15, 45, 17, 23, 19, 20, 21, + 27, 52, 100, 103, 26, 35, 33, 37, 30, 31, + 32, 22, 34, 67, 36, 69, 50, 39, 83, 46, + 42, 43, 44, 45, 35, 47, 72, 49, 10, 51, + 52, 13, 54, 79, 80, 17, 82, 59, 60, 1, + 10, 11, 12, 13, 16, 15, 18, 17, 72, 19, + 20, 21, 14, 107, 108, 79, 26, 71, 82, 18, + 30, 31, 32, 1, 34, 27, 36, 15, 50, 39, + 45, 33, 42, 43, 44, 45, 48, 47, 53, 49, + 10, 51, 52, 13, 54, 99, 100, 17, 36, 59, + 60, 29, 10, 11, 12, 13, 15, 15, 17, 17, + 13, 19, 20, 21, 8, 9, 54, 72, 26, 67, + 75, 69, 30, 31, 32, 78, 34, 82, 36, 24, + 50, 39, 17, 36, 42, 43, 44, 45, 74, 47, + 95, 49, 51, 51, 52, 54, 54, 35, 84, 37, + 103, 59, 60, 36, 10, 11, 12, 13, 74, 15, + 108, 17, 23, 19, 20, 21, 10, 103, 84, 13, + 26, 23, 36, 17, 30, 31, 32, 7, 34, 9, + 36, 17, 98, 39, 48, 46, 42, 43, 44, 45, + 17, 47, 53, 49, 46, 51, 52, 93, 54, 78, + 16, 1, 36, 59, 60, 101, 10, 11, 12, 13, + 35, 15, 37, 17, 48, 19, 20, 21, 18, 36, + 65, 66, 26, 74, 103, 104, 30, 31, 32, 45, + 34, 48, 36, 84, 36, 39, 52, 17, 42, 43, + 44, 45, 15, 47, 17, 49, 10, 51, 52, 13, + 54, 18, 74, 17, 82, 59, 60, 34, 10, 11, + 12, 13, 84, 15, 93, 17, 15, 19, 20, 21, + 1, 2, 101, 101, 26, 99, 100, 17, 30, 31, + 32, 48, 34, 96, 36, 98, 96, 39, 98, 71, + 42, 43, 44, 45, 35, 47, 37, 49, 27, 51, + 52, 67, 54, 69, 33, 54, 74, 59, 60, 17, + 10, 11, 12, 13, 96, 15, 84, 17, 34, 19, + 20, 21, 45, 78, 63, 64, 26, 99, 100, 16, + 30, 31, 32, 16, 34, 23, 36, 17, 17, 39, + 23, 51, 42, 43, 44, 45, 72, 47, 103, 49, + 78, 51, 52, 17, 54, 74, 82, 41, 46, 59, + 60, 67, 68, 69, 70, 84, 72, 73, 53, 75, + 76, 77, 53, 61, 15, 103, 82, 14, 51, 85, + 14, 37, 17, 8, 90, 91, 92, 1, 94, 95, + 3, 4, 5, 6, 7, 96, 82, 10, 11, 12, + 13, 97, 84, 81, 96, 74, 19, 20, 21, 78, + 82, 82, 1, 26, 104, 84, 2, 30, 31, 32, + 67, 68, 69, 70, 98, 72, 73, 109, 75, 76, + 77, 67, 109, 69, 103, 82, 72, 96, 85, 75, + 76, 77, 96, 90, 91, 92, 82, 94, 95, 85, + 10, 14, 96, 13, 90, 91, 92, 17, 94, 95, + 109, 109, 109, 109, 109, 109, 109, 27, 109, 105, + 106, 109, 109, 33, 4, 38, 39, 40, 109, 109, + 10, 11, 12, 13, 109, 15, 109, 109, 109, 19, + 20, 21, 55, 56, 57, 58, 26, 74, 109, 109, + 30, 31, 32, 109, 109, 109, 4, 84, 109, 86, + 87, 88, 10, 11, 12, 13, 109, 15, 109, 109, + 109, 19, 20, 21, 109, 74, 109, 109, 26, 109, + 60, 61, 30, 31, 32, 84, 109, 86, 87, 88, + 109, 109, 67, 109, 69, 70, 109, 72, 73, 109, + 75, 76, 77, 109, 109, 109, 109, 82, 109, 109, + 85, 109, 60, 61, 109, 90, 91, 92, 10, 94, + 95, 13, 109, 2, 67, 17, 69, 109, 109, 72, + 109, 109, 75, 76, 77, 27, 109, 29, 109, 82, + 109, 33, 85, 109, 109, 109, 109, 90, 91, 92, + 109, 94, 95, 109, 109, 109, 109, 36, 109, 38, + 39, 40, 105, 106, 109, 67, 109, 69, 109, 48, + 72, 109, 109, 75, 76, 77, 55, 56, 57, 58, + 82, 109, 109, 85, 109, 109, 109, 74, 90, 91, + 92, 78, 94, 95, 67, 27, 69, 84, 109, 72, + 102, 33, 75, 76, 77, 109, 38, 39, 40, 82, + 109, 109, 85, 109, 109, 109, 103, 90, 91, 92, + 109, 94, 95, 55, 56, 57, 58, 109, 109, 102, + 67, 109, 69, 109, 109, 72, 109, 109, 75, 76, + 77, 109, 109, 109, 109, 82, 109, 109, 85, 109, + 109, 109, 109, 90, 91, 92, 109, 94, 95, 109, + 109, 109, 67, 109, 69, 109, 1, 72, 109, 106, + 75, 76, 77, 109, 79, 109, 109, 82, 109, 14, + 85, 74, 109, 18, 109, 90, 91, 92, 109, 94, + 95, 84, 27, 86, 87, 88, 109, 67, 33, 69, + 109, 36, 72, 109, 109, 75, 76, 77, 109, 109, + 109, 109, 82, 48, 109, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 102, 109, 75, 76, 77, 67, 79, 69, + 109, 82, 72, 109, 85, 75, 76, 77, 109, 90, + 91, 92, 82, 94, 95, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 67, 109, 69, + 109, 109, 72, 109, 109, 75, 76, 77, 109, 109, + 109, 109, 82, 109, 109, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 109, 109, 75, 76, 77, 67, 109, 69, + 109, 82, 72, 109, 85, 75, 76, 77, 109, 90, + 91, 92, 82, 94, 95, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 67, 109, 69, + 109, 109, 72, 109, 109, 75, 76, 77, 109, 109, + 109, 109, 82, 109, 109, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 109, 109, 75, 76, 77, 67, 109, 69, + 109, 82, 72, 109, 85, 75, 76, 77, 109, 90, + 91, 92, 82, 94, 95, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 67, 109, 69, + 109, 109, 72, 109, 109, 75, 76, 77, 109, 109, + 109, 109, 82, 109, 109, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 109, 109, 75, 76, 77, 67, 109, 69, + 109, 82, 72, 109, 85, 75, 76, 77, 109, 90, + 91, 92, 82, 94, 95, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 67, 109, 69, + 109, 109, 72, 109, 109, 75, 76, 77, 109, 109, + 109, 109, 82, 109, 109, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 109, 109, 75, 76, 77, 67, 109, 69, + 109, 82, 72, 109, 85, 75, 76, 77, 109, 90, + 91, 92, 82, 94, 95, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 67, 109, 69, + 109, 109, 72, 109, 109, 75, 76, 77, 109, 109, + 109, 109, 82, 109, 109, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 109, 109, 75, 76, 77, 67, 109, 69, + 109, 82, 72, 109, 85, 75, 76, 77, 109, 90, + 91, 92, 82, 94, 95, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 67, 109, 69, + 109, 109, 72, 109, 109, 75, 76, 77, 109, 109, + 109, 109, 82, 109, 109, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 109, 109, 75, 76, 77, 67, 109, 69, + 109, 82, 72, 109, 85, 75, 76, 77, 109, 90, + 91, 92, 82, 94, 95, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 67, 109, 69, + 109, 109, 72, 109, 109, 75, 76, 77, 109, 109, + 109, 109, 82, 109, 109, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 109, 109, 75, 76, 77, 67, 109, 69, + 109, 82, 72, 109, 85, 75, 76, 77, 109, 90, + 91, 92, 82, 94, 95, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 67, 109, 69, + 109, 109, 72, 109, 109, 75, 76, 77, 109, 109, + 109, 109, 82, 109, 109, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 109, 109, 75, 76, 77, 67, 109, 69, + 109, 82, 72, 109, 85, 75, 76, 77, 109, 90, + 91, 92, 82, 94, 95, 85, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 67, 109, 69, + 109, 109, 72, 109, 109, 75, 76, 109, 109, 109, + 109, 109, 82, 109, 109, 109, 109, 109, 109, 89, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 109, 109, 75, 76, 109, 67, 109, 69, + 109, 82, 72, 109, 109, 75, 76, 109, 89, 90, + 91, 92, 82, 94, 95, 109, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 67, 109, 69, + 109, 109, 72, 109, 109, 75, 76, 109, 109, 109, + 109, 109, 82, 109, 109, 109, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 109, 109, 75, 76, 109, 67, 109, 69, + 109, 82, 72, 109, 109, 75, 76, 109, 109, 90, + 91, 92, 82, 94, 95, 109, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 67, 109, 69, + 109, 109, 72, 109, 109, 75, 76, 109, 109, 109, + 109, 109, 82, 109, 109, 109, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 67, 109, 69, 109, + 109, 72, 109, 109, 75, 76, 109, 67, 109, 69, + 109, 82, 72, 109, 109, 75, 76, 109, 109, 90, + 91, 92, 82, 94, 95, 109, 109, 109, 109, 109, + 90, 91, 92, 2, 94, 95, 109, 25, 109, 27, + 109, 10, 109, 109, 13, 33, 109, 16, 17, 18, + 38, 39, 40, 37, 38, 39, 40, 109, 109, 109, + 109, 109, 109, 109, 109, 109, 109, 55, 56, 57, + 58, 55, 56, 57, 58, 109, 45, 109, 109, 48, + 109, 50, 2, 52, 10, 109, 109, 13, 109, 109, + 10, 17, 18, 13, 109, 109, 2, 17, 18, 109, + 109, 109, 109, 109, 10, 109, 109, 13, 109, 109, + 16, 17, 18, 109, 109, 109, 109, 109, 109, 45, + 109, 109, 48, 109, 50, 45, 52, 109, 48, 109, + 50, 109, 52, 53, 109, 109, 109, 109, 109, 45, + 109, 109, 48, 109, 50, 2, 52, 109, 109, 109, + 109, 109, 109, 10, 109, 109, 13, 109, 109, 2, + 17, 18, 2, 37, 38, 39, 40, 10, 109, 109, + 13, 109, 109, 109, 17, 18, 109, 109, 109, 109, + 109, 55, 56, 57, 58, 109, 109, 109, 45, 109, + 109, 48, 109, 50, 109, 52, 14, 109, 38, 39, + 40, 109, 45, 109, 109, 48, 109, 50, 109, 52, + 14, 109, 109, 109, 109, 55, 56, 57, 58, 109, + 38, 39, 40, 109, 109, 22, 109, 38, 39, 40, + 109, 14, 109, 109, 38, 39, 40, 55, 56, 57, + 58, 38, 39, 40, 55, 56, 57, 58, 109, 109, + 61, 55, 56, 57, 58, 38, 39, 40, 55, 56, + 57, 58, 14, 109, 109, 109, 28, 109, 109, 109, + 109, 109, 55, 56, 57, 58, 38, 39, 40, 109, + 109, 109, 38, 39, 40, 109, 38, 39, 40, 109, + 38, 39, 40, 55, 56, 57, 58, 53, 109, 55, + 56, 57, 58, 55, 56, 57, 58, 55, 56, 57, + 58, + ); + + public static $yy_shift_ofst = array( + -31, 406, 406, 458, 458, 94, 510, 94, 94, 94, + 510, 458, -10, 94, 94, 354, 146, 94, 94, 94, + 94, 146, 94, 94, 94, 94, 250, 94, 94, 94, + 94, 94, 94, 302, 94, 94, 94, 198, 42, 42, + 42, 42, 42, 42, 42, 42, 1772, 828, 828, 80, + 712, 925, 301, 65, 272, 680, 1942, 1920, 1886, 1776, + 647, 1949, 1977, 2008, 2004, 1963, 1998, 1956, 2012, 2012, + 2012, 2012, 2012, 2012, 2012, 2012, 2012, 2012, 2012, 2012, + 2012, 2012, 2012, 768, 650, 272, 65, 272, 65, 134, + 126, 479, 597, 1854, 154, 290, 95, 55, 258, 366, + 248, 366, 282, 443, 437, 38, 38, 437, 7, 481, + 410, 38, 461, 621, 596, 596, 261, 596, 596, 261, + 596, 596, 596, 596, 596, -31, -31, 1840, 1791, 1917, + 1903, 1834, 158, 238, 394, 446, 38, 25, 147, 169, + 147, 25, 169, 25, 38, 38, 25, 25, 38, 25, + 307, 38, 38, 25, 527, 38, 38, 25, 38, 38, + 38, 38, 38, 596, 624, 261, 624, 327, 596, 596, + 261, 596, 261, -31, -31, -31, -31, -31, -31, 781, + 3, 31, 193, 137, -30, 186, -17, 522, 349, 469, + 322, 30, 82, 316, 346, 376, 190, 358, 393, 152, + 209, 380, 385, 245, 315, 523, 585, 554, 576, 575, + 537, 573, 569, 529, 525, 546, 500, 526, 531, 325, + 530, 487, 494, 502, 470, 433, 430, 408, 383, 327, + 374, + ); + + public static $yy_reduce_ofst = array( + 471, 504, 563, 717, 574, 685, 919, 890, 787, 758, + 855, 823, 1240, 1199, 1140, 1100, 1070, 1129, 1170, 1210, + 1269, 1280, 1310, 1339, 1350, 1380, 1409, 1420, 1450, 1479, + 1490, 1059, 1030, 1000, 930, 960, 989, 1520, 1549, 1700, + 1619, 1689, 1660, 1630, 1590, 1560, 633, 661, 867, 8, + 166, 773, 255, 541, 174, 262, 35, 35, 35, 35, + 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, + 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, + 35, 35, 35, 294, -70, 196, 120, 68, 274, 19, + 206, 331, 444, 428, 257, 400, 382, 257, 257, 400, + 386, 397, 257, 386, 381, 388, 359, 314, 257, 442, + 482, 491, 484, 257, 257, 455, 386, 257, 257, 438, + 257, 257, 257, 257, 257, 257, 365, 509, 509, 509, + 509, 509, 524, 536, 509, 509, 528, 514, 539, 551, + 538, 514, 556, 514, 528, 528, 514, 514, 528, 514, + 518, 528, 528, 514, 532, 528, 528, 514, 528, 528, + 528, 528, 528, -90, 520, 122, 520, 566, -90, -90, + 122, -90, 122, -45, 36, 155, 101, 61, 17, + ); + + public static $yyExpectedTokens = array( + array(), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 53, 54, 59, + 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array( + 10, 11, 12, 13, 15, 17, 19, 20, 21, 26, 30, 31, 32, 34, 36, 39, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59, 60, + ), + array(25, 27, 33, 38, 39, 40, 55, 56, 57, 58,), + array(27, 33, 38, 39, 40, 55, 56, 57, 58,), + array(27, 33, 38, 39, 40, 55, 56, 57, 58,), + array(15, 17, 49, 51, 54,), + array(4, 10, 11, 12, 13, 15, 19, 20, 21, 26, 30, 31, 32, 60, 61,), + array(1, 14, 18, 27, 33, 36, 48,), + array(15, 17, 51, 54,), + array(1, 27, 33,), + array(15, 36, 54,), + array(4, 10, 11, 12, 13, 15, 19, 20, 21, 26, 30, 31, 32, 60, 61,), + array(14, 38, 39, 40, 55, 56, 57, 58,), + array(2, 38, 39, 40, 55, 56, 57, 58,), + array(37, 38, 39, 40, 55, 56, 57, 58,), + array(37, 38, 39, 40, 55, 56, 57, 58,), + array(14, 38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58, 61,), + array(14, 38, 39, 40, 55, 56, 57, 58,), + array(14, 38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 53, 55, 56, 57, 58,), + array(22, 38, 39, 40, 55, 56, 57, 58,), + array(28, 38, 39, 40, 55, 56, 57, 58,), + array(14, 38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(38, 39, 40, 55, 56, 57, 58,), + array(10, 13, 17, 27, 29, 33,), + array(10, 13, 17, 27, 33,), + array(15, 36, 54,), + array(1, 27, 33,), + array(15, 36, 54,), + array(1, 27, 33,), + array(18, 45, 52,), + array(16, 18, 48,), + array(1, 2,), + array(3, 4, 5, 6, 7, 10, 11, 12, 13, 19, 20, 21, 26, 30, 31, 32,), + array(2, 10, 13, 16, 17, 18, 45, 48, 50, 52,), + array(1, 14, 27, 33,), + array(10, 13, 17, 50,), + array(13, 15, 17, 54,), + array(1, 14, 27, 33,), + array(1, 14, 27, 33,), + array(10, 13, 17,), + array(16, 18, 48,), + array(10, 13, 17,), + array(1, 29,), + array(18, 48,), + array(15, 17,), + array(27, 33,), + array(27, 33,), + array(15, 17,), + array(1, 53,), + array(27, 33,), + array(1, 18,), + array(27, 33,), + array(15, 54,), + array(1,), + array(1,), + array(1,), + array(18,), + array(1,), + array(1,), + array(18,), + array(1,), + array(1,), + array(1,), + array(1,), + array(1,), + array(), + array(), + array(2, 10, 13, 17, 18, 45, 48, 50, 52, 53,), + array(2, 10, 13, 16, 17, 18, 45, 48, 50, 52,), + array(2, 10, 13, 17, 18, 45, 48, 50, 52,), + array(2, 10, 13, 17, 18, 45, 48, 50, 52,), + array(10, 13, 17, 18, 45, 48, 50, 52,), + array(13, 15, 17, 34, 54,), + array(10, 13, 17, 50,), + array(16, 45, 52,), + array(10, 13, 17,), + array(27, 33,), + array(45, 52,), + array(15, 54,), + array(45, 52,), + array(15, 54,), + array(45, 52,), + array(45, 52,), + array(45, 52,), + array(27, 33,), + array(27, 33,), + array(45, 52,), + array(45, 52,), + array(27, 33,), + array(45, 52,), + array(13, 36,), + array(27, 33,), + array(27, 33,), + array(45, 52,), + array(16, 23,), + array(27, 33,), + array(27, 33,), + array(45, 52,), + array(27, 33,), + array(27, 33,), + array(27, 33,), + array(27, 33,), + array(27, 33,), + array(1,), + array(2,), + array(18,), + array(2,), + array(36,), + array(1,), + array(1,), + array(18,), + array(1,), + array(18,), + array(), + array(), + array(), + array(), + array(), + array(), + array(2, 36, 38, 39, 40, 48, 55, 56, 57, 58,), + array(14, 22, 24, 27, 33, 35, 37, 45,), + array(14, 16, 27, 33, 36, 48,), + array(14, 23, 27, 33, 46,), + array(14, 23, 27, 33, 46,), + array(36, 45, 48, 53,), + array(10, 13, 17, 50,), + array(29, 36, 48,), + array(23, 46, 61,), + array(23, 46, 53,), + array(35, 37,), + array(35, 37,), + array(16, 45,), + array(35, 53,), + array(8, 9,), + array(36, 48,), + array(36, 48,), + array(35, 37,), + array(23, 46,), + array(36, 48,), + array(17, 50,), + array(22, 35,), + array(7, 9,), + array(35, 37,), + array(45, 53,), + array(24,), + array(16,), + array(8,), + array(37,), + array(14,), + array(17,), + array(51,), + array(14,), + array(15,), + array(53,), + array(53,), + array(17,), + array(51,), + array(41,), + array(17,), + array(17,), + array(17,), + array(45,), + array(34,), + array(17,), + array(17,), + array(34,), + array(17,), + array(36,), + array(17,), + array(36,), + array(17,), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + array(), + ); + + public static $yy_default = array( + 338, 514, 514, 499, 499, 514, 514, 476, 476, 476, + 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, + 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, + 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, + 514, 514, 514, 514, 514, 514, 379, 358, 379, 514, + 514, 415, 514, 379, 514, 514, 351, 514, 514, 514, + 514, 514, 514, 514, 514, 514, 384, 514, 399, 475, + 351, 403, 390, 474, 500, 502, 384, 501, 363, 381, + 404, 386, 391, 379, 379, 514, 379, 514, 379, 489, + 431, 370, 327, 430, 393, 441, 514, 393, 393, 441, + 431, 441, 393, 431, 514, 379, 360, 514, 393, 379, + 373, 379, 514, 406, 402, 375, 431, 396, 398, 486, + 393, 408, 397, 407, 406, 483, 336, 430, 430, 430, + 430, 430, 514, 443, 457, 441, 367, 438, 514, 436, + 514, 435, 434, 466, 368, 348, 439, 437, 361, 467, + 441, 356, 354, 468, 514, 366, 355, 469, 362, 359, + 352, 369, 365, 371, 478, 463, 477, 441, 374, 376, + 490, 424, 487, 441, 441, 482, 482, 336, 482, 415, + 411, 415, 405, 405, 415, 442, 415, 405, 405, 514, + 514, 411, 514, 514, 425, 514, 514, 405, 415, 514, + 514, 334, 514, 411, 387, 514, 514, 514, 514, 514, + 514, 514, 514, 420, 514, 514, 514, 417, 514, 514, + 514, 411, 413, 514, 514, 514, 514, 488, 514, 457, + 514, 421, 364, 420, 340, 422, 357, 341, 409, 400, + 480, 457, 462, 401, 485, 423, 426, 342, 447, 380, + 416, 339, 428, 329, 330, 444, 445, 446, 394, 331, + 395, 429, 419, 388, 332, 418, 410, 392, 412, 333, + 335, 414, 337, 472, 417, 479, 427, 497, 347, 461, + 460, 459, 378, 346, 464, 510, 495, 511, 498, 473, + 377, 496, 503, 506, 513, 512, 509, 507, 504, 508, + 345, 458, 471, 448, 505, 454, 452, 455, 456, 450, + 491, 449, 492, 493, 494, 470, 451, 328, 453, 343, + 344, 372, 481, 432, 433, 465, 440, + ); + + public static $yyFallback = array(); + + public static $yyRuleName = array( + 'start ::= template', + 'template ::= template PHP', + 'template ::= template TEXT', + 'template ::= template STRIPON', + 'template ::= template STRIPOFF', + 'template ::= template LITERALSTART literal_e2 LITERALEND', + 'literal_e2 ::= literal_e1 LITERALSTART literal_e1 LITERALEND', + 'literal_e2 ::= literal_e1', + 'literal_e1 ::= literal_e1 LITERAL', + 'literal_e1 ::=', + 'template ::= template smartytag', + 'template ::=', + 'smartytag ::= SIMPELOUTPUT', + 'smartytag ::= SIMPLETAG', + 'smartytag ::= SMARTYBLOCKCHILDPARENT', + 'smartytag ::= LDEL tagbody RDEL', + 'smartytag ::= tag RDEL', + 'tagbody ::= outattr', + 'tagbody ::= DOLLARID eqoutattr', + 'tagbody ::= varindexed eqoutattr', + 'eqoutattr ::= EQUAL outattr', + 'outattr ::= output attributes', + 'output ::= variable', + 'output ::= value', + 'output ::= expr', + 'tag ::= LDEL ID attributes', + 'tag ::= LDEL ID', + 'tag ::= LDEL ID modifierlist attributes', + 'tag ::= LDEL ID PTR ID attributes', + 'tag ::= LDEL ID PTR ID modifierlist attributes', + 'tag ::= LDELMAKENOCACHE DOLLARID', + 'tag ::= LDELIF expr', + 'tag ::= LDELIF expr attributes', + 'tag ::= LDELIF statement', + 'tag ::= LDELIF statement attributes', + 'tag ::= LDELFOR statements SEMICOLON expr SEMICOLON varindexed foraction attributes', + 'foraction ::= EQUAL expr', + 'foraction ::= INCDEC', + 'tag ::= LDELFOR statement TO expr attributes', + 'tag ::= LDELFOR statement TO expr STEP expr attributes', + 'tag ::= LDELFOREACH SPACE expr AS varvar attributes', + 'tag ::= LDELFOREACH SPACE expr AS varvar APTR varvar attributes', + 'tag ::= LDELFOREACH attributes', + 'tag ::= LDELSETFILTER ID modparameters', + 'tag ::= LDELSETFILTER ID modparameters modifierlist', + 'smartytag ::= CLOSETAG', + 'tag ::= LDELSLASH ID', + 'tag ::= LDELSLASH ID modifierlist', + 'tag ::= LDELSLASH ID PTR ID', + 'tag ::= LDELSLASH ID PTR ID modifierlist', + 'attributes ::= attributes attribute', + 'attributes ::= attribute', + 'attributes ::=', + 'attribute ::= SPACE ID EQUAL ID', + 'attribute ::= ATTR expr', + 'attribute ::= ATTR value', + 'attribute ::= SPACE ID', + 'attribute ::= SPACE expr', + 'attribute ::= SPACE value', + 'attribute ::= SPACE INTEGER EQUAL expr', + 'statements ::= statement', + 'statements ::= statements COMMA statement', + 'statement ::= DOLLARID EQUAL INTEGER', + 'statement ::= DOLLARID EQUAL expr', + 'statement ::= varindexed EQUAL expr', + 'statement ::= OPENP statement CLOSEP', + 'expr ::= value', + 'expr ::= ternary', + 'expr ::= DOLLARID COLON ID', + 'expr ::= expr MATH value', + 'expr ::= expr UNIMATH value', + 'expr ::= expr tlop value', + 'expr ::= expr lop expr', + 'expr ::= expr scond', + 'expr ::= expr ISIN array', + 'expr ::= expr ISIN value', + 'ternary ::= OPENP expr CLOSEP QMARK DOLLARID COLON expr', + 'ternary ::= OPENP expr CLOSEP QMARK expr COLON expr', + 'value ::= variable', + 'value ::= UNIMATH value', + 'value ::= NOT value', + 'value ::= TYPECAST value', + 'value ::= variable INCDEC', + 'value ::= HEX', + 'value ::= INTEGER', + 'value ::= INTEGER DOT INTEGER', + 'value ::= INTEGER DOT', + 'value ::= DOT INTEGER', + 'value ::= ID', + 'value ::= function', + 'value ::= OPENP expr CLOSEP', + 'value ::= variable INSTANCEOF ns1', + 'value ::= variable INSTANCEOF variable', + 'value ::= SINGLEQUOTESTRING', + 'value ::= doublequoted_with_quotes', + 'value ::= varindexed DOUBLECOLON static_class_access', + 'value ::= smartytag', + 'value ::= value modifierlist', + 'value ::= NAMESPACE', + 'value ::= arraydef', + 'value ::= ns1 DOUBLECOLON static_class_access', + 'ns1 ::= ID', + 'ns1 ::= NAMESPACE', + 'variable ::= DOLLARID', + 'variable ::= varindexed', + 'variable ::= varvar AT ID', + 'variable ::= object', + 'variable ::= HATCH ID HATCH', + 'variable ::= HATCH ID HATCH arrayindex', + 'variable ::= HATCH variable HATCH', + 'variable ::= HATCH variable HATCH arrayindex', + 'varindexed ::= DOLLARID arrayindex', + 'varindexed ::= varvar arrayindex', + 'arrayindex ::= arrayindex indexdef', + 'arrayindex ::=', + 'indexdef ::= DOT DOLLARID', + 'indexdef ::= DOT varvar', + 'indexdef ::= DOT varvar AT ID', + 'indexdef ::= DOT ID', + 'indexdef ::= DOT INTEGER', + 'indexdef ::= DOT LDEL expr RDEL', + 'indexdef ::= OPENB ID CLOSEB', + 'indexdef ::= OPENB ID DOT ID CLOSEB', + 'indexdef ::= OPENB SINGLEQUOTESTRING CLOSEB', + 'indexdef ::= OPENB INTEGER CLOSEB', + 'indexdef ::= OPENB DOLLARID CLOSEB', + 'indexdef ::= OPENB variable CLOSEB', + 'indexdef ::= OPENB value CLOSEB', + 'indexdef ::= OPENB expr CLOSEB', + 'indexdef ::= OPENB CLOSEB', + 'varvar ::= DOLLARID', + 'varvar ::= DOLLAR', + 'varvar ::= varvar varvarele', + 'varvarele ::= ID', + 'varvarele ::= SIMPELOUTPUT', + 'varvarele ::= LDEL expr RDEL', + 'object ::= varindexed objectchain', + 'objectchain ::= objectelement', + 'objectchain ::= objectchain objectelement', + 'objectelement ::= PTR ID arrayindex', + 'objectelement ::= PTR varvar arrayindex', + 'objectelement ::= PTR LDEL expr RDEL arrayindex', + 'objectelement ::= PTR ID LDEL expr RDEL arrayindex', + 'objectelement ::= PTR method', + 'function ::= ns1 OPENP params CLOSEP', + 'method ::= ID OPENP params CLOSEP', + 'method ::= DOLLARID OPENP params CLOSEP', + 'params ::= params COMMA expr', + 'params ::= expr', + 'params ::=', + 'modifierlist ::= modifierlist modifier modparameters', + 'modifierlist ::= modifier modparameters', + 'modifier ::= VERT AT ID', + 'modifier ::= VERT ID', + 'modparameters ::= modparameters modparameter', + 'modparameters ::=', + 'modparameter ::= COLON value', + 'modparameter ::= COLON UNIMATH value', + 'modparameter ::= COLON array', + 'static_class_access ::= method', + 'static_class_access ::= method objectchain', + 'static_class_access ::= ID', + 'static_class_access ::= DOLLARID arrayindex', + 'static_class_access ::= DOLLARID arrayindex objectchain', + 'lop ::= LOGOP', + 'lop ::= SLOGOP', + 'tlop ::= TLOGOP', + 'scond ::= SINGLECOND', + 'arraydef ::= OPENB arrayelements CLOSEB', + 'arraydef ::= ARRAYOPEN arrayelements CLOSEP', + 'arrayelements ::= arrayelement', + 'arrayelements ::= arrayelements COMMA arrayelement', + 'arrayelements ::=', + 'arrayelement ::= value APTR expr', + 'arrayelement ::= ID APTR expr', + 'arrayelement ::= expr', + 'doublequoted_with_quotes ::= QUOTE QUOTE', + 'doublequoted_with_quotes ::= QUOTE doublequoted QUOTE', + 'doublequoted ::= doublequoted doublequotedcontent', + 'doublequoted ::= doublequotedcontent', + 'doublequotedcontent ::= BACKTICK variable BACKTICK', + 'doublequotedcontent ::= BACKTICK expr BACKTICK', + 'doublequotedcontent ::= DOLLARID', + 'doublequotedcontent ::= LDEL variable RDEL', + 'doublequotedcontent ::= LDEL expr RDEL', + 'doublequotedcontent ::= smartytag', + 'doublequotedcontent ::= TEXT', + ); + + public static $yyRuleInfo = array( + array(0 => 63, 1 => 1), + array(0 => 64, 1 => 2), + array(0 => 64, 1 => 2), + array(0 => 64, 1 => 2), + array(0 => 64, 1 => 2), + array(0 => 64, 1 => 4), + array(0 => 65, 1 => 4), + array(0 => 65, 1 => 1), + array(0 => 66, 1 => 2), + array(0 => 66, 1 => 0), + array(0 => 64, 1 => 2), + array(0 => 64, 1 => 0), + array(0 => 67, 1 => 1), + array(0 => 67, 1 => 1), + array(0 => 67, 1 => 1), + array(0 => 67, 1 => 3), + array(0 => 67, 1 => 2), + array(0 => 68, 1 => 1), + array(0 => 68, 1 => 2), + array(0 => 68, 1 => 2), + array(0 => 71, 1 => 2), + array(0 => 70, 1 => 2), + array(0 => 73, 1 => 1), + array(0 => 73, 1 => 1), + array(0 => 73, 1 => 1), + array(0 => 69, 1 => 3), + array(0 => 69, 1 => 2), + array(0 => 69, 1 => 4), + array(0 => 69, 1 => 5), + array(0 => 69, 1 => 6), + array(0 => 69, 1 => 2), + array(0 => 69, 1 => 2), + array(0 => 69, 1 => 3), + array(0 => 69, 1 => 2), + array(0 => 69, 1 => 3), + array(0 => 69, 1 => 8), + array(0 => 81, 1 => 2), + array(0 => 81, 1 => 1), + array(0 => 69, 1 => 5), + array(0 => 69, 1 => 7), + array(0 => 69, 1 => 6), + array(0 => 69, 1 => 8), + array(0 => 69, 1 => 2), + array(0 => 69, 1 => 3), + array(0 => 69, 1 => 4), + array(0 => 67, 1 => 1), + array(0 => 69, 1 => 2), + array(0 => 69, 1 => 3), + array(0 => 69, 1 => 4), + array(0 => 69, 1 => 5), + array(0 => 74, 1 => 2), + array(0 => 74, 1 => 1), + array(0 => 74, 1 => 0), + array(0 => 84, 1 => 4), + array(0 => 84, 1 => 2), + array(0 => 84, 1 => 2), + array(0 => 84, 1 => 2), + array(0 => 84, 1 => 2), + array(0 => 84, 1 => 2), + array(0 => 84, 1 => 4), + array(0 => 80, 1 => 1), + array(0 => 80, 1 => 3), + array(0 => 79, 1 => 3), + array(0 => 79, 1 => 3), + array(0 => 79, 1 => 3), + array(0 => 79, 1 => 3), + array(0 => 77, 1 => 1), + array(0 => 77, 1 => 1), + array(0 => 77, 1 => 3), + array(0 => 77, 1 => 3), + array(0 => 77, 1 => 3), + array(0 => 77, 1 => 3), + array(0 => 77, 1 => 3), + array(0 => 77, 1 => 2), + array(0 => 77, 1 => 3), + array(0 => 77, 1 => 3), + array(0 => 85, 1 => 7), + array(0 => 85, 1 => 7), + array(0 => 76, 1 => 1), + array(0 => 76, 1 => 2), + array(0 => 76, 1 => 2), + array(0 => 76, 1 => 2), + array(0 => 76, 1 => 2), + array(0 => 76, 1 => 1), + array(0 => 76, 1 => 1), + array(0 => 76, 1 => 3), + array(0 => 76, 1 => 2), + array(0 => 76, 1 => 2), + array(0 => 76, 1 => 1), + array(0 => 76, 1 => 1), + array(0 => 76, 1 => 3), + array(0 => 76, 1 => 3), + array(0 => 76, 1 => 3), + array(0 => 76, 1 => 1), + array(0 => 76, 1 => 1), + array(0 => 76, 1 => 3), + array(0 => 76, 1 => 1), + array(0 => 76, 1 => 2), + array(0 => 76, 1 => 1), + array(0 => 76, 1 => 1), + array(0 => 76, 1 => 3), + array(0 => 91, 1 => 1), + array(0 => 91, 1 => 1), + array(0 => 75, 1 => 1), + array(0 => 75, 1 => 1), + array(0 => 75, 1 => 3), + array(0 => 75, 1 => 1), + array(0 => 75, 1 => 3), + array(0 => 75, 1 => 4), + array(0 => 75, 1 => 3), + array(0 => 75, 1 => 4), + array(0 => 72, 1 => 2), + array(0 => 72, 1 => 2), + array(0 => 96, 1 => 2), + array(0 => 96, 1 => 0), + array(0 => 97, 1 => 2), + array(0 => 97, 1 => 2), + array(0 => 97, 1 => 4), + array(0 => 97, 1 => 2), + array(0 => 97, 1 => 2), + array(0 => 97, 1 => 4), + array(0 => 97, 1 => 3), + array(0 => 97, 1 => 5), + array(0 => 97, 1 => 3), + array(0 => 97, 1 => 3), + array(0 => 97, 1 => 3), + array(0 => 97, 1 => 3), + array(0 => 97, 1 => 3), + array(0 => 97, 1 => 3), + array(0 => 97, 1 => 2), + array(0 => 82, 1 => 1), + array(0 => 82, 1 => 1), + array(0 => 82, 1 => 2), + array(0 => 98, 1 => 1), + array(0 => 98, 1 => 1), + array(0 => 98, 1 => 3), + array(0 => 95, 1 => 2), + array(0 => 99, 1 => 1), + array(0 => 99, 1 => 2), + array(0 => 100, 1 => 3), + array(0 => 100, 1 => 3), + array(0 => 100, 1 => 5), + array(0 => 100, 1 => 6), + array(0 => 100, 1 => 2), + array(0 => 90, 1 => 4), + array(0 => 101, 1 => 4), + array(0 => 101, 1 => 4), + array(0 => 102, 1 => 3), + array(0 => 102, 1 => 1), + array(0 => 102, 1 => 0), + array(0 => 78, 1 => 3), + array(0 => 78, 1 => 2), + array(0 => 103, 1 => 3), + array(0 => 103, 1 => 2), + array(0 => 83, 1 => 2), + array(0 => 83, 1 => 0), + array(0 => 104, 1 => 2), + array(0 => 104, 1 => 3), + array(0 => 104, 1 => 2), + array(0 => 93, 1 => 1), + array(0 => 93, 1 => 2), + array(0 => 93, 1 => 1), + array(0 => 93, 1 => 2), + array(0 => 93, 1 => 3), + array(0 => 87, 1 => 1), + array(0 => 87, 1 => 1), + array(0 => 86, 1 => 1), + array(0 => 88, 1 => 1), + array(0 => 94, 1 => 3), + array(0 => 94, 1 => 3), + array(0 => 105, 1 => 1), + array(0 => 105, 1 => 3), + array(0 => 105, 1 => 0), + array(0 => 106, 1 => 3), + array(0 => 106, 1 => 3), + array(0 => 106, 1 => 1), + array(0 => 92, 1 => 2), + array(0 => 92, 1 => 3), + array(0 => 107, 1 => 2), + array(0 => 107, 1 => 1), + array(0 => 108, 1 => 3), + array(0 => 108, 1 => 3), + array(0 => 108, 1 => 1), + array(0 => 108, 1 => 3), + array(0 => 108, 1 => 3), + array(0 => 108, 1 => 1), + array(0 => 108, 1 => 1), + ); + + public static $yyReduceMap = array( + 0 => 0, + 1 => 1, + 2 => 2, + 3 => 3, + 4 => 4, + 5 => 5, + 6 => 6, + 7 => 7, + 22 => 7, + 23 => 7, + 24 => 7, + 37 => 7, + 57 => 7, + 58 => 7, + 66 => 7, + 67 => 7, + 78 => 7, + 83 => 7, + 84 => 7, + 89 => 7, + 93 => 7, + 94 => 7, + 98 => 7, + 99 => 7, + 101 => 7, + 106 => 7, + 170 => 7, + 175 => 7, + 8 => 8, + 9 => 9, + 10 => 10, + 12 => 12, + 13 => 13, + 14 => 14, + 15 => 15, + 16 => 16, + 17 => 17, + 18 => 18, + 19 => 19, + 20 => 20, + 21 => 21, + 25 => 25, + 26 => 26, + 27 => 27, + 28 => 28, + 29 => 29, + 30 => 30, + 31 => 31, + 32 => 32, + 34 => 32, + 33 => 33, + 35 => 35, + 36 => 36, + 38 => 38, + 39 => 39, + 40 => 40, + 41 => 41, + 42 => 42, + 43 => 43, + 44 => 44, + 45 => 45, + 46 => 46, + 47 => 47, + 48 => 48, + 49 => 49, + 50 => 50, + 51 => 51, + 60 => 51, + 148 => 51, + 152 => 51, + 156 => 51, + 158 => 51, + 52 => 52, + 149 => 52, + 155 => 52, + 53 => 53, + 54 => 54, + 55 => 54, + 56 => 56, + 133 => 56, + 59 => 59, + 61 => 61, + 62 => 62, + 63 => 62, + 64 => 64, + 65 => 65, + 68 => 68, + 69 => 69, + 70 => 69, + 71 => 71, + 72 => 72, + 73 => 73, + 74 => 74, + 75 => 75, + 76 => 76, + 77 => 77, + 79 => 79, + 81 => 79, + 82 => 79, + 113 => 79, + 80 => 80, + 85 => 85, + 86 => 86, + 87 => 87, + 88 => 88, + 90 => 90, + 91 => 91, + 92 => 91, + 95 => 95, + 96 => 96, + 97 => 97, + 100 => 100, + 102 => 102, + 103 => 103, + 104 => 104, + 105 => 105, + 107 => 107, + 108 => 108, + 109 => 109, + 110 => 110, + 111 => 111, + 112 => 112, + 114 => 114, + 172 => 114, + 115 => 115, + 116 => 116, + 117 => 117, + 118 => 118, + 119 => 119, + 120 => 120, + 128 => 120, + 121 => 121, + 122 => 122, + 123 => 123, + 124 => 123, + 126 => 123, + 127 => 123, + 125 => 125, + 129 => 129, + 130 => 130, + 131 => 131, + 176 => 131, + 132 => 132, + 134 => 134, + 135 => 135, + 136 => 136, + 137 => 137, + 138 => 138, + 139 => 139, + 140 => 140, + 141 => 141, + 142 => 142, + 143 => 143, + 144 => 144, + 145 => 145, + 146 => 146, + 147 => 147, + 150 => 150, + 151 => 151, + 153 => 153, + 154 => 154, + 157 => 157, + 159 => 159, + 160 => 160, + 161 => 161, + 162 => 162, + 163 => 163, + 164 => 164, + 165 => 165, + 166 => 166, + 167 => 167, + 168 => 168, + 169 => 168, + 171 => 171, + 173 => 173, + 174 => 174, + 177 => 177, + 178 => 178, + 179 => 179, + 180 => 180, + 183 => 180, + 181 => 181, + 184 => 181, + 182 => 182, + 185 => 185, + 186 => 186, + ); + + /** + * result status + * + * @var bool + */ + public $successful = true; + + /** + * return value + * + * @var mixed + */ + public $retvalue = 0; + + /** + * @var + */ + public $yymajor; + + /** + * last index of array variable + * + * @var mixed + */ + public $last_index; + + /** + * last variable name + * + * @var string + */ + public $last_variable; + + /** + * root parse tree buffer + * + * @var Smarty_Internal_ParseTree_Template + */ + public $root_buffer; + + /** + * current parse tree object + * + * @var Smarty_Internal_ParseTree + */ + public $current_buffer; + + /** + * lexer object + * + * @var Smarty_Internal_Templatelexer + */ + public $lex; + + /** + * {strip} status + * + * @var bool + */ + public $strip = false; + + /** + * compiler object + * + * @var Smarty_Internal_TemplateCompilerBase + */ + public $compiler = null; + + /** + * smarty object + * + * @var Smarty + */ + public $smarty = null; + + /** + * template object + * + * @var Smarty_Internal_Template + */ + public $template = null; + + /** + * block nesting level + * + * @var int + */ + public $block_nesting_level = 0; + + /** + * security object + * + * @var Smarty_Security + */ + public $security = null; + + /** + * template prefix array + * + * @var \Smarty_Internal_ParseTree[] + */ + public $template_prefix = array(); + + /** + * template prefix array + * + * @var \Smarty_Internal_ParseTree[] + */ + public $template_postfix = array(); + + public $yyTraceFILE; + + public $yyTracePrompt; + + public $yyidx; + + public $yyerrcnt; + + public $yystack = array(); + + public $yyTokenName = array( + '$', 'VERT', 'COLON', 'PHP', + 'TEXT', 'STRIPON', 'STRIPOFF', 'LITERALSTART', + 'LITERALEND', 'LITERAL', 'SIMPELOUTPUT', 'SIMPLETAG', + 'SMARTYBLOCKCHILDPARENT', 'LDEL', 'RDEL', 'DOLLARID', + 'EQUAL', 'ID', 'PTR', 'LDELMAKENOCACHE', + 'LDELIF', 'LDELFOR', 'SEMICOLON', 'INCDEC', + 'TO', 'STEP', 'LDELFOREACH', 'SPACE', + 'AS', 'APTR', 'LDELSETFILTER', 'CLOSETAG', + 'LDELSLASH', 'ATTR', 'INTEGER', 'COMMA', + 'OPENP', 'CLOSEP', 'MATH', 'UNIMATH', + 'ISIN', 'QMARK', 'NOT', 'TYPECAST', + 'HEX', 'DOT', 'INSTANCEOF', 'SINGLEQUOTESTRING', + 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH', + 'OPENB', 'CLOSEB', 'DOLLAR', 'LOGOP', + 'SLOGOP', 'TLOGOP', 'SINGLECOND', 'ARRAYOPEN', + 'QUOTE', 'BACKTICK', 'error', 'start', + 'template', 'literal_e2', 'literal_e1', 'smartytag', + 'tagbody', 'tag', 'outattr', 'eqoutattr', + 'varindexed', 'output', 'attributes', 'variable', + 'value', 'expr', 'modifierlist', 'statement', + 'statements', 'foraction', 'varvar', 'modparameters', + 'attribute', 'ternary', 'tlop', 'lop', + 'scond', 'array', 'function', 'ns1', + 'doublequoted_with_quotes', 'static_class_access', 'arraydef', 'object', + 'arrayindex', 'indexdef', 'varvarele', 'objectchain', + 'objectelement', 'method', 'params', 'modifier', + 'modparameter', 'arrayelements', 'arrayelement', 'doublequoted', + 'doublequotedcontent', + ); + + /** + * internal error flag + * + * @var bool + */ + private $internalError = false; /* Index of top element in stack */ + private $_retvalue; /* Shifts left before out of the error */ + /** + * constructor + * + * @param Smarty_Internal_Templatelexer $lex + * @param Smarty_Internal_TemplateCompilerBase $compiler + */ + public function __construct(Smarty_Internal_Templatelexer $lex, Smarty_Internal_TemplateCompilerBase $compiler) + { + $this->lex = $lex; + $this->compiler = $compiler; + $this->template = $this->compiler->template; + $this->smarty = $this->template->smarty; + $this->security = isset($this->smarty->security_policy) ? $this->smarty->security_policy : false; + $this->current_buffer = $this->root_buffer = new Smarty_Internal_ParseTree_Template(); + } /* The parser's stack */ + public static function yy_destructor($yymajor, $yypminor) + { + switch ($yymajor) { + default: + break; /* If no destructor action specified: do nothing */ + } + } + + /** + * insert PHP code in current buffer + * + * @param string $code + */ + public function insertPhpCode($code) + { + $this->current_buffer->append_subtree($this, new Smarty_Internal_ParseTree_Tag($this, $code)); + } + + /** + * error rundown + * + */ + public function errorRunDown() + { + while ($this->yystack !== array()) { + $this->yy_pop_parser_stack(); + } + if (is_resource($this->yyTraceFILE)) { + fclose($this->yyTraceFILE); + } + } + + /** + * merge PHP code with prefix code and return parse tree tag object + * + * @param string $code + * + * @return Smarty_Internal_ParseTree_Tag + */ + public function mergePrefixCode($code) + { + $tmp = ''; + foreach ($this->compiler->prefix_code as $preCode) { + $tmp .= $preCode; + } + $this->compiler->prefix_code = array(); + $tmp .= $code; + return new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp, true)); + } + + public function Trace($TraceFILE, $zTracePrompt) + { + if (!$TraceFILE) { + $zTracePrompt = 0; + } elseif (!$zTracePrompt) { + $TraceFILE = 0; + } + $this->yyTraceFILE = $TraceFILE; + $this->yyTracePrompt = $zTracePrompt; + } + + public function PrintTrace() + { + $this->yyTraceFILE = fopen('php://output', 'w'); + $this->yyTracePrompt = '<br>'; + } + + public function tokenName($tokenType) + { + if ($tokenType === 0) { + return 'End of Input'; + } + if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) { + return $this->yyTokenName[ $tokenType ]; + } else { + return 'Unknown'; + } + } + + public function yy_pop_parser_stack() + { + if (empty($this->yystack)) { + return; + } + $yytos = array_pop($this->yystack); + if ($this->yyTraceFILE && $this->yyidx >= 0) { + fwrite($this->yyTraceFILE, + $this->yyTracePrompt . 'Popping ' . $this->yyTokenName[ $yytos->major ] . + "\n"); + } + $yymajor = $yytos->major; + self::yy_destructor($yymajor, $yytos->minor); + $this->yyidx--; + return $yymajor; + } + + public function __destruct() + { + while ($this->yystack !== array()) { + $this->yy_pop_parser_stack(); + } + if (is_resource($this->yyTraceFILE)) { + fclose($this->yyTraceFILE); + } + } + + public function yy_get_expected_tokens($token) + { + static $res3 = array(); + static $res4 = array(); + $state = $this->yystack[ $this->yyidx ]->stateno; + $expected = self::$yyExpectedTokens[ $state ]; + if (isset($res3[ $state ][ $token ])) { + if ($res3[ $state ][ $token ]) { + return $expected; + } + } else { + if ($res3[ $state ][ $token ] = in_array($token, self::$yyExpectedTokens[ $state ], true)) { + return $expected; + } + } + $stack = $this->yystack; + $yyidx = $this->yyidx; + do { + $yyact = $this->yy_find_shift_action($token); + if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { + // reduce action + $done = 0; + do { + if ($done++ === 100) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + // too much recursion prevents proper detection + // so give up + return array_unique($expected); + } + $yyruleno = $yyact - self::YYNSTATE; + $this->yyidx -= self::$yyRuleInfo[ $yyruleno ][ 1 ]; + $nextstate = $this->yy_find_reduce_action( + $this->yystack[ $this->yyidx ]->stateno, + self::$yyRuleInfo[ $yyruleno ][ 0 ]); + if (isset(self::$yyExpectedTokens[ $nextstate ])) { + $expected = array_merge($expected, self::$yyExpectedTokens[ $nextstate ]); + if (isset($res4[ $nextstate ][ $token ])) { + if ($res4[ $nextstate ][ $token ]) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + return array_unique($expected); + } + } else { + if ($res4[ $nextstate ][ $token ] = + in_array($token, self::$yyExpectedTokens[ $nextstate ], true)) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + return array_unique($expected); + } + } + } + if ($nextstate < self::YYNSTATE) { + // we need to shift a non-terminal + $this->yyidx++; + $x = new TP_yyStackEntry; + $x->stateno = $nextstate; + $x->major = self::$yyRuleInfo[ $yyruleno ][ 0 ]; + $this->yystack[ $this->yyidx ] = $x; + continue 2; + } elseif ($nextstate === self::YYNSTATE + self::YYNRULE + 1) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + // the last token was just ignored, we can't accept + // by ignoring input, this is in essence ignoring a + // syntax error! + return array_unique($expected); + } elseif ($nextstate === self::YY_NO_ACTION) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + // input accepted, but not shifted (I guess) + return $expected; + } else { + $yyact = $nextstate; + } + } while (true); + } + break; + } while (true); + $this->yyidx = $yyidx; + $this->yystack = $stack; + return array_unique($expected); + } + + public function yy_is_expected_token($token) + { + static $res = array(); + static $res2 = array(); + if ($token === 0) { + return true; // 0 is not part of this + } + $state = $this->yystack[ $this->yyidx ]->stateno; + if (isset($res[ $state ][ $token ])) { + if ($res[ $state ][ $token ]) { + return true; + } + } else { + if ($res[ $state ][ $token ] = in_array($token, self::$yyExpectedTokens[ $state ], true)) { + return true; + } + } + $stack = $this->yystack; + $yyidx = $this->yyidx; + do { + $yyact = $this->yy_find_shift_action($token); + if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { + // reduce action + $done = 0; + do { + if ($done++ === 100) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + // too much recursion prevents proper detection + // so give up + return true; + } + $yyruleno = $yyact - self::YYNSTATE; + $this->yyidx -= self::$yyRuleInfo[ $yyruleno ][ 1 ]; + $nextstate = $this->yy_find_reduce_action( + $this->yystack[ $this->yyidx ]->stateno, + self::$yyRuleInfo[ $yyruleno ][ 0 ]); + if (isset($res2[ $nextstate ][ $token ])) { + if ($res2[ $nextstate ][ $token ]) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + return true; + } + } else { + if ($res2[ $nextstate ][ $token ] = + (isset(self::$yyExpectedTokens[ $nextstate ]) && + in_array($token, self::$yyExpectedTokens[ $nextstate ], true))) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + return true; + } + } + if ($nextstate < self::YYNSTATE) { + // we need to shift a non-terminal + $this->yyidx++; + $x = new TP_yyStackEntry; + $x->stateno = $nextstate; + $x->major = self::$yyRuleInfo[ $yyruleno ][ 0 ]; + $this->yystack[ $this->yyidx ] = $x; + continue 2; + } elseif ($nextstate === self::YYNSTATE + self::YYNRULE + 1) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + if (!$token) { + // end of input: this is valid + return true; + } + // the last token was just ignored, we can't accept + // by ignoring input, this is in essence ignoring a + // syntax error! + return false; + } elseif ($nextstate === self::YY_NO_ACTION) { + $this->yyidx = $yyidx; + $this->yystack = $stack; + // input accepted, but not shifted (I guess) + return true; + } else { + $yyact = $nextstate; + } + } while (true); + } + break; + } while (true); + $this->yyidx = $yyidx; + $this->yystack = $stack; + return true; + } + + public function yy_find_shift_action($iLookAhead) + { + $stateno = $this->yystack[ $this->yyidx ]->stateno; + /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ + if (!isset(self::$yy_shift_ofst[ $stateno ])) { + // no shift actions + return self::$yy_default[ $stateno ]; + } + $i = self::$yy_shift_ofst[ $stateno ]; + if ($i === self::YY_SHIFT_USE_DFLT) { + return self::$yy_default[ $stateno ]; + } + if ($iLookAhead === self::YYNOCODE) { + return self::YY_NO_ACTION; + } + $i += $iLookAhead; + if ($i < 0 || $i >= self::YY_SZ_ACTTAB || + self::$yy_lookahead[ $i ] != $iLookAhead) { + if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) + && ($iFallback = self::$yyFallback[ $iLookAhead ]) != 0) { + if ($this->yyTraceFILE) { + fwrite($this->yyTraceFILE, $this->yyTracePrompt . 'FALLBACK ' . + $this->yyTokenName[ $iLookAhead ] . ' => ' . + $this->yyTokenName[ $iFallback ] . "\n"); + } + return $this->yy_find_shift_action($iFallback); + } + return self::$yy_default[ $stateno ]; + } else { + return self::$yy_action[ $i ]; + } + } + + public function yy_find_reduce_action($stateno, $iLookAhead) + { + /* $stateno = $this->yystack[$this->yyidx]->stateno; */ + if (!isset(self::$yy_reduce_ofst[ $stateno ])) { + return self::$yy_default[ $stateno ]; + } + $i = self::$yy_reduce_ofst[ $stateno ]; + if ($i === self::YY_REDUCE_USE_DFLT) { + return self::$yy_default[ $stateno ]; + } + if ($iLookAhead === self::YYNOCODE) { + return self::YY_NO_ACTION; + } + $i += $iLookAhead; + if ($i < 0 || $i >= self::YY_SZ_ACTTAB || + self::$yy_lookahead[ $i ] != $iLookAhead) { + return self::$yy_default[ $stateno ]; + } else { + return self::$yy_action[ $i ]; + } + } + + // line 234 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_shift($yyNewState, $yyMajor, $yypMinor) + { + $this->yyidx++; + if ($this->yyidx >= self::YYSTACKDEPTH) { + $this->yyidx--; + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sStack Overflow!\n", $this->yyTracePrompt); + } + while ($this->yyidx >= 0) { + $this->yy_pop_parser_stack(); + } + // line 221 "../smarty/lexer/smarty_internal_templateparser.y" + $this->internalError = true; + $this->compiler->trigger_template_error('Stack overflow in template parser'); + return; + } + $yytos = new TP_yyStackEntry; + $yytos->stateno = $yyNewState; + $yytos->major = $yyMajor; + $yytos->minor = $yypMinor; + $this->yystack[] = $yytos; + if ($this->yyTraceFILE && $this->yyidx > 0) { + fprintf($this->yyTraceFILE, "%sShift %d\n", $this->yyTracePrompt, + $yyNewState); + fprintf($this->yyTraceFILE, "%sStack:", $this->yyTracePrompt); + for ($i = 1; $i <= $this->yyidx; $i++) { + fprintf($this->yyTraceFILE, " %s", + $this->yyTokenName[ $this->yystack[ $i ]->major ]); + } + fwrite($this->yyTraceFILE, "\n"); + } + } + + // line 242 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r0() + { + $this->root_buffer->prepend_array($this, $this->template_prefix); + $this->root_buffer->append_array($this, $this->template_postfix); + $this->_retvalue = $this->root_buffer->to_smarty_php($this); + } + + // line 251 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r1() + { + $code = + $this->compiler->compileTag('private_php', + array(array('code' => $this->yystack[ $this->yyidx + 0 ]->minor), array('type' => $this->lex->phpType)), + array()); + if ($this->compiler->has_code && !empty($code)) { + $tmp = ''; + foreach ($this->compiler->prefix_code as $code) { + $tmp .= $code; + } + $this->compiler->prefix_code = array(); + $this->current_buffer->append_subtree($this, + new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp . $code, true))); + } + } + + // line 255 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r2() + { + $text = $this->yystack[ $this->yyidx + 0 ]->minor; + + if ((string)$text == '') { + $this->current_buffer->append_subtree($this, null); + } + + $this->current_buffer->append_subtree($this, new Smarty_Internal_ParseTree_Text($text, $this->strip)); + } + + // line 259 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r3() + { + $this->strip = true; + } + + // line 264 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r4() + { + $this->strip = false; + } + + // line 269 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r5() + { + $this->current_buffer->append_subtree($this, + new Smarty_Internal_ParseTree_Text($this->yystack[ $this->yyidx + -1 ]->minor)); + } + + // line 272 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r6() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -3 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor; + } + + // line 276 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r7() + { + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 281 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r8() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 285 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r9() + { + $this->_retvalue = ''; + } + + // line 297 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r10() + { + if ($this->compiler->has_code) { + $this->current_buffer->append_subtree($this, + $this->mergePrefixCode($this->yystack[ $this->yyidx + 0 ]->minor)); + } + $this->compiler->has_variable_string = false; + $this->block_nesting_level = count($this->compiler->_tag_stack); + } + + // line 307 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r12() + { + $var = + trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler->getLdelLength(), + -$this->compiler->getRdelLength()), ' $'); + if (preg_match('/^(.*)(\s+nocache)$/', $var, $match)) { + $this->_retvalue = + $this->compiler->compileTag('private_print_expression', array('nocache'), + array('value' => $this->compiler->compileVariable('\'' . $match[ 1 ] . '\''))); + } else { + $this->_retvalue = + $this->compiler->compileTag('private_print_expression', array(), + array('value' => $this->compiler->compileVariable('\'' . $var . '\''))); + } + } + + // line 328 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r13() + { + $tag = + trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler->getLdelLength(), + -$this->compiler->getRdelLength())); + if ($tag == 'strip') { + $this->strip = true; + $this->_retvalue = null; + } else { + if (defined($tag)) { + if ($this->security) { + $this->security->isTrustedConstant($tag, $this->compiler); + } + $this->_retvalue = + $this->compiler->compileTag('private_print_expression', array(), array('value' => $tag)); + } else { + if (preg_match('/^(.*)(\s+nocache)$/', $tag, $match)) { + $this->_retvalue = $this->compiler->compileTag($match[ 1 ], array('\'nocache\'')); + } else { + $this->_retvalue = $this->compiler->compileTag($tag, array()); + } + } + } + } + + // line 339 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r14() + { + $j = strrpos($this->yystack[ $this->yyidx + 0 ]->minor, '.'); + if ($this->yystack[ $this->yyidx + 0 ]->minor[ $j + 1 ] == 'c') { + // {$smarty.block.child} + $this->_retvalue = + $this->compiler->compileTag('child', array(), array($this->yystack[ $this->yyidx + 0 ]->minor)); + } else { + // {$smarty.block.parent} + $this->_retvalue = + $this->compiler->compileTag('parent', array(), array($this->yystack[ $this->yyidx + 0 ]->minor)); + } + } + + // line 343 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r15() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; + } + + // line 347 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r16() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; + } + + // line 356 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r17() + { + $this->_retvalue = + $this->compiler->compileTag('private_print_expression', $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ], + array('value' => $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ])); + } + + // line 360 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r18() + { + $this->_retvalue = + $this->compiler->compileTag('assign', array_merge(array( + array('value' => $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ]), + array('var' => '\'' . substr($this->yystack[ $this->yyidx + -1 ]->minor, 1) . '\'') + ), $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ])); + } + + // line 364 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r19() + { + $this->_retvalue = + $this->compiler->compileTag('assign', array_merge(array( + array('value' => $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ]), + array('var' => $this->yystack[ $this->yyidx + -1 ]->minor[ 'var' ]) + ), $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ]), array( + 'smarty_internal_index' => $this->yystack[ $this->yyidx + + -1 ]->minor[ 'smarty_internal_index' ] + )); + } + + // line 368 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r20() + { + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 383 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r21() + { + $this->_retvalue = array($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor); + } + + // line 393 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r25() + { + if (defined($this->yystack[ $this->yyidx + -1 ]->minor)) { + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[ $this->yyidx + -1 ]->minor, $this->compiler); + } + $this->_retvalue = + $this->compiler->compileTag('private_print_expression', $this->yystack[ $this->yyidx + 0 ]->minor, + array('value' => $this->yystack[ $this->yyidx + -1 ]->minor)); + } else { + $this->_retvalue = + $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor, + $this->yystack[ $this->yyidx + 0 ]->minor); + } + } + + // line 406 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r26() + { + if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) { + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler); + } + $this->_retvalue = + $this->compiler->compileTag('private_print_expression', array(), + array('value' => $this->yystack[ $this->yyidx + 0 ]->minor)); + } else { + $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor, array()); + } + } + + // line 418 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r27() + { + if (defined($this->yystack[ $this->yyidx + -2 ]->minor)) { + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[ $this->yyidx + -2 ]->minor, $this->compiler); + } + $this->_retvalue = + $this->compiler->compileTag('private_print_expression', $this->yystack[ $this->yyidx + 0 ]->minor, + array( + 'value' => $this->yystack[ $this->yyidx + -2 ]->minor, + 'modifierlist' => $this->yystack[ $this->yyidx + -1 ]->minor + )); + } else { + $this->_retvalue = + $this->compiler->compileTag($this->yystack[ $this->yyidx + -2 ]->minor, + $this->yystack[ $this->yyidx + 0 ]->minor, + array('modifierlist' => $this->yystack[ $this->yyidx + -1 ]->minor)); + } + } + + // line 423 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r28() + { + $this->_retvalue = + $this->compiler->compileTag($this->yystack[ $this->yyidx + -3 ]->minor, + $this->yystack[ $this->yyidx + 0 ]->minor, + array('object_method' => $this->yystack[ $this->yyidx + -1 ]->minor)); + } + + // line 428 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r29() + { + $this->_retvalue = + $this->compiler->compileTag($this->yystack[ $this->yyidx + -4 ]->minor, + $this->yystack[ $this->yyidx + 0 ]->minor, array( + 'modifierlist' => $this->yystack[ $this->yyidx + -1 ]->minor, + 'object_method' => $this->yystack[ $this->yyidx + -2 ]->minor + )); + } + + // line 433 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r30() + { + $this->_retvalue = + $this->compiler->compileTag('make_nocache', + array(array('var' => '\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\''))); + } + + // line 438 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r31() + { + $tag = trim(substr($this->yystack[ $this->yyidx + -1 ]->minor, $this->compiler->getLdelLength())); + $this->_retvalue = + $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag, array(), + array('if condition' => $this->yystack[ $this->yyidx + 0 ]->minor)); + } + + // line 443 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r32() + { + $tag = trim(substr($this->yystack[ $this->yyidx + -2 ]->minor, $this->compiler->getLdelLength())); + $this->_retvalue = + $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag, + $this->yystack[ $this->yyidx + 0 ]->minor, + array('if condition' => $this->yystack[ $this->yyidx + -1 ]->minor)); + } + + // line 454 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r33() + { + $tag = trim(substr($this->yystack[ $this->yyidx + -1 ]->minor, $this->compiler->getLdelLength())); + $this->_retvalue = + $this->compiler->compileTag(($tag === 'else if') ? 'elseif' : $tag, array(), + array('if condition' => $this->yystack[ $this->yyidx + 0 ]->minor)); + } + + // line 458 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r35() + { + $this->_retvalue = + $this->compiler->compileTag('for', array_merge($this->yystack[ $this->yyidx + 0 ]->minor, array( + array('start' => $this->yystack[ $this->yyidx + -6 ]->minor), + array('ifexp' => $this->yystack[ $this->yyidx + -4 ]->minor), + array('var' => $this->yystack[ $this->yyidx + -2 ]->minor), + array('step' => $this->yystack[ $this->yyidx + -1 ]->minor) + )), 1); + } + + // line 466 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r36() + { + $this->_retvalue = '=' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 470 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r38() + { + $this->_retvalue = + $this->compiler->compileTag('for', array_merge($this->yystack[ $this->yyidx + 0 ]->minor, array( + array('start' => $this->yystack[ $this->yyidx + -3 ]->minor), + array('to' => $this->yystack[ $this->yyidx + -1 ]->minor) + )), 0); + } + + // line 475 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r39() + { + $this->_retvalue = + $this->compiler->compileTag('for', array_merge($this->yystack[ $this->yyidx + 0 ]->minor, array( + array('start' => $this->yystack[ $this->yyidx + -5 ]->minor), + array('to' => $this->yystack[ $this->yyidx + -3 ]->minor), + array('step' => $this->yystack[ $this->yyidx + -1 ]->minor) + )), 0); + } + + // line 479 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r40() + { + $this->_retvalue = + $this->compiler->compileTag('foreach', array_merge($this->yystack[ $this->yyidx + 0 ]->minor, array( + array('from' => $this->yystack[ $this->yyidx + -3 ]->minor), + array('item' => $this->yystack[ $this->yyidx + -1 ]->minor) + ))); + } + + // line 482 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r41() + { + $this->_retvalue = + $this->compiler->compileTag('foreach', array_merge($this->yystack[ $this->yyidx + 0 ]->minor, array( + array('from' => $this->yystack[ $this->yyidx + -5 ]->minor), + array('item' => $this->yystack[ $this->yyidx + -1 ]->minor), + array('key' => $this->yystack[ $this->yyidx + -3 ]->minor) + ))); + } + + // line 487 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r42() + { + $this->_retvalue = $this->compiler->compileTag('foreach', $this->yystack[ $this->yyidx + 0 ]->minor); + } + + // line 491 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r43() + { + $this->_retvalue = + $this->compiler->compileTag('setfilter', array(), array( + 'modifier_list' => array( + array_merge(array($this->yystack[ $this->yyidx + -1 ]->minor), + $this->yystack[ $this->yyidx + 0 ]->minor) + ) + )); + } + + // line 497 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r44() + { + $this->_retvalue = + $this->compiler->compileTag('setfilter', array(), array( + 'modifier_list' => array_merge(array( + array_merge(array( + $this->yystack[ $this->yyidx + + -2 ]->minor + ), $this->yystack[ $this->yyidx + -1 ]->minor) + ), $this->yystack[ $this->yyidx + 0 ]->minor) + )); + } + + // line 506 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r45() + { + $tag = + trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler->getLdelLength(), + -$this->compiler->getRdelLength()), ' /'); + if ($tag === 'strip') { + $this->strip = false; + $this->_retvalue = null; + } else { + $this->_retvalue = $this->compiler->compileTag($tag . 'close', array()); + } + } + + // line 510 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r46() + { + $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor . 'close', array()); + } + + // line 515 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r47() + { + $this->_retvalue = + $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor . 'close', array(), + array('modifier_list' => $this->yystack[ $this->yyidx + 0 ]->minor)); + } + + // line 519 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r48() + { + $this->_retvalue = + $this->compiler->compileTag($this->yystack[ $this->yyidx + -2 ]->minor . 'close', array(), + array('object_method' => $this->yystack[ $this->yyidx + 0 ]->minor)); + } + + // line 527 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r49() + { + $this->_retvalue = + $this->compiler->compileTag($this->yystack[ $this->yyidx + -3 ]->minor . 'close', array(), array( + 'object_method' => $this->yystack[ $this->yyidx + -1 ]->minor, + 'modifier_list' => $this->yystack[ $this->yyidx + 0 ]->minor + )); + } + + // line 533 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r50() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; + $this->_retvalue[] = $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 538 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r51() + { + $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor); + } + + // line 543 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r52() + { + $this->_retvalue = array(); + } + + // line 554 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r53() + { + if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) { + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler); + } + $this->_retvalue = + array($this->yystack[ $this->yyidx + -2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor); + } else { + $this->_retvalue = + array( + $this->yystack[ $this->yyidx + -2 ]->minor => '\'' . + $this->yystack[ $this->yyidx + 0 ]->minor . + '\'' + ); + } + } + + // line 562 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r54() + { + $this->_retvalue = + array( + trim($this->yystack[ $this->yyidx + -1 ]->minor, " =\n\r\t") => $this->yystack[ $this->yyidx + + 0 ]->minor + ); + } + + // line 574 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r56() + { + $this->_retvalue = '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\''; + } + + // line 587 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r59() + { + $this->_retvalue = + array($this->yystack[ $this->yyidx + -2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor); + } + + // line 592 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r61() + { + $this->yystack[ $this->yyidx + -2 ]->minor[] = $this->yystack[ $this->yyidx + 0 ]->minor; + $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor; + } + + // line 599 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r62() + { + $this->_retvalue = + array( + 'var' => '\'' . substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . '\'', + 'value' => $this->yystack[ $this->yyidx + 0 ]->minor + ); + } + + // line 603 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r64() + { + $this->_retvalue = + array( + 'var' => $this->yystack[ $this->yyidx + -2 ]->minor, + 'value' => $this->yystack[ $this->yyidx + 0 ]->minor + ); + } + + // line 623 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r65() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; + } + + // line 628 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r68() + { + $this->_retvalue = + '$_smarty_tpl->getStreamVariable(\'' . + substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . + '://' . + $this->yystack[ $this->yyidx + 0 ]->minor . + '\')'; + } + + // line 638 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r69() + { + $this->_retvalue = + $this->yystack[ $this->yyidx + -2 ]->minor . + trim($this->yystack[ $this->yyidx + -1 ]->minor) . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 642 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r71() + { + $this->_retvalue = + $this->yystack[ $this->yyidx + -1 ]->minor[ 'pre' ] . + $this->yystack[ $this->yyidx + -2 ]->minor . + $this->yystack[ $this->yyidx + -1 ]->minor[ 'op' ] . + $this->yystack[ $this->yyidx + 0 ]->minor . + ')'; + } + + // line 646 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r72() + { + $this->_retvalue = + $this->yystack[ $this->yyidx + -2 ]->minor . + $this->yystack[ $this->yyidx + -1 ]->minor . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 650 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r73() + { + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor . ')'; + } + + // line 654 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r74() + { + $this->_retvalue = + 'in_array(' . + $this->yystack[ $this->yyidx + -2 ]->minor . + ',' . + $this->yystack[ $this->yyidx + 0 ]->minor . + ')'; + } + + // line 662 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r75() + { + $this->_retvalue = + 'in_array(' . + $this->yystack[ $this->yyidx + -2 ]->minor . + ',(array)' . + $this->yystack[ $this->yyidx + 0 ]->minor . + ')'; + } + + // line 666 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r76() + { + $this->_retvalue = + $this->yystack[ $this->yyidx + -5 ]->minor . + ' ? ' . + $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . '\'') . + ' : ' . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 676 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r77() + { + $this->_retvalue = + $this->yystack[ $this->yyidx + -5 ]->minor . + ' ? ' . + $this->yystack[ $this->yyidx + -2 ]->minor . + ' : ' . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 681 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r79() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 702 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r80() + { + $this->_retvalue = '!' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 706 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r85() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 710 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r86() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . '.'; + } + + // line 715 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r87() + { + $this->_retvalue = '.' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 732 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r88() + { + if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) { + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler); + } + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; + } else { + $this->_retvalue = '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\''; + } + } + + // line 736 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r90() + { + $this->_retvalue = '(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')'; + } + + // line 754 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r91() + { + $this->_retvalue = + $this->yystack[ $this->yyidx + -2 ]->minor . + $this->yystack[ $this->yyidx + -1 ]->minor . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 765 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r95() + { + if ($this->security && $this->security->static_classes !== array()) { + $this->compiler->trigger_template_error('dynamic static class not allowed by security setting'); + } + + $prefixVar = $this->compiler->getNewPrefixVariable(); + if ($this->yystack[ $this->yyidx + -2 ]->minor[ 'var' ] === '\'smarty\'') { + $this->compiler->appendPrefixCode("<?php {$prefixVar} = " . + $this->compiler->compileTag('private_special_variable', array(), + $this->yystack[ $this->yyidx + + -2 ]->minor[ 'smarty_internal_index' ]) . + ';?>'); + } else { + $this->compiler->appendPrefixCode("<?php {$prefixVar} = " . + $this->compiler->compileVariable($this->yystack[ $this->yyidx + + -2 ]->minor[ 'var' ]) . + $this->yystack[ $this->yyidx + -2 ]->minor[ 'smarty_internal_index' ] . + ';?>'); + } + $this->_retvalue = + $prefixVar . + '::' . + $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] . + $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ]; + } + + // line 772 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r96() + { + $prefixVar = $this->compiler->getNewPrefixVariable(); + $tmp = $this->compiler->appendCode('<?php ob_start();?>', $this->yystack[ $this->yyidx + 0 ]->minor); + $this->compiler->appendPrefixCode($this->compiler->appendCode($tmp, "<?php {$prefixVar} = ob_get_clean();?>")); + $this->_retvalue = $prefixVar; + } + + // line 785 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r97() + { + $this->_retvalue = + $this->compiler->compileTag('private_modifier', array(), array( + 'value' => $this->yystack[ $this->yyidx + -1 ]->minor, + 'modifierlist' => $this->yystack[ $this->yyidx + 0 ]->minor + )); + } + + // line 804 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r100() + { + if (!in_array(strtolower($this->yystack[ $this->yyidx + -2 ]->minor), array('self', 'parent')) && + (!$this->security || + $this->security->isTrustedStaticClassAccess($this->yystack[ $this->yyidx + -2 ]->minor, + $this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler))) { + if (isset($this->smarty->registered_classes[ $this->yystack[ $this->yyidx + -2 ]->minor ])) { + $this->_retvalue = + $this->smarty->registered_classes[ $this->yystack[ $this->yyidx + -2 ]->minor ] . + '::' . + $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] . + $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ]; + } else { + $this->_retvalue = + $this->yystack[ $this->yyidx + -2 ]->minor . + '::' . + $this->yystack[ $this->yyidx + 0 ]->minor[ 0 ] . + $this->yystack[ $this->yyidx + 0 ]->minor[ 1 ]; + } + } else { + $this->compiler->trigger_template_error('static class \'' . + $this->yystack[ $this->yyidx + -2 ]->minor . + '\' is undefined or not allowed by security setting'); + } + } + + // line 815 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r102() + { + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 818 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r103() + { + $this->_retvalue = + $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\''); + } + + // line 831 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r104() + { + if ($this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ] === '\'smarty\'') { + $smarty_var = + $this->compiler->compileTag('private_special_variable', array(), + $this->yystack[ $this->yyidx + 0 ]->minor[ 'smarty_internal_index' ]); + $this->_retvalue = $smarty_var; + } else { + // used for array reset,next,prev,end,current + $this->last_variable = $this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ]; + $this->last_index = $this->yystack[ $this->yyidx + 0 ]->minor[ 'smarty_internal_index' ]; + $this->_retvalue = + $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor[ 'var' ]) . + $this->yystack[ $this->yyidx + 0 ]->minor[ 'smarty_internal_index' ]; + } + } + + // line 841 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r105() + { + $this->_retvalue = + '$_smarty_tpl->tpl_vars[' . + $this->yystack[ $this->yyidx + -2 ]->minor . + ']->' . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 845 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r107() + { + $this->_retvalue = + $this->compiler->compileConfigVariable('\'' . $this->yystack[ $this->yyidx + -1 ]->minor . '\''); + } + + // line 849 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r108() + { + $this->_retvalue = + '(is_array($tmp = ' . + $this->compiler->compileConfigVariable('\'' . $this->yystack[ $this->yyidx + -2 ]->minor . '\'') . + ') ? $tmp' . + $this->yystack[ $this->yyidx + 0 ]->minor . + ' :null)'; + } + + // line 853 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r109() + { + $this->_retvalue = $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + -1 ]->minor); + } + + // line 857 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r110() + { + $this->_retvalue = + '(is_array($tmp = ' . + $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + -2 ]->minor) . + ') ? $tmp' . + $this->yystack[ $this->yyidx + 0 ]->minor . + ' : null)'; + } + + // line 860 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r111() + { + $this->_retvalue = + array( + 'var' => '\'' . substr($this->yystack[ $this->yyidx + -1 ]->minor, 1) . '\'', + 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor + ); + } + + // line 873 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r112() + { + $this->_retvalue = + array( + 'var' => $this->yystack[ $this->yyidx + -1 ]->minor, + 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor + ); + } + + // line 879 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r114() + { + return; + } + + // line 882 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r115() + { + $this->_retvalue = + '[' . + $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'') . + ']'; + } + + // line 886 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r116() + { + $this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor) . ']'; + } + + // line 890 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r117() + { + $this->_retvalue = + '[' . + $this->compiler->compileVariable($this->yystack[ $this->yyidx + -2 ]->minor) . + '->' . + $this->yystack[ $this->yyidx + 0 ]->minor . + ']'; + } + + // line 894 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r118() + { + $this->_retvalue = '[\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\']'; + } + + // line 899 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r119() + { + $this->_retvalue = '[' . $this->yystack[ $this->yyidx + 0 ]->minor . ']'; + } + + // line 904 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r120() + { + $this->_retvalue = '[' . $this->yystack[ $this->yyidx + -1 ]->minor . ']'; + } + + // line 908 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r121() + { + $this->_retvalue = + '[' . + $this->compiler->compileTag('private_special_variable', array(), + '[\'section\'][\'' . $this->yystack[ $this->yyidx + -1 ]->minor . '\'][\'index\']') . + ']'; + } + + // line 911 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r122() + { + $this->_retvalue = + '[' . + $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' . + $this->yystack[ $this->yyidx + + -3 ]->minor . + '\'][\'' . + $this->yystack[ $this->yyidx + + -1 ]->minor . + '\']') . + ']'; + } + + // line 917 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r123() + { + $this->_retvalue = '[' . $this->yystack[ $this->yyidx + -1 ]->minor . ']'; + } + + // line 933 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r125() + { + $this->_retvalue = + '[' . + $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + -1 ]->minor, 1) . '\'') . + ']'; + } + + // line 943 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r129() + { + $this->_retvalue = '[]'; + } + + // line 947 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r130() + { + $this->_retvalue = '\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\''; + } + + // line 952 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r131() + { + $this->_retvalue = '\'\''; + } + + // line 960 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r132() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 966 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r134() + { + $var = + trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler->getLdelLength(), + -$this->compiler->getRdelLength()), ' $'); + $this->_retvalue = $this->compiler->compileVariable('\'' . $var . '\''); + } + + // line 973 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r135() + { + $this->_retvalue = '(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')'; + } + + // line 982 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r136() + { + if ($this->yystack[ $this->yyidx + -1 ]->minor[ 'var' ] === '\'smarty\'') { + $this->_retvalue = + $this->compiler->compileTag('private_special_variable', array(), + $this->yystack[ $this->yyidx + -1 ]->minor[ 'smarty_internal_index' ]) . + $this->yystack[ $this->yyidx + 0 ]->minor; + } else { + $this->_retvalue = + $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor[ 'var' ]) . + $this->yystack[ $this->yyidx + -1 ]->minor[ 'smarty_internal_index' ] . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + } + + // line 987 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r137() + { + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 992 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r138() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 999 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r139() + { + if ($this->security && substr($this->yystack[ $this->yyidx + -1 ]->minor, 0, 1) === '_') { + $this->compiler->trigger_template_error(self::ERR1); + } + $this->_retvalue = + '->' . $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 1006 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r140() + { + if ($this->security) { + $this->compiler->trigger_template_error(self::ERR2); + } + $this->_retvalue = + '->{' . + $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor) . + $this->yystack[ $this->yyidx + 0 ]->minor . + '}'; + } + + // line 1013 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r141() + { + if ($this->security) { + $this->compiler->trigger_template_error(self::ERR2); + } + $this->_retvalue = + '->{' . $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor . '}'; + } + + // line 1021 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r142() + { + if ($this->security) { + $this->compiler->trigger_template_error(self::ERR2); + } + $this->_retvalue = + '->{\'' . + $this->yystack[ $this->yyidx + -4 ]->minor . + '\'.' . + $this->yystack[ $this->yyidx + -2 ]->minor . + $this->yystack[ $this->yyidx + 0 ]->minor . + '}'; + } + + // line 1029 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r143() + { + $this->_retvalue = '->' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 1037 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r144() + { + $this->_retvalue = + $this->compiler->compilePHPFunctionCall($this->yystack[ $this->yyidx + -3 ]->minor, + $this->yystack[ $this->yyidx + -1 ]->minor); + } + + // line 1044 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r145() + { + if ($this->security && substr($this->yystack[ $this->yyidx + -3 ]->minor, 0, 1) === '_') { + $this->compiler->trigger_template_error(self::ERR1); + } + $this->_retvalue = + $this->yystack[ $this->yyidx + -3 ]->minor . + '(' . + implode(',', $this->yystack[ $this->yyidx + -1 ]->minor) . + ')'; + } + + // line 1055 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r146() + { + if ($this->security) { + $this->compiler->trigger_template_error(self::ERR2); + } + $prefixVar = $this->compiler->getNewPrefixVariable(); + $this->compiler->appendPrefixCode("<?php {$prefixVar} = " . + $this->compiler->compileVariable('\'' . + substr($this->yystack[ $this->yyidx + + -3 ]->minor, 1) . + '\'') . + ';?>'); + $this->_retvalue = $prefixVar . '(' . implode(',', $this->yystack[ $this->yyidx + -1 ]->minor) . ')'; + } + + // line 1072 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r147() + { + $this->_retvalue = + array_merge($this->yystack[ $this->yyidx + -2 ]->minor, array($this->yystack[ $this->yyidx + 0 ]->minor)); + } + + // line 1076 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r150() + { + $this->_retvalue = + array_merge($this->yystack[ $this->yyidx + -2 ]->minor, array( + array_merge($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor) + )); + } + + // line 1084 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r151() + { + $this->_retvalue = + array(array_merge($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor)); + } + + // line 1092 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r153() + { + $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor); + } + + // line 1105 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r154() + { + $this->_retvalue = + array_merge($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor); + } + + // line 1114 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r157() + { + $this->_retvalue = + array(trim($this->yystack[ $this->yyidx + -1 ]->minor) . $this->yystack[ $this->yyidx + 0 ]->minor); + } + + // line 1119 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r159() + { + $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, '', 'method'); + } + + // line 1124 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r160() + { + $this->_retvalue = + array($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor, 'method'); + } + + // line 1129 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r161() + { + $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, ''); + } + + // line 1134 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r162() + { + $this->_retvalue = + array($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor, 'property'); + } + + // line 1140 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r163() + { + $this->_retvalue = + array( + $this->yystack[ $this->yyidx + -2 ]->minor, + $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor, 'property' + ); + } + + // line 1144 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r164() + { + $this->_retvalue = ' ' . trim($this->yystack[ $this->yyidx + 0 ]->minor) . ' '; + } + + // line 1163 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r165() + { + static $lops = array( + 'eq' => ' == ', + 'ne' => ' != ', + 'neq' => ' != ', + 'gt' => ' > ', + 'ge' => ' >= ', + 'gte' => ' >= ', + 'lt' => ' < ', + 'le' => ' <= ', + 'lte' => ' <= ', + 'mod' => ' % ', + 'and' => ' && ', + 'or' => ' || ', + 'xor' => ' xor ', + ); + $op = strtolower(preg_replace('/\s*/', '', $this->yystack[ $this->yyidx + 0 ]->minor)); + $this->_retvalue = $lops[ $op ]; + } + + // line 1176 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r166() + { + static $tlops = array( + 'isdivby' => array('op' => ' % ', 'pre' => '!('), + 'isnotdivby' => array('op' => ' % ', 'pre' => '('), + 'isevenby' => array('op' => ' / ', 'pre' => '!(1 & '), + 'isnotevenby' => array('op' => ' / ', 'pre' => '(1 & '), + 'isoddby' => array('op' => ' / ', 'pre' => '(1 & '), + 'isnotoddby' => array('op' => ' / ', 'pre' => '!(1 & '), + ); + $op = strtolower(preg_replace('/\s*/', '', $this->yystack[ $this->yyidx + 0 ]->minor)); + $this->_retvalue = $tlops[ $op ]; + } + + // line 1190 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r167() + { + static $scond = array( + 'iseven' => '!(1 & ', + 'isnoteven' => '(1 & ', + 'isodd' => '(1 & ', + 'isnotodd' => '!(1 & ', + ); + $op = strtolower(str_replace(' ', '', $this->yystack[ $this->yyidx + 0 ]->minor)); + $this->_retvalue = $scond[ $op ]; + } + + // line 1201 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r168() + { + $this->_retvalue = 'array(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')'; + } + + // line 1209 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r171() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . ',' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 1213 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r173() + { + $this->_retvalue = + $this->yystack[ $this->yyidx + -2 ]->minor . '=>' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 1229 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r174() + { + $this->_retvalue = + '\'' . $this->yystack[ $this->yyidx + -2 ]->minor . '\'=>' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + // line 1235 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r177() + { + $this->compiler->leaveDoubleQuote(); + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor->to_smarty_php($this); + } + + // line 1240 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r178() + { + $this->yystack[ $this->yyidx + -1 ]->minor->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor); + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; + } + + // line 1244 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r179() + { + $this->_retvalue = new Smarty_Internal_ParseTree_Dq($this, $this->yystack[ $this->yyidx + 0 ]->minor); + } + + // line 1248 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r180() + { + $this->_retvalue = new Smarty_Internal_ParseTree_Code('(string)' . $this->yystack[ $this->yyidx + -1 ]->minor); + } + + // line 1252 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r181() + { + $this->_retvalue = + new Smarty_Internal_ParseTree_Code('(string)(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')'); + } + + // line 1264 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r182() + { + $this->_retvalue = + new Smarty_Internal_ParseTree_Code('(string)$_smarty_tpl->tpl_vars[\'' . + substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . + '\']->value'); + } + + // line 1268 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_r185() + { + $this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->yystack[ $this->yyidx + 0 ]->minor); + } + + public function yy_r186() + { + $this->_retvalue = new Smarty_Internal_ParseTree_DqContent($this->yystack[ $this->yyidx + 0 ]->minor); + } + + public function yy_reduce($yyruleno) + { + if ($this->yyTraceFILE && $yyruleno >= 0 + && $yyruleno < count(self::$yyRuleName)) { + fprintf($this->yyTraceFILE, "%sReduce (%d) [%s].\n", + $this->yyTracePrompt, $yyruleno, + self::$yyRuleName[ $yyruleno ]); + } + $this->_retvalue = $yy_lefthand_side = null; + if (isset(self::$yyReduceMap[ $yyruleno ])) { + // call the action + $this->_retvalue = null; + $this->{'yy_r' . self::$yyReduceMap[ $yyruleno ]}(); + $yy_lefthand_side = $this->_retvalue; + } + $yygoto = self::$yyRuleInfo[ $yyruleno ][ 0 ]; + $yysize = self::$yyRuleInfo[ $yyruleno ][ 1 ]; + $this->yyidx -= $yysize; + for ($i = $yysize; $i; $i--) { + // pop all of the right-hand side parameters + array_pop($this->yystack); + } + $yyact = $this->yy_find_reduce_action($this->yystack[ $this->yyidx ]->stateno, $yygoto); + if ($yyact < self::YYNSTATE) { + if (!$this->yyTraceFILE && $yysize) { + $this->yyidx++; + $x = new TP_yyStackEntry; + $x->stateno = $yyact; + $x->major = $yygoto; + $x->minor = $yy_lefthand_side; + $this->yystack[ $this->yyidx ] = $x; + } else { + $this->yy_shift($yyact, $yygoto, $yy_lefthand_side); + } + } elseif ($yyact === self::YYNSTATE + self::YYNRULE + 1) { + $this->yy_accept(); + } + } + + public function yy_parse_failed() + { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sFail!\n", $this->yyTracePrompt); + } + while ($this->yyidx >= 0) { + $this->yy_pop_parser_stack(); + } + } + + public function yy_syntax_error($yymajor, $TOKEN) + { + // line 214 "../smarty/lexer/smarty_internal_templateparser.y" + $this->internalError = true; + $this->yymajor = $yymajor; + $this->compiler->trigger_template_error(); + } + + public function yy_accept() + { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sAccept!\n", $this->yyTracePrompt); + } + while ($this->yyidx >= 0) { + $this->yy_pop_parser_stack(); + } + // line 207 "../smarty/lexer/smarty_internal_templateparser.y" + $this->successful = !$this->internalError; + $this->internalError = false; + $this->retvalue = $this->_retvalue; + } + + public function doParse($yymajor, $yytokenvalue) + { + $yyerrorhit = 0; /* True if yymajor has invoked an error */ + if ($this->yyidx === null || $this->yyidx < 0) { + $this->yyidx = 0; + $this->yyerrcnt = -1; + $x = new TP_yyStackEntry; + $x->stateno = 0; + $x->major = 0; + $this->yystack = array(); + $this->yystack[] = $x; + } + $yyendofinput = ($yymajor == 0); + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sInput %s\n", + $this->yyTracePrompt, $this->yyTokenName[ $yymajor ]); + } + do { + $yyact = $this->yy_find_shift_action($yymajor); + if ($yymajor < self::YYERRORSYMBOL && + !$this->yy_is_expected_token($yymajor)) { + // force a syntax error + $yyact = self::YY_ERROR_ACTION; + } + if ($yyact < self::YYNSTATE) { + $this->yy_shift($yyact, $yymajor, $yytokenvalue); + $this->yyerrcnt--; + if ($yyendofinput && $this->yyidx >= 0) { + $yymajor = 0; + } else { + $yymajor = self::YYNOCODE; + } + } elseif ($yyact < self::YYNSTATE + self::YYNRULE) { + $this->yy_reduce($yyact - self::YYNSTATE); + } elseif ($yyact === self::YY_ERROR_ACTION) { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sSyntax Error!\n", + $this->yyTracePrompt); + } + if (self::YYERRORSYMBOL) { + if ($this->yyerrcnt < 0) { + $this->yy_syntax_error($yymajor, $yytokenvalue); + } + $yymx = $this->yystack[ $this->yyidx ]->major; + if ($yymx === self::YYERRORSYMBOL || $yyerrorhit) { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sDiscard input token %s\n", + $this->yyTracePrompt, $this->yyTokenName[ $yymajor ]); + } + $this->yy_destructor($yymajor, $yytokenvalue); + $yymajor = self::YYNOCODE; + } else { + while ($this->yyidx >= 0 && + $yymx !== self::YYERRORSYMBOL && + ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE + ) { + $this->yy_pop_parser_stack(); + } + if ($this->yyidx < 0 || $yymajor == 0) { + $this->yy_destructor($yymajor, $yytokenvalue); + $this->yy_parse_failed(); + $yymajor = self::YYNOCODE; + } elseif ($yymx !== self::YYERRORSYMBOL) { + $u2 = 0; + $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); + } + } + $this->yyerrcnt = 3; + $yyerrorhit = 1; + } else { + if ($this->yyerrcnt <= 0) { + $this->yy_syntax_error($yymajor, $yytokenvalue); + } + $this->yyerrcnt = 3; + $this->yy_destructor($yymajor, $yytokenvalue); + if ($yyendofinput) { + $this->yy_parse_failed(); + } + $yymajor = self::YYNOCODE; + } + } else { + $this->yy_accept(); + $yymajor = self::YYNOCODE; + } + } while ($yymajor !== self::YYNOCODE && $this->yyidx >= 0); + } +} + diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_testinstall.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_testinstall.php new file mode 100644 index 0000000000..504a4582c3 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_testinstall.php @@ -0,0 +1,609 @@ +<?php +/** + * Smarty Internal TestInstall + * Test Smarty installation + * + * @package Smarty + * @subpackage Utilities + * @author Uwe Tews + */ + +/** + * TestInstall class + * + * @package Smarty + * @subpackage Utilities + */ +class Smarty_Internal_TestInstall +{ + /** + * diagnose Smarty setup + * If $errors is secified, the diagnostic report will be appended to the array, rather than being output. + * + * @param \Smarty $smarty + * @param array $errors array to push results into rather than outputting them + * + * @return bool status, true if everything is fine, false else + */ + public static function testInstall(Smarty $smarty, &$errors = null) + { + $status = true; + if ($errors === null) { + echo "<PRE>\n"; + echo "Smarty Installation test...\n"; + echo "Testing template directory...\n"; + } + $_stream_resolve_include_path = function_exists('stream_resolve_include_path'); + // test if all registered template_dir are accessible + foreach ($smarty->getTemplateDir() as $template_dir) { + $_template_dir = $template_dir; + $template_dir = realpath($template_dir); + // resolve include_path or fail existence + if (!$template_dir) { + if ($smarty->use_include_path && !preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $_template_dir)) { + // try PHP include_path + if ($_stream_resolve_include_path) { + $template_dir = stream_resolve_include_path($_template_dir); + } else { + $template_dir = $smarty->ext->_getIncludePath->getIncludePath($_template_dir, null, $smarty); + } + if ($template_dir !== false) { + if ($errors === null) { + echo "$template_dir is OK.\n"; + } + continue; + } else { + $status = false; + $message = + "FAILED: $_template_dir does not exist (and couldn't be found in include_path either)"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'template_dir' ] = $message; + } + continue; + } + } else { + $status = false; + $message = "FAILED: $_template_dir does not exist"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'template_dir' ] = $message; + } + continue; + } + } + if (!is_dir($template_dir)) { + $status = false; + $message = "FAILED: $template_dir is not a directory"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'template_dir' ] = $message; + } + } elseif (!is_readable($template_dir)) { + $status = false; + $message = "FAILED: $template_dir is not readable"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'template_dir' ] = $message; + } + } else { + if ($errors === null) { + echo "$template_dir is OK.\n"; + } + } + } + if ($errors === null) { + echo "Testing compile directory...\n"; + } + // test if registered compile_dir is accessible + $__compile_dir = $smarty->getCompileDir(); + $_compile_dir = realpath($__compile_dir); + if (!$_compile_dir) { + $status = false; + $message = "FAILED: {$__compile_dir} does not exist"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'compile_dir' ] = $message; + } + } elseif (!is_dir($_compile_dir)) { + $status = false; + $message = "FAILED: {$_compile_dir} is not a directory"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'compile_dir' ] = $message; + } + } elseif (!is_readable($_compile_dir)) { + $status = false; + $message = "FAILED: {$_compile_dir} is not readable"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'compile_dir' ] = $message; + } + } elseif (!is_writable($_compile_dir)) { + $status = false; + $message = "FAILED: {$_compile_dir} is not writable"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'compile_dir' ] = $message; + } + } else { + if ($errors === null) { + echo "{$_compile_dir} is OK.\n"; + } + } + if ($errors === null) { + echo "Testing plugins directory...\n"; + } + // test if all registered plugins_dir are accessible + // and if core plugins directory is still registered + $_core_plugins_dir = realpath(dirname(__FILE__) . '/../plugins'); + $_core_plugins_available = false; + foreach ($smarty->getPluginsDir() as $plugin_dir) { + $_plugin_dir = $plugin_dir; + $plugin_dir = realpath($plugin_dir); + // resolve include_path or fail existence + if (!$plugin_dir) { + if ($smarty->use_include_path && !preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $_plugin_dir)) { + // try PHP include_path + if ($_stream_resolve_include_path) { + $plugin_dir = stream_resolve_include_path($_plugin_dir); + } else { + $plugin_dir = $smarty->ext->_getIncludePath->getIncludePath($_plugin_dir, null, $smarty); + } + if ($plugin_dir !== false) { + if ($errors === null) { + echo "$plugin_dir is OK.\n"; + } + continue; + } else { + $status = false; + $message = "FAILED: $_plugin_dir does not exist (and couldn't be found in include_path either)"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'plugins_dir' ] = $message; + } + continue; + } + } else { + $status = false; + $message = "FAILED: $_plugin_dir does not exist"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'plugins_dir' ] = $message; + } + continue; + } + } + if (!is_dir($plugin_dir)) { + $status = false; + $message = "FAILED: $plugin_dir is not a directory"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'plugins_dir' ] = $message; + } + } elseif (!is_readable($plugin_dir)) { + $status = false; + $message = "FAILED: $plugin_dir is not readable"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'plugins_dir' ] = $message; + } + } elseif ($_core_plugins_dir && $_core_plugins_dir == realpath($plugin_dir)) { + $_core_plugins_available = true; + if ($errors === null) { + echo "$plugin_dir is OK.\n"; + } + } else { + if ($errors === null) { + echo "$plugin_dir is OK.\n"; + } + } + } + if (!$_core_plugins_available) { + $status = false; + $message = "WARNING: Smarty's own libs/plugins is not available"; + if ($errors === null) { + echo $message . ".\n"; + } elseif (!isset($errors[ 'plugins_dir' ])) { + $errors[ 'plugins_dir' ] = $message; + } + } + if ($errors === null) { + echo "Testing cache directory...\n"; + } + // test if all registered cache_dir is accessible + $__cache_dir = $smarty->getCacheDir(); + $_cache_dir = realpath($__cache_dir); + if (!$_cache_dir) { + $status = false; + $message = "FAILED: {$__cache_dir} does not exist"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'cache_dir' ] = $message; + } + } elseif (!is_dir($_cache_dir)) { + $status = false; + $message = "FAILED: {$_cache_dir} is not a directory"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'cache_dir' ] = $message; + } + } elseif (!is_readable($_cache_dir)) { + $status = false; + $message = "FAILED: {$_cache_dir} is not readable"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'cache_dir' ] = $message; + } + } elseif (!is_writable($_cache_dir)) { + $status = false; + $message = "FAILED: {$_cache_dir} is not writable"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'cache_dir' ] = $message; + } + } else { + if ($errors === null) { + echo "{$_cache_dir} is OK.\n"; + } + } + if ($errors === null) { + echo "Testing configs directory...\n"; + } + // test if all registered config_dir are accessible + foreach ($smarty->getConfigDir() as $config_dir) { + $_config_dir = $config_dir; + // resolve include_path or fail existence + if (!$config_dir) { + if ($smarty->use_include_path && !preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $_config_dir)) { + // try PHP include_path + if ($_stream_resolve_include_path) { + $config_dir = stream_resolve_include_path($_config_dir); + } else { + $config_dir = $smarty->ext->_getIncludePath->getIncludePath($_config_dir, null, $smarty); + } + if ($config_dir !== false) { + if ($errors === null) { + echo "$config_dir is OK.\n"; + } + continue; + } else { + $status = false; + $message = "FAILED: $_config_dir does not exist (and couldn't be found in include_path either)"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'config_dir' ] = $message; + } + continue; + } + } else { + $status = false; + $message = "FAILED: $_config_dir does not exist"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'config_dir' ] = $message; + } + continue; + } + } + if (!is_dir($config_dir)) { + $status = false; + $message = "FAILED: $config_dir is not a directory"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'config_dir' ] = $message; + } + } elseif (!is_readable($config_dir)) { + $status = false; + $message = "FAILED: $config_dir is not readable"; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'config_dir' ] = $message; + } + } else { + if ($errors === null) { + echo "$config_dir is OK.\n"; + } + } + } + if ($errors === null) { + echo "Testing sysplugin files...\n"; + } + // test if sysplugins are available + $source = SMARTY_SYSPLUGINS_DIR; + if (is_dir($source)) { + $expectedSysplugins = array( + 'smartycompilerexception.php' => true, + 'smartyexception.php' => true, + 'smarty_cacheresource.php' => true, + 'smarty_cacheresource_custom.php' => true, + 'smarty_cacheresource_keyvaluestore.php' => true, + 'smarty_data.php' => true, + 'smarty_internal_block.php' => true, + 'smarty_internal_cacheresource_file.php' => true, + 'smarty_internal_compilebase.php' => true, + 'smarty_internal_compile_append.php' => true, + 'smarty_internal_compile_assign.php' => true, + 'smarty_internal_compile_block.php' => true, + 'smarty_internal_compile_block_child.php' => true, + 'smarty_internal_compile_block_parent.php' => true, + 'smarty_internal_compile_child.php' => true, + 'smarty_internal_compile_parent.php' => true, + 'smarty_internal_compile_break.php' => true, + 'smarty_internal_compile_call.php' => true, + 'smarty_internal_compile_capture.php' => true, + 'smarty_internal_compile_config_load.php' => true, + 'smarty_internal_compile_continue.php' => true, + 'smarty_internal_compile_debug.php' => true, + 'smarty_internal_compile_eval.php' => true, + 'smarty_internal_compile_extends.php' => true, + 'smarty_internal_compile_for.php' => true, + 'smarty_internal_compile_foreach.php' => true, + 'smarty_internal_compile_function.php' => true, + 'smarty_internal_compile_if.php' => true, + 'smarty_internal_compile_include.php' => true, + 'smarty_internal_compile_include_php.php' => true, + 'smarty_internal_compile_insert.php' => true, + 'smarty_internal_compile_ldelim.php' => true, + 'smarty_internal_compile_make_nocache.php' => true, + 'smarty_internal_compile_nocache.php' => true, + 'smarty_internal_compile_private_block_plugin.php' => true, + 'smarty_internal_compile_private_foreachsection.php' => true, + 'smarty_internal_compile_private_function_plugin.php' => true, + 'smarty_internal_compile_private_modifier.php' => true, + 'smarty_internal_compile_private_object_block_function.php' => true, + 'smarty_internal_compile_private_object_function.php' => true, + 'smarty_internal_compile_private_php.php' => true, + 'smarty_internal_compile_private_print_expression.php' => true, + 'smarty_internal_compile_private_registered_block.php' => true, + 'smarty_internal_compile_private_registered_function.php' => true, + 'smarty_internal_compile_private_special_variable.php' => true, + 'smarty_internal_compile_rdelim.php' => true, + 'smarty_internal_compile_section.php' => true, + 'smarty_internal_compile_setfilter.php' => true, + 'smarty_internal_compile_shared_inheritance.php' => true, + 'smarty_internal_compile_while.php' => true, + 'smarty_internal_configfilelexer.php' => true, + 'smarty_internal_configfileparser.php' => true, + 'smarty_internal_config_file_compiler.php' => true, + 'smarty_internal_data.php' => true, + 'smarty_internal_debug.php' => true, + 'smarty_internal_errorhandler.php' => true, + 'smarty_internal_extension_handler.php' => true, + 'smarty_internal_method_addautoloadfilters.php' => true, + 'smarty_internal_method_adddefaultmodifiers.php' => true, + 'smarty_internal_method_append.php' => true, + 'smarty_internal_method_appendbyref.php' => true, + 'smarty_internal_method_assignbyref.php' => true, + 'smarty_internal_method_assignglobal.php' => true, + 'smarty_internal_method_clearallassign.php' => true, + 'smarty_internal_method_clearallcache.php' => true, + 'smarty_internal_method_clearassign.php' => true, + 'smarty_internal_method_clearcache.php' => true, + 'smarty_internal_method_clearcompiledtemplate.php' => true, + 'smarty_internal_method_clearconfig.php' => true, + 'smarty_internal_method_compileallconfig.php' => true, + 'smarty_internal_method_compilealltemplates.php' => true, + 'smarty_internal_method_configload.php' => true, + 'smarty_internal_method_createdata.php' => true, + 'smarty_internal_method_getautoloadfilters.php' => true, + 'smarty_internal_method_getconfigvariable.php' => true, + 'smarty_internal_method_getconfigvars.php' => true, + 'smarty_internal_method_getdebugtemplate.php' => true, + 'smarty_internal_method_getdefaultmodifiers.php' => true, + 'smarty_internal_method_getglobal.php' => true, + 'smarty_internal_method_getregisteredobject.php' => true, + 'smarty_internal_method_getstreamvariable.php' => true, + 'smarty_internal_method_gettags.php' => true, + 'smarty_internal_method_gettemplatevars.php' => true, + 'smarty_internal_method_literals.php' => true, + 'smarty_internal_method_loadfilter.php' => true, + 'smarty_internal_method_loadplugin.php' => true, + 'smarty_internal_method_mustcompile.php' => true, + 'smarty_internal_method_registercacheresource.php' => true, + 'smarty_internal_method_registerclass.php' => true, + 'smarty_internal_method_registerdefaultconfighandler.php' => true, + 'smarty_internal_method_registerdefaultpluginhandler.php' => true, + 'smarty_internal_method_registerdefaulttemplatehandler.php' => true, + 'smarty_internal_method_registerfilter.php' => true, + 'smarty_internal_method_registerobject.php' => true, + 'smarty_internal_method_registerplugin.php' => true, + 'smarty_internal_method_registerresource.php' => true, + 'smarty_internal_method_setautoloadfilters.php' => true, + 'smarty_internal_method_setdebugtemplate.php' => true, + 'smarty_internal_method_setdefaultmodifiers.php' => true, + 'smarty_internal_method_unloadfilter.php' => true, + 'smarty_internal_method_unregistercacheresource.php' => true, + 'smarty_internal_method_unregisterfilter.php' => true, + 'smarty_internal_method_unregisterobject.php' => true, + 'smarty_internal_method_unregisterplugin.php' => true, + 'smarty_internal_method_unregisterresource.php' => true, + 'smarty_internal_nocache_insert.php' => true, + 'smarty_internal_parsetree.php' => true, + 'smarty_internal_parsetree_code.php' => true, + 'smarty_internal_parsetree_dq.php' => true, + 'smarty_internal_parsetree_dqcontent.php' => true, + 'smarty_internal_parsetree_tag.php' => true, + 'smarty_internal_parsetree_template.php' => true, + 'smarty_internal_parsetree_text.php' => true, + 'smarty_internal_resource_eval.php' => true, + 'smarty_internal_resource_extends.php' => true, + 'smarty_internal_resource_file.php' => true, + 'smarty_internal_resource_php.php' => true, + 'smarty_internal_resource_registered.php' => true, + 'smarty_internal_resource_stream.php' => true, + 'smarty_internal_resource_string.php' => true, + 'smarty_internal_runtime_cachemodify.php' => true, + 'smarty_internal_runtime_cacheresourcefile.php' => true, + 'smarty_internal_runtime_capture.php' => true, + 'smarty_internal_runtime_codeframe.php' => true, + 'smarty_internal_runtime_filterhandler.php' => true, + 'smarty_internal_runtime_foreach.php' => true, + 'smarty_internal_runtime_getincludepath.php' => true, + 'smarty_internal_runtime_inheritance.php' => true, + 'smarty_internal_runtime_make_nocache.php' => true, + 'smarty_internal_runtime_tplfunction.php' => true, + 'smarty_internal_runtime_updatecache.php' => true, + 'smarty_internal_runtime_updatescope.php' => true, + 'smarty_internal_runtime_writefile.php' => true, + 'smarty_internal_smartytemplatecompiler.php' => true, + 'smarty_internal_template.php' => true, + 'smarty_internal_templatebase.php' => true, + 'smarty_internal_templatecompilerbase.php' => true, + 'smarty_internal_templatelexer.php' => true, + 'smarty_internal_templateparser.php' => true, + 'smarty_internal_testinstall.php' => true, + 'smarty_internal_undefined.php' => true, + 'smarty_resource.php' => true, + 'smarty_resource_custom.php' => true, + 'smarty_resource_recompiled.php' => true, + 'smarty_resource_uncompiled.php' => true, + 'smarty_security.php' => true, + 'smarty_template_cached.php' => true, + 'smarty_template_compiled.php' => true, + 'smarty_template_config.php' => true, + 'smarty_template_resource_base.php' => true, + 'smarty_template_source.php' => true, + 'smarty_undefined_variable.php' => true, + 'smarty_variable.php' => true, + ); + $iterator = new DirectoryIterator($source); + foreach ($iterator as $file) { + if (!$file->isDot()) { + $filename = $file->getFilename(); + if (isset($expectedSysplugins[ $filename ])) { + unset($expectedSysplugins[ $filename ]); + } + } + } + if ($expectedSysplugins) { + $status = false; + $message = "FAILED: files missing from libs/sysplugins: " . join(', ', array_keys($expectedSysplugins)); + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'sysplugins' ] = $message; + } + } elseif ($errors === null) { + echo "... OK\n"; + } + } else { + $status = false; + $message = "FAILED: " . SMARTY_SYSPLUGINS_DIR . ' is not a directory'; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'sysplugins_dir_constant' ] = $message; + } + } + if ($errors === null) { + echo "Testing plugin files...\n"; + } + // test if core plugins are available + $source = SMARTY_PLUGINS_DIR; + if (is_dir($source)) { + $expectedPlugins = array( + 'block.textformat.php' => true, + 'function.counter.php' => true, + 'function.cycle.php' => true, + 'function.fetch.php' => true, + 'function.html_checkboxes.php' => true, + 'function.html_image.php' => true, + 'function.html_options.php' => true, + 'function.html_radios.php' => true, + 'function.html_select_date.php' => true, + 'function.html_select_time.php' => true, + 'function.html_table.php' => true, + 'function.mailto.php' => true, + 'function.math.php' => true, + 'modifier.capitalize.php' => true, + 'modifier.date_format.php' => true, + 'modifier.debug_print_var.php' => true, + 'modifier.escape.php' => true, + 'modifier.mb_wordwrap.php' => true, + 'modifier.regex_replace.php' => true, + 'modifier.replace.php' => true, + 'modifier.spacify.php' => true, + 'modifier.truncate.php' => true, + 'modifiercompiler.cat.php' => true, + 'modifiercompiler.count_characters.php' => true, + 'modifiercompiler.count_paragraphs.php' => true, + 'modifiercompiler.count_sentences.php' => true, + 'modifiercompiler.count_words.php' => true, + 'modifiercompiler.default.php' => true, + 'modifiercompiler.escape.php' => true, + 'modifiercompiler.from_charset.php' => true, + 'modifiercompiler.indent.php' => true, + 'modifiercompiler.lower.php' => true, + 'modifiercompiler.noprint.php' => true, + 'modifiercompiler.string_format.php' => true, + 'modifiercompiler.strip.php' => true, + 'modifiercompiler.strip_tags.php' => true, + 'modifiercompiler.to_charset.php' => true, + 'modifiercompiler.unescape.php' => true, + 'modifiercompiler.upper.php' => true, + 'modifiercompiler.wordwrap.php' => true, + 'outputfilter.trimwhitespace.php' => true, + 'shared.escape_special_chars.php' => true, + 'shared.literal_compiler_param.php' => true, + 'shared.make_timestamp.php' => true, + 'shared.mb_str_replace.php' => true, + 'shared.mb_unicode.php' => true, + 'variablefilter.htmlspecialchars.php' => true, + ); + $iterator = new DirectoryIterator($source); + foreach ($iterator as $file) { + if (!$file->isDot()) { + $filename = $file->getFilename(); + if (isset($expectedPlugins[ $filename ])) { + unset($expectedPlugins[ $filename ]); + } + } + } + if ($expectedPlugins) { + $status = false; + $message = "FAILED: files missing from libs/plugins: " . join(', ', array_keys($expectedPlugins)); + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'plugins' ] = $message; + } + } elseif ($errors === null) { + echo "... OK\n"; + } + } else { + $status = false; + $message = "FAILED: " . SMARTY_PLUGINS_DIR . ' is not a directory'; + if ($errors === null) { + echo $message . ".\n"; + } else { + $errors[ 'plugins_dir_constant' ] = $message; + } + } + if ($errors === null) { + echo "Tests complete.\n"; + echo "</PRE>\n"; + } + return $status; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php new file mode 100644 index 0000000000..7df0acc2d0 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php @@ -0,0 +1,67 @@ +<?php + +/** + * Smarty Internal Undefined + * + * Class to handle undefined method calls or calls to obsolete runtime extensions + * + * @package Smarty + * @subpackage PluginsInternal + * @author Uwe Tews + */ +class Smarty_Internal_Undefined +{ + /** + * Name of undefined extension class + * + * @var string|null + */ + public $class = null; + + /** + * Smarty_Internal_Undefined constructor. + * + * @param null|string $class name of undefined extension class + */ + public function __construct($class = null) + { + $this->class = $class; + } + + /** + * Wrapper for obsolete class Smarty_Internal_Runtime_ValidateCompiled + * + * @param \Smarty_Internal_Template $tpl + * @param array $properties special template properties + * @param bool $cache flag if called from cache file + * + * @return bool false + */ + public function decodeProperties(Smarty_Internal_Template $tpl, $properties, $cache = false) + { + if ($cache) { + $tpl->cached->valid = false; + } else { + $tpl->mustCompile = true; + } + return false; + } + + /** + * Call error handler for undefined method + * + * @param string $name unknown method-name + * @param array $args argument array + * + * @return mixed + * @throws SmartyException + */ + public function __call($name, $args) + { + if (isset($this->class)) { + throw new SmartyException("undefined extension class '{$this->class}'"); + } else { + throw new SmartyException(get_class($args[ 0 ]) . "->{$name}() undefined method"); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource.php new file mode 100644 index 0000000000..aae7e42f70 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource.php @@ -0,0 +1,262 @@ +<?php +/** + * Smarty Resource Plugin + * + * @package Smarty + * @subpackage TemplateResources + * @author Rodney Rehm + */ + +/** + * Smarty Resource Plugin + * Base implementation for resource plugins + * + * @package Smarty + * @subpackage TemplateResources + * + * @method renderUncompiled(Smarty_Template_Source $source, Smarty_Internal_Template $_template) + * @method populateCompiledFilepath(Smarty_Template_Compiled $compiled, Smarty_Internal_Template $_template) + * @method process(Smarty_Internal_Template $_smarty_tpl) + */ +abstract class Smarty_Resource +{ + /** + * resource types provided by the core + * + * @var array + */ + public static $sysplugins = array( + 'file' => 'smarty_internal_resource_file.php', + 'string' => 'smarty_internal_resource_string.php', + 'extends' => 'smarty_internal_resource_extends.php', + 'stream' => 'smarty_internal_resource_stream.php', + 'eval' => 'smarty_internal_resource_eval.php', + 'php' => 'smarty_internal_resource_php.php' + ); + + /** + * Source is bypassing compiler + * + * @var boolean + */ + public $uncompiled = false; + + /** + * Source must be recompiled on every occasion + * + * @var boolean + */ + public $recompiled = false; + + /** + * Flag if resource does implement populateCompiledFilepath() method + * + * @var bool + */ + public $hasCompiledHandler = false; + + /** + * Load Resource Handler + * + * @param Smarty $smarty smarty object + * @param string $type name of the resource + * + * @throws SmartyException + * @return Smarty_Resource Resource Handler + */ + public static function load(Smarty $smarty, $type) + { + // try smarty's cache + if (isset($smarty->_cache[ 'resource_handlers' ][ $type ])) { + return $smarty->_cache[ 'resource_handlers' ][ $type ]; + } + // try registered resource + if (isset($smarty->registered_resources[ $type ])) { + return $smarty->_cache[ 'resource_handlers' ][ $type ] = + $smarty->registered_resources[ $type ] instanceof Smarty_Resource ? + $smarty->registered_resources[ $type ] : new Smarty_Internal_Resource_Registered(); + } + // try sysplugins dir + if (isset(self::$sysplugins[ $type ])) { + $_resource_class = 'Smarty_Internal_Resource_' . ucfirst($type); + return $smarty->_cache[ 'resource_handlers' ][ $type ] = new $_resource_class(); + } + // try plugins dir + $_resource_class = 'Smarty_Resource_' . ucfirst($type); + if ($smarty->loadPlugin($_resource_class)) { + if (class_exists($_resource_class, false)) { + return $smarty->_cache[ 'resource_handlers' ][ $type ] = new $_resource_class(); + } else { + $smarty->registerResource( + $type, + array( + "smarty_resource_{$type}_source", "smarty_resource_{$type}_timestamp", + "smarty_resource_{$type}_secure", "smarty_resource_{$type}_trusted" + ) + ); + // give it another try, now that the resource is registered properly + return self::load($smarty, $type); + } + } + // try streams + $_known_stream = stream_get_wrappers(); + if (in_array($type, $_known_stream)) { + // is known stream + if (is_object($smarty->security_policy)) { + $smarty->security_policy->isTrustedStream($type); + } + return $smarty->_cache[ 'resource_handlers' ][ $type ] = new Smarty_Internal_Resource_Stream(); + } + // TODO: try default_(template|config)_handler + // give up + throw new SmartyException("Unknown resource type '{$type}'"); + } + + /** + * extract resource_type and resource_name from template_resource and config_resource + * + * @note "C:/foo.tpl" was forced to file resource up till Smarty 3.1.3 (including). + * + * @param string $resource_name template_resource or config_resource to parse + * @param string $default_resource the default resource_type defined in $smarty + * + * @return array with parsed resource name and type + */ + public static function parseResourceName($resource_name, $default_resource) + { + if (preg_match('/^([A-Za-z0-9_\-]{2,})[:]/', $resource_name, $match)) { + $type = $match[ 1 ]; + $name = substr($resource_name, strlen($match[ 0 ])); + } else { + // no resource given, use default + // or single character before the colon is not a resource type, but part of the filepath + $type = $default_resource; + $name = $resource_name; + } + return array($name, $type); + } + + /** + * modify template_resource according to resource handlers specifications + * + * @param \Smarty_Internal_Template|\Smarty $obj Smarty instance + * @param string $template_resource template_resource to extract resource handler and + * name of + * + * @return string unique resource name + * @throws \SmartyException + */ + public static function getUniqueTemplateName($obj, $template_resource) + { + $smarty = $obj->_getSmartyObj(); + list($name, $type) = self::parseResourceName($template_resource, $smarty->default_resource_type); + // TODO: optimize for Smarty's internal resource types + $resource = Smarty_Resource::load($smarty, $type); + // go relative to a given template? + $_file_is_dotted = $name[ 0 ] === '.' && ($name[ 1 ] === '.' || $name[ 1 ] === '/'); + if ($obj->_isTplObj() && $_file_is_dotted + && ($obj->source->type === 'file' || $obj->parent->source->type === 'extends') + ) { + $name = $smarty->_realpath(dirname($obj->parent->source->filepath) . DIRECTORY_SEPARATOR . $name); + } + return $resource->buildUniqueResourceName($smarty, $name); + } + + /** + * initialize Source Object for given resource + * wrapper for backward compatibility to versions < 3.1.22 + * Either [$_template] or [$smarty, $template_resource] must be specified + * + * @param Smarty_Internal_Template $_template template object + * @param Smarty $smarty smarty object + * @param string $template_resource resource identifier + * + * @return \Smarty_Template_Source Source Object + * @throws \SmartyException + */ + public static function source( + Smarty_Internal_Template $_template = null, + Smarty $smarty = null, + $template_resource = null + ) { + return Smarty_Template_Source::load($_template, $smarty, $template_resource); + } + + /** + * Load template's source into current template object + * + * @param Smarty_Template_Source $source source object + * + * @return string template source + * @throws SmartyException if source cannot be loaded + */ + abstract public function getContent(Smarty_Template_Source $source); + + /** + * populate Source Object with meta data from Resource + * + * @param Smarty_Template_Source $source source object + * @param Smarty_Internal_Template $_template template object + */ + abstract public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null); + + /** + * populate Source Object with timestamp and exists from Resource + * + * @param Smarty_Template_Source $source source object + */ + public function populateTimestamp(Smarty_Template_Source $source) + { + // intentionally left blank + } + + /** + * modify resource_name according to resource handlers specifications + * + * @param Smarty $smarty Smarty instance + * @param string $resource_name resource_name to make unique + * @param boolean $isConfig flag for config resource + * + * @return string unique resource name + */ + public function buildUniqueResourceName(Smarty $smarty, $resource_name, $isConfig = false) + { + if ($isConfig) { + if (!isset($smarty->_joined_config_dir)) { + $smarty->getTemplateDir(null, true); + } + return get_class($this) . '#' . $smarty->_joined_config_dir . '#' . $resource_name; + } else { + if (!isset($smarty->_joined_template_dir)) { + $smarty->getTemplateDir(); + } + return get_class($this) . '#' . $smarty->_joined_template_dir . '#' . $resource_name; + } + } + + /* + * Check if resource must check time stamps when when loading complied or cached templates. + * Resources like 'extends' which use source components my disable timestamp checks on own resource. + * + * @return bool + */ + /** + * Determine basename for compiled filename + * + * @param Smarty_Template_Source $source source object + * + * @return string resource's basename + */ + public function getBasename(Smarty_Template_Source $source) + { + return basename(preg_replace('![^\w]+!', '_', $source->name)); + } + + /** + * @return bool + */ + public function checkTimestamps() + { + return true; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php new file mode 100644 index 0000000000..8d66be3ae1 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php @@ -0,0 +1,93 @@ +<?php +/** + * Smarty Resource Plugin + * + * @package Smarty + * @subpackage TemplateResources + * @author Rodney Rehm + */ + +/** + * Smarty Resource Plugin + * Wrapper Implementation for custom resource plugins + * + * @package Smarty + * @subpackage TemplateResources + */ +abstract class Smarty_Resource_Custom extends Smarty_Resource +{ + /** + * fetch template and its modification time from data source + * + * @param string $name template name + * @param string &$source template source + * @param integer &$mtime template modification timestamp (epoch) + */ + abstract protected function fetch($name, &$source, &$mtime); + + /** + * Fetch template's modification timestamp from data source + * {@internal implementing this method is optional. + * Only implement it if modification times can be accessed faster than loading the complete template source.}} + * + * @param string $name template name + * + * @return integer|boolean timestamp (epoch) the template was modified, or false if not found + */ + protected function fetchTimestamp($name) + { + return null; + } + + /** + * populate Source Object with meta data from Resource + * + * @param Smarty_Template_Source $source source object + * @param Smarty_Internal_Template $_template template object + */ + public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) + { + $source->filepath = $source->type . ':' . substr(preg_replace('/[^A-Za-z0-9.]/', '', $source->name), 0, 25); + $source->uid = sha1($source->type . ':' . $source->name); + $mtime = $this->fetchTimestamp($source->name); + if ($mtime !== null) { + $source->timestamp = $mtime; + } else { + $this->fetch($source->name, $content, $timestamp); + $source->timestamp = isset($timestamp) ? $timestamp : false; + if (isset($content)) { + $source->content = $content; + } + } + $source->exists = !!$source->timestamp; + } + + /** + * Load template's source into current template object + * + * @param Smarty_Template_Source $source source object + * + * @return string template source + * @throws SmartyException if source cannot be loaded + */ + public function getContent(Smarty_Template_Source $source) + { + $this->fetch($source->name, $content, $timestamp); + if (isset($content)) { + return $content; + } + throw new SmartyException("Unable to read template {$source->type} '{$source->name}'"); + } + + /** + * Determine basename for compiled filename + * + * @param Smarty_Template_Source $source source object + * + * @return string resource's basename + */ + public function getBasename(Smarty_Template_Source $source) + { + return basename(substr(preg_replace('/[^A-Za-z0-9.]/', '', $source->name), 0, 25)); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php new file mode 100644 index 0000000000..760c4dd338 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_recompiled.php @@ -0,0 +1,94 @@ +<?php +/** + * Smarty Resource Plugin + * + * @package Smarty + * @subpackage TemplateResources + * @author Rodney Rehm + */ + +/** + * Smarty Resource Plugin + * Base implementation for resource plugins that don't compile cache + * + * @package Smarty + * @subpackage TemplateResources + */ +abstract class Smarty_Resource_Recompiled extends Smarty_Resource +{ + /** + * Flag that it's an recompiled resource + * + * @var bool + */ + public $recompiled = true; + + /** + * Resource does implement populateCompiledFilepath() method + * + * @var bool + */ + public $hasCompiledHandler = true; + + /** + * compile template from source + * + * @param Smarty_Internal_Template $_smarty_tpl do not change variable name, is used by compiled template + * + * @throws Exception + */ + public function process(Smarty_Internal_Template $_smarty_tpl) + { + $compiled = &$_smarty_tpl->compiled; + $compiled->file_dependency = array(); + $compiled->includes = array(); + $compiled->nocache_hash = null; + $compiled->unifunc = null; + $level = ob_get_level(); + ob_start(); + $_smarty_tpl->loadCompiler(); + // call compiler + try { + eval('?>' . $_smarty_tpl->compiler->compileTemplate($_smarty_tpl)); + } catch (Exception $e) { + unset($_smarty_tpl->compiler); + while (ob_get_level() > $level) { + ob_end_clean(); + } + throw $e; + } + // release compiler object to free memory + unset($_smarty_tpl->compiler); + ob_get_clean(); + $compiled->timestamp = time(); + $compiled->exists = true; + } + + /** + * populate Compiled Object with compiled filepath + * + * @param Smarty_Template_Compiled $compiled compiled object + * @param Smarty_Internal_Template $_template template object + * + * @return void + */ + public function populateCompiledFilepath(Smarty_Template_Compiled $compiled, Smarty_Internal_Template $_template) + { + $compiled->filepath = false; + $compiled->timestamp = false; + $compiled->exists = false; + } + + /* + * Disable timestamp checks for recompiled resource. + * + * @return bool + */ + /** + * @return bool + */ + public function checkTimestamps() + { + return false; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_uncompiled.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_uncompiled.php new file mode 100644 index 0000000000..a11e2c14c7 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_resource_uncompiled.php @@ -0,0 +1,49 @@ +<?php +/** + * Smarty Resource Plugin + * + * @package Smarty + * @subpackage TemplateResources + * @author Rodney Rehm + */ + +/** + * Smarty Resource Plugin + * Base implementation for resource plugins that don't use the compiler + * + * @package Smarty + * @subpackage TemplateResources + */ +abstract class Smarty_Resource_Uncompiled extends Smarty_Resource +{ + /** + * Flag that it's an uncompiled resource + * + * @var bool + */ + public $uncompiled = true; + + /** + * Resource does implement populateCompiledFilepath() method + * + * @var bool + */ + public $hasCompiledHandler = true; + + /** + * populate compiled object with compiled filepath + * + * @param Smarty_Template_Compiled $compiled compiled object + * @param Smarty_Internal_Template $_template template object + */ + public function populateCompiledFilepath(Smarty_Template_Compiled $compiled, Smarty_Internal_Template $_template) + { + $compiled->filepath = $_template->source->filepath; + $compiled->timestamp = $_template->source->timestamp; + $compiled->exists = $_template->source->exists; + if ($_template->smarty->merge_compiled_includes || $_template->source->handler->checkTimestamps()) { + $compiled->file_dependency[ $_template->source->uid ] = + array($compiled->filepath, $compiled->timestamp, $_template->source->type,); + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_security.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_security.php new file mode 100644 index 0000000000..441a7e2840 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_security.php @@ -0,0 +1,721 @@ +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage Security + * @author Uwe Tews + */ +/** + * FIXME: Smarty_Security API + * - getter and setter instead of public properties would allow cultivating an internal cache properly + * - current implementation of isTrustedResourceDir() assumes that Smarty::$template_dir and Smarty::$config_dir + * are immutable the cache is killed every time either of the variables change. That means that two distinct + * Smarty objects with differing + * $template_dir or $config_dir should NOT share the same Smarty_Security instance, + * as this would lead to (severe) performance penalty! how should this be handled? + */ + +/** + * This class does contain the security settings + */ +class Smarty_Security +{ + /** + * This determines how Smarty handles "<?php ... ?>" tags in templates. + * possible values: + * <ul> + * <li>Smarty::PHP_PASSTHRU -> echo PHP tags as they are</li> + * <li>Smarty::PHP_QUOTE -> escape tags as entities</li> + * <li>Smarty::PHP_REMOVE -> remove php tags</li> + * <li>Smarty::PHP_ALLOW -> execute php tags</li> + * </ul> + * + * @var integer + */ + public $php_handling = Smarty::PHP_PASSTHRU; + + /** + * This is the list of template directories that are considered secure. + * $template_dir is in this list implicitly. + * + * @var array + */ + public $secure_dir = array(); + + /** + * This is an array of directories where trusted php scripts reside. + * {@link $security} is disabled during their inclusion/execution. + * + * @var array + */ + public $trusted_dir = array(); + + /** + * List of regular expressions (PCRE) that include trusted URIs + * + * @var array + */ + public $trusted_uri = array(); + + /** + * List of trusted constants names + * + * @var array + */ + public $trusted_constants = array(); + + /** + * This is an array of trusted static classes. + * If empty access to all static classes is allowed. + * If set to 'none' none is allowed. + * + * @var array + */ + public $static_classes = array(); + + /** + * This is an nested array of trusted classes and static methods. + * If empty access to all static classes and methods is allowed. + * Format: + * array ( + * 'class_1' => array('method_1', 'method_2'), // allowed methods listed + * 'class_2' => array(), // all methods of class allowed + * ) + * If set to null none is allowed. + * + * @var array + */ + public $trusted_static_methods = array(); + + /** + * This is an array of trusted static properties. + * If empty access to all static classes and properties is allowed. + * Format: + * array ( + * 'class_1' => array('prop_1', 'prop_2'), // allowed properties listed + * 'class_2' => array(), // all properties of class allowed + * ) + * If set to null none is allowed. + * + * @var array + */ + public $trusted_static_properties = array(); + + /** + * This is an array of trusted PHP functions. + * If empty all functions are allowed. + * To disable all PHP functions set $php_functions = null. + * + * @var array + */ + public $php_functions = array('isset', 'empty', 'count', 'sizeof', 'in_array', 'is_array', 'time',); + + /** + * This is an array of trusted PHP modifiers. + * If empty all modifiers are allowed. + * To disable all modifier set $php_modifiers = null. + * + * @var array + */ + public $php_modifiers = array('escape', 'count', 'nl2br',); + + /** + * This is an array of allowed tags. + * If empty no restriction by allowed_tags. + * + * @var array + */ + public $allowed_tags = array(); + + /** + * This is an array of disabled tags. + * If empty no restriction by disabled_tags. + * + * @var array + */ + public $disabled_tags = array(); + + /** + * This is an array of allowed modifier plugins. + * If empty no restriction by allowed_modifiers. + * + * @var array + */ + public $allowed_modifiers = array(); + + /** + * This is an array of disabled modifier plugins. + * If empty no restriction by disabled_modifiers. + * + * @var array + */ + public $disabled_modifiers = array(); + + /** + * This is an array of disabled special $smarty variables. + * + * @var array + */ + public $disabled_special_smarty_vars = array(); + + /** + * This is an array of trusted streams. + * If empty all streams are allowed. + * To disable all streams set $streams = null. + * + * @var array + */ + public $streams = array('file'); + + /** + * + flag if constants can be accessed from template + * + * @var boolean + */ + public $allow_constants = true; + + /** + * + flag if super globals can be accessed from template + * + * @var boolean + */ + public $allow_super_globals = true; + + /** + * max template nesting level + * + * @var int + */ + public $max_template_nesting = 0; + + /** + * current template nesting level + * + * @var int + */ + private $_current_template_nesting = 0; + + /** + * Cache for $resource_dir lookup + * + * @var array + */ + protected $_resource_dir = array(); + + /** + * Cache for $template_dir lookup + * + * @var array + */ + protected $_template_dir = array(); + + /** + * Cache for $config_dir lookup + * + * @var array + */ + protected $_config_dir = array(); + + /** + * Cache for $secure_dir lookup + * + * @var array + */ + protected $_secure_dir = array(); + + /** + * Cache for $php_resource_dir lookup + * + * @var array + */ + protected $_php_resource_dir = null; + + /** + * Cache for $trusted_dir lookup + * + * @var array + */ + protected $_trusted_dir = null; + + /** + * Cache for include path status + * + * @var bool + */ + protected $_include_path_status = false; + + /** + * Cache for $_include_array lookup + * + * @var array + */ + protected $_include_dir = array(); + + /** + * @param Smarty $smarty + */ + public function __construct($smarty) + { + $this->smarty = $smarty; + } + + /** + * Check if PHP function is trusted. + * + * @param string $function_name + * @param object $compiler compiler object + * + * @return boolean true if function is trusted + */ + public function isTrustedPhpFunction($function_name, $compiler) + { + if (isset($this->php_functions) + && (empty($this->php_functions) || in_array($function_name, $this->php_functions)) + ) { + return true; + } + $compiler->trigger_template_error("PHP function '{$function_name}' not allowed by security setting"); + return false; // should not, but who knows what happens to the compiler in the future? + } + + /** + * Check if static class is trusted. + * + * @param string $class_name + * @param object $compiler compiler object + * + * @return boolean true if class is trusted + */ + public function isTrustedStaticClass($class_name, $compiler) + { + if (isset($this->static_classes) + && (empty($this->static_classes) || in_array($class_name, $this->static_classes)) + ) { + return true; + } + $compiler->trigger_template_error("access to static class '{$class_name}' not allowed by security setting"); + return false; // should not, but who knows what happens to the compiler in the future? + } + + /** + * Check if static class method/property is trusted. + * + * @param string $class_name + * @param string $params + * @param object $compiler compiler object + * + * @return boolean true if class method is trusted + */ + public function isTrustedStaticClassAccess($class_name, $params, $compiler) + { + if (!isset($params[ 2 ])) { + // fall back + return $this->isTrustedStaticClass($class_name, $compiler); + } + if ($params[ 2 ] === 'method') { + $allowed = $this->trusted_static_methods; + $name = substr($params[ 0 ], 0, strpos($params[ 0 ], '(')); + } else { + $allowed = $this->trusted_static_properties; + // strip '$' + $name = substr($params[ 0 ], 1); + } + if (isset($allowed)) { + if (empty($allowed)) { + // fall back + return $this->isTrustedStaticClass($class_name, $compiler); + } + if (isset($allowed[ $class_name ]) + && (empty($allowed[ $class_name ]) || in_array($name, $allowed[ $class_name ])) + ) { + return true; + } + } + $compiler->trigger_template_error("access to static class '{$class_name}' {$params[2]} '{$name}' not allowed by security setting"); + return false; // should not, but who knows what happens to the compiler in the future? + } + + /** + * Check if PHP modifier is trusted. + * + * @param string $modifier_name + * @param object $compiler compiler object + * + * @return boolean true if modifier is trusted + */ + public function isTrustedPhpModifier($modifier_name, $compiler) + { + if (isset($this->php_modifiers) + && (empty($this->php_modifiers) || in_array($modifier_name, $this->php_modifiers)) + ) { + return true; + } + $compiler->trigger_template_error("modifier '{$modifier_name}' not allowed by security setting"); + return false; // should not, but who knows what happens to the compiler in the future? + } + + /** + * Check if tag is trusted. + * + * @param string $tag_name + * @param object $compiler compiler object + * + * @return boolean true if tag is trusted + */ + public function isTrustedTag($tag_name, $compiler) + { + // check for internal always required tags + if (in_array( + $tag_name, + array( + 'assign', 'call', 'private_filter', 'private_block_plugin', 'private_function_plugin', + 'private_object_block_function', 'private_object_function', 'private_registered_function', + 'private_registered_block', 'private_special_variable', 'private_print_expression', + 'private_modifier' + ) + ) + ) { + return true; + } + // check security settings + if (empty($this->allowed_tags)) { + if (empty($this->disabled_tags) || !in_array($tag_name, $this->disabled_tags)) { + return true; + } else { + $compiler->trigger_template_error("tag '{$tag_name}' disabled by security setting", null, true); + } + } elseif (in_array($tag_name, $this->allowed_tags) && !in_array($tag_name, $this->disabled_tags)) { + return true; + } else { + $compiler->trigger_template_error("tag '{$tag_name}' not allowed by security setting", null, true); + } + return false; // should not, but who knows what happens to the compiler in the future? + } + + /** + * Check if special $smarty variable is trusted. + * + * @param string $var_name + * @param object $compiler compiler object + * + * @return boolean true if tag is trusted + */ + public function isTrustedSpecialSmartyVar($var_name, $compiler) + { + if (!in_array($var_name, $this->disabled_special_smarty_vars)) { + return true; + } else { + $compiler->trigger_template_error( + "special variable '\$smarty.{$var_name}' not allowed by security setting", + null, + true + ); + } + return false; // should not, but who knows what happens to the compiler in the future? + } + + /** + * Check if modifier plugin is trusted. + * + * @param string $modifier_name + * @param object $compiler compiler object + * + * @return boolean true if tag is trusted + */ + public function isTrustedModifier($modifier_name, $compiler) + { + // check for internal always allowed modifier + if (in_array($modifier_name, array('default'))) { + return true; + } + // check security settings + if (empty($this->allowed_modifiers)) { + if (empty($this->disabled_modifiers) || !in_array($modifier_name, $this->disabled_modifiers)) { + return true; + } else { + $compiler->trigger_template_error( + "modifier '{$modifier_name}' disabled by security setting", + null, + true + ); + } + } elseif (in_array($modifier_name, $this->allowed_modifiers) + && !in_array($modifier_name, $this->disabled_modifiers) + ) { + return true; + } else { + $compiler->trigger_template_error( + "modifier '{$modifier_name}' not allowed by security setting", + null, + true + ); + } + return false; // should not, but who knows what happens to the compiler in the future? + } + + /** + * Check if constants are enabled or trusted + * + * @param string $const constant name + * @param object $compiler compiler object + * + * @return bool + */ + public function isTrustedConstant($const, $compiler) + { + if (in_array($const, array('true', 'false', 'null'))) { + return true; + } + if (!empty($this->trusted_constants)) { + if (!in_array(strtolower($const), $this->trusted_constants)) { + $compiler->trigger_template_error("Security: access to constant '{$const}' not permitted"); + return false; + } + return true; + } + if ($this->allow_constants) { + return true; + } + $compiler->trigger_template_error("Security: access to constants not permitted"); + return false; + } + + /** + * Check if stream is trusted. + * + * @param string $stream_name + * + * @return boolean true if stream is trusted + * @throws SmartyException if stream is not trusted + */ + public function isTrustedStream($stream_name) + { + if (isset($this->streams) && (empty($this->streams) || in_array($stream_name, $this->streams))) { + return true; + } + throw new SmartyException("stream '{$stream_name}' not allowed by security setting"); + } + + /** + * Check if directory of file resource is trusted. + * + * @param string $filepath + * @param null|bool $isConfig + * + * @return bool true if directory is trusted + * @throws \SmartyException if directory is not trusted + */ + public function isTrustedResourceDir($filepath, $isConfig = null) + { + if ($this->_include_path_status !== $this->smarty->use_include_path) { + $_dir = + $this->smarty->use_include_path ? $this->smarty->ext->_getIncludePath->getIncludePathDirs($this->smarty) : array(); + if ($this->_include_dir !== $_dir) { + $this->_updateResourceDir($this->_include_dir, $_dir); + $this->_include_dir = $_dir; + } + $this->_include_path_status = $this->smarty->use_include_path; + } + $_dir = $this->smarty->getTemplateDir(); + if ($this->_template_dir !== $_dir) { + $this->_updateResourceDir($this->_template_dir, $_dir); + $this->_template_dir = $_dir; + } + $_dir = $this->smarty->getConfigDir(); + if ($this->_config_dir !== $_dir) { + $this->_updateResourceDir($this->_config_dir, $_dir); + $this->_config_dir = $_dir; + } + if ($this->_secure_dir !== $this->secure_dir) { + $this->secure_dir = (array)$this->secure_dir; + foreach ($this->secure_dir as $k => $d) { + $this->secure_dir[ $k ] = $this->smarty->_realpath($d . DIRECTORY_SEPARATOR, true); + } + $this->_updateResourceDir($this->_secure_dir, $this->secure_dir); + $this->_secure_dir = $this->secure_dir; + } + $addPath = $this->_checkDir($filepath, $this->_resource_dir); + if ($addPath !== false) { + $this->_resource_dir = array_merge($this->_resource_dir, $addPath); + } + return true; + } + + /** + * Check if URI (e.g. {fetch} or {html_image}) is trusted + * To simplify things, isTrustedUri() resolves all input to "{$PROTOCOL}://{$HOSTNAME}". + * So "http://username:password@hello.world.example.org:8080/some-path?some=query-string" + * is reduced to "http://hello.world.example.org" prior to applying the patters from {@link $trusted_uri}. + * + * @param string $uri + * + * @return boolean true if URI is trusted + * @throws SmartyException if URI is not trusted + * @uses $trusted_uri for list of patterns to match against $uri + */ + public function isTrustedUri($uri) + { + $_uri = parse_url($uri); + if (!empty($_uri[ 'scheme' ]) && !empty($_uri[ 'host' ])) { + $_uri = $_uri[ 'scheme' ] . '://' . $_uri[ 'host' ]; + foreach ($this->trusted_uri as $pattern) { + if (preg_match($pattern, $_uri)) { + return true; + } + } + } + throw new SmartyException("URI '{$uri}' not allowed by security setting"); + } + + /** + * Check if directory of file resource is trusted. + * + * @param string $filepath + * + * @return boolean true if directory is trusted + * @throws SmartyException if PHP directory is not trusted + */ + public function isTrustedPHPDir($filepath) + { + if (empty($this->trusted_dir)) { + throw new SmartyException("directory '{$filepath}' not allowed by security setting (no trusted_dir specified)"); + } + // check if index is outdated + if (!$this->_trusted_dir || $this->_trusted_dir !== $this->trusted_dir) { + $this->_php_resource_dir = array(); + $this->_trusted_dir = $this->trusted_dir; + foreach ((array)$this->trusted_dir as $directory) { + $directory = $this->smarty->_realpath($directory . '/', true); + $this->_php_resource_dir[ $directory ] = true; + } + } + $addPath = $this->_checkDir($filepath, $this->_php_resource_dir); + if ($addPath !== false) { + $this->_php_resource_dir = array_merge($this->_php_resource_dir, $addPath); + } + return true; + } + + /** + * Remove old directories and its sub folders, add new directories + * + * @param array $oldDir + * @param array $newDir + */ + private function _updateResourceDir($oldDir, $newDir) + { + foreach ($oldDir as $directory) { + // $directory = $this->smarty->_realpath($directory, true); + $length = strlen($directory); + foreach ($this->_resource_dir as $dir) { + if (substr($dir, 0, $length) === $directory) { + unset($this->_resource_dir[ $dir ]); + } + } + } + foreach ($newDir as $directory) { + // $directory = $this->smarty->_realpath($directory, true); + $this->_resource_dir[ $directory ] = true; + } + } + + /** + * Check if file is inside a valid directory + * + * @param string $filepath + * @param array $dirs valid directories + * + * @return array|bool + * @throws \SmartyException + */ + private function _checkDir($filepath, $dirs) + { + $directory = dirname($this->smarty->_realpath($filepath, true)) . DIRECTORY_SEPARATOR; + $_directory = array(); + if (!preg_match('#[\\\\/][.][.][\\\\/]#', $directory)) { + while (true) { + // test if the directory is trusted + if (isset($dirs[ $directory ])) { + return $_directory; + } + // abort if we've reached root + if (!preg_match('#[\\\\/][^\\\\/]+[\\\\/]$#', $directory)) { + // give up + break; + } + // remember the directory to add it to _resource_dir in case we're successful + $_directory[ $directory ] = true; + // bubble up one level + $directory = preg_replace('#[\\\\/][^\\\\/]+[\\\\/]$#', DIRECTORY_SEPARATOR, $directory); + } + } + // give up + throw new SmartyException(sprintf('Smarty Security: not trusted file path \'%s\' ', $filepath)); + } + + /** + * Loads security class and enables security + * + * @param \Smarty $smarty + * @param string|Smarty_Security $security_class if a string is used, it must be class-name + * + * @return \Smarty current Smarty instance for chaining + * @throws \SmartyException when an invalid class name is provided + */ + public static function enableSecurity(Smarty $smarty, $security_class) + { + if ($security_class instanceof Smarty_Security) { + $smarty->security_policy = $security_class; + return $smarty; + } elseif (is_object($security_class)) { + throw new SmartyException("Class '" . get_class($security_class) . "' must extend Smarty_Security."); + } + if ($security_class === null) { + $security_class = $smarty->security_class; + } + if (!class_exists($security_class)) { + throw new SmartyException("Security class '$security_class' is not defined"); + } elseif ($security_class !== 'Smarty_Security' && !is_subclass_of($security_class, 'Smarty_Security')) { + throw new SmartyException("Class '$security_class' must extend Smarty_Security."); + } else { + $smarty->security_policy = new $security_class($smarty); + } + return $smarty; + } + + /** + * Start template processing + * + * @param $template + * + * @throws SmartyException + */ + public function startTemplate($template) + { + if ($this->max_template_nesting > 0 && $this->_current_template_nesting++ >= $this->max_template_nesting) { + throw new SmartyException("maximum template nesting level of '{$this->max_template_nesting}' exceeded when calling '{$template->template_resource}'"); + } + } + + /** + * Exit template processing + */ + public function endTemplate() + { + if ($this->max_template_nesting > 0) { + $this->_current_template_nesting--; + } + } + + /** + * Register callback functions call at start/end of template rendering + * + * @param \Smarty_Internal_Template $template + */ + public function registerCallBacks(Smarty_Internal_Template $template) + { + $template->startRenderCallbacks[] = array($this, 'startTemplate'); + $template->endRenderCallbacks[] = array($this, 'endTemplate'); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_cached.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_cached.php new file mode 100644 index 0000000000..508d27f366 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_cached.php @@ -0,0 +1,257 @@ +<?php +/** + * Created by PhpStorm. + * User: Uwe Tews + * Date: 04.12.2014 + * Time: 06:08 + */ + +/** + * Smarty Resource Data Object + * Cache Data Container for Template Files + * + * @package Smarty + * @subpackage TemplateResources + * @author Rodney Rehm + */ +class Smarty_Template_Cached extends Smarty_Template_Resource_Base +{ + /** + * Cache Is Valid + * + * @var boolean + */ + public $valid = null; + + /** + * CacheResource Handler + * + * @var Smarty_CacheResource + */ + public $handler = null; + + /** + * Template Cache Id (Smarty_Internal_Template::$cache_id) + * + * @var string + */ + public $cache_id = null; + + /** + * saved cache lifetime in seconds + * + * @var integer + */ + public $cache_lifetime = 0; + + /** + * Id for cache locking + * + * @var string + */ + public $lock_id = null; + + /** + * flag that cache is locked by this instance + * + * @var bool + */ + public $is_locked = false; + + /** + * Source Object + * + * @var Smarty_Template_Source + */ + public $source = null; + + /** + * Nocache hash codes of processed compiled templates + * + * @var array + */ + public $hashes = array(); + + /** + * Flag if this is a cache resource + * + * @var bool + */ + public $isCache = true; + + /** + * create Cached Object container + * + * @param Smarty_Internal_Template $_template template object + * + * @throws \SmartyException + */ + public function __construct(Smarty_Internal_Template $_template) + { + $this->compile_id = $_template->compile_id; + $this->cache_id = $_template->cache_id; + $this->source = $_template->source; + if (!class_exists('Smarty_CacheResource', false)) { + include SMARTY_SYSPLUGINS_DIR . 'smarty_cacheresource.php'; + } + $this->handler = Smarty_CacheResource::load($_template->smarty); + } + + /** + * @param Smarty_Internal_Template $_template + * + * @return Smarty_Template_Cached + */ + public static function load(Smarty_Internal_Template $_template) + { + $_template->cached = new Smarty_Template_Cached($_template); + $_template->cached->handler->populate($_template->cached, $_template); + // caching enabled ? + if (!$_template->caching || $_template->source->handler->recompiled + ) { + $_template->cached->valid = false; + } + return $_template->cached; + } + + /** + * Render cache template + * + * @param \Smarty_Internal_Template $_template + * @param bool $no_output_filter + * + * @throws \Exception + */ + public function render(Smarty_Internal_Template $_template, $no_output_filter = true) + { + if ($this->isCached($_template)) { + if ($_template->smarty->debugging) { + if (!isset($_template->smarty->_debug)) { + $_template->smarty->_debug = new Smarty_Internal_Debug(); + } + $_template->smarty->_debug->start_cache($_template); + } + if (!$this->processed) { + $this->process($_template); + } + $this->getRenderedTemplateCode($_template); + if ($_template->smarty->debugging) { + $_template->smarty->_debug->end_cache($_template); + } + return; + } else { + $_template->smarty->ext->_updateCache->updateCache($this, $_template, $no_output_filter); + } + } + + /** + * Check if cache is valid, lock cache if required + * + * @param \Smarty_Internal_Template $_template + * + * @return bool flag true if cache is valid + */ + public function isCached(Smarty_Internal_Template $_template) + { + if ($this->valid !== null) { + return $this->valid; + } + while (true) { + while (true) { + if ($this->exists === false || $_template->smarty->force_compile || $_template->smarty->force_cache) { + $this->valid = false; + } else { + $this->valid = true; + } + if ($this->valid && $_template->caching === Smarty::CACHING_LIFETIME_CURRENT + && $_template->cache_lifetime >= 0 && time() > ($this->timestamp + $_template->cache_lifetime) + ) { + // lifetime expired + $this->valid = false; + } + if ($this->valid && $_template->compile_check === Smarty::COMPILECHECK_ON + && $_template->source->getTimeStamp() > $this->timestamp + ) { + $this->valid = false; + } + if ($this->valid || !$_template->smarty->cache_locking) { + break; + } + if (!$this->handler->locked($_template->smarty, $this)) { + $this->handler->acquireLock($_template->smarty, $this); + break 2; + } + $this->handler->populate($this, $_template); + } + if ($this->valid) { + if (!$_template->smarty->cache_locking || $this->handler->locked($_template->smarty, $this) === null) { + // load cache file for the following checks + if ($_template->smarty->debugging) { + $_template->smarty->_debug->start_cache($_template); + } + if ($this->handler->process($_template, $this) === false) { + $this->valid = false; + } else { + $this->processed = true; + } + if ($_template->smarty->debugging) { + $_template->smarty->_debug->end_cache($_template); + } + } else { + $this->is_locked = true; + continue; + } + } else { + return $this->valid; + } + if ($this->valid && $_template->caching === Smarty::CACHING_LIFETIME_SAVED + && $_template->cached->cache_lifetime >= 0 + && (time() > ($_template->cached->timestamp + $_template->cached->cache_lifetime)) + ) { + $this->valid = false; + } + if ($_template->smarty->cache_locking) { + if (!$this->valid) { + $this->handler->acquireLock($_template->smarty, $this); + } elseif ($this->is_locked) { + $this->handler->releaseLock($_template->smarty, $this); + } + } + return $this->valid; + } + return $this->valid; + } + + /** + * Process cached template + * + * @param Smarty_Internal_Template $_template template object + * @param bool $update flag if called because cache update + */ + public function process(Smarty_Internal_Template $_template, $update = false) + { + if ($this->handler->process($_template, $this, $update) === false) { + $this->valid = false; + } + if ($this->valid) { + $this->processed = true; + } else { + $this->processed = false; + } + } + + /** + * Read cache content from handler + * + * @param Smarty_Internal_Template $_template template object + * + * @return string|false content + */ + public function read(Smarty_Internal_Template $_template) + { + if (!$_template->source->handler->recompiled) { + return $this->handler->readCachedContent($_template); + } + return false; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php new file mode 100644 index 0000000000..37d8f0a9ef --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php @@ -0,0 +1,257 @@ +<?php + +/** + * Smarty Resource Data Object + * Meta Data Container for Template Files + * + * @package Smarty + * @subpackage TemplateResources + * @author Rodney Rehm + * @property string $content compiled content + */ +class Smarty_Template_Compiled extends Smarty_Template_Resource_Base +{ + /** + * nocache hash + * + * @var string|null + */ + public $nocache_hash = null; + + /** + * get a Compiled Object of this source + * + * @param Smarty_Internal_Template $_template template object + * + * @return Smarty_Template_Compiled compiled object + */ + public static function load($_template) + { + $compiled = new Smarty_Template_Compiled(); + if ($_template->source->handler->hasCompiledHandler) { + $_template->source->handler->populateCompiledFilepath($compiled, $_template); + } else { + $compiled->populateCompiledFilepath($_template); + } + return $compiled; + } + + /** + * populate Compiled Object with compiled filepath + * + * @param Smarty_Internal_Template $_template template object + **/ + public function populateCompiledFilepath(Smarty_Internal_Template $_template) + { + $source = &$_template->source; + $smarty = &$_template->smarty; + $this->filepath = $smarty->getCompileDir(); + if (isset($_template->compile_id)) { + $this->filepath .= preg_replace('![^\w]+!', '_', $_template->compile_id) . + ($smarty->use_sub_dirs ? DIRECTORY_SEPARATOR : '^'); + } + // if use_sub_dirs, break file into directories + if ($smarty->use_sub_dirs) { + $this->filepath .= $source->uid[ 0 ] . $source->uid[ 1 ] . DIRECTORY_SEPARATOR . $source->uid[ 2 ] . + $source->uid[ 3 ] . DIRECTORY_SEPARATOR . $source->uid[ 4 ] . $source->uid[ 5 ] . + DIRECTORY_SEPARATOR; + } + $this->filepath .= $source->uid . '_'; + if ($source->isConfig) { + $this->filepath .= (int)$smarty->config_read_hidden + (int)$smarty->config_booleanize * 2 + + (int)$smarty->config_overwrite * 4; + } else { + $this->filepath .= (int)$smarty->merge_compiled_includes + (int)$smarty->escape_html * 2 + + (($smarty->merge_compiled_includes && $source->type === 'extends') ? + (int)$smarty->extends_recursion * 4 : 0); + } + $this->filepath .= '.' . $source->type; + $basename = $source->handler->getBasename($source); + if (!empty($basename)) { + $this->filepath .= '.' . $basename; + } + if ($_template->caching) { + $this->filepath .= '.cache'; + } + $this->filepath .= '.php'; + $this->timestamp = $this->exists = is_file($this->filepath); + if ($this->exists) { + $this->timestamp = filemtime($this->filepath); + } + } + + /** + * render compiled template code + * + * @param Smarty_Internal_Template $_template + * + * @return string + * @throws Exception + */ + public function render(Smarty_Internal_Template $_template) + { + // checks if template exists + if (!$_template->source->exists) { + $type = $_template->source->isConfig ? 'config' : 'template'; + throw new SmartyException("Unable to load {$type} '{$_template->source->type}:{$_template->source->name}'"); + } + if ($_template->smarty->debugging) { + if (!isset($_template->smarty->_debug)) { + $_template->smarty->_debug = new Smarty_Internal_Debug(); + } + $_template->smarty->_debug->start_render($_template); + } + if (!$this->processed) { + $this->process($_template); + } + if (isset($_template->cached)) { + $_template->cached->file_dependency = + array_merge($_template->cached->file_dependency, $this->file_dependency); + } + if ($_template->source->handler->uncompiled) { + $_template->source->handler->renderUncompiled($_template->source, $_template); + } else { + $this->getRenderedTemplateCode($_template); + } + if ($_template->caching && $this->has_nocache_code) { + $_template->cached->hashes[ $this->nocache_hash ] = true; + } + if ($_template->smarty->debugging) { + $_template->smarty->_debug->end_render($_template); + } + } + + /** + * load compiled template or compile from source + * + * @param Smarty_Internal_Template $_smarty_tpl do not change variable name, is used by compiled template + * + * @throws Exception + */ + public function process(Smarty_Internal_Template $_smarty_tpl) + { + $source = &$_smarty_tpl->source; + $smarty = &$_smarty_tpl->smarty; + if ($source->handler->recompiled) { + $source->handler->process($_smarty_tpl); + } elseif (!$source->handler->uncompiled) { + if (!$this->exists || $smarty->force_compile + || ($_smarty_tpl->compile_check && $source->getTimeStamp() > $this->getTimeStamp()) + ) { + $this->compileTemplateSource($_smarty_tpl); + $compileCheck = $_smarty_tpl->compile_check; + $_smarty_tpl->compile_check = Smarty::COMPILECHECK_OFF; + $this->loadCompiledTemplate($_smarty_tpl); + $_smarty_tpl->compile_check = $compileCheck; + } else { + $_smarty_tpl->mustCompile = true; + @include $this->filepath; + if ($_smarty_tpl->mustCompile) { + $this->compileTemplateSource($_smarty_tpl); + $compileCheck = $_smarty_tpl->compile_check; + $_smarty_tpl->compile_check = Smarty::COMPILECHECK_OFF; + $this->loadCompiledTemplate($_smarty_tpl); + $_smarty_tpl->compile_check = $compileCheck; + } + } + $_smarty_tpl->_subTemplateRegister(); + $this->processed = true; + } + } + + /** + * compile template from source + * + * @param Smarty_Internal_Template $_template + * + * @throws Exception + */ + public function compileTemplateSource(Smarty_Internal_Template $_template) + { + $this->file_dependency = array(); + $this->includes = array(); + $this->nocache_hash = null; + $this->unifunc = null; + // compile locking + if ($saved_timestamp = (!$_template->source->handler->recompiled && is_file($this->filepath))) { + $saved_timestamp = $this->getTimeStamp(); + touch($this->filepath); + } + // compile locking + try { + // call compiler + $_template->loadCompiler(); + $this->write($_template, $_template->compiler->compileTemplate($_template)); + } catch (Exception $e) { + // restore old timestamp in case of error + if ($saved_timestamp && is_file($this->filepath)) { + touch($this->filepath, $saved_timestamp); + } + unset($_template->compiler); + throw $e; + } + // release compiler object to free memory + unset($_template->compiler); + } + + /** + * Write compiled code by handler + * + * @param Smarty_Internal_Template $_template template object + * @param string $code compiled code + * + * @return bool success + * @throws \SmartyException + */ + public function write(Smarty_Internal_Template $_template, $code) + { + if (!$_template->source->handler->recompiled) { + if ($_template->smarty->ext->_writeFile->writeFile($this->filepath, $code, $_template->smarty) === true) { + $this->timestamp = $this->exists = is_file($this->filepath); + if ($this->exists) { + $this->timestamp = filemtime($this->filepath); + return true; + } + } + return false; + } + return true; + } + + /** + * Read compiled content from handler + * + * @param Smarty_Internal_Template $_template template object + * + * @return string content + */ + public function read(Smarty_Internal_Template $_template) + { + if (!$_template->source->handler->recompiled) { + return file_get_contents($this->filepath); + } + return isset($this->content) ? $this->content : false; + } + + /** + * Load fresh compiled template by including the PHP file + * HHVM requires a work around because of a PHP incompatibility + * + * @param \Smarty_Internal_Template $_smarty_tpl do not change variable name, is used by compiled template + */ + private function loadCompiledTemplate(Smarty_Internal_Template $_smarty_tpl) + { + if (function_exists('opcache_invalidate') + && (!function_exists('ini_get') || strlen(ini_get("opcache.restrict_api")) < 1) + ) { + opcache_invalidate($this->filepath, true); + } elseif (function_exists('apc_compile_file')) { + apc_compile_file($this->filepath); + } + if (defined('HHVM_VERSION')) { + eval('?>' . file_get_contents($this->filepath)); + } else { + include $this->filepath; + } + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_config.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_config.php new file mode 100644 index 0000000000..850ae32e7c --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_config.php @@ -0,0 +1,100 @@ +<?php +/** + * Smarty Config Source Plugin + * + * @package Smarty + * @subpackage TemplateResources + * @author Uwe Tews + */ + +/** + * Smarty Config Resource Data Object + * Meta Data Container for Template Files + * + * @package Smarty + * @subpackage TemplateResources + * @author Uwe Tews + */ +class Smarty_Template_Config extends Smarty_Template_Source +{ + /** + * array of section names, single section or null + * + * @var null|string|array + */ + public $config_sections = null; + + /** + * scope into which the config variables shall be loaded + * + * @var int + */ + public $scope = 0; + + /** + * Flag that source is a config file + * + * @var bool + */ + public $isConfig = true; + + /** + * Name of the Class to compile this resource's contents with + * + * @var string + */ + public $compiler_class = 'Smarty_Internal_Config_File_Compiler'; + + /** + * Name of the Class to tokenize this resource's contents with + * + * @var string + */ + public $template_lexer_class = 'Smarty_Internal_Configfilelexer'; + + /** + * Name of the Class to parse this resource's contents with + * + * @var string + */ + public $template_parser_class = 'Smarty_Internal_Configfileparser'; + + /** + * initialize Source Object for given resource + * Either [$_template] or [$smarty, $template_resource] must be specified + * + * @param Smarty_Internal_Template $_template template object + * @param Smarty $smarty smarty object + * @param string $template_resource resource identifier + * + * @return Smarty_Template_Config Source Object + * @throws SmartyException + */ + public static function load( + Smarty_Internal_Template $_template = null, + Smarty $smarty = null, + $template_resource = null + ) { + static $_incompatible_resources = array('extends' => true, 'php' => true); + if ($_template) { + $smarty = $_template->smarty; + $template_resource = $_template->template_resource; + } + if (empty($template_resource)) { + throw new SmartyException('Source: Missing name'); + } + // parse resource_name, load resource handler + list($name, $type) = Smarty_Resource::parseResourceName($template_resource, $smarty->default_config_type); + // make sure configs are not loaded via anything smarty can't handle + if (isset($_incompatible_resources[ $type ])) { + throw new SmartyException("Unable to use resource '{$type}' for config"); + } + $source = new Smarty_Template_Config($smarty, $template_resource, $type, $name); + $source->handler->populate($source, $_template); + if (!$source->exists && isset($smarty->default_config_handler_func)) { + Smarty_Internal_Method_RegisterDefaultTemplateHandler::_getDefaultTemplate($source); + $source->handler->populate($source, $_template); + } + return $source; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php new file mode 100644 index 0000000000..52bfba2525 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php @@ -0,0 +1,152 @@ +<?php + +/** + * Smarty Template Resource Base Object + * + * @package Smarty + * @subpackage TemplateResources + * @author Rodney Rehm + */ +abstract class Smarty_Template_Resource_Base +{ + /** + * Compiled Filepath + * + * @var string + */ + public $filepath = null; + + /** + * Compiled Timestamp + * + * @var integer|bool + */ + public $timestamp = false; + + /** + * Compiled Existence + * + * @var boolean + */ + public $exists = false; + + /** + * Template Compile Id (Smarty_Internal_Template::$compile_id) + * + * @var string + */ + public $compile_id = null; + + /** + * Compiled Content Loaded + * + * @var boolean + */ + public $processed = false; + + /** + * unique function name for compiled template code + * + * @var string + */ + public $unifunc = ''; + + /** + * flag if template does contain nocache code sections + * + * @var bool + */ + public $has_nocache_code = false; + + /** + * resource file dependency + * + * @var array + */ + public $file_dependency = array(); + + /** + * Content buffer + * + * @var string + */ + public $content = null; + + /** + * Included sub templates + * - index name + * - value use count + * + * @var int[] + */ + public $includes = array(); + + /** + * Flag if this is a cache resource + * + * @var bool + */ + public $isCache = false; + + /** + * Process resource + * + * @param Smarty_Internal_Template $_template template object + */ + abstract public function process(Smarty_Internal_Template $_template); + + /** + * get rendered template content by calling compiled or cached template code + * + * @param \Smarty_Internal_Template $_template + * @param string $unifunc function with template code + * + * @throws \Exception + */ + public function getRenderedTemplateCode(Smarty_Internal_Template $_template, $unifunc = null) + { + $smarty = &$_template->smarty; + $_template->isRenderingCache = $this->isCache; + $level = ob_get_level(); + try { + if (!isset($unifunc)) { + $unifunc = $this->unifunc; + } + if (empty($unifunc) || !function_exists($unifunc)) { + throw new SmartyException("Invalid compiled template for '{$_template->template_resource}'"); + } + if ($_template->startRenderCallbacks) { + foreach ($_template->startRenderCallbacks as $callback) { + call_user_func($callback, $_template); + } + } + $unifunc($_template); + foreach ($_template->endRenderCallbacks as $callback) { + call_user_func($callback, $_template); + } + $_template->isRenderingCache = false; + } catch (Exception $e) { + $_template->isRenderingCache = false; + while (ob_get_level() > $level) { + ob_end_clean(); + } + if (isset($smarty->security_policy)) { + $smarty->security_policy->endTemplate(); + } + throw $e; + } + } + + /** + * Get compiled time stamp + * + * @return int + */ + public function getTimeStamp() + { + if ($this->exists && !$this->timestamp) { + $this->timestamp = filemtime($this->filepath); + } + return $this->timestamp; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php new file mode 100644 index 0000000000..16b47f23c1 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php @@ -0,0 +1,213 @@ +<?php + +/** + * Smarty Resource Data Object + * Meta Data Container for Template Files + * + * @package Smarty + * @subpackage TemplateResources + * @author Rodney Rehm + */ +class Smarty_Template_Source +{ + /** + * Unique Template ID + * + * @var string + */ + public $uid = null; + + /** + * Template Resource (Smarty_Internal_Template::$template_resource) + * + * @var string + */ + public $resource = null; + + /** + * Resource Type + * + * @var string + */ + public $type = null; + + /** + * Resource Name + * + * @var string + */ + public $name = null; + + /** + * Source Filepath + * + * @var string + */ + public $filepath = null; + + /** + * Source Timestamp + * + * @var integer + */ + public $timestamp = null; + + /** + * Source Existence + * + * @var boolean + */ + public $exists = false; + + /** + * Source File Base name + * + * @var string + */ + public $basename = null; + + /** + * The Components an extended template is made of + * + * @var \Smarty_Template_Source[] + */ + public $components = null; + + /** + * Resource Handler + * + * @var \Smarty_Resource + */ + public $handler = null; + + /** + * Smarty instance + * + * @var Smarty + */ + public $smarty = null; + + /** + * Resource is source + * + * @var bool + */ + public $isConfig = false; + + /** + * Template source content eventually set by default handler + * + * @var string + */ + public $content = null; + + /** + * Name of the Class to compile this resource's contents with + * + * @var string + */ + public $compiler_class = 'Smarty_Internal_SmartyTemplateCompiler'; + + /** + * Name of the Class to tokenize this resource's contents with + * + * @var string + */ + public $template_lexer_class = 'Smarty_Internal_Templatelexer'; + + /** + * Name of the Class to parse this resource's contents with + * + * @var string + */ + public $template_parser_class = 'Smarty_Internal_Templateparser'; + + /** + * create Source Object container + * + * @param Smarty $smarty Smarty instance this source object belongs to + * @param string $resource full template_resource + * @param string $type type of resource + * @param string $name resource name + * + * @throws \SmartyException + * @internal param \Smarty_Resource $handler Resource Handler this source object communicates with + */ + public function __construct(Smarty $smarty, $resource, $type, $name) + { + $this->handler = + isset($smarty->_cache[ 'resource_handlers' ][ $type ]) ? $smarty->_cache[ 'resource_handlers' ][ $type ] : + Smarty_Resource::load($smarty, $type); + $this->smarty = $smarty; + $this->resource = $resource; + $this->type = $type; + $this->name = $name; + } + + /** + * initialize Source Object for given resource + * Either [$_template] or [$smarty, $template_resource] must be specified + * + * @param Smarty_Internal_Template $_template template object + * @param Smarty $smarty smarty object + * @param string $template_resource resource identifier + * + * @return Smarty_Template_Source Source Object + * @throws SmartyException + */ + public static function load( + Smarty_Internal_Template $_template = null, + Smarty $smarty = null, + $template_resource = null + ) { + if ($_template) { + $smarty = $_template->smarty; + $template_resource = $_template->template_resource; + } + if (empty($template_resource)) { + throw new SmartyException('Source: Missing name'); + } + // parse resource_name, load resource handler, identify unique resource name + if (preg_match('/^([A-Za-z0-9_\-]{2,})[:]([\s\S]*)$/', $template_resource, $match)) { + $type = $match[ 1 ]; + $name = $match[ 2 ]; + } else { + // no resource given, use default + // or single character before the colon is not a resource type, but part of the filepath + $type = $smarty->default_resource_type; + $name = $template_resource; + } + // create new source object + $source = new Smarty_Template_Source($smarty, $template_resource, $type, $name); + $source->handler->populate($source, $_template); + if (!$source->exists && isset($_template->smarty->default_template_handler_func)) { + Smarty_Internal_Method_RegisterDefaultTemplateHandler::_getDefaultTemplate($source); + $source->handler->populate($source, $_template); + } + return $source; + } + + /** + * Get source time stamp + * + * @return int + */ + public function getTimeStamp() + { + if (!isset($this->timestamp)) { + $this->handler->populateTimestamp($this); + } + return $this->timestamp; + } + + /** + * Get source content + * + * @return string + * @throws \SmartyException + */ + public function getContent() + { + return isset($this->content) ? $this->content : $this->handler->getContent($this); + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_undefined_variable.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_undefined_variable.php new file mode 100644 index 0000000000..6d31a8a055 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_undefined_variable.php @@ -0,0 +1,33 @@ +<?php + +/** + * class for undefined variable object + * This class defines an object for undefined variable handling + * + * @package Smarty + * @subpackage Template + */ +class Smarty_Undefined_Variable extends Smarty_Variable +{ + /** + * Returns null for not existing properties + * + * @param string $name + * + * @return null + */ + public function __get($name) + { + return null; + } + + /** + * Always returns an empty string. + * + * @return string + */ + public function __toString() + { + return ''; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php new file mode 100644 index 0000000000..914d99bd72 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smarty_variable.php @@ -0,0 +1,47 @@ +<?php + +/** + * class for the Smarty variable object + * This class defines the Smarty variable object + * + * @package Smarty + * @subpackage Template + */ +class Smarty_Variable +{ + /** + * template variable + * + * @var mixed + */ + public $value = null; + + /** + * if true any output of this variable will be not cached + * + * @var boolean + */ + public $nocache = false; + + /** + * create Smarty variable object + * + * @param mixed $value the value to assign + * @param boolean $nocache if true any output of this variable will be not cached + */ + public function __construct($value = null, $nocache = false) + { + $this->value = $value; + $this->nocache = $nocache; + } + + /** + * <<magic>> String conversion + * + * @return string + */ + public function __toString() + { + return (string)$this->value; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smartycompilerexception.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smartycompilerexception.php new file mode 100644 index 0000000000..f7ad39b931 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smartycompilerexception.php @@ -0,0 +1,45 @@ +<?php + +/** + * Smarty compiler exception class + * + * @package Smarty + */ +class SmartyCompilerException extends SmartyException +{ + /** + * @return string + */ + public function __toString() + { + return ' --> Smarty Compiler: ' . $this->message . ' <-- '; + } + + /** + * The line number of the template error + * + * @type int|null + */ + public $line = null; + + /** + * The template source snippet relating to the error + * + * @type string|null + */ + public $source = null; + + /** + * The raw text of the error message + * + * @type string|null + */ + public $desc = null; + + /** + * The resource identifier or template name + * + * @type string|null + */ + public $template = null; +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smartyexception.php b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smartyexception.php new file mode 100644 index 0000000000..7f7b9aa435 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/libs/sysplugins/smartyexception.php @@ -0,0 +1,19 @@ +<?php + +/** + * Smarty exception class + * + * @package Smarty + */ +class SmartyException extends Exception +{ + public static $escape = false; + + /** + * @return string + */ + public function __toString() + { + return ' --> Smarty: ' . (self::$escape ? htmlentities($this->message) : $this->message) . ' <-- '; + } +} diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/run-tests-for-all-php-versions.sh b/civicrm/packages/smarty3/vendor/smarty/smarty/run-tests-for-all-php-versions.sh new file mode 100755 index 0000000000..196f0dba70 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/run-tests-for-all-php-versions.sh @@ -0,0 +1,46 @@ +#!/bin/bash +Help() +{ + # Display Help + echo "Runs PHPUnit tests for all PHP versions supported by this version of Smarty." + echo + echo "Syntax: $0 [-e|h]" + echo "options:" + echo "e Exclude a group of unit tests, e.g. -e 'slow'" + echo "h Print this Help." + echo +} + +Exclude="" + +# Get the options +while getopts ":he:" option; do + case $option in + e) # Exclude + echo $OPTARG + Exclude=$OPTARG;; + h) # display Help + Help + exit;; + \?) # Invalid option + echo "Error: Invalid option" + exit;; + esac +done + +if [ -z $Exclude ]; +then + Entrypoint="./run-tests.sh" +else + Entrypoint="./run-tests.sh $Exclude" +fi + +# Runs tests for all supported PHP versions +docker-compose run --entrypoint "$Entrypoint" php54 && \ +docker-compose run --entrypoint "$Entrypoint" php55 && \ +docker-compose run --entrypoint "$Entrypoint" php56 && \ +docker-compose run --entrypoint "$Entrypoint" php70 && \ +docker-compose run --entrypoint "$Entrypoint" php71 && \ +docker-compose run --entrypoint "$Entrypoint" php72 && \ +docker-compose run --entrypoint "$Entrypoint" php73 && \ +docker-compose run --entrypoint "$Entrypoint" php74 diff --git a/civicrm/packages/smarty3/vendor/smarty/smarty/run-tests.sh b/civicrm/packages/smarty3/vendor/smarty/smarty/run-tests.sh new file mode 100755 index 0000000000..eac36dea33 --- /dev/null +++ b/civicrm/packages/smarty3/vendor/smarty/smarty/run-tests.sh @@ -0,0 +1,13 @@ +#!/bin/sh +composer update + +php -r 'echo "\nPHP version " . phpversion() . ". ";'; + +if [ -z $1 ]; +then + echo "Running all unit tests.\n" + php ./vendor/phpunit/phpunit/phpunit tests +else + echo "Running all unit tests, except tests marked with @group $1.\n" + php ./vendor/phpunit/phpunit/phpunit --exclude-group $1 tests +fi \ No newline at end of file diff --git a/civicrm/release-notes.md b/civicrm/release-notes.md index df28adfb15..0f98e6e89f 100644 --- a/civicrm/release-notes.md +++ b/civicrm/release-notes.md @@ -15,6 +15,17 @@ Other resources for identifying changes are: * https://github.com/civicrm/civicrm-joomla * https://github.com/civicrm/civicrm-wordpress +## CiviCRM 5.67.0 + +Released November 1, 2023 + +- **[Synopsis](release-notes/5.67.0.md#synopsis)** +- **[Features](release-notes/5.67.0.md#features)** +- **[Bugs resolved](release-notes/5.67.0.md#bugs)** +- **[Miscellany](release-notes/5.67.0.md#misc)** +- **[Credits](release-notes/5.67.0.md#credits)** +- **[Feedback](release-notes/5.67.0.md#feedback)** + ## CiviCRM 5.66.2 Released October 29, 2023 @@ -44,6 +55,24 @@ Released October 4, 2023 - **[Credits](release-notes/5.66.0.md#credits)** - **[Feedback](release-notes/5.66.0.md#feedback)** +## CiviCRM 5.65.2 + +Released September 19, 2023 + +- **[Synopsis](release-notes/5.65.2.md#synopsis)** +- **[Bugs resolved](release-notes/5.65.2.md#bugs)** +- **[Credits](release-notes/5.65.2.md#credits)** +- **[Feedback](release-notes/5.65.2.md#feedback)** + +## CiviCRM 5.65.1 + +Released September 8, 2023 + +- **[Synopsis](release-notes/5.65.1.md#synopsis)** +- **[Bugs resolved](release-notes/5.65.1.md#bugs)** +- **[Credits](release-notes/5.65.1.md#credits)** +- **[Feedback](release-notes/5.65.1.md#feedback)** + ## CiviCRM 5.65.0 Released September 6, 2023 @@ -55,6 +84,43 @@ Released September 6, 2023 - **[Credits](release-notes/5.65.0.md#credits)** - **[Feedback](release-notes/5.65.0.md#feedback)** +## CiviCRM 5.64.4 + +Released September 6, 2023 + +- **[Synopsis](release-notes/5.64.4.md#synopsis)** +- **[Security advisories](release-notes/5.64.4.md#security)** +- **[Bugs resolved](release-notes/5.64.4.md#bugs)** +- **[Credits](release-notes/5.64.4.md#credits)** +- **[Feedback](release-notes/5.64.4.md#feedback)** + +## CiviCRM 5.64.3 + +Released September 1, 2023 + +- **[Synopsis](release-notes/5.64.3.md#synopsis)** +- **[Bugs resolved](release-notes/5.64.3.md#bugs)** +- **[Credits](release-notes/5.64.3.md#credits)** +- **[Feedback](release-notes/5.64.3.md#feedback)** + +## CiviCRM 5.64.2 + +Released August 24, 2023 + +- **[Synopsis](release-notes/5.64.2.md#synopsis)** +- **[Bugs resolved](release-notes/5.64.2.md#bugs)** +- **[Credits](release-notes/5.64.2.md#credits)** +- **[Feedback](release-notes/5.64.2.md#feedback)** + +## CiviCRM 5.64.1 + +Released August 18, 2023 + +- **[Synopsis](release-notes/5.64.1.md#synopsis)** +- **[Bugs resolved](release-notes/5.64.1.md#bugs)** +- **[Credits](release-notes/5.64.1.md#credits)** +- **[Feedback](release-notes/5.64.1.md#feedback)** + ## CiviCRM 5.64.0 Released August 2, 2023 @@ -66,6 +132,15 @@ Released August 2, 2023 - **[Credits](release-notes/5.64.0.md#credits)** - **[Feedback](release-notes/5.64.0.md#feedback)** +## CiviCRM 5.63.3 + +Released August 2, 2023 + +- **[Synopsis](release-notes/5.63.3.md#synopsis)** +- **[Bugs resolved](release-notes/5.63.3.md#bugs)** +- **[Credits](release-notes/5.63.3.md#credits)** +- **[Feedback](release-notes/5.63.3.md#feedback)** + ## CiviCRM 5.63.2 Released July 26, 2023 diff --git a/civicrm/release-notes/5.63.3.md b/civicrm/release-notes/5.63.3.md new file mode 100644 index 0000000000..7abaa4aa2a --- /dev/null +++ b/civicrm/release-notes/5.63.3.md @@ -0,0 +1,41 @@ +# CiviCRM 5.63.3 + +Released August 2, 2023 + +- **[Synopsis](#synopsis)** +- **[Bugs resolved](#bugs)** +- **[Credits](#credits)** +- **[Feedback](#feedback)** + +## <a name="synopsis"></a>Synopsis + +| *Does this version...?* | | +| --------------------------------------------------------------- | -------- | +| Change the database schema? | no | +| Alter the API? | no | +| Require attention to configuration options? | no | +| Fix problems installing or upgrading to a previous version? | no | +| Introduce features? | no | +| **Fix bugs?** | **yes** | +| Fix security vulnerabilities? | no | + +## <a name="bugs"></a>Bugs resolved + +* **_CiviContribute_: Fix editing of certain values in "Contribution Page: Amounts" (PHP8.1) ([dev/core#4453](https://lab.civicrm.org/dev/core/-/issues/4453): [#26953](https://github.com/civicrm/civicrm-core/pull/26953))** +* **_CiviMember_: Fix editing of certain price-set values ([dev/core#4468](https://lab.civicrm.org/dev/core/-/issues/4468), [dev/core#4429](https://lab.civicrm.org/dev/core/-/issues/4429): [#26902](https://github.com/civicrm/civicrm-core/pull/26902))** +* **_SearchKit_: Fix display of arithmetic fields ([dev/core#4455](https://lab.civicrm.org/dev/core/-/issues/4455): [#26944](https://github.com/civicrm/civicrm-core/pull/26944))** + +## <a name="credits"></a>Credits + +This release was developed by the following authors and reviewers: + +Wildsight - Lars Sander-Green; Wikimedia Foundation - Eileen McNaughton; Tadpole +Collective - Kevin Cristiano; Squiffle Consulting - Aidan Saunders; Megaphone Technology +Consulting - Jon Goldberg; JMA Consulting - Seamus Lee; Fuzion - Peter Davis; Dave D; +CiviCRM - Tim Otten, Coleman Watts; Agileware - Justin Freeman + +## <a name="feedback"></a>Feedback + +These release notes are edited by Tim Otten and Andie Hunt. If you'd like to +provide feedback on them, please login to https://chat.civicrm.org/civicrm and +contact `@agh1`. diff --git a/civicrm/release-notes/5.64.1.md b/civicrm/release-notes/5.64.1.md new file mode 100644 index 0000000000..c85c70c156 --- /dev/null +++ b/civicrm/release-notes/5.64.1.md @@ -0,0 +1,44 @@ +# CiviCRM 5.64.1 + +Released August 18, 2023 + +- **[Synopsis](#synopsis)** +- **[Bugs resolved](#bugs)** +- **[Credits](#credits)** +- **[Feedback](#feedback)** + +## <a name="synopsis"></a>Synopsis + +| *Does this version...?* | | +| --------------------------------------------------------------- | -------- | +| **Change the database schema?** | **yes** | +| Alter the API? | no | +| Require attention to configuration options? | no | +| **Fix problems installing or upgrading to a previous version?** | **yes** | +| Introduce features? | no | +| **Fix bugs?** | **yes** | +| Fix security vulnerabilities? | no | + +## <a name="bugs"></a>Bugs resolved + +* **_CiviEvent_: Warning when sending offline receipt ([dev/core#4494](https://lab.civicrm.org/dev/core/-/issues/4494): [#27066](https://github.com/civicrm/civicrm-core/pull/27066))** +* **_CiviMail_: Selecting a recipient requires administrator permissions ([dev/core#4498](https://lab.civicrm.org/dev/core/-/issues/4498): [#27071](https://github.com/civicrm/civicrm-core/pull/27071))** +* **_CiviMember_: Cannot change "Membership Price Set" on a contribution page ([dev/core#4486](https://lab.civicrm.org/dev/core/-/issues/4486): [#27079](https://github.com/civicrm/civicrm-core/pull/27079), [#27080](https://github.com/civicrm/civicrm-core/pull/27080), [#27083](https://github.com/civicrm/civicrm-core/pull/27083))** +* **_Scheduled Reminders_: Administration screen doesn't open if CiviContribute is disabled ([dev/core#4492](https://lab.civicrm.org/dev/core/-/issues/4492): [#27043](https://github.com/civicrm/civicrm-core/pull/27043))** +* **_Schema_: Drop inconsistent and unnecesary index ([dev/core#4472](https://lab.civicrm.org/dev/core/-/issues/4472): [#27088](https://github.com/civicrm/civicrm-core/pull/27088))** +* **_Search Kit_: In-place editing fails for joined fields ([dev/core#4483](https://lab.civicrm.org/dev/core/-/issues/4483): [#27033](https://github.com/civicrm/civicrm-core/pull/27033))** +* **_Upgrade_: List of active "Components" becomes empty on some sites ([#27075](https://github.com/civicrm/civicrm-core/pull/27075))** + +## <a name="credits"></a>Credits + +This release was developed by the following authors and reviewers: + +Wildsight - Lars Sander-Green; Wikimedia Foundation - Eileen McNaughton; Megaphone +Technology Consulting - Jon Goldberg, Brienne Kordis; JMA Consulting - Seamus Lee; Dave D; +Coop SymbioTIC - Mathieu Lutfy; CiviCRM - Coleman Watts, Tim Otten; CiviCoop - Jaap Jansma + +## <a name="feedback"></a>Feedback + +These release notes are edited by Tim Otten and Andie Hunt. If you'd like to +provide feedback on them, please login to https://chat.civicrm.org/civicrm and +contact `@agh1`. diff --git a/civicrm/release-notes/5.64.2.md b/civicrm/release-notes/5.64.2.md new file mode 100644 index 0000000000..1b56228416 --- /dev/null +++ b/civicrm/release-notes/5.64.2.md @@ -0,0 +1,43 @@ +# CiviCRM 5.64.2 + +Released August 24, 2023 + +- **[Synopsis](#synopsis)** +- **[Bugs resolved](#bugs)** +- **[Credits](#credits)** +- **[Feedback](#feedback)** + +## <a name="synopsis"></a>Synopsis + +| *Does this version...?* | | +| --------------------------------------------------------------- | -------- | +| Change the database schema? | no | +| Alter the API? | no | +| Require attention to configuration options? | no | +| Fix problems installing or upgrading to a previous version? | no | +| Introduce features? | no | +| **Fix bugs?** | **yes** | +| Fix security vulnerabilities? | no | + +## <a name="bugs"></a>Bugs resolved + +* **_CiviMember_: Cannot use CiviMember price-set on new contribution page ([dev/core#4523](https://lab.civicrm.org/dev/core/-/issues/4523): [#27120](https://github.com/civicrm/civicrm-core/pull/27120))** +* **_CiviContribute_: If user enters "Other" amount, then old amount should be unselected ([#27129](https://github.com/civicrm/civicrm-core/pull/27129))** +* **_Form Builder_: Email hyperlinks don't render for some messages ([dev/core#4531](https://lab.civicrm.org/dev/core/-/issues/4531): [#27134](https://github.com/civicrm/civicrm-core/pull/27134/))** +* **_Importer_: Form doesn't update after toggling checkbox ([#27132](https://github.com/civicrm/civicrm-core/pull/27132))** +* **_Send Email_: Form doesn't update after toggling checkbox ([#27132](https://github.com/civicrm/civicrm-core/pull/27132))** +* **_Search Kit_: Bulk actions don't work unless ID column is displayed ([dev/core#4519](https://lab.civicrm.org/dev/core/-/issues/4519): [#27123](https://github.com/civicrm/civicrm-core/pull/27123))** + +## <a name="credits"></a>Credits + +This release was developed by the following authors and reviewers: + +Wildsight - Lars Sander-Green; Wikimedia Foundation - Eileen McNaughton; Megaphone +Technology Consulting - Brienne Kordis; JMA Consulting - Seamus Lee; Dave D; CiviCRM - Tim +Otten, Coleman Watts; Circle Interactive - Pradeep Nayak + +## <a name="feedback"></a>Feedback + +These release notes are edited by Tim Otten and Andie Hunt. If you'd like to +provide feedback on them, please login to https://chat.civicrm.org/civicrm and +contact `@agh1`. diff --git a/civicrm/release-notes/5.64.3.md b/civicrm/release-notes/5.64.3.md new file mode 100644 index 0000000000..aec405efcf --- /dev/null +++ b/civicrm/release-notes/5.64.3.md @@ -0,0 +1,40 @@ +# CiviCRM 5.64.3 + +Released September 1, 2023 + +- **[Synopsis](#synopsis)** +- **[Bugs resolved](#bugs)** +- **[Credits](#credits)** +- **[Feedback](#feedback)** + +## <a name="synopsis"></a>Synopsis + +| *Does this version...?* | | +| --------------------------------------------------------------- | -------- | +| Change the database schema? | no | +| Alter the API? | no | +| Require attention to configuration options? | no | +| Fix problems installing or upgrading to a previous version? | no | +| Introduce features? | no | +| **Fix bugs?** | **yes** | +| Fix security vulnerabilities? | no | + +## <a name="bugs"></a>Bugs resolved + +* **_CiviEvent_: Error when sending registration email (if CiviContribute is disabled) ([dev/core#4537](https://lab.civicrm.org/dev/core/-/issues/4537): [#27237](https://github.com/civicrm/civicrm-core/pull/27237))** +* **_CiviEvent_: Extraneous warning displayed on free event registrations ([dev/core#4538](https://lab.civicrm.org/dev/core/-/issues/4538): [#27221](https://github.com/civicrm/civicrm-core/pull/27221))** + +## <a name="credits"></a>Credits + +This release was developed by the following authors and reviewers: + +Wildsight - Lars Sander-Green; Wikimedia Foundation - Eileen McNaughton; +SYSTOPIA Organisationsberatung - Björn Endres; Megaphone Technology +Consulting - Jon Goldberg; JMA Consulting - Seamus Lee; CiviCRM - Tim Otten; +Agileware - Justin Freeman + +## <a name="feedback"></a>Feedback + +These release notes are edited by Tim Otten and Andie Hunt. If you'd like to +provide feedback on them, please login to https://chat.civicrm.org/civicrm and +contact `@agh1`. diff --git a/civicrm/release-notes/5.64.4.md b/civicrm/release-notes/5.64.4.md new file mode 100644 index 0000000000..20e9d841fd --- /dev/null +++ b/civicrm/release-notes/5.64.4.md @@ -0,0 +1,53 @@ +# CiviCRM 5.64.4 + +Released September 6, 2023 + +- **[Synopsis](#synopsis)** +- **[Security advisories](#security)** +- **[Bugs resolved](#bugs)** +- **[Credits](#credits)** +- **[Feedback](#feedback)** + +## <a name="synopsis"></a>Synopsis + +| *Does this version...?* | | +| --------------------------------------------------------------- | -------- | +| Change the database schema? | no | +| Alter the API? | no | +| Require attention to configuration options? | no | +| **Fix problems installing or upgrading to a previous version?** | **yes** | +| Introduce features? | no | +| **Fix bugs?** | **yes** | +| **Fix security vulnerabilities?** | **yes** | + +## <a name="security"></a>Security advisories + +* **[CIVI-SA-2023-07](https://civicrm.org/advisory/civi-sa-2023-07-smarty-math-rce): Smarty Math RCE** +* **[CIVI-SA-2023-08](https://civicrm.org/advisory/civi-sa-2023-08-kcfinder-xss): KCFinder XSS** +* **[CIVI-SA-2023-09](https://civicrm.org/advisory/civi-sa-2023-09-getfields-sqli): GetFields SQLI** +* **[CIVI-SA-2023-10](https://civicrm.org/advisory/civi-sa-2023-10-multiple-potential-sqli): Multiple Potential SQLI** +* **[CIVI-SA-2023-11](https://civicrm.org/advisory/civi-sa-2023-11-select2-xss): Select2 XSS** +* **[CIVI-SA-2023-12](https://civicrm.org/advisory/civi-sa-2023-12-jquery-validation-dos): jQuery Validation DoS** +* **[CIVI-SA-2023-13](https://civicrm.org/advisory/civi-sa-2023-13-survey-xss): Survey XSS** +* **[CIVI-SA-2023-14](https://civicrm.org/advisory/civi-sa-2023-14-contact-image-csrf): Contact Image CSRF** +* **[CIVI-SA-2023-15](https://civicrm.org/advisory/civi-sa-2023-15-civievent-xss): CiviEvent XSS** + +## <a name="bugs"></a>Bugs resolved + +* **_Custom Data_: Failure processing "File" field ([#27290](https://github.com/civicrm/civicrm-core/pull/27290))** +* **_Upgrader_: Failure handling "civicrm_job_log" if there are orphaned records ([#27310](https://github.com/civicrm/civicrm-core/pull/27310))** + +## <a name="credits"></a>Credits + +This release was developed by the following authors and reviewers: + +Uepal - Jean-Marie Heitz; Third Sector Design - Kurund Jalmi, William Mortada; RIPS +Technologies - Dennis Brinkrolf; Ranjit Pahan; JMA Consulting - Seamus Lee; Dave D; +CiviCRM - Coleman Watts, Tim Otten; BrightMinded Ltd - Bradley Taylor; Artful Robot - Rich +Lott + +## <a name="feedback"></a>Feedback + +These release notes are edited by Tim Otten and Andie Hunt. If you'd like to +provide feedback on them, please login to https://chat.civicrm.org/civicrm and +contact `@agh1`. diff --git a/civicrm/release-notes/5.65.1.md b/civicrm/release-notes/5.65.1.md new file mode 100644 index 0000000000..2dcf34ef98 --- /dev/null +++ b/civicrm/release-notes/5.65.1.md @@ -0,0 +1,42 @@ +# CiviCRM 5.65.1 + +Released September 8, 2023 + +- **[Synopsis](#synopsis)** +- **[Bugs resolved](#bugs)** +- **[Credits](#credits)** +- **[Feedback](#feedback)** + +## <a name="synopsis"></a>Synopsis + +| *Does this version...?* | | +| --------------------------------------------------------------- | -------- | +| Change the database schema? | no | +| Alter the API? | no | +| Require attention to configuration options? | no | +| **Fix problems installing or upgrading to a previous version?** | **yes** | +| Introduce features? | no | +| **Fix bugs?** | **yes** | +| Fix security vulnerabilities? | no | + +## <a name="bugs"></a>Bugs resolved + +* **_CiviEvent_: Token `{event.fee_label}` is blank ([#27372](https://github.com/civicrm/civicrm-core/pull/27372))** +* **_Upgrader_: Failure involving `MappingBase::getLabel() must be of the type string' ([#27354](https://github.com/civicrm/civicrm-core/pull/27354))** +* **_Upgrader_: Failure involving `CRM_*_DAO_* not found in CRM_Core_PseudoConstant::get()` ([#27358](https://github.com/civicrm/civicrm-core/pull/27358))** +* **_Upgrader_: Failure involving combination of multilingual and data-logging ([#27364](https://github.com/civicrm/civicrm-core/pull/27364))** +* **_Testing_: Test-suite compatibility ([drupal#671](https://github.com/civicrm/civicrm-drupal/pull/671))** + +## <a name="credits"></a>Credits + +This release was developed by the following authors and reviewers: + +Wildsight - Lars Sander-Green; Wikimedia Foundation - Eileen McNaughton; Squiffle +Consulting - Aidan Saunders; JMA Consulting - Seamus Lee; Fuzion - Peter Davis; Dave D; +CiviCRM - Coleman Watts, Tim Otten; catorghans + +## <a name="feedback"></a>Feedback + +These release notes are edited by Tim Otten and Andie Hunt. If you'd like to +provide feedback on them, please login to https://chat.civicrm.org/civicrm and +contact `@agh1`. diff --git a/civicrm/release-notes/5.65.2.md b/civicrm/release-notes/5.65.2.md new file mode 100644 index 0000000000..b6bd68520c --- /dev/null +++ b/civicrm/release-notes/5.65.2.md @@ -0,0 +1,42 @@ +# CiviCRM 5.65.2 + +Released September 19, 2023 + +- **[Synopsis](#synopsis)** +- **[Bugs resolved](#bugs)** +- **[Credits](#credits)** +- **[Feedback](#feedback)** + +## <a name="synopsis"></a>Synopsis + +| *Does this version...?* | | +| --------------------------------------------------------------- | -------- | +| Change the database schema? | no | +| Alter the API? | no | +| **Require attention to configuration options?** | **yes (rare)** | +| **Fix problems installing or upgrading to a previous version?** | **yes** | +| Introduce features? | no | +| **Fix bugs?** | **yes** | +| Fix security vulnerabilities? | no | + +## <a name="bugs"></a>Bugs resolved + +* **_Custom Data_: Restricted visibility of `$groupTree` may cause some customizations to fail ([#27492](https://github.com/civicrm/civicrm-core/pull/27492))** +* **_Status Check_: Display warning(s) if a previous upgrade left inconsistencies in the configuration of "Components" ([#27453](https://github.com/civicrm/civicrm-core/pull/27453), [#27475](https://github.com/civicrm/civicrm-core/pull/27475))** +* **_Upgrader_: Upgrades may fail if customizations depend on migrated component APIs ([dev/core#4521](https://lab.civicrm.org/dev/core/-/issues/4521): [#27481](https://github.com/civicrm/civicrm-core/pull/27481))** +* **_Upgrader_: Upgrades may fail due to interaction between migrated component APIs, breadcrumbs, and views/entities ([dev/core#4605](https://lab.civicrm.org/dev/core/-/issues/4605): [#27518](https://github.com/civicrm/civicrm-core/pull/27518))** + +## <a name="credits"></a>Credits + +This release was developed by the following authors and reviewers: + +Wildsight - Lars Sander-Green; Wikimedia Foundation - Eileen McNaughton; Megaphone +Technology Consulting - Jon Goldberg; Dave D; Coop SymbioTIC - Mathieu Lutfy; CiviCRM - +Coleman Watts, Tim Otten; Circle Interactive - Pradeep Nayak; BrightMinded Ltd - Bradley +Taylor; aiden_g; Agileware - Justin Freeman + +## <a name="feedback"></a>Feedback + +These release notes are edited by Tim Otten and Andie Hunt. If you'd like to +provide feedback on them, please login to https://chat.civicrm.org/civicrm and +contact `@agh1`. diff --git a/civicrm/release-notes/5.67.0.md b/civicrm/release-notes/5.67.0.md new file mode 100644 index 0000000000..2bfa4124ad --- /dev/null +++ b/civicrm/release-notes/5.67.0.md @@ -0,0 +1,1013 @@ +# CiviCRM 5.67.0 + +Released November 1, 2023 + +- **[Synopsis](#synopsis)** +- **[Security advisories](#security)** +- **[Features](#features)** +- **[Bugs resolved](#bugs)** +- **[Miscellany](#misc)** +- **[Credits](#credits)** +- **[Feedback](#feedback)** + +## <a name="synopsis"></a>Synopsis + +| *Does this version...?* | | +|:--------------------------------------------------------------- |:-------:| +| Fix security vulnerabilities? | no | +| **Change the database schema?** | **yes** | +| **Alter the API?** | **yes** | +| Require attention to configuration options? | no | +| Fix problems installing or upgrading to a previous version? | no | +| **Introduce features?** | **yes** | +| **Fix bugs?** | **yes** | + +## <a name="features"></a>Features + +### Core CiviCRM + +- **SearchKit - Improve metadata, joins and links + ([27407](https://github.com/civicrm/civicrm-core/pull/27407))** + + Miscellaneous fixes and improvements to SearchKit and FormBuilder, toward the + goal of search displays that can replace existing core pages. + +- **Afform - Make Afform Core extension required + ([27293](https://github.com/civicrm/civicrm-core/pull/27293))** + + Makes Afform and Authx required so that the process of replacing core pages + and forms with Afform/SearchKit can begin. + +- **ContactSummary - Replace Relationships tab with SearchKit display + ([27701](https://github.com/civicrm/civicrm-core/pull/27701))** + + Replaces the Contact Summary -> Relationship tab with a SearchKit display. + +- **ContactSummary - Replace Notes tab with SearchKit display + ([27610](https://github.com/civicrm/civicrm-core/pull/27610))** + + Replaces the Contact Summary -> Notes tab with a SearchKit display. + +- **Convert CiviCampaign Dashboard to SearchKit + ([27271](https://github.com/civicrm/civicrm-core/pull/27271))** + + Converts the CiviCampaign Dashboard to a SearchKit display. + +- **Translation support for Afforms & Managed Search Displays + ([dev/core#2396](https://lab.civicrm.org/dev/core/-/issues/2396): + [27553](https://github.com/civicrm/civicrm-core/pull/27553))** + + Multilingual support for Afforms. + +- **API - Improve ACL processing, deprecate `hook_civicrm_notePrivacy` + ([27472](https://github.com/civicrm/civicrm-core/pull/27472))** + + Expands the capabilities of ACLs checking for API get actions while improving + efficiency. + +- **APIv4 - Add Individual, Household, Organization pseudo-entities + ([27659](https://github.com/civicrm/civicrm-core/pull/27659))** + + Extends APIv4 with 3 pseudo-entities for the 3 base contact types. + +- **Api4 - Enable file attachments to be displayed in SearchKit + ([27379](https://github.com/civicrm/civicrm-core/pull/27379))** + + Makes it so file attachments can be displayed in SearchKit. + +- **APIv4 - Add dfk metadata to getfields + ([27520](https://github.com/civicrm/civicrm-core/pull/27520))** + + Improves APIv4 metadata about Dynamic foreign keys (DFKs), aka `entity_table` + and `entity_id` combos. + +- **Add Entity batch to Search kit + ([27414](https://github.com/civicrm/civicrm-core/pull/27414))** + + Makes Entity batch available in SearchKit. + +- **SearchKit - Expose Address.proximity filter as Afform search filter + ([27631](https://github.com/civicrm/civicrm-core/pull/27631))** + + Exposes Address Proximity as an Afform Search Filter. + +- **Afform - Scan core ang/afform directory + ([27647](https://github.com/civicrm/civicrm-core/pull/27647))** + + Makes it so CiviCRM Core can define Afforms. + +- **Afform - Switch to user-oriented breadcrumbs, move admin link to hover + button ([27618](https://github.com/civicrm/civicrm-core/pull/27618))** + + Adds an edit form link to view of forms built with afform and improves afform + breadcrumb usability. + +- **allows showing detailed error messages from AJAX + ([27637](https://github.com/civicrm/civicrm-core/pull/27637))** + + Makes it so users without "View Debug Output" can see a detailed ajax error + message in Afform. + +- **SearchKit - Improve performance of downloading spreadsheet + ([27417](https://github.com/civicrm/civicrm-core/pull/27417))** + + Improves performance of downloading SearchKit spreadsheets. + +- **SearchKit - Add crm-search-col-type-* css classes + ([27461](https://github.com/civicrm/civicrm-core/pull/27461))** + + Add css classes for styling search display columns based on the type. + +- **Remove "Save and New" buttons from most places + ([dev/user-interface#53](https://lab.civicrm.org/dev/user-interface/-/issues/53): + [27029](https://github.com/civicrm/civicrm-core/pull/27029))** + + Reduces presence of Save and Done/New on forms. + +- **[PHP 8.1] Registered Templates: Undefined array key "weight" + ([dev/core#4716](https://lab.civicrm.org/dev/core/-/issues/4716): + [27939](https://github.com/civicrm/civicrm-core/pull/27939), + [27949](https://github.com/civicrm/civicrm-core/pull/27949), and + [27983](https://github.com/civicrm/civicrm-core/pull/27983))** + + The action links (e.g. edit, preview, etc.) on price fields, duplicate + matching rules, and report templates now have weights assigned in code, + allowing them to be reordered using hooks and resolving a warning in PHP 8.1. + +- **Upgrade Smarty to Smarty3+ (Work Towards + [dev/core#4146](https://lab.civicrm.org/dev/core/-/issues/4146): + [27620](https://github.com/civicrm/civicrm-core/pull/27620), + [27594](https://github.com/civicrm/civicrm-core/pull/27594), + [27676](https://github.com/civicrm/civicrm-core/pull/27676), + [27621](https://github.com/civicrm/civicrm-core/pull/27621), + [27582](https://github.com/civicrm/civicrm-core/pull/27582), + [27588](https://github.com/civicrm/civicrm-core/pull/27588), + [27604](https://github.com/civicrm/civicrm-core/pull/27604), + [27693](https://github.com/civicrm/civicrm-core/pull/27693), + [27525](https://github.com/civicrm/civicrm-core/pull/27525), + [27585](https://github.com/civicrm/civicrm-core/pull/27585), + [27587](https://github.com/civicrm/civicrm-core/pull/27587), + [27687](https://github.com/civicrm/civicrm-core/pull/27687), + [27581](https://github.com/civicrm/civicrm-core/pull/27581), + [27583](https://github.com/civicrm/civicrm-core/pull/27583) and + [27547](https://github.com/civicrm/civicrm-core/pull/27547))** + + Work towards upgrading to Smarty3+. + +- **Tracking: Uses of {php} to remove from Smarty in order to allow upgrade to + Smarty 3+ (Work towards + [dev/core#4618](https://lab.civicrm.org/dev/core/-/issues/4618): + [27584](https://github.com/civicrm/civicrm-core/pull/27584))** + + Updates APIv3 explorer to not encourage php-eval in smarty. + +- **Add more search option for email + ([27656](https://github.com/civicrm/civicrm-core/pull/27656))** + + Adds email fields to the filter on search. + +- **Implement OAuthSessionToken + ([27316](https://github.com/civicrm/civicrm-core/pull/27316))** + + Implements a new type of OAuth token storage: OAuthSessionToken. + +- **Feature request - Queue api should respect maintenance mode + ([dev/core#4490](https://lab.civicrm.org/dev/core/-/issues/4490): + [27526](https://github.com/civicrm/civicrm-core/pull/27526))** + + Adds a setting and hook to pause/resume background-queues. + +- **Finish making legacycustomsearches optional + ([dev/core#4112](https://lab.civicrm.org/dev/core/-/issues/4112): + [27400](https://github.com/civicrm/civicrm-core/pull/27400))** + + Stop installing legacycustomsearches on new installs. + +- **GettingStarted: add token for System Status + ([27382](https://github.com/civicrm/civicrm-core/pull/27382))** + + Adds a token for System Status and uses it in the "Getting Started" dashlet. + +- **Queue::run() - Add API for running several tasks + ([27691](https://github.com/civicrm/civicrm-core/pull/27691))** + + Adds a utility for running queued tasks using the newer (higher-level) queuing + features. + +- **Scan core `civicrm/managed` directory for entity declarations + ([27389](https://github.com/civicrm/civicrm-core/pull/27389))** + + Allows managed entities to be shipped with CiviCRM core, independent of any + extensions. + +- **CRM_Core_Module - Generate optional `$label` property + ([27392](https://github.com/civicrm/civicrm-core/pull/27392))** + + Adds some extra metadata to the module finder. It's a step toward showing a + pretty list of options for Managed.module in APIv4 Explorer. + +- **CustomGroup - Add metadata, cleanup "Custom FieldSet" form & improve UX + ([27549](https://github.com/civicrm/civicrm-core/pull/27549))** + + Improves user experience of the Custom Field Set form and adds metadata. + +- **Add simple smart group profiler + ([dev/core#4350](https://lab.civicrm.org/dev/core/-/issues/4350): + [27232](https://github.com/civicrm/civicrm-core/pull/27232) and + [27462](https://github.com/civicrm/civicrm-core/pull/27462))** + + Adds a Smart Group profiler to help identify slow smart groups. + +- **Standalone: Users' password changing form and API + ([27681](https://github.com/civicrm/civicrm-core/pull/27681) and + [27645](https://github.com/civicrm/civicrm-core/pull/27645))** + + Adds Password Reset functionality for Standalone installations. + +- **Add Label field for Message Template + ([27664](https://github.com/civicrm/civicrm-core/pull/27664))** + + Adds "Label" field to Message template so that it can be searched via Custom + field entity reference field. + +- **Add in-app docs re prefilling multiple ids in repeating blocks + ([27706](https://github.com/civicrm/civicrm-core/pull/27706))** + + Explains comma-separated ID syntax. + +### CiviMail + +- **Address CiviCRM Mailing table complexity - make queries easier & data more + prunable (Work towards + [dev/core#4567](https://lab.civicrm.org/dev/core/-/issues/4567): + [27640](https://github.com/civicrm/civicrm-core/pull/27640), + [27644](https://github.com/civicrm/civicrm-core/pull/27644), + [27513](https://github.com/civicrm/civicrm-core/pull/27513), + [27557](https://github.com/civicrm/civicrm-core/pull/27557), and + [27749](https://github.com/civicrm/civicrm-core/pull/27749))** + + Adds Mailing ID to simplify CiviCRM mailing tables. + +- **Upgrade: rename the Draft/Sent Mailing menu labels + ([27697](https://github.com/civicrm/civicrm-core/pull/27697))** + + Simplifies the mailing menu labels and makes them translatable. + +### Joomla Integration + +- **Migrate installers to "setup" API (Work Towards + [dev/core#1615](https://lab.civicrm.org/dev/core/-/issues/1615): + [70](https://github.com/civicrm/civicrm-joomla/pull/70))** + + Migrates the Joomla integration installer to use the Setup API for + installation. + +## <a name="bugs"></a>Bugs resolved + +### Core CiviCRM + +- **CiviCRM Log File: Dates and Security (Work towards + [dev/core#4270](https://lab.civicrm.org/dev/core/-/issues/4270): + [27575](https://github.com/civicrm/civicrm-core/pull/27575))** + + Ensures CiviCRM log files use a standard date format. + +- **Scheduled jobs stopped working after an update last week - error in + MailingEventUnsubscribe.php + ([dev/core#4421](https://lab.civicrm.org/dev/core/-/issues/4421): + [27403](https://github.com/civicrm/civicrm-core/pull/27403))** + +- **(5.66 upgrade error) Action Schedule field is too short + ([dev/core#4696](https://lab.civicrm.org/dev/core/-/issues/4696): + [27913](https://github.com/civicrm/civicrm-core/pull/27913))** + + The name field on civicrm_action_schedule is changed to be long enough to + accommodate potential values. This repeats the upgrade step from 5.66.1, since + 5.66 will not be forward-merged to 5.67. It resolves a potential "data too + long" error in upgrades to 5.66.0. + +- **Scheduled Reminder select2 fields to save/view correctly + ([dev/core#4732](https://lab.civicrm.org/dev/core/-/issues/4732): + [27944](https://github.com/civicrm/civicrm-core/pull/27944))** + + This fixes the scheduled reminder form to retrieve values using APIv4 and + handle serialized values properly. + +- **Attempting to move a custom field of type Country bypasses extends check and + fails ([dev/core#4568](https://lab.civicrm.org/dev/core/-/issues/4568): + [27413](https://github.com/civicrm/civicrm-core/pull/27413))** + +- **ACL's causing invalid SQL + ([dev/core#4635](https://lab.civicrm.org/dev/core/-/issues/4635): + [27679](https://github.com/civicrm/civicrm-core/pull/27679))** + +- **Add some more weight fields + ([27728](https://github.com/civicrm/civicrm-core/pull/27728))** + +- **Weights for custom field groups page + ([27416](https://github.com/civicrm/civicrm-core/pull/27416))** + +- **Add weights to premium screen + ([27788](https://github.com/civicrm/civicrm-core/pull/27788))** + +- **Add some weights to pcp page + ([27780](https://github.com/civicrm/civicrm-core/pull/27780))** + +- **Saving a group definition lose the current parent groups + ([dev/core#4703](https://lab.civicrm.org/dev/core/-/issues/4703): + [27858](https://github.com/civicrm/civicrm-core/pull/27858)) + +- **On Import in Non English Mode do not import field in saved field mapping is + not correctly set as default when re-using import + ([dev/core#4726](https://lab.civicrm.org/dev/core/-/issues/4726): + [27926](https://github.com/civicrm/civicrm-core/pull/27926))** + + This resolves a bug if a saved field mapping was used for import. The fields + mapped as "do not import" would not have that set if the site's using a + non-English language. + +- **getTree: initialize variable before it's used (PHP8 compat) + ([27718](https://github.com/civicrm/civicrm-core/pull/27718))** + +- **Fix sort_name & display_name settings to support new-style tokens + ([27695](https://github.com/civicrm/civicrm-core/pull/27695))** + +- **hook_civicrm_links - Add docblocks and event-checker + ([27484](https://github.com/civicrm/civicrm-core/pull/27484))** + +- **Schema - stop oversharing version numbers + ([27682](https://github.com/civicrm/civicrm-core/pull/27682))** + +- **Do assign unconditionally + ([27696](https://github.com/civicrm/civicrm-core/pull/27696))** + +- **Pass cid=false in include to avoid notice + ([27677](https://github.com/civicrm/civicrm-core/pull/27677))** + +- **Align financial information in participant offline receipt with online + receipt ([27624](https://github.com/civicrm/civicrm-core/pull/27624))** + +- **Add icons to relationship permission metadata + ([27670](https://github.com/civicrm/civicrm-core/pull/27670))** + +- **Stop using undefined properties to specify custom data extends values + ([27560](https://github.com/civicrm/civicrm-core/pull/27560))** + +- **Allow `civicrm_campaign` as `entity_table` for `FinancialItem` API entity + ([27570](https://github.com/civicrm/civicrm-core/pull/27570))** + +- **Use token for tax_amount, quick config mode + ([27016](https://github.com/civicrm/civicrm-core/pull/27016))** + +- **civicrm_admin_ui: add Profile Copy action + ([26529](https://github.com/civicrm/civicrm-core/pull/26529))** + + Ensures the "Copy" action is available for Profiles for those using the admin + ui extension. + +- **Stop saying N contacts removed when they were already removed. + ([27534](https://github.com/civicrm/civicrm-core/pull/27534))** + +- **APIv4 - Remove function that doesn't do anything, add some type hints + ([27558](https://github.com/civicrm/civicrm-core/pull/27558))** + +- **Replace email smarty var with token + ([27595](https://github.com/civicrm/civicrm-core/pull/27595))** + +- **Loosen action typing - doing nothing is doing something + ([27567](https://github.com/civicrm/civicrm-core/pull/27567))** + +- **Cast _action to an int + ([27495](https://github.com/civicrm/civicrm-core/pull/27495))** + +- **SearchKit - Save In-place edit when pressing enter + ([27576](https://github.com/civicrm/civicrm-core/pull/27576))** + +- **SearchKit - When hiding pager, also hide page count + ([27616](https://github.com/civicrm/civicrm-core/pull/27616))** + +- **SearchKit Toolbar - Fix conditionals, add tests + ([27527](https://github.com/civicrm/civicrm-core/pull/27527))** + +- **Consolidate Profile Preview with other profile code + ([27482](https://github.com/civicrm/civicrm-core/pull/27482))** + +- **Metadata - Add "civicrm_note" to "note_used_for" option group + ([27396](https://github.com/civicrm/civicrm-core/pull/27396))** + + Fixes API bug due to incomplete metadata. + +- **Always assign noCid when the tpl is included + ([27541](https://github.com/civicrm/civicrm-core/pull/27541))** + +- **Simplify CustomField::displayValue to expect an ID & have deprecated + handling for anything else + ([27535](https://github.com/civicrm/civicrm-core/pull/27535))** + +- **India-provinces update outdated provinces abbreviations + ([27415](https://github.com/civicrm/civicrm-core/pull/27415))** + +- **Fix a couple more places to use tokens participant role + ([27614](https://github.com/civicrm/civicrm-core/pull/27614))** + +- **Fix double fieldset for honoree section + ([27546](https://github.com/civicrm/civicrm-core/pull/27546))** + +- **Fix Smarty help text block + ([27673](https://github.com/civicrm/civicrm-core/pull/27673))** + +- **Fix typos in field.tpl + ([27627](https://github.com/civicrm/civicrm-core/pull/27627))** + +- **Fix those pesky field notices ...again + ([27590](https://github.com/civicrm/civicrm-core/pull/27590))** + +- **[php8] Swap out some tpl variables for tokens in offline receipt template + ([27598](https://github.com/civicrm/civicrm-core/pull/27598))** + +- **Stop accessng _tpl_vars in smarty from property + ([27589](https://github.com/civicrm/civicrm-core/pull/27589))** + +- **Fix undefined property on fromEmails for Participant fee + ([27578](https://github.com/civicrm/civicrm-core/pull/27578))** + +- **AdminUI: Fix filtering logs by scheduled job + ([27628](https://github.com/civicrm/civicrm-core/pull/27628))** + +- **Require all fields in signature, as always passed + ([27601](https://github.com/civicrm/civicrm-core/pull/27601))** + +- **Simplify formatting in text versions of workflow messages + ([27602](https://github.com/civicrm/civicrm-core/pull/27602))** + +- **Pass `NULL` instead of a value where function requires a parameter but + does not use it + ([27532](https://github.com/civicrm/civicrm-core/pull/27532))** + +- **Fix assigning of customGroup data to be more re-usable & use undefined + properties less + ([27552](https://github.com/civicrm/civicrm-core/pull/27552))** + +- **Smarty notices & errors, message template screen + ([27689](https://github.com/civicrm/civicrm-core/pull/27689))** + +- **Fix unnecessary pass-by-ref, minor code improvements + ([27429](https://github.com/civicrm/civicrm-core/pull/27429))** + +- **Fix Smarty secure mode for premiums tab + ([27471](https://github.com/civicrm/civicrm-core/pull/27471))** + +- **[PHP 8.0+?] Empty requires tag in info.xml crashes extension list + ([dev/core#4707](https://lab.civicrm.org/dev/core/-/issues/4707): + [27856](https://github.com/civicrm/civicrm-core/pull/27856))** + + Don't error if extension has empty `requires` tag. + +- **PHP 8.x always assign taxTerm, ppID - backoffice contribution form + ([27470](https://github.com/civicrm/civicrm-core/pull/27470))** + +- **php8.x Fix notice from adding esm_loader to wrong settings form + ([27530](https://github.com/civicrm/civicrm-core/pull/27530))** + +- **php 8.x Ensure profiles are assigned to template, even when empty + ([27488](https://github.com/civicrm/civicrm-core/pull/27488))** + +- **Php 8.x clean up notices on Profiles + ([27483](https://github.com/civicrm/civicrm-core/pull/27483))** + +- **Fix mistake from last week on string wrangling + ([27537](https://github.com/civicrm/civicrm-core/pull/27537))** + +- **Fix legacy custom searches to not use hacky method to access protected + property on core class + ([27502](https://github.com/civicrm/civicrm-core/pull/27502))** + +- **Hardened smarty - fix mishandling of json + ([27468](https://github.com/civicrm/civicrm-core/pull/27468))** + +- **Suppress rather than declare exception + ([27424](https://github.com/civicrm/civicrm-core/pull/27424))** + +- **Php8.x Fix notices when creating custom field + ([27516](https://github.com/civicrm/civicrm-core/pull/27516))** + +- **8.x Profiles Remove e-notices by removing never assigned help_pre, help_post + ([27433](https://github.com/civicrm/civicrm-core/pull/27433))** + +- **8.x Fix all instances of call Profile template to specify the prefix + ([27435](https://github.com/civicrm/civicrm-core/pull/27435))** + +- **8.x Fix a couple of notices when rendering profiles + ([27434](https://github.com/civicrm/civicrm-core/pull/27434))** + +- **php 8.x Use internal property rather than undefined _type + ([27241](https://github.com/civicrm/civicrm-core/pull/27241))** + +- **VersionCheck: replace hash by sid, add the environment + ([27385](https://github.com/civicrm/civicrm-core/pull/27385))** + +- **hook_civicrm_config: Add extra information to distinguish invocations + ([27149](https://github.com/civicrm/civicrm-core/pull/27149))** + +- **Use internal variable rather than undeclared property + ([27240](https://github.com/civicrm/civicrm-core/pull/27240))** + +- **Standardise fee_label in event workflow messages + ([27325](https://github.com/civicrm/civicrm-core/pull/27325))** + +- **Smarty notices - Fix a couple more templates to look for elements not a + variable that says the element is present + ([27402](https://github.com/civicrm/civicrm-core/pull/27402))** + +- **Cleanup presentation of total to improve code & reduce notices + ([27234](https://github.com/civicrm/civicrm-core/pull/27234))** + +- **SearchKit: Align column headers according to settings + ([27642](https://github.com/civicrm/civicrm-core/pull/27642))** + +- **SearchKit - Fix and add test for scenario where the same display is used + twice on a form + ([27698](https://github.com/civicrm/civicrm-core/pull/27698))** + +- **APIv4 - Fix autocomplete for Individual,Household,Organization entities + ([27713](https://github.com/civicrm/civicrm-core/pull/27713))** + +- **APIv4 - ensure action names get camelCase properly + ([27704](https://github.com/civicrm/civicrm-core/pull/27704))** + +- **APIv4 - Trim output of Export action to only non-default values + ([27700](https://github.com/civicrm/civicrm-core/pull/27700))** + +- **APIv4 Explorer - Fix yml input values + ([27357](https://github.com/civicrm/civicrm-core/pull/27357))** + +- **rtrim when converting text tokens to html to avoid trailing newlines + ([27353](https://github.com/civicrm/civicrm-core/pull/27353))** + +- **Fix missing quotes in tpl file + ([27742](https://github.com/civicrm/civicrm-core/pull/27742))** + +- **Afform - Fix display of boolean checkboxes + ([27592](https://github.com/civicrm/civicrm-core/pull/27592))** + +- **Afform - fix undefined function error + ([27736](https://github.com/civicrm/civicrm-core/pull/27736))** + +- **php notices for "description" + ([27634](https://github.com/civicrm/civicrm-core/pull/27634))** + +- **Notice fix ([27730](https://github.com/civicrm/civicrm-core/pull/27730))** + +- **Enotice fix ([27725](https://github.com/civicrm/civicrm-core/pull/27725))** + +- **Fix e_warning in smarty `{localize}` + ([27447](https://github.com/civicrm/civicrm-core/pull/27447))** + +- **Smarty notice fix + ([27707](https://github.com/civicrm/civicrm-core/pull/27707))** + +- **Fix some variables to always assign + ([27438](https://github.com/civicrm/civicrm-core/pull/27438))** + +- **Remove broken recaptcha from profile preview + ([27439](https://github.com/civicrm/civicrm-core/pull/27439))** + +- **Fix php notices in php dashboard code + ([27426](https://github.com/civicrm/civicrm-core/pull/27426))** + +- **Fix notice on phone_ext + ([27423](https://github.com/civicrm/civicrm-core/pull/27423))** + +- **Afform - Fix getting and setting boolean/numeric types + ([27294](https://github.com/civicrm/civicrm-core/pull/27294))** + +- **Fix MoveField PHP notice + ([27406](https://github.com/civicrm/civicrm-core/pull/27406))** + +- **Do not run financial acls if the setting it not set + ([27771](https://github.com/civicrm/civicrm-core/pull/27771))** + +### CiviCampaign + +- **Fix notice on 'new petition' page + ([27568](https://github.com/civicrm/civicrm-core/pull/27568))** + +### CiviCase + +- **CaseType managed entity in mgd.php file gets caught in an infinite loop + ([dev/core#3722](https://lab.civicrm.org/dev/core/-/issues/3722): + [27430](https://github.com/civicrm/civicrm-core/pull/27430))** + +- **CiviCase - Fix SelectWhereClause for Activity queries + ([27722](https://github.com/civicrm/civicrm-core/pull/27722))** + +### CiviContribute + +- **Fix fatal error on pledge delete + ([27878](https://github.com/civicrm/civicrm-core/pull/27878))** + +- **fix ordering of contribution page links + ([27448](https://github.com/civicrm/civicrm-core/pull/27448))** + +- **js error on contribution pages - also prevents honoree section toggling + from working ([dev/core#4616](https://lab.civicrm.org/dev/core/-/issues/4616): + [27554](https://github.com/civicrm/civicrm-core/pull/27554))** + +- **"Check number" field isn't shown on Pending check payments + ([dev/core#4556](https://lab.civicrm.org/dev/core/-/issues/4556): + [27332](https://github.com/civicrm/civicrm-core/pull/27332))** + +- **Eliminate `contributeMode` + (Work towards [dev/core#4619](https://lab.civicrm.org/dev/core/-/issues/4619): + [27562](https://github.com/civicrm/civicrm-core/pull/27562))** + + Removes removable instances of contribute Mode. + +- **Remove unnecessary contributeMode reference - just present trxn_id if + defined ([27369](https://github.com/civicrm/civicrm-core/pull/27369))** + +- **Stop checking contributeMode in ContributionPage confirm.tpl before + displaying billingName + ([27371](https://github.com/civicrm/civicrm-core/pull/27371))** + +- **Fix broken help for edit pledge + ([27622](https://github.com/civicrm/civicrm-core/pull/27622))** + +- **Fix undefined properties on back-office pledge form + ([27391](https://github.com/civicrm/civicrm-core/pull/27391))** + +- **Paypal recur processor_id fix + ([27564](https://github.com/civicrm/civicrm-core/pull/27564))** + +### CiviEvent + +- **[php8.x, workflow template] Fix multiple participant online receipt display + for quickConfig + ([27479](https://github.com/civicrm/civicrm-core/pull/27479))** + +- **[event][templates] Stop assigning `isPrimary` for WorkFlow Messages at form + layer ([27556](https://github.com/civicrm/civicrm-core/pull/27556))** + +- **Fix event.location token to include supplemental address details, use in + event receipts ([27625](https://github.com/civicrm/civicrm-core/pull/27625))** + +- **Fix notices in text versions of event receipts + ([27487](https://github.com/civicrm/civicrm-core/pull/27487))** + +- **Fix notices when deleting participants + ([27431](https://github.com/civicrm/civicrm-core/pull/27431))** + +- **Fix another EventInfo notice + ([27427](https://github.com/civicrm/civicrm-core/pull/27427))** + +- **Event Custom Field Overwrite + ([dev/core#4706](https://lab.civicrm.org/dev/core/-/issues/4706): + [27868](https://github.com/civicrm/civicrm-core/pull/27868))** + + Fixes a bug where event custom fields data was not being displayed properly + in the user interface. + +- **Fix offline event form validation bug when switching events + ([27287](https://github.com/civicrm/civicrm-core/pull/27287))** + +- **php 8 / notices Fix online event receipt to use the same location tokens as + offline ([27458](https://github.com/civicrm/civicrm-core/pull/27458))** + +- **Move Conference slots functionality to event cart + ([27478](https://github.com/civicrm/civicrm-core/pull/27478))** + +- **php 8.x Remove conference sessions from core workflow messages + ([27455](https://github.com/civicrm/civicrm-core/pull/27455))** + +- **Superficial cleanup on Event Confirm - null object + ([27444](https://github.com/civicrm/civicrm-core/pull/27444))** + +- **Whitespace clean up on event online receipt + ([27457](https://github.com/civicrm/civicrm-core/pull/27457))** + +- **Stop enabling event_cart on new installs + ([27469](https://github.com/civicrm/civicrm-core/pull/27469))** + +- **Remove event cart sessions handling from offline event receipt text as gone + from html ([27497](https://github.com/civicrm/civicrm-core/pull/27497))** + +- **Fix last notices on Online event registration by removing variables + ([27489](https://github.com/civicrm/civicrm-core/pull/27489))** + +- **(RC Regression) Fix extraneous price-set validation on participant form + ([27965](https://github.com/civicrm/civicrm-core/pull/27965))** + +### CiviGrant + +- **CiviGrant - Cleanup and simplify grant form, remove unused tab code + ([27411](https://github.com/civicrm/civicrm-core/pull/27411))** + +### CiviMail + +- **CiviMail - Generate email auth-code as random string + ([27533](https://github.com/civicrm/civicrm-core/pull/27533))** + + Use random string rather than sha string. + +- **CiviMail - VERP should no longer require job_id for verification + ([27531](https://github.com/civicrm/civicrm-core/pull/27531))** + +- **Exclude inactive groups on recipient lists for mailings + ([27491](https://github.com/civicrm/civicrm-core/pull/27491))** + +### CiviMember + +- **Fix set default for custom field on membership renewal form + ([26047](https://github.com/civicrm/civicrm-core/pull/26047))** + +### Drupal Integration + +- **Views notice fix. Remove duplicate call to constructor. + ([669](https://github.com/civicrm/civicrm-drupal/pull/669))** + +## <a name="misc"></a>Miscellany + +- **APIv4 - Delete unnecessary contact spec provider + ([27657](https://github.com/civicrm/civicrm-core/pull/27657))** + +- **Share event lookup functions in a trait + ([27612](https://github.com/civicrm/civicrm-core/pull/27612))** + +- **Switch new queue listener to be a conventional hook + ([27655](https://github.com/civicrm/civicrm-core/pull/27655))** + +- **PHP 7.x - Use get_class() instead of $object::class + ([27536](https://github.com/civicrm/civicrm-core/pull/27536))** + +- **Move the participantCount logic to the template + ([27699](https://github.com/civicrm/civicrm-core/pull/27699))** + +- **APIv4 - Remove always-true if + ([27662](https://github.com/civicrm/civicrm-core/pull/27662))** + +- **Remove references to deleted file + ([27665](https://github.com/civicrm/civicrm-core/pull/27665))** + +- **Flatten array + ([27650](https://github.com/civicrm/civicrm-core/pull/27650))** + +- **Clean up event message templates line items + ([27683](https://github.com/civicrm/civicrm-core/pull/27683))** + +- **Upgrade all core extensions to civix 23.02.1 + ([27641](https://github.com/civicrm/civicrm-core/pull/27641))** + +- **Afform - run `civix upgrade` + ([27617](https://github.com/civicrm/civicrm-core/pull/27617))** + +- **Delete unused Smarty block serialize + ([27619](https://github.com/civicrm/civicrm-core/pull/27619))** + +- **Move nasty chunk of code to where it is used + ([27517](https://github.com/civicrm/civicrm-core/pull/27517))** + +- **Run regen + ([27514](https://github.com/civicrm/civicrm-core/pull/27514))** + +- **Regenerate CRM_Event_DAO_Event + ([27510](https://github.com/civicrm/civicrm-core/pull/27510))** + +- **Rename locally assigned variable for clarity + ([27473](https://github.com/civicrm/civicrm-core/pull/27473))** + +- **Add deprecation annotations for getVar & setVar + ([27503](https://github.com/civicrm/civicrm-core/pull/27503))** + +- **Remove getVar call, access protected property in same class directly + ([27507](https://github.com/civicrm/civicrm-core/pull/27507))** + +- **Deprecate Form_Event::testSubmit, migrate test to full flow + ([27477](https://github.com/civicrm/civicrm-core/pull/27477))** + +- **Superficial tidy up in backoffice contribution form + ([27467](https://github.com/civicrm/civicrm-core/pull/27467))** + +- **Separate delete participant form from edit participant form + ([27660](https://github.com/civicrm/civicrm-core/pull/27660))** + +- **Move our security for fetch in smarty 2 to hack smarty rather than an + override ([372](https://github.com/civicrm/civicrm-packages/pull/372))** + +- **PHP8.2 Pass variables rather than co-erce properties when caling + `AbstractEditPayment:processBillingAddress` + ([27522](https://github.com/civicrm/civicrm-core/pull/27522))** + +- **Add since to deprecated tag + ([27658](https://github.com/civicrm/civicrm-core/pull/27658))** + +- **Add deprecated notice to unreachable code + ([27600](https://github.com/civicrm/civicrm-core/pull/27600))** + +- **Add deprecation notice to code that seems to be superceded + ([27436](https://github.com/civicrm/civicrm-core/pull/27436))** + +- **CRM_Utils_String - Deprecate startsWith and endsWith + ([27716](https://github.com/civicrm/civicrm-core/pull/27716))** + +- **Angular - Noisily deprecate 'settings' in favor of 'settingsFactory' + ([27798](https://github.com/civicrm/civicrm-core/pull/27798))** + +- **Stop passing unused parameter + ([27609](https://github.com/civicrm/civicrm-core/pull/27609))** + +- **Flatten array + ([27605](https://github.com/civicrm/civicrm-core/pull/27605))** + +- **Fix regression when searching by contact ID from quickSearch (if you hit + enter quickly) ([27854](https://github.com/civicrm/civicrm-core/pull/27854))** + +- **regen + ([27418](https://github.com/civicrm/civicrm-core/pull/27418))** + +- **Re-run regen + ([27719](https://github.com/civicrm/civicrm-core/pull/27719))** + +- **Event tokens clean up + ([27349](https://github.com/civicrm/civicrm-core/pull/27349))** + +- **Add Smarty3 to packages in it's own folder + ([373](https://github.com/civicrm/civicrm-packages/pull/373))** + +- **Remove unused property + ([27651](https://github.com/civicrm/civicrm-core/pull/27651))** + +- **Remove weird `<br>` tag on clear buttons on custom radio fields + ([27635](https://github.com/civicrm/civicrm-core/pull/27635))** + +- **Remove unreachable code + ([27675](https://github.com/civicrm/civicrm-core/pull/27675))** + +- **Remove backticks from a couple of places where tokens are already supported + ([27672](https://github.com/civicrm/civicrm-core/pull/27672))** + +- **Remove undeclared properties `_contributorEmail`, `_toDoNotEmail` from + participant form + ([27597](https://github.com/civicrm/civicrm-core/pull/27597))** + +- **Remove unused templates/CRM/Price/Form/LineItem.tpl + ([27548](https://github.com/civicrm/civicrm-core/pull/27548))** + +- **Remove some unused undeclared properties on SelfSvcTransfer form + ([27425](https://github.com/civicrm/civicrm-core/pull/27425))** + +- **Remove unused variable from function signature + ([27442](https://github.com/civicrm/civicrm-core/pull/27442))** + +- **Remove some copy & paste... + ([27539](https://github.com/civicrm/civicrm-core/pull/27539))** + +- **Remove always true if + ([27623](https://github.com/civicrm/civicrm-core/pull/27623))** + +- **Remove references to invalid action + ([27437](https://github.com/civicrm/civicrm-core/pull/27437))** + +- **Remove always-same parameter from function signature + ([27606](https://github.com/civicrm/civicrm-core/pull/27606))** + +- **Remove unused/ unnecessary table name variables + ([27303](https://github.com/civicrm/civicrm-core/pull/27303))** + +- **Remove always true if for required role_id field, add test for value + ([27366](https://github.com/civicrm/civicrm-core/pull/27366))** + +- **Remove dead code - checkSQLConstraint functions + ([27607](https://github.com/civicrm/civicrm-core/pull/27607))** + +- **php8.x Remove never-used undeclared property + ([27474](https://github.com/civicrm/civicrm-core/pull/27474))** + +- **[php8.x[ Remove notice-causing code that seems unreachable + ([27540](https://github.com/civicrm/civicrm-core/pull/27540))** + +- **Remove legacy error handling + ([27419](https://github.com/civicrm/civicrm-core/pull/27419))** + +- **Remove unused place_holder + ([27633](https://github.com/civicrm/civicrm-core/pull/27633))** + +- **Remove unreachable code + ([27636](https://github.com/civicrm/civicrm-core/pull/27636))** + +- **Remove unreachable code + ([27563](https://github.com/civicrm/civicrm-core/pull/27563))** + +- **Remove {php} in hlp test + ([27555](https://github.com/civicrm/civicrm-core/pull/27555))** + +- **Remove unintentionally added test file + ([27572](https://github.com/civicrm/civicrm-core/pull/27572))** + +- **php8.2 stop using yet-another undeclared property for _membershipId. + ([27509](https://github.com/civicrm/civicrm-core/pull/27509))** + +- **[php 8.2] Declare _paymentFields with public visibility + ([27485](https://github.com/civicrm/civicrm-core/pull/27485))** + +- **php 8.2, ensure properties are declared on activity report + ([27490](https://github.com/civicrm/civicrm-core/pull/27490))** + +- **PHP8.2 Remove undefined property userName + ([27456](https://github.com/civicrm/civicrm-core/pull/27456))** + +- **[NFC] Mail Logger: cleanup CIVICRM_MAIL_LOG_AND SEND + ([27499](https://github.com/civicrm/civicrm-core/pull/27499))** + +- **(NFC) Add comment for IS NOT NULL in moving custom fields + ([27420](https://github.com/civicrm/civicrm-core/pull/27420))** + +- **[NFC] Add in Unit test to ensure that Disabled groups do not appear in + mailing receipients autocomplete + ([27708](https://github.com/civicrm/civicrm-core/pull/27708))** + +- **(NFC) Queues - Cleanup comments + ([27690](https://github.com/civicrm/civicrm-core/pull/27690))** + +- **[NFC] Proper syntax for null in DedupeMerge + ([27603](https://github.com/civicrm/civicrm-core/pull/27603))** + +- **[NFC] APIv4 - Update contact type api comment + ([27712](https://github.com/civicrm/civicrm-core/pull/27712))** + +- **[NFC] phpunit 9 compatibility + ([27463](https://github.com/civicrm/civicrm-core/pull/27463))** + +- **[NFC] Correct urls in eway single core extension + ([27669](https://github.com/civicrm/civicrm-core/pull/27669))** + +- **Disable broken unit test + ([27388](https://github.com/civicrm/civicrm-core/pull/27388))** + +- **APIv4 - Fix conformance test for entities with multiple primary keys + ([27393](https://github.com/civicrm/civicrm-core/pull/27393))** + +- **Add test cover for handling of returnPath + ([27398](https://github.com/civicrm/civicrm-core/pull/27398))** + +- **Remove isset from template within unit tests + ([27441](https://github.com/civicrm/civicrm-core/pull/27441))** + +- **[REF] Convert arrays to short syntax ( + [27705](https://github.com/civicrm/civicrm-core/pull/27705))** + +- **[REF][PHP8.1] Fix deprecation notice on passing NULL as the 3rd param to + str_replace for Google geocoding + ([27702](https://github.com/civicrm/civicrm-core/pull/27702))** + +- **[REF][PHP8.2] Fix deprecated usage of mb_convert_encoding with HTML-Entities + ([26042](https://github.com/civicrm/civicrm-core/pull/26042))** + +- **[REF][PHP8.2] Tidy up properties in scheduled jobs + ([27460](https://github.com/civicrm/civicrm-core/pull/27460))** + +- **[REF][PHP8.2] Declare properties in CRM_Queue_ErrorPolicy + ([27599](https://github.com/civicrm/civicrm-core/pull/27599))** + +- **[REF][PHP8.2] Remove dynamic property use in api_v3_CustomValueTest + ([27449](https://github.com/civicrm/civicrm-core/pull/27449))** + +- **Add test cover, use token for `event.is_share` + ([27476](https://github.com/civicrm/civicrm-core/pull/27476))** + +- **Fix test template to use the same tokens as the templates + ([27466](https://github.com/civicrm/civicrm-core/pull/27466))** + +- **PHPStorm - Add PHPSTORM_META about test functions + ([27663](https://github.com/civicrm/civicrm-core/pull/27663))** + +- **Logging - Prevent new warnings on PHP 8.1.25+ + ([dev/core#4739](https://lab.civicrm.org/dev/core/-/issues/4739): [27981](https://github.com/civicrm/civicrm-core/pull/27981))** + +## <a name="credits"></a>Credits + +This release was developed by the following code authors: + +AGH Strategies - Alice Frumin and Andie Hunt; Artful Robot - Rich Lott; +BrightMinded Ltd - Bradley Taylor; Christian Wach; Circle Interactive - Pradeep +Nayak; CiviCRM - Coleman Watts, Tim Otten; CiviDesk - Yashodha Chaku; +civiservice.de - Sebastian Lisken; Coop SymbioTIC - Mathieu Lutfy, Samuel +Vanhove; Dave D; Francesc Bassas i Bullich; Freeform Solutions - Herb van den +Dool; Jens Schuppe; JMA Consulting - Seamus Lee; John Kingsnorth; Lemniscus - +Noah Miller; Megaphone Technology Consulting - Jon Goldberg; MJW Consulting - +Matthew Wire; Przemysław Tabor; Squiffle Consulting - Aidan Saunders; Wikimedia +Foundation - Eileen McNaughton; Wildsight - Lars Sander-Green + +Most authors also reviewed code for this release; in addition, the following +reviewers contributed their comments: + +Agileware - Justin Freeman; Australian Greens - Andrew Cormick-Dockery; +Blackfly Solutions - Alan Dixon; CiviCoop - Jaap Jansma; DevApp; JMA +Consulting - Joe Murray; Nicol Wistreich; Tadpole Collective - Kevin Cristiano; +Third Sector Design - Kurund Jalmi, William Mortada; Wikimedia Foundation - +Elliott Eggleston; xavi-xaloc + +## <a name="feedback"></a>Feedback + +These release notes are edited by Alice Frumin and Andie Hunt. If you'd like +to provide feedback on them, please log in to https://chat.civicrm.org/civicrm +and contact `@agh1`. diff --git a/civicrm/settings/Core.setting.php b/civicrm/settings/Core.setting.php index 3a7309025b..9106338b1e 100644 --- a/civicrm/settings/Core.setting.php +++ b/civicrm/settings/Core.setting.php @@ -142,7 +142,7 @@ return [ 'name' => 'display_name_format', 'type' => 'String', 'html_type' => 'textarea', - 'default' => '{contact.individual_prefix}{ }{contact.first_name}{ }{contact.last_name}{ }{contact.individual_suffix}', + 'default' => '{contact.prefix_id:label}{ }{contact.first_name}{ }{contact.last_name}{ }{contact.suffix_id:label}', 'add' => '4.1', 'title' => ts('Individual Display Name Format'), 'is_domain' => 1, @@ -1201,4 +1201,16 @@ return [ 'description' => ts('How long should HTTP requests through Guzzle application run for in seconds'), 'help_text' => ts('Set the number of seconds http requests should run for before terminating'), ], + 'queue_paused' => [ + 'name' => 'queue_paused', + 'type' => 'Boolean', + 'default' => FALSE, + 'html_type' => 'yesno', + 'add' => '5.67', + 'title' => ts('Is background queue temporarily disabled?'), + 'is_domain' => 1, + 'is_contact' => 0, + 'description' => ts('If enabled, CiviCRM will not process background queues.'), + 'help_text' => ts('This setting will only affect sites that have background queue processing enabled (eg. coworker)'), + ], ]; diff --git a/civicrm/setup/plugins/init/DefaultExtensions.civi-setup.php b/civicrm/setup/plugins/init/DefaultExtensions.civi-setup.php index 7d5f4b2d4c..40697c06a9 100644 --- a/civicrm/setup/plugins/init/DefaultExtensions.civi-setup.php +++ b/civicrm/setup/plugins/init/DefaultExtensions.civi-setup.php @@ -14,5 +14,7 @@ if (!defined('CIVI_SETUP')) { \Civi\Setup::log()->info(sprintf('[%s] Handle %s', basename(__FILE__), 'init')); $e->getModel()->extensions[] = 'org.civicrm.search_kit'; + $e->getModel()->extensions[] = 'org.civicrm.afform'; + $e->getModel()->extensions[] = 'authx'; }); diff --git a/civicrm/setup/plugins/init/StandaloneUsers.civi-setup.php b/civicrm/setup/plugins/init/StandaloneUsers.civi-setup.php index 573c4b777a..b756ef77c8 100644 --- a/civicrm/setup/plugins/init/StandaloneUsers.civi-setup.php +++ b/civicrm/setup/plugins/init/StandaloneUsers.civi-setup.php @@ -49,7 +49,14 @@ if (!defined('CIVI_SETUP')) { 'name' => 'everyone', 'label' => ts('Everyone, including anonymous users'), // Provide default open permissions - 'permissions' => ['CiviMail subscribe/unsubscribe pages', 'make online contributions', 'view event info', 'register for events'], + 'permissions' => [ + 'CiviMail subscribe/unsubscribe pages', + 'make online contributions', + 'view event info', + 'register for events', + 'access password resets', + 'authenticate with password', + ], ], [ 'name' => 'admin', @@ -71,9 +78,9 @@ if (!defined('CIVI_SETUP')) { $params = [ 'cms_name' => $e->getModel()->extras['adminUser'], 'cms_pass' => $e->getModel()->extras['adminPass'], - 'email' => $adminEmail, + 'email' => $adminEmail, 'notify' => FALSE, - 'contactID' => $contactID, + 'contact_id' => $contactID, ]; $userID = \CRM_Core_BAO_CMSUser::create($params, 'email'); diff --git a/civicrm/sql/civicrm.mysql b/civicrm/sql/civicrm.mysql index f57131a64e..866689384b 100644 --- a/civicrm/sql/civicrm.mysql +++ b/civicrm/sql/civicrm.mysql @@ -1392,7 +1392,7 @@ CREATE TABLE `civicrm_custom_group` ( `name` varchar(64) COMMENT 'Variable name/programmatic handle for this group.', `title` varchar(64) NOT NULL COMMENT 'Friendly Name.', `extends` varchar(255) DEFAULT 'Contact' COMMENT 'Type of object this group extends (can add other options later e.g. contact_address, etc.).', - `extends_entity_column_id` int unsigned DEFAULT NULL COMMENT 'FK to civicrm_option_value.id (for option group custom_data_type.)', + `extends_entity_column_id` int unsigned DEFAULT NULL COMMENT 'FK to civicrm_option_value.value (for option group custom_data_type)', `extends_entity_column_value` varchar(255) COMMENT 'linking custom group for dynamic object', `style` varchar(15) COMMENT 'Visual relationship between this form and its parent.', `collapse_display` tinyint NOT NULL DEFAULT 0 COMMENT 'Will this group be in collapsed or expanded mode on initial display ?', @@ -1770,7 +1770,7 @@ CREATE TABLE `civicrm_note` ( `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'When the note was created.', `modified_date` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'When was this note last modified/edited', `subject` varchar(255) COMMENT 'subject of note description', - `privacy` varchar(255) COMMENT 'Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)', + `privacy` varchar(255) NOT NULL DEFAULT 0 COMMENT 'Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)', PRIMARY KEY (`id`), INDEX `index_entity`(entity_table, entity_id), CONSTRAINT FK_civicrm_note_contact_id FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE SET NULL @@ -2100,6 +2100,7 @@ CREATE TABLE `civicrm_group` ( `where_tables` text COMMENT 'the tables to be included in the count statement', `group_type` varchar(128) COMMENT 'FK to group type', `cache_date` timestamp NULL COMMENT 'Date when we created the cache for a smart group', + `cache_fill_took` double NULL COMMENT 'Seconds taken to fill smart group cache', `refresh_date` timestamp NULL COMMENT 'Unused deprecated column.', `parents` text COMMENT 'List of parent groups', `children` text COMMENT 'List of child groups (calculated)', @@ -2760,7 +2761,7 @@ ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMA -- *******************************************************/ CREATE TABLE `civicrm_entity_file` ( `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'primary key', - `entity_table` varchar(64) COMMENT 'physical tablename for entity being joined to file, e.g. civicrm_contact', + `entity_table` varchar(64) NOT NULL COMMENT 'physical tablename for entity being joined to file, e.g. civicrm_contact', `entity_id` int unsigned NOT NULL COMMENT 'FK to entity table specified in entity_table column.', `file_id` int unsigned NOT NULL COMMENT 'FK to civicrm_file', PRIMARY KEY (`id`), @@ -3232,14 +3233,17 @@ ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMA -- *******************************************************/ CREATE TABLE `civicrm_mailing_event_queue` ( `id` int unsigned NOT NULL AUTO_INCREMENT, - `job_id` int unsigned NOT NULL COMMENT 'Mailing Job', + `job_id` int unsigned NULL COMMENT 'Mailing Job', + `mailing_id` int unsigned NULL COMMENT 'Related mailing. Used for reporting on mailing success, if present.', + `is_test` tinyint NOT NULL DEFAULT 0, `email_id` int unsigned DEFAULT NULL COMMENT 'FK to Email', `contact_id` int unsigned NOT NULL COMMENT 'FK to Contact', `hash` varchar(255) NOT NULL COMMENT 'Security hash', `phone_id` int unsigned DEFAULT NULL COMMENT 'FK to Phone', PRIMARY KEY (`id`), INDEX `index_hash`(hash), - CONSTRAINT FK_civicrm_mailing_event_queue_job_id FOREIGN KEY (`job_id`) REFERENCES `civicrm_mailing_job`(`id`) ON DELETE CASCADE, + CONSTRAINT FK_civicrm_mailing_event_queue_job_id FOREIGN KEY (`job_id`) REFERENCES `civicrm_mailing_job`(`id`) ON DELETE SET NULL, + CONSTRAINT FK_civicrm_mailing_event_queue_mailing_id FOREIGN KEY (`mailing_id`) REFERENCES `civicrm_mailing`(`id`) ON DELETE SET NULL, CONSTRAINT FK_civicrm_mailing_event_queue_email_id FOREIGN KEY (`email_id`) REFERENCES `civicrm_email`(`id`) ON DELETE SET NULL, CONSTRAINT FK_civicrm_mailing_event_queue_contact_id FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE CASCADE, CONSTRAINT FK_civicrm_mailing_event_queue_phone_id FOREIGN KEY (`phone_id`) REFERENCES `civicrm_phone`(`id`) ON DELETE SET NULL @@ -3996,7 +4000,7 @@ CREATE TABLE `civicrm_event` ( `is_share` tinyint NOT NULL DEFAULT 1 COMMENT 'Can people share the event through social media?', `is_confirm_enabled` tinyint NOT NULL DEFAULT 1 COMMENT 'If false, the event booking confirmation screen gets skipped', `parent_event_id` int unsigned DEFAULT NULL COMMENT 'Implicit FK to civicrm_event: parent event', - `slot_label_id` int unsigned DEFAULT NULL COMMENT 'Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot.', + `slot_label_id` int unsigned DEFAULT NULL COMMENT 'Needs to be moved to Event cart extension. Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot.', `dedupe_rule_group_id` int unsigned DEFAULT NULL COMMENT 'Rule to use when matching registrations for this event', `is_billing_required` tinyint NOT NULL DEFAULT 0 COMMENT 'if true than billing block is required this event', PRIMARY KEY (`id`), diff --git a/civicrm/sql/civicrm_data.mysql b/civicrm/sql/civicrm_data.mysql index abdbee4d5e..555cc06a99 100644 --- a/civicrm/sql/civicrm_data.mysql +++ b/civicrm/sql/civicrm_data.mysql @@ -364,13 +364,13 @@ INSERT INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES (1110, 1039, "QC", "Quebec"), (1111, 1039, "SK", "Saskatchewan"), (1112, 1039, "YT", "Yukon Territory"), -(1200, 1101, "MM", "Maharashtra"), +(1200, 1101, "MH", "Maharashtra"), (1201, 1101, "KA", "Karnataka"), (1202, 1101, "AP", "Andhra Pradesh"), (1203, 1101, "AR", "Arunachal Pradesh"), (1204, 1101, "AS", "Assam"), (1205, 1101, "BR", "Bihar"), -(1206, 1101, "CH", "Chhattisgarh"), +(1206, 1101, "CG", "Chhattisgarh"), (1207, 1101, "GA", "Goa"), (1208, 1101, "GJ", "Gujarat"), (1209, 1101, "HR", "Haryana"), @@ -5298,9 +5298,9 @@ FROM civicrm_option_group WHERE (name = "custom_data_type") ; INSERT INTO civicrm_option_value (`color`,`component_id`,`description`,`domain_id`,`filter`,`grouping`,`icon`,`is_active`,`is_default`,`is_optgroup`,`is_reserved`,`label`,`name`,`option_group_id`,`value`,`visibility_id`,`weight`) VALUES -(NULL,NULL,NULL,NULL,"0","role_id",NULL,"1","0","0","0","Participants (Role)","ParticipantRole",@this_option_group_id,"1",NULL,"1"), -(NULL,NULL,NULL,NULL,"0","event_id",NULL,"1","0","0","0","Participants (Event Name)","ParticipantEventName",@this_option_group_id,"2",NULL,"2"), -(NULL,NULL,NULL,NULL,"0","event_id.event_type_id",NULL,"1","0","0","0","Participants (Event Type)","ParticipantEventType",@this_option_group_id,"3",NULL,"3") +(NULL,NULL,NULL,NULL,"0","role_id",NULL,"1","0","0","0","Role","ParticipantRole",@this_option_group_id,"1",NULL,"1"), +(NULL,NULL,NULL,NULL,"0","event_id",NULL,"1","0","0","0","Event Name","ParticipantEventName",@this_option_group_id,"2",NULL,"2"), +(NULL,NULL,NULL,NULL,"0","event_id.event_type_id",NULL,"1","0","0","0","Event Type","ParticipantEventType",@this_option_group_id,"3",NULL,"3") ; INSERT INTO civicrm_option_group (`is_active`,`is_reserved`,`name`,`option_value_fields`,`title`) VALUES ("1","1","visibility","name,label,description","Visibility") @@ -5522,7 +5522,8 @@ INSERT INTO civicrm_option_value (`color`,`component_id`,`description`,`domain_i (NULL,NULL,NULL,NULL,"0",NULL,NULL,"1","0","0","0","Contacts","Contact",@this_option_group_id,"civicrm_contact",NULL,"1"), (NULL,NULL,NULL,NULL,"0",NULL,NULL,"1","0","0","0","Relationships","Relationship",@this_option_group_id,"civicrm_relationship",NULL,"2"), (NULL,NULL,NULL,NULL,"0",NULL,NULL,"1","0","0","0","Participants","Participant",@this_option_group_id,"civicrm_participant",NULL,"3"), -(NULL,NULL,NULL,NULL,"0",NULL,NULL,"1","0","0","0","Contributions","Contribution",@this_option_group_id,"civicrm_contribution",NULL,"4") +(NULL,NULL,NULL,NULL,"0",NULL,NULL,"1","0","0","0","Contributions","Contribution",@this_option_group_id,"civicrm_contribution",NULL,"4"), +(NULL,NULL,NULL,NULL,"0",NULL,NULL,"1","0","0","0","Notes","Note",@this_option_group_id,"civicrm_note",NULL,"5") ; INSERT INTO civicrm_option_group (`is_active`,`is_reserved`,`name`,`option_value_fields`,`title`) VALUES ("1","1","currencies_enabled","name,label,description","Currencies Enabled") @@ -6965,8 +6966,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} - {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} - {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} + {capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} + {capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -7110,8 +7111,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} - {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} - {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} + {capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} + {capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -7234,8 +7235,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -7336,8 +7337,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -7418,7 +7419,7 @@ INSERT INTO civicrm_msg_template {if {contribution.contribution_page_id.receipt_text|boolean}} {contribution.contribution_page_id.receipt_text} -{else}{ts}Below you will find a receipt for this contribution.{/ts} +{elseif {contribution.paid_amount|boolean}} {ts}Below you will find a receipt for this contribution.{/ts} {/if} =========================================================== @@ -7443,7 +7444,7 @@ INSERT INTO civicrm_msg_template {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} ---------------------------------------------------------- {foreach from=$lineItems item=line} -{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} +{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {else} {/if} {/if} {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {/foreach} {/if} @@ -7465,7 +7466,7 @@ INSERT INTO civicrm_msg_template {if \'{contribution.receipt_date}\'} {ts}Receipt Date{/ts}: {contribution.receipt_date|crmDate:"shortdate"} {/if} -{if {contribution.payment_instrument_id|boolean}} +{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} {ts}Paid By{/ts}: {contribution.payment_instrument_id:label} {if \'{contribution.check_number}\'} {ts}Check Number{/ts}: {contribution.check_number} @@ -7538,8 +7539,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -7554,7 +7555,7 @@ INSERT INTO civicrm_msg_template {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} <p> {if {contribution.contribution_page_id.receipt_text|boolean}}{contribution.contribution_page_id.receipt_text} - {else}{ts}Below you will find a receipt for this contribution.{/ts}{/if} + {elseif {contribution.paid_amount|boolean}}{ts}Below you will find a receipt for this contribution.{/ts}{/if} </p> </td> </tr> @@ -7628,7 +7629,7 @@ INSERT INTO civicrm_msg_template {/if} {/if} <td> - {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'} + {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'} </td> </tr> {/foreach} @@ -7697,7 +7698,7 @@ INSERT INTO civicrm_msg_template </tr> {/if} - {if {contribution.payment_instrument_id|boolean}} + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} <tr> <td {$labelStyle}> {ts}Paid By{/ts} @@ -7852,7 +7853,7 @@ INSERT INTO civicrm_msg_template {if {contribution.contribution_page_id.receipt_text|boolean}} {contribution.contribution_page_id.receipt_text} -{else}{ts}Below you will find a receipt for this contribution.{/ts} +{elseif {contribution.paid_amount|boolean}} {ts}Below you will find a receipt for this contribution.{/ts} {/if} =========================================================== @@ -7877,7 +7878,7 @@ INSERT INTO civicrm_msg_template {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} ---------------------------------------------------------- {foreach from=$lineItems item=line} -{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} +{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {else} {/if} {/if} {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {/foreach} {/if} @@ -7899,7 +7900,7 @@ INSERT INTO civicrm_msg_template {if \'{contribution.receipt_date}\'} {ts}Receipt Date{/ts}: {contribution.receipt_date|crmDate:"shortdate"} {/if} -{if {contribution.payment_instrument_id|boolean}} +{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} {ts}Paid By{/ts}: {contribution.payment_instrument_id:label} {if \'{contribution.check_number}\'} {ts}Check Number{/ts}: {contribution.check_number} @@ -7972,8 +7973,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -7988,7 +7989,7 @@ INSERT INTO civicrm_msg_template {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} <p> {if {contribution.contribution_page_id.receipt_text|boolean}}{contribution.contribution_page_id.receipt_text} - {else}{ts}Below you will find a receipt for this contribution.{/ts}{/if} + {elseif {contribution.paid_amount|boolean}}{ts}Below you will find a receipt for this contribution.{/ts}{/if} </p> </td> </tr> @@ -8062,7 +8063,7 @@ INSERT INTO civicrm_msg_template {/if} {/if} <td> - {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'} + {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'} </td> </tr> {/foreach} @@ -8131,7 +8132,7 @@ INSERT INTO civicrm_msg_template </tr> {/if} - {if {contribution.payment_instrument_id|boolean}} + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} <tr> <td {$labelStyle}> {ts}Paid By{/ts} @@ -8315,7 +8316,7 @@ INSERT INTO civicrm_msg_template {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} ---------------------------------------------------------- {foreach from=$lineItems item=line} -{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:"%10s"} +{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total_inclusive|crmMoney:$currency|string_format:"%10s"} {/foreach} {if $isShowTax && {contribution.tax_amount|boolean}} @@ -8496,8 +8497,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -8560,7 +8561,7 @@ INSERT INTO civicrm_msg_template {/if} {/if} <td> - {$line.line_total+$line.tax_amount|crmMoney:$currency} + {$line.line_total_inclusive|crmMoney:$currency} </td> </tr> {/foreach} @@ -8766,10 +8767,10 @@ INSERT INTO civicrm_msg_template {/foreach} {/if} - {if !empty($isShare)} + {if {contribution.contribution_page_id.is_share|boolean}} <tr> <td colspan="2" {$valueStyle}> - {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q="reset=1&id=`$contributionPageId`" a=true fe=1 h=1}{/capture} + {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q="reset=1&id={contribution.contribution_page_id}" a=true fe=1 h=1}{/capture} {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl} </td> </tr> @@ -8962,7 +8963,7 @@ INSERT INTO civicrm_msg_template {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} ---------------------------------------------------------- {foreach from=$lineItems item=line} -{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:"%10s"} +{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total_inclusive|crmMoney:$currency|string_format:"%10s"} {/foreach} {if $isShowTax && {contribution.tax_amount|boolean}} @@ -9143,8 +9144,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -9207,7 +9208,7 @@ INSERT INTO civicrm_msg_template {/if} {/if} <td> - {$line.line_total+$line.tax_amount|crmMoney:$currency} + {$line.line_total_inclusive|crmMoney:$currency} </td> </tr> {/foreach} @@ -9413,10 +9414,10 @@ INSERT INTO civicrm_msg_template {/foreach} {/if} - {if !empty($isShare)} + {if {contribution.contribution_page_id.is_share|boolean}} <tr> <td colspan="2" {$valueStyle}> - {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q="reset=1&id=`$contributionPageId`" a=true fe=1 h=1}{/capture} + {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q="reset=1&id={contribution.contribution_page_id}" a=true fe=1 h=1}{/capture} {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl} </td> </tr> @@ -10382,7 +10383,7 @@ INSERT INTO civicrm_msg_template {ts}Thanks for your recurring contribution sign-up.{/ts} -{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments } {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}. +{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments} {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}. {ts}Start Date{/ts}: {$recur_start_date|crmDate} @@ -10433,8 +10434,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -10480,7 +10481,7 @@ INSERT INTO civicrm_msg_template <tr> <td> <p>{ts}Thanks for your recurring contribution sign-up.{/ts}</p> - <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments }{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.</p> + <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments}{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.</p> <p>{ts}Start Date{/ts}: {$recur_start_date|crmDate}</p> </td> </tr> @@ -10581,7 +10582,7 @@ INSERT INTO civicrm_msg_template {ts}Thanks for your recurring contribution sign-up.{/ts} -{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments } {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}. +{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments} {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}. {ts}Start Date{/ts}: {$recur_start_date|crmDate} @@ -10632,8 +10633,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -10679,7 +10680,7 @@ INSERT INTO civicrm_msg_template <tr> <td> <p>{ts}Thanks for your recurring contribution sign-up.{/ts}</p> - <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments }{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.</p> + <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments}{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.</p> <p>{ts}Start Date{/ts}: {$recur_start_date|crmDate}</p> </td> </tr> @@ -10772,8 +10773,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -10808,8 +10809,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -10866,8 +10867,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -10954,8 +10955,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -11029,8 +11030,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -11073,8 +11074,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -11131,9 +11132,9 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} -{capture assign=pcpURL }{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1 fe=1}{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=pcpURL}{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1 fe=1}{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -11247,9 +11248,9 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} -{capture assign=pcpURL }{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1 fe=1}{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=pcpURL}{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1 fe=1}{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -11609,8 +11610,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -11766,8 +11767,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -11889,8 +11890,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} <p>{ts}You have received a donation at your personal page{/ts}: <a href="{$pcpInfoURL}">{$page_title}</a></p> @@ -11941,8 +11942,8 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} <p>{ts}You have received a donation at your personal page{/ts}: <a href="{$pcpInfoURL}">{$page_title}</a></p> @@ -12089,10 +12090,10 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} -{capture assign=emptyBlockStyle }style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture} -{capture assign=emptyBlockValueStyle }style="padding: 10px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=emptyBlockStyle}style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture} +{capture assign=emptyBlockValueStyle}style="padding: 10px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -12453,10 +12454,10 @@ INSERT INTO civicrm_msg_template <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} -{capture assign=emptyBlockStyle }style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture} -{capture assign=emptyBlockValueStyle }style="padding: 10px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=emptyBlockStyle}style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture} +{capture assign=emptyBlockValueStyle}style="padding: 10px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -12700,48 +12701,48 @@ INSERT INTO civicrm_msg_template {/if} {if !empty($isOnWaitlist)} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}You have been added to the WAIT LIST for this event.{/ts} {ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {elseif !empty($isRequireApproval)} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Your registration has been submitted.{/ts} {ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== -{elseif $is_pay_later} +{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {$pay_later_receipt} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {/if} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Event Information and Location{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {event.title} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:"%Y%m%d"}\' === \'{event.start_date|crmDate:"%Y%m%d"}\'}{event.end_date|crmDate:"Time"}{else}{event.end_date}{/if}{/if} -{if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and empty($defaultRole)} -{ts}Participant Role{/ts}: {$event.participant_role} +{if "{participant.role_id:label}" neq \'Attendee\'} +{ts}Participant Role{/ts}: {participant.role_id:label} {/if} {if !empty($isShowLocation)} -{$location.address.1.display|strip_tags:false} +{event.location} {/if}{*End of isShowLocation condition*} {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} @@ -12764,28 +12765,28 @@ INSERT INTO civicrm_msg_template {if {event.is_public|boolean}} -{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Download iCalendar entry for this event.{/ts} {$icalFeed} -{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Add event to Google Calendar{/ts} {$gCalendar} {/if} -{if !empty($email)} +{if {contact.email_primary.email|boolean}} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Registered Email{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== -{$email} +{contact.email_primary.email} {/if} -{if !empty($event.is_monetary)} {* This section for Paid events only.*} +{if {event.is_monetary|boolean}} {* This section for Paid events only.*} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== -{if !empty($event.fee_label)}{$event.fee_label}{/if} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +{event.fee_label} +=============================================================================== {if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset} @@ -12795,29 +12796,28 @@ INSERT INTO civicrm_msg_template {ts 1=$priceset+1}Participant %1{/ts} {/if} {/if} ----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if} +----------------------------------------------------------------------------- {capture assign=ts_item}{ts}Item{/ts}{/capture} {capture assign=ts_qty}{ts}Qty{/ts}{/capture} {capture assign=ts_each}{ts}Each{/ts}{/capture} -{if !empty($dataArray)} +{if $isShowTax && {contribution.tax_amount|boolean}} {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture} {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture} {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture} {/if} {capture assign=ts_total}{ts}Total{/ts}{/capture} -{capture assign=ts_participant_total}{if !empty($pricesetFieldsCount) }{ts}Total Participants{/ts}{/if}{/capture} -{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if !empty($dataArray)} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:"%10s"}{/if} -----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if} +{capture assign=ts_participant_total}{if !empty($pricesetFieldsCount)}{ts}Total Participants{/ts}{/if}{/capture} +{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:"%10s"}{/if} {foreach from=$value item=line} -{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} +{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} {capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney|string_format:"%10s"} {if !empty($dataArray)} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {if !empty($ts_participant_count)}{$ts_participant_count|string_format:"%10s"}{/if} {/foreach} {/if} {/foreach} -{if !empty($dataArray)} +{if $isShowTax && {contribution.tax_amount|boolean}} {if $totalAmount and $totalTaxAmount} {ts}Amount before Tax:{/ts} {$totalAmount-$totalTaxAmount|crmMoney:$currency} {/if} @@ -12845,7 +12845,7 @@ INSERT INTO civicrm_msg_template {else}{ts}Total Amount{/ts}: {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} {/if} -{if !empty($pricesetFieldsCount) } +{if !empty($pricesetFieldsCount)} {assign var="count" value= 0} {foreach from=$lineItem item=pcount} {assign var="lineItemCount" value=0} @@ -12853,7 +12853,7 @@ INSERT INTO civicrm_msg_template {foreach from=$pcount item=p_count} {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} {/foreach} - {if $lineItemCount < 1 } + {if $lineItemCount < 1} {assign var="lineItemCount" value=1} {/if} {assign var="count" value=$count+$lineItemCount} @@ -12863,40 +12863,39 @@ INSERT INTO civicrm_msg_template {ts}Total Participants{/ts}: {$count} {/if} -{if $is_pay_later} - -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +{if $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}} +=============================================================================== {$pay_later_receipt} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {/if} {if {participant.register_date|boolean}} {ts}Registration Date{/ts}: {participant.register_date} {/if} -{if $receive_date} -{ts}Transaction Date{/ts}: {$receive_date|crmDate} +{if {contribution.receive_date|boolean}} +{ts}Transaction Date{/ts}: {contribution.receive_date} {/if} -{if !empty($financialTypeName)} -{ts}Financial Type{/ts}: {$financialTypeName} +{if {contribution.financial_type_id|boolean}} +{ts}Financial Type{/ts}: {contribution.financial_type_id:label} {/if} -{if !empty($trxn_id)} -{ts}Transaction #{/ts}: {$trxn_id} +{if {contribution.trxn_id|boolean}} +{ts}Transaction #{/ts}: {contribution.trxn_id} {/if} -{if !empty($paidBy)} -{ts}Paid By{/ts}: {$paidBy} +{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} +{ts}Paid By{/ts}: {contribution.payment_instrument_id:label} {/if} -{if !empty($checkNumber)} -{ts}Check Number{/ts}: {$checkNumber} +{if {contribution.check_number|boolean}} +{ts}Check Number{/ts}: {contribution.check_number} {/if} {if !empty($billingName)} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Billing Name and Address{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {$billingName} {$address} @@ -12906,7 +12905,7 @@ INSERT INTO civicrm_msg_template =========================================================== {ts}Credit Card Information{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {$credit_card_type} {$credit_card_number} @@ -12917,10 +12916,10 @@ INSERT INTO civicrm_msg_template {if !empty($customGroup)} {foreach from=$customGroup item=value key=customName} -=========================================================={if !empty($pricesetFieldsCount) }===================={/if} +============================================================================== {$customName} -=========================================================={if !empty($pricesetFieldsCount) }===================={/if} +============================================================================== {foreach from=$value item=v key=n} {$n}: {$v} @@ -12932,16 +12931,19 @@ INSERT INTO civicrm_msg_template ', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <title></title> </head> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=tdfirstStyle}style="width: 180px; padding-bottom: 15px;"{/capture} +{capture assign=tdStyle}style="width: 100px;"{/capture} +{capture assign=participantTotalStyle}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture} - <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> +<table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> <!-- BEGIN HEADER --> <!-- You can add table row(s) here with logo or other header elements --> @@ -12963,8 +12965,8 @@ INSERT INTO civicrm_msg_template {elseif !empty($isRequireApproval)} <p>{ts}Your registration has been submitted.{/ts}</p> <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p> - {elseif $is_pay_later} - <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} + {elseif {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean}} + <p>{event.pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} {/if} </td> @@ -12984,61 +12986,60 @@ INSERT INTO civicrm_msg_template </td> </tr> - {if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)} + {if "{participant.role_id:label}" neq \'Attendee\'} <tr> <td {$labelStyle}> {ts}Participant Role{/ts} </td> <td {$valueStyle}> - {$event.participant_role} + {participant.role_id:label} </td> </tr> {/if} - {if !empty($isShowLocation)} + {if {event.is_show_location|boolean}} <tr> <td colspan="2" {$valueStyle}> - {$location.address.1.display|nl2br} + {event.location} </td> </tr> {/if} {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Event Contacts:{/ts} - </td> - </tr> + <tr> + <td colspan="2" {$labelStyle}> + {ts}Event Contacts:{/ts} + </td> + </tr> {if {event.loc_block_id.phone_id.phone|boolean}} - <tr> - <td {$labelStyle}> - {if {event.loc_block_id.phone_id.phone_type_id|boolean}} - {event.loc_block_id.phone_id.phone_type_id:label} - {else} - {ts}Phone{/ts} - {/if} - </td> + <tr> + <td {$labelStyle}> + {if {event.loc_block_id.phone_id.phone_type_id|boolean}} + {event.loc_block_id.phone_id.phone_type_id:label} + {else} + {ts}Phone{/ts} + {/if} + </td> <td {$valueStyle}> {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if} </td> </tr> {/if} - {if {event.loc_block_id.phone_2_id.phone|boolean}} - <tr> - <td {$labelStyle}> - {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}} - {event.loc_block_id.phone_2_id.phone_type_id:label} - {else} - {ts}Phone{/ts} - {/if} - </td> - <td {$valueStyle}> - {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if} - </td> - </tr> - {/if} - + {if {event.loc_block_id.phone_2_id.phone|boolean}} + <tr> + <td {$labelStyle}> + {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}} + {event.loc_block_id.phone_2_id.phone_type_id:label} + {else} + {ts}Phone{/ts} + {/if} + </td> + <td {$valueStyle}> + {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if} + </td> + </tr> + {/if} {if {event.loc_block_id.email_id.email|boolean}} <tr> @@ -13046,7 +13047,7 @@ INSERT INTO civicrm_msg_template {ts}Email{/ts} </td> <td {$valueStyle}> - {event.loc_block_id.email_id.email} + {event.loc_block_id.email_id.email} </td> </tr> {/if} @@ -13054,32 +13055,31 @@ INSERT INTO civicrm_msg_template {if {event.loc_block_id.email_2_id.email|boolean}} <tr> <td {$labelStyle}> - {ts}Email{/ts} + {ts}Email{/ts} </td> <td {$valueStyle}> {event.loc_block_id.email_2_id.email} </td> </tr> {/if} - {/if} {if {event.is_public|boolean}} <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} + {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} <a href="{$icalFeed}">{ts}Download iCalendar entry for this event.{/ts}</a> </td> </tr> <tr> <td colspan="2" {$valueStyle}> - {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} + {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} <a href="{$gCalendar}">{ts}Add event to Google Calendar{/ts}</a> </td> </tr> {/if} - {if $email} + {if {contact.email_primary.email|boolean}} <tr> <th {$headerStyle}> {ts}Registered Email{/ts} @@ -13087,276 +13087,258 @@ INSERT INTO civicrm_msg_template </tr> <tr> <td colspan="2" {$valueStyle}> - {$email} + {contact.email_primary.email} </td> </tr> {/if} {if {event.is_monetary|boolean}} - <tr> - <th {$headerStyle}> - {if !empty($event.fee_label)}{$event.fee_label}{/if} - </th> + <th {$headerStyle}> + {event.fee_label} + </th> </tr> - - {if !empty($lineItem)} - {foreach from=$lineItem item=value key=priceset} - {if $value neq \'skip\'} - {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} - <tr> - <td colspan="2" {$labelStyle}> - {ts 1=$priceset+1}Participant %1{/ts} + {if $isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *} + <tr> + <td colspan="2" {$labelStyle}> + {$currentParticipant.contact.display_name} + </td> + </tr> + {/if} + <tr> + <td colspan="2" {$valueStyle}> + <table> + <tr> + <th>{ts}Item{/ts}</th> + <th>{ts}Qty{/ts}</th> + <th>{ts}Each{/ts}</th> + {if $isShowTax && {contribution.tax_amount|boolean}} + <th>{ts}Subtotal{/ts}</th> + <th>{ts}Tax Rate{/ts}</th> + <th>{ts}Tax Amount{/ts}</th> + {/if} + <th>{ts}Total{/ts}</th> + {if $isShowParticipantCount} + <th>{ts}Total Participants{/ts}</th> + {/if} + </tr> + {foreach from=$currentParticipant.line_items item=line} + <tr> + <td {$tdfirstStyle}>{$line.title}</td> + <td {$tdStyle} align="middle">{$line.qty}</td> + <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td> + {if $isShowTax && {contribution.tax_amount|boolean}} + <td>{$line.line_total|crmMoney:$currency}</td> + {if $line.tax_rate || $line.tax_amount != ""} + <td>{$line.tax_rate|string_format:"%.2f"}%</td> + <td>{$line.tax_amount|crmMoney:$currency}</td> + {else} + <td></td> + <td></td> + {/if} + {/if} + <td {$tdStyle}> + {$line.line_total_inclusive|crmMoney:$currency} + </td> + {if $isShowParticipantCount} + <td {$tdStyle}>{$line.participant_count}</td> + {/if} + </tr> + {/foreach} + {if $isShowTax && $isPrimary && ($participants|@count > 1)} + <tr {$participantTotalStyle}> + <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td> + <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td> + </tr> + {/if} + </table> + </td> + </tr> + {/if} + {/foreach} + {/if} + {if !$isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {foreach from=$currentParticipant.line_items key=index item=currentLineItem} + <tr> + <td {$valueStyle}> + {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if} + </td> + <td {$valueStyle}> + {$currentLineItem.line_total|crmMoney:$currency} + </td> + </tr> + {/foreach} + {/if} + {/foreach} + {/if} + {if $isShowTax && {contribution.tax_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Amount Before Tax:{/ts} </td> - </tr> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if} + </td> + </tr> + {if !$isPrimary} + {* Use the participant specific tax rate breakdown *} + {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown} + {/if} + {foreach from=$taxRateBreakdown item=taxDetail key=taxRate} + <tr> + <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td> + <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td> + </tr> + {/foreach} + {/if} + {if $isShowTax && {contribution.tax_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Total Tax Amount{/ts} + </td> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if} + </td> + </tr> + {/if} + {if $isPrimary} + <tr> + <td {$labelStyle}> + {ts}Total Amount{/ts} + </td> + <td {$valueStyle}> + {contribution.total_amount} + </td> + </tr> + {if {contribution.balance_amount|boolean} && {contribution.paid_amount|boolean}} + <tr> + <td {$labelStyle}>{ts}Total Paid{/ts}</td> + <td {$valueStyle}> + {contribution.paid_amount|crmMoney} + </td> + </tr> + <tr> + <td {$labelStyle}>{ts}Balance{/ts}</td> + <td {$valueStyle}>{contribution.balance_amount}</td> + </tr> + {/if} + {if $isShowParticipantCount} + <tr> + <td {$labelStyle}>{ts}Total Participants{/ts}</td> + <td {$valueStyle}>{$line.participant_count}</td> + </tr> + {/if} + {if {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean} && {event.pay_later_receipt|boolean}} + <tr> + <td colspan="2" {$labelStyle}> + {event.pay_later_receipt} + </td> + </tr> {/if} - <tr> - <td colspan="2" {$valueStyle}> - <table> + {if {participant.register_date|boolean}} <tr> - <th>{ts}Item{/ts}</th> - <th>{ts}Qty{/ts}</th> - <th>{ts}Each{/ts}</th> - {if !empty($dataArray)} - <th>{ts}SubTotal{/ts}</th> - <th>{ts}Tax Rate{/ts}</th> - <th>{ts}Tax Amount{/ts}</th> - {/if} - <th>{ts}Total{/ts}</th> - {if !empty($pricesetFieldsCount) }<th>{ts}Total Participants{/ts}</th>{/if} + <td {$labelStyle}> + {ts}Registration Date{/ts} + </td> + <td {$valueStyle}> + {participant.register_date} + </td> </tr> - {foreach from=$value item=line} - <tr> - <td> - {if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if} + {/if} + + {if {contribution.receive_date|boolean}} + <tr> + <td {$labelStyle}> + {ts}Transaction Date{/ts} </td> - <td> - {$line.qty} + <td {$valueStyle}> + {contribution.receive_date} </td> - <td> - {$line.unit_price|crmMoney} + </tr> + {/if} + + {if {contribution.financial_type_id|boolean}} + <tr> + <td {$labelStyle}> + {ts}Financial Type{/ts} </td> - {if !empty($dataArray)} - <td> - {$line.unit_price*$line.qty|crmMoney} - </td> - {if $line.tax_rate || $line.tax_amount != ""} - <td> - {$line.tax_rate|string_format:"%.2f"}% - </td> - <td> - {$line.tax_amount|crmMoney} - </td> - {else} - <td></td> - <td></td> - {/if} - {/if} - <td> - {$line.line_total+$line.tax_amount|crmMoney} + <td {$valueStyle}> + {contribution.financial_type_id:label} </td> - {if !empty($pricesetFieldsCount) } - <td> - {$line.participant_count} + </tr> + {/if} + + {if {contribution.trxn_id|boolean}} + <tr> + <td {$labelStyle}> + {ts}Transaction #{/ts} </td> - {/if} - </tr> - {/foreach} - </table> - </td> - </tr> - {/if} - {/foreach} - {if !empty($dataArray)} - {if $totalAmount and $totalTaxAmount} - <tr> - <td {$labelStyle}> - {ts}Amount Before Tax:{/ts} - </td> - <td {$valueStyle}> - {$totalAmount-$totalTaxAmount|crmMoney} - </td> - </tr> - {/if} - {foreach from=$dataArray item=value key=priceset} - <tr> - {if $priceset || $priceset == 0} - <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> - <td> {$value|crmMoney:$currency}</td> - {/if} - </tr> - {/foreach} - {/if} - {/if} + <td {$valueStyle}> + {contribution.trxn_id} + </td> + </tr> + {/if} - {if !empty($amount) && !$lineItem} - {foreach from=$amount item=amnt key=level} - <tr> - <td colspan="2" {$valueStyle}> - {$amnt.amount|crmMoney} {$amnt.label} - </td> - </tr> - {/foreach} - {/if} - {if {contribution.tax_amount|boolean}} - <tr> - <td {$labelStyle}> - {ts}Total Tax Amount{/ts} - </td> - <td {$valueStyle}> - {contribution.tax_amount} - </td> - </tr> - {/if} - {if {event.is_monetary|boolean}} - {if {contribution.balance_amount|boolean}} - <tr> - <td {$labelStyle}>{ts}Total Paid{/ts}</td> - <td {$valueStyle}> - {contribution.paid_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} - </td> - </tr> - <tr> - <td {$labelStyle}>{ts}Balance{/ts}</td> - <td {$valueStyle}>{contribution.balance_amount}</td> - </tr> - {else} - <tr> - <td {$labelStyle}>{ts}Total Amount{/ts}</td> - <td {$valueStyle}> - {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} - </td> - </tr> - {/if} - {if !empty($pricesetFieldsCount) } - <tr> - <td {$labelStyle}> - {ts}Total Participants{/ts}</td> - <td {$valueStyle}> - {assign var="count" value= 0} - {foreach from=$lineItem item=pcount} - {assign var="lineItemCount" value=0} - {if $pcount neq \'skip\'} - {foreach from=$pcount item=p_count} - {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} - {/foreach} - {if $lineItemCount < 1 } - assign var="lineItemCount" value=1} - {/if} - {assign var="count" value=$count+$lineItemCount} - {/if} - {/foreach} - {$count} - </td> - </tr> - {/if} - {if $is_pay_later} - <tr> - <td colspan="2" {$labelStyle}> - {$pay_later_receipt} - </td> - </tr> - {/if} - - {if {participant.register_date|boolean}} - <tr> - <td {$labelStyle}> - {ts}Registration Date{/ts} - </td> - <td {$valueStyle}> - {participant.register_date} - </td> - </tr> - {/if} - - {if !empty($receive_date)} - <tr> - <td {$labelStyle}> - {ts}Transaction Date{/ts} - </td> - <td {$valueStyle}> - {$receive_date|crmDate} - </td> - </tr> - {/if} - - {if !empty($financialTypeName)} - <tr> - <td {$labelStyle}> - {ts}Financial Type{/ts} - </td> - <td {$valueStyle}> - {$financialTypeName} - </td> - </tr> - {/if} - - {if !empty($trxn_id)} - <tr> - <td {$labelStyle}> - {ts}Transaction #{/ts} - </td> - <td {$valueStyle}> - {$trxn_id} - </td> - </tr> - {/if} - - {if !empty($paidBy)} - <tr> - <td {$labelStyle}> - {ts}Paid By{/ts} - </td> - <td {$valueStyle}> - {$paidBy} - </td> - </tr> - {/if} - - {if !empty($checkNumber)} - <tr> - <td {$labelStyle}> - {ts}Check Number{/ts} - </td> - <td {$valueStyle}> - {$checkNumber} - </td> - </tr> - {/if} - - {if !empty($billingName)} - <tr> - <th {$headerStyle}> - {ts}Billing Name and Address{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$billingName}<br /> - {$address|nl2br} - </td> - </tr> - {/if} + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Paid By{/ts} + </td> + <td {$valueStyle}> + {contribution.payment_instrument_id:label} + </td> + </tr> + {/if} - {if !empty($credit_card_type)} - <tr> - <th {$headerStyle}> - {ts}Credit Card Information{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$credit_card_type}<br /> - {$credit_card_number}<br /> - {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate} - </td> - </tr> - {/if} + {if {contribution.check_number|boolean}} + <tr> + <td {$labelStyle}> + {ts}Check Number{/ts} + </td> + <td {$valueStyle}> + {contribution.check_number} + </td> + </tr> + {/if} - {/if} + {if !empty($billingName)} + <tr> + <th {$headerStyle}> + {ts}Billing Name and Address{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$billingName}<br/> + {$address|nl2br} + </td> + </tr> + {/if} + {if !empty($credit_card_type)} + <tr> + <th {$headerStyle}> + {ts}Credit Card Information{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$credit_card_type}<br/> + {$credit_card_number}<br/> + {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate} + </td> + </tr> + {/if} + {/if} {/if} {* End of conditional section for Paid events *} {if !empty($customGroup)} @@ -13395,48 +13377,48 @@ INSERT INTO civicrm_msg_template {/if} {if !empty($isOnWaitlist)} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}You have been added to the WAIT LIST for this event.{/ts} {ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {elseif !empty($isRequireApproval)} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Your registration has been submitted.{/ts} {ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== -{elseif $is_pay_later} +{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {$pay_later_receipt} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {/if} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Event Information and Location{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {event.title} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:"%Y%m%d"}\' === \'{event.start_date|crmDate:"%Y%m%d"}\'}{event.end_date|crmDate:"Time"}{else}{event.end_date}{/if}{/if} -{if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and empty($defaultRole)} -{ts}Participant Role{/ts}: {$event.participant_role} +{if "{participant.role_id:label}" neq \'Attendee\'} +{ts}Participant Role{/ts}: {participant.role_id:label} {/if} {if !empty($isShowLocation)} -{$location.address.1.display|strip_tags:false} +{event.location} {/if}{*End of isShowLocation condition*} {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} @@ -13459,28 +13441,28 @@ INSERT INTO civicrm_msg_template {if {event.is_public|boolean}} -{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Download iCalendar entry for this event.{/ts} {$icalFeed} -{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Add event to Google Calendar{/ts} {$gCalendar} {/if} -{if !empty($email)} +{if {contact.email_primary.email|boolean}} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Registered Email{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== -{$email} +{contact.email_primary.email} {/if} -{if !empty($event.is_monetary)} {* This section for Paid events only.*} +{if {event.is_monetary|boolean}} {* This section for Paid events only.*} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== -{if !empty($event.fee_label)}{$event.fee_label}{/if} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +{event.fee_label} +=============================================================================== {if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset} @@ -13490,29 +13472,28 @@ INSERT INTO civicrm_msg_template {ts 1=$priceset+1}Participant %1{/ts} {/if} {/if} ----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if} +----------------------------------------------------------------------------- {capture assign=ts_item}{ts}Item{/ts}{/capture} {capture assign=ts_qty}{ts}Qty{/ts}{/capture} {capture assign=ts_each}{ts}Each{/ts}{/capture} -{if !empty($dataArray)} +{if $isShowTax && {contribution.tax_amount|boolean}} {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture} {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture} {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture} {/if} {capture assign=ts_total}{ts}Total{/ts}{/capture} -{capture assign=ts_participant_total}{if !empty($pricesetFieldsCount) }{ts}Total Participants{/ts}{/if}{/capture} -{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if !empty($dataArray)} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:"%10s"}{/if} -----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if} +{capture assign=ts_participant_total}{if !empty($pricesetFieldsCount)}{ts}Total Participants{/ts}{/if}{/capture} +{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:"%10s"}{/if} {foreach from=$value item=line} -{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} +{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} {capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney|string_format:"%10s"} {if !empty($dataArray)} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {if !empty($ts_participant_count)}{$ts_participant_count|string_format:"%10s"}{/if} {/foreach} {/if} {/foreach} -{if !empty($dataArray)} +{if $isShowTax && {contribution.tax_amount|boolean}} {if $totalAmount and $totalTaxAmount} {ts}Amount before Tax:{/ts} {$totalAmount-$totalTaxAmount|crmMoney:$currency} {/if} @@ -13540,7 +13521,7 @@ INSERT INTO civicrm_msg_template {else}{ts}Total Amount{/ts}: {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} {/if} -{if !empty($pricesetFieldsCount) } +{if !empty($pricesetFieldsCount)} {assign var="count" value= 0} {foreach from=$lineItem item=pcount} {assign var="lineItemCount" value=0} @@ -13548,7 +13529,7 @@ INSERT INTO civicrm_msg_template {foreach from=$pcount item=p_count} {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} {/foreach} - {if $lineItemCount < 1 } + {if $lineItemCount < 1} {assign var="lineItemCount" value=1} {/if} {assign var="count" value=$count+$lineItemCount} @@ -13558,40 +13539,39 @@ INSERT INTO civicrm_msg_template {ts}Total Participants{/ts}: {$count} {/if} -{if $is_pay_later} - -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +{if $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}} +=============================================================================== {$pay_later_receipt} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {/if} {if {participant.register_date|boolean}} {ts}Registration Date{/ts}: {participant.register_date} {/if} -{if $receive_date} -{ts}Transaction Date{/ts}: {$receive_date|crmDate} +{if {contribution.receive_date|boolean}} +{ts}Transaction Date{/ts}: {contribution.receive_date} {/if} -{if !empty($financialTypeName)} -{ts}Financial Type{/ts}: {$financialTypeName} +{if {contribution.financial_type_id|boolean}} +{ts}Financial Type{/ts}: {contribution.financial_type_id:label} {/if} -{if !empty($trxn_id)} -{ts}Transaction #{/ts}: {$trxn_id} +{if {contribution.trxn_id|boolean}} +{ts}Transaction #{/ts}: {contribution.trxn_id} {/if} -{if !empty($paidBy)} -{ts}Paid By{/ts}: {$paidBy} +{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} +{ts}Paid By{/ts}: {contribution.payment_instrument_id:label} {/if} -{if !empty($checkNumber)} -{ts}Check Number{/ts}: {$checkNumber} +{if {contribution.check_number|boolean}} +{ts}Check Number{/ts}: {contribution.check_number} {/if} {if !empty($billingName)} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Billing Name and Address{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {$billingName} {$address} @@ -13601,7 +13581,7 @@ INSERT INTO civicrm_msg_template =========================================================== {ts}Credit Card Information{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {$credit_card_type} {$credit_card_number} @@ -13612,10 +13592,10 @@ INSERT INTO civicrm_msg_template {if !empty($customGroup)} {foreach from=$customGroup item=value key=customName} -=========================================================={if !empty($pricesetFieldsCount) }===================={/if} +============================================================================== {$customName} -=========================================================={if !empty($pricesetFieldsCount) }===================={/if} +============================================================================== {foreach from=$value item=v key=n} {$n}: {$v} @@ -13627,16 +13607,19 @@ INSERT INTO civicrm_msg_template ', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <title></title> </head> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=tdfirstStyle}style="width: 180px; padding-bottom: 15px;"{/capture} +{capture assign=tdStyle}style="width: 100px;"{/capture} +{capture assign=participantTotalStyle}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture} - <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> +<table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> <!-- BEGIN HEADER --> <!-- You can add table row(s) here with logo or other header elements --> @@ -13658,8 +13641,8 @@ INSERT INTO civicrm_msg_template {elseif !empty($isRequireApproval)} <p>{ts}Your registration has been submitted.{/ts}</p> <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p> - {elseif $is_pay_later} - <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} + {elseif {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean}} + <p>{event.pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} {/if} </td> @@ -13679,61 +13662,60 @@ INSERT INTO civicrm_msg_template </td> </tr> - {if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)} + {if "{participant.role_id:label}" neq \'Attendee\'} <tr> <td {$labelStyle}> {ts}Participant Role{/ts} </td> <td {$valueStyle}> - {$event.participant_role} + {participant.role_id:label} </td> </tr> {/if} - {if !empty($isShowLocation)} + {if {event.is_show_location|boolean}} <tr> <td colspan="2" {$valueStyle}> - {$location.address.1.display|nl2br} + {event.location} </td> </tr> {/if} {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Event Contacts:{/ts} - </td> - </tr> + <tr> + <td colspan="2" {$labelStyle}> + {ts}Event Contacts:{/ts} + </td> + </tr> {if {event.loc_block_id.phone_id.phone|boolean}} - <tr> - <td {$labelStyle}> - {if {event.loc_block_id.phone_id.phone_type_id|boolean}} - {event.loc_block_id.phone_id.phone_type_id:label} - {else} - {ts}Phone{/ts} - {/if} - </td> + <tr> + <td {$labelStyle}> + {if {event.loc_block_id.phone_id.phone_type_id|boolean}} + {event.loc_block_id.phone_id.phone_type_id:label} + {else} + {ts}Phone{/ts} + {/if} + </td> <td {$valueStyle}> {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if} </td> </tr> {/if} - {if {event.loc_block_id.phone_2_id.phone|boolean}} - <tr> - <td {$labelStyle}> - {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}} - {event.loc_block_id.phone_2_id.phone_type_id:label} - {else} - {ts}Phone{/ts} - {/if} - </td> - <td {$valueStyle}> - {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if} - </td> - </tr> - {/if} - + {if {event.loc_block_id.phone_2_id.phone|boolean}} + <tr> + <td {$labelStyle}> + {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}} + {event.loc_block_id.phone_2_id.phone_type_id:label} + {else} + {ts}Phone{/ts} + {/if} + </td> + <td {$valueStyle}> + {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if} + </td> + </tr> + {/if} {if {event.loc_block_id.email_id.email|boolean}} <tr> @@ -13741,7 +13723,7 @@ INSERT INTO civicrm_msg_template {ts}Email{/ts} </td> <td {$valueStyle}> - {event.loc_block_id.email_id.email} + {event.loc_block_id.email_id.email} </td> </tr> {/if} @@ -13749,32 +13731,31 @@ INSERT INTO civicrm_msg_template {if {event.loc_block_id.email_2_id.email|boolean}} <tr> <td {$labelStyle}> - {ts}Email{/ts} + {ts}Email{/ts} </td> <td {$valueStyle}> {event.loc_block_id.email_2_id.email} </td> </tr> {/if} - {/if} {if {event.is_public|boolean}} <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} + {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} <a href="{$icalFeed}">{ts}Download iCalendar entry for this event.{/ts}</a> </td> </tr> <tr> <td colspan="2" {$valueStyle}> - {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} + {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} <a href="{$gCalendar}">{ts}Add event to Google Calendar{/ts}</a> </td> </tr> {/if} - {if $email} + {if {contact.email_primary.email|boolean}} <tr> <th {$headerStyle}> {ts}Registered Email{/ts} @@ -13782,297 +13763,279 @@ INSERT INTO civicrm_msg_template </tr> <tr> <td colspan="2" {$valueStyle}> - {$email} + {contact.email_primary.email} </td> </tr> {/if} {if {event.is_monetary|boolean}} - <tr> - <th {$headerStyle}> - {if !empty($event.fee_label)}{$event.fee_label}{/if} - </th> + <th {$headerStyle}> + {event.fee_label} + </th> </tr> - - {if !empty($lineItem)} - {foreach from=$lineItem item=value key=priceset} - {if $value neq \'skip\'} - {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} - <tr> - <td colspan="2" {$labelStyle}> - {ts 1=$priceset+1}Participant %1{/ts} - </td> - </tr> - {/if} - - <tr> - <td colspan="2" {$valueStyle}> - <table> - <tr> - <th>{ts}Item{/ts}</th> - <th>{ts}Qty{/ts}</th> - <th>{ts}Each{/ts}</th> - {if !empty($dataArray)} - <th>{ts}SubTotal{/ts}</th> - <th>{ts}Tax Rate{/ts}</th> - <th>{ts}Tax Amount{/ts}</th> - {/if} - <th>{ts}Total{/ts}</th> - {if !empty($pricesetFieldsCount) }<th>{ts}Total Participants{/ts}</th>{/if} - </tr> - {foreach from=$value item=line} - <tr> - <td> - {if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if} - </td> - <td> - {$line.qty} - </td> - <td> - {$line.unit_price|crmMoney} - </td> - {if !empty($dataArray)} - <td> - {$line.unit_price*$line.qty|crmMoney} - </td> - {if $line.tax_rate || $line.tax_amount != ""} - <td> - {$line.tax_rate|string_format:"%.2f"}% - </td> - <td> - {$line.tax_amount|crmMoney} - </td> - {else} - <td></td> - <td></td> - {/if} + {if $isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *} + <tr> + <td colspan="2" {$labelStyle}> + {$currentParticipant.contact.display_name} + </td> + </tr> {/if} - <td> - {$line.line_total+$line.tax_amount|crmMoney} - </td> - {if !empty($pricesetFieldsCount) } - <td> - {$line.participant_count} - </td> + <tr> + <td colspan="2" {$valueStyle}> + <table> + <tr> + <th>{ts}Item{/ts}</th> + <th>{ts}Qty{/ts}</th> + <th>{ts}Each{/ts}</th> + {if $isShowTax && {contribution.tax_amount|boolean}} + <th>{ts}Subtotal{/ts}</th> + <th>{ts}Tax Rate{/ts}</th> + <th>{ts}Tax Amount{/ts}</th> + {/if} + <th>{ts}Total{/ts}</th> + {if $isShowParticipantCount} + <th>{ts}Total Participants{/ts}</th> + {/if} + </tr> + {foreach from=$currentParticipant.line_items item=line} + <tr> + <td {$tdfirstStyle}>{$line.title}</td> + <td {$tdStyle} align="middle">{$line.qty}</td> + <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td> + {if $isShowTax && {contribution.tax_amount|boolean}} + <td>{$line.line_total|crmMoney:$currency}</td> + {if $line.tax_rate || $line.tax_amount != ""} + <td>{$line.tax_rate|string_format:"%.2f"}%</td> + <td>{$line.tax_amount|crmMoney:$currency}</td> + {else} + <td></td> + <td></td> + {/if} + {/if} + <td {$tdStyle}> + {$line.line_total_inclusive|crmMoney:$currency} + </td> + {if $isShowParticipantCount} + <td {$tdStyle}>{$line.participant_count}</td> + {/if} + </tr> + {/foreach} + {if $isShowTax && $isPrimary && ($participants|@count > 1)} + <tr {$participantTotalStyle}> + <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td> + <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td> + </tr> + {/if} + </table> + </td> + </tr> + {/if} + {/foreach} {/if} - </tr> - {/foreach} - </table> - </td> - </tr> + {if !$isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {foreach from=$currentParticipant.line_items key=index item=currentLineItem} + <tr> + <td {$valueStyle}> + {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if} + </td> + <td {$valueStyle}> + {$currentLineItem.line_total|crmMoney:$currency} + </td> + </tr> + {/foreach} + {/if} + {/foreach} + {/if} + {if $isShowTax && {contribution.tax_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Amount Before Tax:{/ts} + </td> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if} + </td> + </tr> + {if !$isPrimary} + {* Use the participant specific tax rate breakdown *} + {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown} + {/if} + {foreach from=$taxRateBreakdown item=taxDetail key=taxRate} + <tr> + <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td> + <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td> + </tr> + {/foreach} {/if} - {/foreach} - {if !empty($dataArray)} - {if $totalAmount and $totalTaxAmount} - <tr> - <td {$labelStyle}> - {ts}Amount Before Tax:{/ts} - </td> - <td {$valueStyle}> - {$totalAmount-$totalTaxAmount|crmMoney} - </td> - </tr> + {if $isShowTax && {contribution.tax_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Total Tax Amount{/ts} + </td> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if} + </td> + </tr> {/if} - {foreach from=$dataArray item=value key=priceset} + {if $isPrimary} <tr> - {if $priceset || $priceset == 0} - <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> - <td> {$value|crmMoney:$currency}</td> - {/if} + <td {$labelStyle}> + {ts}Total Amount{/ts} + </td> + <td {$valueStyle}> + {contribution.total_amount} + </td> </tr> - {/foreach} - {/if} - {/if} + {if {contribution.balance_amount|boolean} && {contribution.paid_amount|boolean}} + <tr> + <td {$labelStyle}>{ts}Total Paid{/ts}</td> + <td {$valueStyle}> + {contribution.paid_amount|crmMoney} + </td> + </tr> + <tr> + <td {$labelStyle}>{ts}Balance{/ts}</td> + <td {$valueStyle}>{contribution.balance_amount}</td> + </tr> + {/if} + {if $isShowParticipantCount} + <tr> + <td {$labelStyle}>{ts}Total Participants{/ts}</td> + <td {$valueStyle}>{$line.participant_count}</td> + </tr> + {/if} + {if {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean} && {event.pay_later_receipt|boolean}} + <tr> + <td colspan="2" {$labelStyle}> + {event.pay_later_receipt} + </td> + </tr> + {/if} - {if !empty($amount) && !$lineItem} - {foreach from=$amount item=amnt key=level} - <tr> - <td colspan="2" {$valueStyle}> - {$amnt.amount|crmMoney} {$amnt.label} - </td> - </tr> - {/foreach} - {/if} - {if {contribution.tax_amount|boolean}} - <tr> - <td {$labelStyle}> - {ts}Total Tax Amount{/ts} - </td> - <td {$valueStyle}> - {contribution.tax_amount} - </td> - </tr> - {/if} - {if {event.is_monetary|boolean}} - {if {contribution.balance_amount|boolean}} - <tr> - <td {$labelStyle}>{ts}Total Paid{/ts}</td> - <td {$valueStyle}> - {contribution.paid_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} - </td> - </tr> - <tr> - <td {$labelStyle}>{ts}Balance{/ts}</td> - <td {$valueStyle}>{contribution.balance_amount}</td> - </tr> - {else} - <tr> - <td {$labelStyle}>{ts}Total Amount{/ts}</td> - <td {$valueStyle}> - {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} - </td> - </tr> - {/if} - {if !empty($pricesetFieldsCount) } - <tr> - <td {$labelStyle}> - {ts}Total Participants{/ts}</td> - <td {$valueStyle}> - {assign var="count" value= 0} - {foreach from=$lineItem item=pcount} - {assign var="lineItemCount" value=0} - {if $pcount neq \'skip\'} - {foreach from=$pcount item=p_count} - {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} - {/foreach} - {if $lineItemCount < 1 } - assign var="lineItemCount" value=1} - {/if} - {assign var="count" value=$count+$lineItemCount} - {/if} - {/foreach} - {$count} - </td> - </tr> - {/if} - {if $is_pay_later} - <tr> - <td colspan="2" {$labelStyle}> - {$pay_later_receipt} - </td> - </tr> - {/if} + {if {participant.register_date|boolean}} + <tr> + <td {$labelStyle}> + {ts}Registration Date{/ts} + </td> + <td {$valueStyle}> + {participant.register_date} + </td> + </tr> + {/if} - {if {participant.register_date|boolean}} - <tr> - <td {$labelStyle}> - {ts}Registration Date{/ts} - </td> - <td {$valueStyle}> - {participant.register_date} - </td> - </tr> - {/if} + {if {contribution.receive_date|boolean}} + <tr> + <td {$labelStyle}> + {ts}Transaction Date{/ts} + </td> + <td {$valueStyle}> + {contribution.receive_date} + </td> + </tr> + {/if} - {if !empty($receive_date)} - <tr> - <td {$labelStyle}> - {ts}Transaction Date{/ts} - </td> - <td {$valueStyle}> - {$receive_date|crmDate} - </td> - </tr> - {/if} + {if {contribution.financial_type_id|boolean}} + <tr> + <td {$labelStyle}> + {ts}Financial Type{/ts} + </td> + <td {$valueStyle}> + {contribution.financial_type_id:label} + </td> + </tr> + {/if} - {if !empty($financialTypeName)} - <tr> - <td {$labelStyle}> - {ts}Financial Type{/ts} - </td> - <td {$valueStyle}> - {$financialTypeName} - </td> - </tr> - {/if} + {if {contribution.trxn_id|boolean}} + <tr> + <td {$labelStyle}> + {ts}Transaction #{/ts} + </td> + <td {$valueStyle}> + {contribution.trxn_id} + </td> + </tr> + {/if} - {if !empty($trxn_id)} - <tr> - <td {$labelStyle}> - {ts}Transaction #{/ts} - </td> - <td {$valueStyle}> - {$trxn_id} - </td> - </tr> - {/if} + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Paid By{/ts} + </td> + <td {$valueStyle}> + {contribution.payment_instrument_id:label} + </td> + </tr> + {/if} - {if !empty($paidBy)} - <tr> - <td {$labelStyle}> - {ts}Paid By{/ts} - </td> - <td {$valueStyle}> - {$paidBy} - </td> - </tr> - {/if} + {if {contribution.check_number|boolean}} + <tr> + <td {$labelStyle}> + {ts}Check Number{/ts} + </td> + <td {$valueStyle}> + {contribution.check_number} + </td> + </tr> + {/if} + + {if !empty($billingName)} + <tr> + <th {$headerStyle}> + {ts}Billing Name and Address{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$billingName}<br/> + {$address|nl2br} + </td> + </tr> + {/if} + + {if !empty($credit_card_type)} + <tr> + <th {$headerStyle}> + {ts}Credit Card Information{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$credit_card_type}<br/> + {$credit_card_number}<br/> + {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate} + </td> + </tr> + {/if} + {/if} + {/if} {* End of conditional section for Paid events *} - {if !empty($checkNumber)} + {if !empty($customGroup)} + {foreach from=$customGroup item=value key=customName} + <tr> + <th {$headerStyle}> + {$customName} + </th> + </tr> + {foreach from=$value item=v key=n} <tr> <td {$labelStyle}> - {ts}Check Number{/ts} + {$n} </td> <td {$valueStyle}> - {$checkNumber} + {$v} </td> </tr> - {/if} - - {if !empty($billingName)} - <tr> - <th {$headerStyle}> - {ts}Billing Name and Address{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$billingName}<br /> - {$address|nl2br} - </td> - </tr> - {/if} - - {if !empty($credit_card_type)} - <tr> - <th {$headerStyle}> - {ts}Credit Card Information{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$credit_card_type}<br /> - {$credit_card_number}<br /> - {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate} - </td> - </tr> - {/if} - - {/if} - - {/if} {* End of conditional section for Paid events *} - - {if !empty($customGroup)} - {foreach from=$customGroup item=value key=customName} - <tr> - <th {$headerStyle}> - {$customName} - </th> - </tr> - {foreach from=$value item=v key=n} - <tr> - <td {$labelStyle}> - {$n} - </td> - <td {$valueStyle}> - {$v} - </td> - </tr> - {/foreach} - {/foreach} - {/if} + {/foreach} + {/foreach} + {/if} </table> </td> @@ -14098,17 +14061,17 @@ INSERT INTO civicrm_msg_template {/if} {if !empty($isOnWaitlist)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}You have been added to the WAIT LIST for this event.{/ts} {if $isPrimary} {ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts} {/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {elseif !empty($isRequireApproval)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Your registration has been submitted.{/ts} @@ -14116,50 +14079,34 @@ INSERT INTO civicrm_msg_template {ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts} {/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== -{elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)} +{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} + +=============================================================================== {if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Event Information and Location{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {event.title} -{event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:"%A"} {$event.event_end_date|crmDate}{/if}{/if} -{if !empty($conference_sessions)} - +{event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:"%A"} {$event.event_end_date|crmDate}{/if}{/if} -{ts}Your schedule:{/ts} -{assign var=\'group_by_day\' value=\'NA\'} -{foreach from=$conference_sessions item=session} -{if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} -{assign var=\'group_by_day\' value=$session.start_date} - -{$group_by_day|crmDate:"%m/%d/%Y"} - - -{/if} -{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title} -{if $session.location} {$session.location}{/if} -{/foreach} -{/if} - -{if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)} -{ts}Participant Role{/ts}: {$event.participant_role} +{if "{participant.role_id:label}" neq \'Attendee\'} +{ts}Participant Role{/ts}: {participant.role_id:label} {/if} {if !empty($isShowLocation)} -{$location.address.1.display|strip_tags:false} +{event.location} {/if}{*End of isShowLocation condition*} {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} @@ -14168,28 +14115,28 @@ INSERT INTO civicrm_msg_template {if {event.loc_block_id.phone_id.phone|boolean}} {if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if} {/if} -{foreach from=$location.email item=eventEmail} -{if $eventEmail.email} - -{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach} +{if {event.loc_block_id.email_id.email|boolean}} +{ts}Email {/ts}{event.loc_block_id.email_id.email} +{/if} +{if {event.loc_block_id.email_2_id.email|boolean}} +{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if} {/if} - {if {event.is_public|boolean}} -{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Download iCalendar entry for this event.{/ts} {$icalFeed} -{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Add event to Google Calendar{/ts} {$gCalendar} {/if} {if !empty($payer.name)} You were registered by: {$payer.name} {/if} -{if !empty($event.is_monetary) and empty($isRequireApproval)} {* This section for Paid events only.*} +{if {event.is_monetary|boolean} and empty($isRequireApproval)} {* This section for Paid events only.*} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== -{if !empty ($event.fee_label)}{$event.fee_label}{/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +{event.fee_label} +=============================================================================== {if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset} @@ -14200,7 +14147,7 @@ You were registered by: {$payer.name} {/if} {/if} ------------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if} +---------------------------------------------------------------------------------------------------------------- {capture assign=ts_item}{ts}Item{/ts}{/capture} {capture assign=ts_qty}{ts}Qty{/ts}{/capture} @@ -14211,12 +14158,12 @@ You were registered by: {$payer.name} {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture} {/if} {capture assign=ts_total}{ts}Total{/ts}{/capture} -{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if} +{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if} {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:"%10s"}{/if} ------------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if} +---------------------------------------------------------------------------------------------------------------- {foreach from=$value item=line} -{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} +{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} {capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:"%10s"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:"%10s"}{/if} {/foreach} ---------------------------------------------------------------------------------------------------------------- @@ -14235,8 +14182,13 @@ You were registered by: {$payer.name} {/if} {/if} -{if !empty($amounts) && empty($lineItem)} -{foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label} +{if !$isShowLineItems} +{foreach from=$participants key=index item=currentParticipant} +{if $isPrimary || {participant.id} === $currentParticipant.id} +{foreach from=$currentParticipant.line_items key=index item=currentLineItem} +{$currentLineItem.label} {if $isPrimary} - {$currentParticipant.contact.display_name}{/if} - {$currentLineItem.line_total|crmMoney:$currency} +{/foreach} +{/if} {/foreach} {/if} @@ -14247,7 +14199,7 @@ You were registered by: {$payer.name} {ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} -{if !empty($pricesetFieldsCount) } +{if !empty($pricesetFieldsCount)} {assign var="count" value= 0} {foreach from=$lineItem item=pcount} {assign var="lineItemCount" value=0} @@ -14255,7 +14207,7 @@ You were registered by: {$payer.name} {foreach from=$pcount item=p_count} {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} {/foreach} - {if $lineItemCount < 1 } + {if $lineItemCount < 1} {assign var="lineItemCount" value=1} {/if} {assign var="count" value=$count+$lineItemCount} @@ -14265,11 +14217,11 @@ You were registered by: {$payer.name} {ts}Total Participants{/ts}: {$count} {/if} -{if $register_date} -{ts}Registration Date{/ts}: {$register_date|crmDate} +{if {participant.register_date|boolean}} +{ts}Registration Date{/ts}: {participant.register_date} {/if} -{if !empty($receive_date)} -{ts}Transaction Date{/ts}: {$receive_date|crmDate} +{if {contribution.receive_date|boolean}} +{ts}Transaction Date{/ts}: {contribution.receive_date} {/if} {if !empty($financialTypeName)} {ts}Financial Type{/ts}: {$financialTypeName} @@ -14277,30 +14229,30 @@ You were registered by: {$payer.name} {if !empty($trxn_id)} {ts}Transaction #{/ts}: {$trxn_id} {/if} -{if !empty($paidBy)} -{ts}Paid By{/ts}: {$paidBy} +{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} +{ts}Paid By{/ts}: {contribution.payment_instrument_id:label} {/if} {if !empty($checkNumber)} {ts}Check Number{/ts}: {$checkNumber} {/if} {if !empty($billingName)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Billing Name and Address{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$billingName} {$address} {/if} {if !empty($credit_card_type)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Credit Card Information{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$credit_card_type} {$credit_card_number} @@ -14311,10 +14263,10 @@ You were registered by: {$payer.name} {if !empty($customPre)} {foreach from=$customPre item=customPr key=i} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$customPre_grouptitle.$i} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {foreach from=$customPr item=customValue key=customName} {$customName}: {$customValue} @@ -14324,10 +14276,10 @@ You were registered by: {$payer.name} {if !empty($customPost)} {foreach from=$customPost item=customPos key=j} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$customPost_grouptitle.$j} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {foreach from=$customPos item=customValue key=customName} {$customName}: {$customValue} @@ -14337,17 +14289,17 @@ You were registered by: {$payer.name} {if !empty($customProfile)} {foreach from=$customProfile.profile item=eachParticipant key=participantID} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts 1=$participantID+2}Participant Information - Participant %1{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {foreach from=$eachParticipant item=eachProfile key=pid} -----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if} +------------------------------------------------------------------------------ {$customProfile.title.$pid} -----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if} +------------------------------------------------------------------------------ {foreach from=$eachProfile item=val key=field} {foreach from=$val item=v key=f} @@ -14358,7 +14310,7 @@ You were registered by: {$payer.name} {/foreach} {/if} -{if !empty($event.allow_selfcancelxfer) } +{if !empty($event.allow_selfcancelxfer)} {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if} {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid={participant.id}&{contact.checksum}" h=0 a=1 fe=1}{/capture} {ts}Transfer or cancel your registration:{/ts} {$selfService} @@ -14366,473 +14318,485 @@ You were registered by: {$payer.name} ', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <title></title> </head> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} {capture assign=tdfirstStyle}style="width: 180px; padding-bottom: 15px;"{/capture} {capture assign=tdStyle}style="width: 100px;"{/capture} -{capture assign=participantTotal}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture} +{capture assign=participantTotalStyle}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture} - - <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> +<table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> <!-- BEGIN HEADER --> <!-- You can add table row(s) here with logo or other header elements --> <!-- END HEADER --> <!-- BEGIN CONTENT --> - <tr> - <td> - {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} - - {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))} - <p>{event.confirm_email_text}</p> - - {else} - <p>{ts}Thank you for your registration.{/ts} - {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to <strong> %1</strong>.{/ts} - {else}{if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>waitlisted</strong>.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}{/if}{/if}</p> - - {/if} - - <p> - {if !empty($isOnWaitlist)} - <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p> - {if $isPrimary} - <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p> - {/if} - {elseif !empty($isRequireApproval)} - <p>{ts}Your registration has been submitted.{/ts}</p> - {if $isPrimary} - <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p> - {/if} - {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)} - <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p> {* FIXME: this might be text rather than HTML *} - {/if} + <td> + {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} + {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))} + <p>{event.confirm_email_text}</p> + {else} + <p>{ts}Thank you for your registration.{/ts} + {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to<strong> %1</strong>.{/ts} + {else} + {if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to<strong>waitlisted</strong>.{/ts} + {else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts} + {/if} + {/if} + </p> + {/if} - </td> + {if !empty($isOnWaitlist)} + <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p> + {if $isPrimary} + <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p> + {/if} + {elseif !empty($isRequireApproval)} + <p>{ts}Your registration has been submitted.{/ts}</p> + {if $isPrimary} + <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p> + {/if} + {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)} + <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p> + {/if} + </td> </tr> <tr> - <td> - <table style="width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> - <tr> - <th {$headerStyle}> - {ts}Event Information and Location{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {event.title}<br /> - {event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:"%Y%m%d"}\' === \'{event.start_date|crmDate:"%Y%m%d"}\'}{event.end_date|crmDate:"Time"}{else}{event.end_date|crmDate:"%A"} {event.end_date|crmDate}{/if}{/if} - </td> - </tr> - - - {if $conference_sessions} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Your schedule:{/ts} - </td> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {assign var=\'group_by_day\' value=\'NA\'} - {foreach from=$conference_sessions item=session} - {if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} - {assign var=\'group_by_day\' value=$session.start_date} - <em>{$group_by_day|crmDate:"%m/%d/%Y"}</em><br /> - {/if} - {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br /> - {if $session.location} {$session.location}<br />{/if} - {/foreach} - </td> - </tr> - {/if} - - {if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)} - <tr> - <td {$labelStyle}> - {ts}Participant Role{/ts} - </td> - <td {$valueStyle}> - {$event.participant_role} - </td> - </tr> - {/if} - - {if !empty($isShowLocation)} - <tr> - <td colspan="2" {$valueStyle}> - {$location.address.1.display|nl2br} - </td> - </tr> - {/if} - - {if !empty($location.phone.1.phone) || !empty($location.email.1.email)} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Event Contacts:{/ts} - </td> - </tr> - {foreach from=$location.phone item=phone} - {if $phone.phone} + <td> + <table style="width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> <tr> - <td {$labelStyle}> - {if $phone.phone_type} - {$phone.phone_type_display} - {else} - {ts}Phone{/ts} - {/if} - </td> - <td {$valueStyle}> - {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if} - </td> + <th {$headerStyle}> + {ts}Event Information and Location{/ts} + </th> </tr> - {/if} - {/foreach} - {foreach from=$location.email item=eventEmail} - {if $eventEmail.email} <tr> - <td {$labelStyle}> - {ts}Email{/ts} - </td> - <td {$valueStyle}> - {$eventEmail.email} - </td> + <td colspan="2" {$valueStyle}> + {event.title}<br/> + {event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:"%Y%m%d"}\' === \'{event.start_date|crmDate:"%Y%m%d"}\'}{event.end_date|crmDate:"Time"}{else}{event.end_date|crmDate:"%A"} {event.end_date|crmDate}{/if}{/if} + </td> </tr> - {/if} - {/foreach} - {/if} - {if {event.is_public|boolean}} - <tr> - <td colspan="2" {$valueStyle}> - {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} - <a href="{$icalFeed}">{ts}Download iCalendar entry for this event.{/ts}</a> - </td> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} - <a href="{$gCalendar}">{ts}Add event to Google Calendar{/ts}</a> - </td> - </tr> - {/if} + {if "{participant.role_id:label}" neq \'Attendee\'} + <tr> + <td {$labelStyle}> + {ts}Participant Role{/ts} + </td> + <td {$valueStyle}> + {participant.role_id:label} + </td> + </tr> + {/if} - {if $event.is_share} - <tr> - <td colspan="2" {$valueStyle}> - {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q="id={event.id}&reset=1" a=true fe=1 h=1}{/capture} - {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'} - </td> - </tr> - {/if} - {if !empty($payer.name)} - <tr> - <th {$headerStyle}> - {ts}You were registered by:{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$payer.name} - </td> - </tr> - {/if} - {if {event.is_monetary|boolean} and empty($isRequireApproval)} + {if !empty($isShowLocation)} + <tr> + <td colspan="2" {$valueStyle}> + {event.location} + </td> + </tr> + {/if} - <tr> - <th {$headerStyle}> - {event.fee_label} - </th> - </tr> + {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} + <tr> + <td colspan="2" {$labelStyle}> + {ts}Event Contacts:{/ts} + </td> + </tr> - {if $isShowLineItems} - {foreach from=$participants key=index item=currentParticipant} - {if $isPrimary || {participant.id} === $currentParticipant.id} - {if $isPrimary && $lineItems|@count GT 1} {* Header for multi participant registration cases. *} + {if {event.loc_block_id.phone_id.phone|boolean}} <tr> - <td colspan="2" {$labelStyle}> - {ts 1=$currentParticipant.index}Participant %1{/ts} {$currentParticipant.contact.display_name} + <td {$labelStyle}> + {if {event.loc_block_id.phone_id.phone_type_id|boolean}} + {event.loc_block_id.phone_id.phone_type_id:label} + {else} + {ts}Phone{/ts} + {/if} + </td> + <td {$valueStyle}> + {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if} </td> </tr> {/if} + {if {event.loc_block_id.phone_2_id.phone|boolean}} <tr> - <td colspan="2" {$valueStyle}> - <table> - <tr> - <th>{ts}Item{/ts}</th> - <th>{ts}Qty{/ts}</th> - <th>{ts}Each{/ts}</th> - {if $isShowTax && {contribution.tax_amount|boolean}} - <th>{ts}Subtotal{/ts}</th> - <th>{ts}Tax Rate{/ts}</th> - <th>{ts}Tax Amount{/ts}</th> - {/if} - <th>{ts}Total{/ts}</th> - {if !empty($pricesetFieldsCount)}<th>{ts}Total Participants{/ts}</th>{/if} - </tr> - {foreach from=$currentParticipant.line_items item=line} - <tr> - <td {$tdfirstStyle}>{$line.title}</td> - <td {$tdStyle} align="middle">{$line.qty}</td> - <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td> - {if $line.tax_rate || $line.tax_amount != ""} - <td>{$line.tax_rate|string_format:"%.2f"}%</td> - <td>{$line.tax_amount|crmMoney:$currency}</td> - {else} - <td></td> - <td></td> - {/if} - <td {$tdStyle}> - {$line.line_total+$line.tax_amount|crmMoney:$currency} - </td> - {if !empty($pricesetFieldsCount)}<td {$tdStyle}>{$line.participant_count}</td> {/if} - </tr> - {/foreach} - {if $isShowTax} - <tr {$participantTotal}> - <td colspan=3>{ts}Participant Total{/ts}</td> - <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td> - <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td> - <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td> - </tr> + <td {$labelStyle}> + {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}} + {event.loc_block_id.phone_2_id.phone_type_id:label} + {else} + {ts}Phone{/ts} {/if} - </table> + </td> + <td {$valueStyle}> + {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if} + </td> + </tr> + {/if} + {if {event.loc_block_id.email_id.email|boolean}} + <tr> + <td {$labelStyle}> + {ts}Email{/ts} + </td> + <td {$valueStyle}> + {event.loc_block_id.email_id.email} + </td> + </tr> + {/if} + {if {event.loc_block_id.email_2_id.email|boolean}} + <tr> + <td {$labelStyle}> + {ts}Email{/ts} + </td> + <td {$valueStyle}> + {event.loc_block_id.email_2_id.email} </td> </tr> {/if} - {/foreach} {/if} - {if $isShowTax && {contribution.tax_amount|boolean}} + + {if {event.is_public|boolean}} <tr> - <td {$labelStyle}> - {ts}Amount Before Tax:{/ts} + <td colspan="2" {$valueStyle}> + {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} + <a href="{$icalFeed}">{ts}Download iCalendar entry for this event.{/ts}</a> </td> - <td {$valueStyle}> - {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if} + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} + <a href="{$gCalendar}">{ts}Add event to Google Calendar{/ts}</a> </td> - </tr> + </tr> + {/if} - {if !$isPrimary} - {* Use the participant specific tax rate breakdown *} - {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown} + {if {event.is_share|boolean}} + <tr> + <td colspan="2" {$valueStyle}> + {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q="id={event.id}&reset=1" a=true fe=1 h=1}{/capture} + {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'} + </td> + </tr> + {/if} + {if !empty($payer.name)} + <tr> + <th {$headerStyle}> + {ts}You were registered by:{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$payer.name} + </td> + </tr> + {/if} + {if {event.is_monetary|boolean} and empty($isRequireApproval)} + <tr> + <th {$headerStyle}> + {event.fee_label} + </th> + </tr> + {if $isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *} + <tr> + <td colspan="2" {$labelStyle}> + {$currentParticipant.contact.display_name} + </td> + </tr> + {/if} + <tr> + <td colspan="2" {$valueStyle}> + <table> + <tr> + <th>{ts}Item{/ts}</th> + <th>{ts}Qty{/ts}</th> + <th>{ts}Each{/ts}</th> + {if $isShowTax && {contribution.tax_amount|boolean}} + <th>{ts}Subtotal{/ts}</th> + <th>{ts}Tax Rate{/ts}</th> + <th>{ts}Tax Amount{/ts}</th> + {/if} + <th>{ts}Total{/ts}</th> + {if !empty($pricesetFieldsCount)} + <th>{ts}Total Participants{/ts}</th> + {/if} + </tr> + {foreach from=$currentParticipant.line_items item=line} + <tr> + <td {$tdfirstStyle}>{$line.title}</td> + <td {$tdStyle} align="middle">{$line.qty}</td> + <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td> + {if $isShowTax && {contribution.tax_amount|boolean}} + <td>{$line.line_total|crmMoney:$currency}</td> + {if $line.tax_rate || $line.tax_amount != ""} + <td>{$line.tax_rate|string_format:"%.2f"}%</td> + <td>{$line.tax_amount|crmMoney:$currency}</td> + {else} + <td></td> + <td></td> + {/if} + {/if} + <td {$tdStyle}> + {$line.line_total_inclusive|crmMoney:$currency} + </td> + {if !empty($pricesetFieldsCount)} + <td {$tdStyle}>{$line.participant_count}</td> + {/if} + </tr> + {/foreach} + {if $isShowTax && $isPrimary && ($participants|@count > 1)} + <tr {$participantTotalStyle}> + <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td> + <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td> + </tr> + {/if} + </table> + </td> + </tr> + {/if} + {/foreach} {/if} - {foreach from=$taxRateBreakdown item=taxDetail key=taxRate} + {if !$isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {foreach from=$currentParticipant.line_items key=index item=currentLineItem} + <tr> + <td {$valueStyle}> + {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if} + </td> + <td {$valueStyle}> + {$currentLineItem.line_total|crmMoney:$currency} + </td> + </tr> + {/foreach} + {/if} + {/foreach} + {/if} + {if $isShowTax && {contribution.tax_amount|boolean}} <tr> - <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td> - <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td> + <td {$labelStyle}> + {ts}Amount Before Tax:{/ts} + </td> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if} + </td> </tr> - {/foreach} - {/if} - - {if !empty($amounts) && empty($lineItem)} - {foreach from=$amounts item=amnt key=level} - <tr> - <td colspan="2" {$valueStyle}> - {$amnt.amount|crmMoney:$currency} {$amnt.label} - </td> - </tr> - {/foreach} - {/if} + {if !$isPrimary} + {* Use the participant specific tax rate breakdown *} + {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown} + {/if} + {foreach from=$taxRateBreakdown item=taxDetail key=taxRate} + <tr> + <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td> + <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td> + </tr> + {/foreach} + <tr> + <td {$labelStyle}> + {ts}Total Tax Amount{/ts} + </td> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if} + </td> + </tr> + {/if} + {if $isPrimary} + <tr> + <td {$labelStyle}> + {ts}Total Amount{/ts} + </td> + <td {$valueStyle}> + {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} + </td> + </tr> + {if !empty($pricesetFieldsCount)} + <tr> + <td {$labelStyle}> + {ts}Total Participants{/ts}</td> + <td {$valueStyle}> + {assign var="count" value= 0} + {foreach from=$lineItem item=pcount} + {assign var="lineItemCount" value=0} + {if $pcount neq \'skip\'} + {foreach from=$pcount item=p_count} + {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} + {/foreach} + {if $lineItemCount < 1} + {assign var="lineItemCount" value=1} + {/if} + {assign var="count" value=$count+$lineItemCount} + {/if} + {/foreach} + {$count} + </td> + </tr> + {/if} - {if $isShowTax && {contribution.tax_amount|boolean}} - <tr> - <td {$labelStyle}> - {ts}Total Tax Amount{/ts} - </td> - <td {$valueStyle}> - {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if} - </td> - </tr> - {/if} - {if $isPrimary} - <tr> - <td {$labelStyle}> - {ts}Total Amount{/ts} - </td> - <td {$valueStyle}> - {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} - </td> - </tr> - {if !empty($pricesetFieldsCount) } - <tr> - <td {$labelStyle}> - {ts}Total Participants{/ts}</td> - <td {$valueStyle}> - {assign var="count" value= 0} - {foreach from=$lineItem item=pcount} - {assign var="lineItemCount" value=0} - {if $pcount neq \'skip\'} - {foreach from=$pcount item=p_count} - {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} - {/foreach} - {if $lineItemCount < 1 } - {assign var="lineItemCount" value=1} - {/if} - {assign var="count" value=$count+$lineItemCount} - {/if} - {/foreach} - {$count} - </td> </tr> - {/if} + {if {participant.register_date|boolean}} + <tr> + <td {$labelStyle}> + {ts}Registration Date{/ts} + </td> + <td {$valueStyle}> + {participant.register_date} + </td> + </tr> + {/if} - {if $register_date} - <tr> - <td {$labelStyle}> - {ts}Registration Date{/ts} - </td> - <td {$valueStyle}> - {$register_date|crmDate} - </td> - </tr> - {/if} + {if !empty($receive_date)} + <tr> + <td {$labelStyle}> + {ts}Transaction Date{/ts} + </td> + <td {$valueStyle}> + {$receive_date|crmDate} + </td> + </tr> + {/if} - {if !empty($receive_date)} - <tr> - <td {$labelStyle}> - {ts}Transaction Date{/ts} - </td> - <td {$valueStyle}> - {$receive_date|crmDate} - </td> - </tr> - {/if} + {if !empty($financialTypeName)} + <tr> + <td {$labelStyle}> + {ts}Financial Type{/ts} + </td> + <td {$valueStyle}> + {$financialTypeName} + </td> + </tr> + {/if} - {if !empty($financialTypeName)} - <tr> - <td {$labelStyle}> - {ts}Financial Type{/ts} - </td> - <td {$valueStyle}> - {$financialTypeName} - </td> - </tr> - {/if} + {if !empty($trxn_id)} + <tr> + <td {$labelStyle}> + {ts}Transaction #{/ts} + </td> + <td {$valueStyle}> + {$trxn_id} + </td> + </tr> + {/if} - {if !empty($trxn_id)} - <tr> - <td {$labelStyle}> - {ts}Transaction #{/ts} - </td> - <td {$valueStyle}> - {$trxn_id} - </td> - </tr> - {/if} + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Paid By{/ts} + </td> + <td {$valueStyle}> + {contribution.payment_instrument_id:label} + </td> + </tr> + {/if} - {if !empty($paidBy)} - <tr> - <td {$labelStyle}> - {ts}Paid By{/ts} - </td> - <td {$valueStyle}> - {$paidBy} - </td> - </tr> - {/if} + {if !empty($checkNumber)} + <tr> + <td {$labelStyle}> + {ts}Check Number{/ts} + </td> + <td {$valueStyle}> + {$checkNumber} + </td> + </tr> + {/if} - {if !empty($checkNumber)} - <tr> - <td {$labelStyle}> - {ts}Check Number{/ts} - </td> - <td {$valueStyle}> - {$checkNumber} - </td> - </tr> - {/if} - - {if !empty($billingName)} - <tr> - <th {$headerStyle}> - {ts}Billing Name and Address{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$billingName}<br /> - {$address|nl2br} - </td> - </tr> - {/if} - - {if !empty($credit_card_type)} - <tr> - <th {$headerStyle}> - {ts}Credit Card Information{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$credit_card_type}<br /> - {$credit_card_number}<br /> - {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate} - </td> - </tr> - {/if} - - {/if} + {if !empty($billingName)} + <tr> + <th {$headerStyle}> + {ts}Billing Name and Address{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$billingName}<br/> + {$address|nl2br} + </td> + </tr> + {/if} - {/if} {* End of conditional section for Paid events *} + {if !empty($credit_card_type)} + <tr> + <th {$headerStyle}> + {ts}Credit Card Information{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$credit_card_type}<br/> + {$credit_card_number}<br/> + {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate} + </td> + </tr> + {/if} + {/if} + {/if} {* End of conditional section for Paid events *} -{if !empty($customPre)} -{foreach from=$customPre item=customPr key=i} - <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr> - {foreach from=$customPr item=customValue key=customName} - <tr> - <td {$labelStyle}>{$customName}</td> - <td {$valueStyle}>{$customValue}</td> - </tr> - {/foreach} -{/foreach} -{/if} + {if !empty($customPre)} + {foreach from=$customPre item=customPr key=i} + <tr> + <th {$headerStyle}>{$customPre_grouptitle.$i}</th> + </tr> + {foreach from=$customPr item=customValue key=customName} + <tr> + <td {$labelStyle}>{$customName}</td> + <td {$valueStyle}>{$customValue}</td> + </tr> + {/foreach} + {/foreach} + {/if} -{if !empty($customPost)} -{foreach from=$customPost item=customPos key=j} - <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr> - {foreach from=$customPos item=customValue key=customName} - <tr> - <td {$labelStyle}>{$customName}</td> - <td {$valueStyle}>{$customValue}</td> - </tr> - {/foreach} -{/foreach} -{/if} + {if !empty($customPost)} + {foreach from=$customPost item=customPos key=j} + <tr> + <th {$headerStyle}>{$customPost_grouptitle.$j}</th> + </tr> + {foreach from=$customPos item=customValue key=customName} + <tr> + <td {$labelStyle}>{$customName}</td> + <td {$valueStyle}>{$customValue}</td> + </tr> + {/foreach} + {/foreach} + {/if} -{if !empty($customProfile)} -{foreach from=$customProfile.profile item=eachParticipant key=participantID} - <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr> - {foreach from=$eachParticipant item=eachProfile key=pid} - <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr> - {foreach from=$eachProfile item=val key=field} - <tr>{foreach from=$val item=v key=f} - <td {$labelStyle}>{$field}</td> - <td {$valueStyle}>{$v}</td> - {/foreach} - </tr> - {/foreach} -{/foreach} -{/foreach} -{/if} + {if !empty($customProfile)} + {foreach from=$customProfile.profile item=eachParticipant key=participantID} + <tr> + <th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th> + </tr> + {foreach from=$eachParticipant item=eachProfile key=pid} + <tr> + <th {$headerStyle}>{$customProfile.title.$pid}</th> + </tr> + {foreach from=$eachProfile item=val key=field} + <tr> + {foreach from=$val item=v key=f} + <td {$labelStyle}>{$field}</td> + <td {$valueStyle}>{$v}</td> + {/foreach} + </tr> + {/foreach} + {/foreach} + {/foreach} + {/if} - </table> - {if !empty($event.allow_selfcancelxfer) } - <tr> - <td colspan="2" {$valueStyle}> - {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}<br /> - {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid={participant.id}&{contact.checksum}" h=0 a=1 fe=1}{/capture} - <a href="{$selfService}">{ts}Click here to transfer or cancel your registration.{/ts}</a> - </td> - </tr> - {/if} + </table> + {if !empty($event.allow_selfcancelxfer)} + <tr> + <td colspan="2" {$valueStyle}> + {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}<br/> + {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid={participant.id}&{contact.checksum}" h=0 a=1 fe=1}{/capture} + <a href="{$selfService}">{ts}Click here to transfer or cancel your registration.{/ts}</a> + </td> + </tr> + {/if} </table> </body> @@ -14851,17 +14815,17 @@ You were registered by: {$payer.name} {/if} {if !empty($isOnWaitlist)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}You have been added to the WAIT LIST for this event.{/ts} {if $isPrimary} {ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts} {/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {elseif !empty($isRequireApproval)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Your registration has been submitted.{/ts} @@ -14869,50 +14833,34 @@ You were registered by: {$payer.name} {ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts} {/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== + +{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}} -{elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Event Information and Location{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {event.title} -{event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:"%A"} {$event.event_end_date|crmDate}{/if}{/if} -{if !empty($conference_sessions)} - +{event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:"%A"} {$event.event_end_date|crmDate}{/if}{/if} -{ts}Your schedule:{/ts} -{assign var=\'group_by_day\' value=\'NA\'} -{foreach from=$conference_sessions item=session} -{if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} -{assign var=\'group_by_day\' value=$session.start_date} - -{$group_by_day|crmDate:"%m/%d/%Y"} - - -{/if} -{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title} -{if $session.location} {$session.location}{/if} -{/foreach} -{/if} - -{if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)} -{ts}Participant Role{/ts}: {$event.participant_role} +{if "{participant.role_id:label}" neq \'Attendee\'} +{ts}Participant Role{/ts}: {participant.role_id:label} {/if} {if !empty($isShowLocation)} -{$location.address.1.display|strip_tags:false} +{event.location} {/if}{*End of isShowLocation condition*} {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} @@ -14921,28 +14869,28 @@ You were registered by: {$payer.name} {if {event.loc_block_id.phone_id.phone|boolean}} {if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if} {/if} -{foreach from=$location.email item=eventEmail} -{if $eventEmail.email} - -{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach} +{if {event.loc_block_id.email_id.email|boolean}} +{ts}Email {/ts}{event.loc_block_id.email_id.email} +{/if} +{if {event.loc_block_id.email_2_id.email|boolean}} +{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if} {/if} - {if {event.is_public|boolean}} -{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Download iCalendar entry for this event.{/ts} {$icalFeed} -{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Add event to Google Calendar{/ts} {$gCalendar} {/if} {if !empty($payer.name)} You were registered by: {$payer.name} {/if} -{if !empty($event.is_monetary) and empty($isRequireApproval)} {* This section for Paid events only.*} +{if {event.is_monetary|boolean} and empty($isRequireApproval)} {* This section for Paid events only.*} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== -{if !empty ($event.fee_label)}{$event.fee_label}{/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +{event.fee_label} +=============================================================================== {if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset} @@ -14953,7 +14901,7 @@ You were registered by: {$payer.name} {/if} {/if} ------------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if} +---------------------------------------------------------------------------------------------------------------- {capture assign=ts_item}{ts}Item{/ts}{/capture} {capture assign=ts_qty}{ts}Qty{/ts}{/capture} @@ -14964,12 +14912,12 @@ You were registered by: {$payer.name} {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture} {/if} {capture assign=ts_total}{ts}Total{/ts}{/capture} -{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if} +{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if} {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:"%10s"}{/if} ------------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if} +---------------------------------------------------------------------------------------------------------------- {foreach from=$value item=line} -{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} +{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} {capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:"%10s"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:"%10s"}{/if} {/foreach} ---------------------------------------------------------------------------------------------------------------- @@ -14988,8 +14936,13 @@ You were registered by: {$payer.name} {/if} {/if} -{if !empty($amounts) && empty($lineItem)} -{foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label} +{if !$isShowLineItems} +{foreach from=$participants key=index item=currentParticipant} +{if $isPrimary || {participant.id} === $currentParticipant.id} +{foreach from=$currentParticipant.line_items key=index item=currentLineItem} +{$currentLineItem.label} {if $isPrimary} - {$currentParticipant.contact.display_name}{/if} - {$currentLineItem.line_total|crmMoney:$currency} +{/foreach} +{/if} {/foreach} {/if} @@ -15000,7 +14953,7 @@ You were registered by: {$payer.name} {ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} -{if !empty($pricesetFieldsCount) } +{if !empty($pricesetFieldsCount)} {assign var="count" value= 0} {foreach from=$lineItem item=pcount} {assign var="lineItemCount" value=0} @@ -15008,7 +14961,7 @@ You were registered by: {$payer.name} {foreach from=$pcount item=p_count} {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} {/foreach} - {if $lineItemCount < 1 } + {if $lineItemCount < 1} {assign var="lineItemCount" value=1} {/if} {assign var="count" value=$count+$lineItemCount} @@ -15018,11 +14971,11 @@ You were registered by: {$payer.name} {ts}Total Participants{/ts}: {$count} {/if} -{if $register_date} -{ts}Registration Date{/ts}: {$register_date|crmDate} +{if {participant.register_date|boolean}} +{ts}Registration Date{/ts}: {participant.register_date} {/if} -{if !empty($receive_date)} -{ts}Transaction Date{/ts}: {$receive_date|crmDate} +{if {contribution.receive_date|boolean}} +{ts}Transaction Date{/ts}: {contribution.receive_date} {/if} {if !empty($financialTypeName)} {ts}Financial Type{/ts}: {$financialTypeName} @@ -15030,30 +14983,30 @@ You were registered by: {$payer.name} {if !empty($trxn_id)} {ts}Transaction #{/ts}: {$trxn_id} {/if} -{if !empty($paidBy)} -{ts}Paid By{/ts}: {$paidBy} +{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} +{ts}Paid By{/ts}: {contribution.payment_instrument_id:label} {/if} {if !empty($checkNumber)} {ts}Check Number{/ts}: {$checkNumber} {/if} {if !empty($billingName)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Billing Name and Address{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$billingName} {$address} {/if} {if !empty($credit_card_type)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Credit Card Information{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$credit_card_type} {$credit_card_number} @@ -15064,10 +15017,10 @@ You were registered by: {$payer.name} {if !empty($customPre)} {foreach from=$customPre item=customPr key=i} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$customPre_grouptitle.$i} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {foreach from=$customPr item=customValue key=customName} {$customName}: {$customValue} @@ -15077,10 +15030,10 @@ You were registered by: {$payer.name} {if !empty($customPost)} {foreach from=$customPost item=customPos key=j} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$customPost_grouptitle.$j} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {foreach from=$customPos item=customValue key=customName} {$customName}: {$customValue} @@ -15090,17 +15043,17 @@ You were registered by: {$payer.name} {if !empty($customProfile)} {foreach from=$customProfile.profile item=eachParticipant key=participantID} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts 1=$participantID+2}Participant Information - Participant %1{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {foreach from=$eachParticipant item=eachProfile key=pid} -----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if} +------------------------------------------------------------------------------ {$customProfile.title.$pid} -----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if} +------------------------------------------------------------------------------ {foreach from=$eachProfile item=val key=field} {foreach from=$val item=v key=f} @@ -15111,7 +15064,7 @@ You were registered by: {$payer.name} {/foreach} {/if} -{if !empty($event.allow_selfcancelxfer) } +{if !empty($event.allow_selfcancelxfer)} {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if} {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid={participant.id}&{contact.checksum}" h=0 a=1 fe=1}{/capture} {ts}Transfer or cancel your registration:{/ts} {$selfService} @@ -15119,473 +15072,485 @@ You were registered by: {$payer.name} ', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <title></title> </head> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} {capture assign=tdfirstStyle}style="width: 180px; padding-bottom: 15px;"{/capture} {capture assign=tdStyle}style="width: 100px;"{/capture} -{capture assign=participantTotal}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture} +{capture assign=participantTotalStyle}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture} - - <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> +<table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> <!-- BEGIN HEADER --> <!-- You can add table row(s) here with logo or other header elements --> <!-- END HEADER --> <!-- BEGIN CONTENT --> + <tr> + <td> + {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} + {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))} + <p>{event.confirm_email_text}</p> + {else} + <p>{ts}Thank you for your registration.{/ts} + {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to<strong> %1</strong>.{/ts} + {else} + {if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to<strong>waitlisted</strong>.{/ts} + {else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts} + {/if} + {/if} + </p> + {/if} + {if !empty($isOnWaitlist)} + <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p> + {if $isPrimary} + <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p> + {/if} + {elseif !empty($isRequireApproval)} + <p>{ts}Your registration has been submitted.{/ts}</p> + {if $isPrimary} + <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p> + {/if} + {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)} + <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p> + {/if} + </td> + </tr> <tr> - <td> - {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} + <td> + <table style="width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> + <tr> + <th {$headerStyle}> + {ts}Event Information and Location{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {event.title}<br/> + {event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:"%Y%m%d"}\' === \'{event.start_date|crmDate:"%Y%m%d"}\'}{event.end_date|crmDate:"Time"}{else}{event.end_date|crmDate:"%A"} {event.end_date|crmDate}{/if}{/if} + </td> + </tr> - {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))} - <p>{event.confirm_email_text}</p> + {if "{participant.role_id:label}" neq \'Attendee\'} + <tr> + <td {$labelStyle}> + {ts}Participant Role{/ts} + </td> + <td {$valueStyle}> + {participant.role_id:label} + </td> + </tr> + {/if} - {else} - <p>{ts}Thank you for your registration.{/ts} - {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to <strong> %1</strong>.{/ts} - {else}{if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>waitlisted</strong>.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}{/if}{/if}</p> + {if !empty($isShowLocation)} + <tr> + <td colspan="2" {$valueStyle}> + {event.location} + </td> + </tr> + {/if} - {/if} + {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} + <tr> + <td colspan="2" {$labelStyle}> + {ts}Event Contacts:{/ts} + </td> + </tr> - <p> - {if !empty($isOnWaitlist)} - <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p> - {if $isPrimary} - <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p> - {/if} - {elseif !empty($isRequireApproval)} - <p>{ts}Your registration has been submitted.{/ts}</p> - {if $isPrimary} - <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p> - {/if} - {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)} - <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p> {* FIXME: this might be text rather than HTML *} - {/if} + {if {event.loc_block_id.phone_id.phone|boolean}} + <tr> + <td {$labelStyle}> + {if {event.loc_block_id.phone_id.phone_type_id|boolean}} + {event.loc_block_id.phone_id.phone_type_id:label} + {else} + {ts}Phone{/ts} + {/if} + </td> + <td {$valueStyle}> + {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if} + </td> + </tr> + {/if} + {if {event.loc_block_id.phone_2_id.phone|boolean}} + <tr> + <td {$labelStyle}> + {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}} + {event.loc_block_id.phone_2_id.phone_type_id:label} + {else} + {ts}Phone{/ts} + {/if} + </td> + <td {$valueStyle}> + {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if} + </td> + </tr> + {/if} + {if {event.loc_block_id.email_id.email|boolean}} + <tr> + <td {$labelStyle}> + {ts}Email{/ts} + </td> + <td {$valueStyle}> + {event.loc_block_id.email_id.email} + </td> + </tr> + {/if} + {if {event.loc_block_id.email_2_id.email|boolean}} + <tr> + <td {$labelStyle}> + {ts}Email{/ts} + </td> + <td {$valueStyle}> + {event.loc_block_id.email_2_id.email} + </td> + </tr> + {/if} + {/if} - </td> - </tr> - <tr> - <td> - <table style="width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> - <tr> - <th {$headerStyle}> - {ts}Event Information and Location{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {event.title}<br /> - {event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:"%Y%m%d"}\' === \'{event.start_date|crmDate:"%Y%m%d"}\'}{event.end_date|crmDate:"Time"}{else}{event.end_date|crmDate:"%A"} {event.end_date|crmDate}{/if}{/if} - </td> - </tr> + {if {event.is_public|boolean}} + <tr> + <td colspan="2" {$valueStyle}> + {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} + <a href="{$icalFeed}">{ts}Download iCalendar entry for this event.{/ts}</a> + </td> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} + <a href="{$gCalendar}">{ts}Add event to Google Calendar{/ts}</a> + </td> + </tr> + {/if} + {if {event.is_share|boolean}} + <tr> + <td colspan="2" {$valueStyle}> + {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q="id={event.id}&reset=1" a=true fe=1 h=1}{/capture} + {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'} + </td> + </tr> + {/if} + {if !empty($payer.name)} + <tr> + <th {$headerStyle}> + {ts}You were registered by:{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$payer.name} + </td> + </tr> + {/if} + {if {event.is_monetary|boolean} and empty($isRequireApproval)} + <tr> + <th {$headerStyle}> + {event.fee_label} + </th> + </tr> + {if $isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *} + <tr> + <td colspan="2" {$labelStyle}> + {$currentParticipant.contact.display_name} + </td> + </tr> + {/if} + <tr> + <td colspan="2" {$valueStyle}> + <table> + <tr> + <th>{ts}Item{/ts}</th> + <th>{ts}Qty{/ts}</th> + <th>{ts}Each{/ts}</th> + {if $isShowTax && {contribution.tax_amount|boolean}} + <th>{ts}Subtotal{/ts}</th> + <th>{ts}Tax Rate{/ts}</th> + <th>{ts}Tax Amount{/ts}</th> + {/if} + <th>{ts}Total{/ts}</th> + {if !empty($pricesetFieldsCount)} + <th>{ts}Total Participants{/ts}</th> + {/if} + </tr> + {foreach from=$currentParticipant.line_items item=line} + <tr> + <td {$tdfirstStyle}>{$line.title}</td> + <td {$tdStyle} align="middle">{$line.qty}</td> + <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td> + {if $isShowTax && {contribution.tax_amount|boolean}} + <td>{$line.line_total|crmMoney:$currency}</td> + {if $line.tax_rate || $line.tax_amount != ""} + <td>{$line.tax_rate|string_format:"%.2f"}%</td> + <td>{$line.tax_amount|crmMoney:$currency}</td> + {else} + <td></td> + <td></td> + {/if} + {/if} + <td {$tdStyle}> + {$line.line_total_inclusive|crmMoney:$currency} + </td> + {if !empty($pricesetFieldsCount)} + <td {$tdStyle}>{$line.participant_count}</td> + {/if} + </tr> + {/foreach} + {if $isShowTax && $isPrimary && ($participants|@count > 1)} + <tr {$participantTotalStyle}> + <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td> + <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td> + </tr> + {/if} + </table> + </td> + </tr> + {/if} + {/foreach} + {/if} + {if !$isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {foreach from=$currentParticipant.line_items key=index item=currentLineItem} + <tr> + <td {$valueStyle}> + {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if} + </td> + <td {$valueStyle}> + {$currentLineItem.line_total|crmMoney:$currency} + </td> + </tr> + {/foreach} + {/if} + {/foreach} + {/if} + {if $isShowTax && {contribution.tax_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Amount Before Tax:{/ts} + </td> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if} + </td> + </tr> + {if !$isPrimary} + {* Use the participant specific tax rate breakdown *} + {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown} + {/if} + {foreach from=$taxRateBreakdown item=taxDetail key=taxRate} + <tr> + <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td> + <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td> + </tr> + {/foreach} + <tr> + <td {$labelStyle}> + {ts}Total Tax Amount{/ts} + </td> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if} + </td> + </tr> + {/if} + {if $isPrimary} + <tr> + <td {$labelStyle}> + {ts}Total Amount{/ts} + </td> + <td {$valueStyle}> + {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} + </td> + </tr> + {if !empty($pricesetFieldsCount)} + <tr> + <td {$labelStyle}> + {ts}Total Participants{/ts}</td> + <td {$valueStyle}> + {assign var="count" value= 0} + {foreach from=$lineItem item=pcount} + {assign var="lineItemCount" value=0} + {if $pcount neq \'skip\'} + {foreach from=$pcount item=p_count} + {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} + {/foreach} + {if $lineItemCount < 1} + {assign var="lineItemCount" value=1} + {/if} + {assign var="count" value=$count+$lineItemCount} + {/if} + {/foreach} + {$count} + </td> + </tr> + {/if} - {if $conference_sessions} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Your schedule:{/ts} - </td> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {assign var=\'group_by_day\' value=\'NA\'} - {foreach from=$conference_sessions item=session} - {if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} - {assign var=\'group_by_day\' value=$session.start_date} - <em>{$group_by_day|crmDate:"%m/%d/%Y"}</em><br /> - {/if} - {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br /> - {if $session.location} {$session.location}<br />{/if} - {/foreach} - </td> - </tr> - {/if} + {if {participant.register_date|boolean}} + <tr> + <td {$labelStyle}> + {ts}Registration Date{/ts} + </td> + <td {$valueStyle}> + {participant.register_date} + </td> + </tr> + {/if} - {if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)} - <tr> - <td {$labelStyle}> - {ts}Participant Role{/ts} - </td> - <td {$valueStyle}> - {$event.participant_role} - </td> - </tr> - {/if} + {if !empty($receive_date)} + <tr> + <td {$labelStyle}> + {ts}Transaction Date{/ts} + </td> + <td {$valueStyle}> + {$receive_date|crmDate} + </td> + </tr> + {/if} - {if !empty($isShowLocation)} - <tr> - <td colspan="2" {$valueStyle}> - {$location.address.1.display|nl2br} - </td> - </tr> - {/if} + {if !empty($financialTypeName)} + <tr> + <td {$labelStyle}> + {ts}Financial Type{/ts} + </td> + <td {$valueStyle}> + {$financialTypeName} + </td> + </tr> + {/if} - {if !empty($location.phone.1.phone) || !empty($location.email.1.email)} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Event Contacts:{/ts} - </td> - </tr> - {foreach from=$location.phone item=phone} - {if $phone.phone} - <tr> - <td {$labelStyle}> - {if $phone.phone_type} - {$phone.phone_type_display} - {else} - {ts}Phone{/ts} - {/if} - </td> - <td {$valueStyle}> - {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if} - </td> - </tr> - {/if} - {/foreach} - {foreach from=$location.email item=eventEmail} - {if $eventEmail.email} - <tr> - <td {$labelStyle}> - {ts}Email{/ts} - </td> - <td {$valueStyle}> - {$eventEmail.email} - </td> - </tr> - {/if} - {/foreach} - {/if} + {if !empty($trxn_id)} + <tr> + <td {$labelStyle}> + {ts}Transaction #{/ts} + </td> + <td {$valueStyle}> + {$trxn_id} + </td> + </tr> + {/if} - {if {event.is_public|boolean}} - <tr> - <td colspan="2" {$valueStyle}> - {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} - <a href="{$icalFeed}">{ts}Download iCalendar entry for this event.{/ts}</a> - </td> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} - <a href="{$gCalendar}">{ts}Add event to Google Calendar{/ts}</a> - </td> - </tr> - {/if} + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Paid By{/ts} + </td> + <td {$valueStyle}> + {contribution.payment_instrument_id:label} + </td> + </tr> + {/if} - {if $event.is_share} - <tr> - <td colspan="2" {$valueStyle}> - {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q="id={event.id}&reset=1" a=true fe=1 h=1}{/capture} - {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'} - </td> - </tr> - {/if} - {if !empty($payer.name)} - <tr> - <th {$headerStyle}> - {ts}You were registered by:{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$payer.name} - </td> - </tr> - {/if} - {if {event.is_monetary|boolean} and empty($isRequireApproval)} + {if !empty($checkNumber)} + <tr> + <td {$labelStyle}> + {ts}Check Number{/ts} + </td> + <td {$valueStyle}> + {$checkNumber} + </td> + </tr> + {/if} + + {if !empty($billingName)} + <tr> + <th {$headerStyle}> + {ts}Billing Name and Address{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$billingName}<br/> + {$address|nl2br} + </td> + </tr> + {/if} - <tr> - <th {$headerStyle}> - {event.fee_label} - </th> - </tr> + {if !empty($credit_card_type)} + <tr> + <th {$headerStyle}> + {ts}Credit Card Information{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$credit_card_type}<br/> + {$credit_card_number}<br/> + {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate} + </td> + </tr> + {/if} + {/if} + + {/if} {* End of conditional section for Paid events *} - {if $isShowLineItems} - {foreach from=$participants key=index item=currentParticipant} - {if $isPrimary || {participant.id} === $currentParticipant.id} - {if $isPrimary && $lineItems|@count GT 1} {* Header for multi participant registration cases. *} + {if !empty($customPre)} + {foreach from=$customPre item=customPr key=i} <tr> - <td colspan="2" {$labelStyle}> - {ts 1=$currentParticipant.index}Participant %1{/ts} {$currentParticipant.contact.display_name} - </td> + <th {$headerStyle}>{$customPre_grouptitle.$i}</th> </tr> - {/if} + {foreach from=$customPr item=customValue key=customName} + <tr> + <td {$labelStyle}>{$customName}</td> + <td {$valueStyle}>{$customValue}</td> + </tr> + {/foreach} + {/foreach} + {/if} + + {if !empty($customPost)} + {foreach from=$customPost item=customPos key=j} <tr> - <td colspan="2" {$valueStyle}> - <table> - <tr> - <th>{ts}Item{/ts}</th> - <th>{ts}Qty{/ts}</th> - <th>{ts}Each{/ts}</th> - {if $isShowTax && {contribution.tax_amount|boolean}} - <th>{ts}Subtotal{/ts}</th> - <th>{ts}Tax Rate{/ts}</th> - <th>{ts}Tax Amount{/ts}</th> - {/if} - <th>{ts}Total{/ts}</th> - {if !empty($pricesetFieldsCount)}<th>{ts}Total Participants{/ts}</th>{/if} - </tr> - {foreach from=$currentParticipant.line_items item=line} - <tr> - <td {$tdfirstStyle}>{$line.title}</td> - <td {$tdStyle} align="middle">{$line.qty}</td> - <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td> - {if $line.tax_rate || $line.tax_amount != ""} - <td>{$line.tax_rate|string_format:"%.2f"}%</td> - <td>{$line.tax_amount|crmMoney:$currency}</td> - {else} - <td></td> - <td></td> - {/if} - <td {$tdStyle}> - {$line.line_total+$line.tax_amount|crmMoney:$currency} - </td> - {if !empty($pricesetFieldsCount)}<td {$tdStyle}>{$line.participant_count}</td> {/if} - </tr> - {/foreach} - {if $isShowTax} - <tr {$participantTotal}> - <td colspan=3>{ts}Participant Total{/ts}</td> - <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td> - <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td> - <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td> - </tr> - {/if} - </table> - </td> + <th {$headerStyle}>{$customPost_grouptitle.$j}</th> </tr> - {/if} - {/foreach} + {foreach from=$customPos item=customValue key=customName} + <tr> + <td {$labelStyle}>{$customName}</td> + <td {$valueStyle}>{$customValue}</td> + </tr> + {/foreach} + {/foreach} {/if} - {if $isShowTax && {contribution.tax_amount|boolean}} - <tr> - <td {$labelStyle}> - {ts}Amount Before Tax:{/ts} - </td> - <td {$valueStyle}> - {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if} - </td> - </tr> - {if !$isPrimary} - {* Use the participant specific tax rate breakdown *} - {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown} - {/if} - {foreach from=$taxRateBreakdown item=taxDetail key=taxRate} + {if !empty($customProfile)} + {foreach from=$customProfile.profile item=eachParticipant key=participantID} + <tr> + <th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th> + </tr> + {foreach from=$eachParticipant item=eachProfile key=pid} <tr> - <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td> - <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td> + <th {$headerStyle}>{$customProfile.title.$pid}</th> </tr> + {foreach from=$eachProfile item=val key=field} + <tr> + {foreach from=$val item=v key=f} + <td {$labelStyle}>{$field}</td> + <td {$valueStyle}>{$v}</td> + {/foreach} + </tr> + {/foreach} {/foreach} + {/foreach} {/if} - {if !empty($amounts) && empty($lineItem)} - {foreach from=$amounts item=amnt key=level} - <tr> - <td colspan="2" {$valueStyle}> - {$amnt.amount|crmMoney:$currency} {$amnt.label} - </td> - </tr> - {/foreach} - {/if} - - {if $isShowTax && {contribution.tax_amount|boolean}} - <tr> - <td {$labelStyle}> - {ts}Total Tax Amount{/ts} - </td> - <td {$valueStyle}> - {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if} - </td> - </tr> - {/if} - {if $isPrimary} - <tr> - <td {$labelStyle}> - {ts}Total Amount{/ts} - </td> - <td {$valueStyle}> - {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} - </td> - </tr> - {if !empty($pricesetFieldsCount) } - <tr> - <td {$labelStyle}> - {ts}Total Participants{/ts}</td> - <td {$valueStyle}> - {assign var="count" value= 0} - {foreach from=$lineItem item=pcount} - {assign var="lineItemCount" value=0} - {if $pcount neq \'skip\'} - {foreach from=$pcount item=p_count} - {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} - {/foreach} - {if $lineItemCount < 1 } - {assign var="lineItemCount" value=1} - {/if} - {assign var="count" value=$count+$lineItemCount} - {/if} - {/foreach} - {$count} - </td> </tr> - {/if} - - {if $register_date} - <tr> - <td {$labelStyle}> - {ts}Registration Date{/ts} - </td> - <td {$valueStyle}> - {$register_date|crmDate} - </td> - </tr> - {/if} - - {if !empty($receive_date)} - <tr> - <td {$labelStyle}> - {ts}Transaction Date{/ts} - </td> - <td {$valueStyle}> - {$receive_date|crmDate} - </td> - </tr> - {/if} - - {if !empty($financialTypeName)} - <tr> - <td {$labelStyle}> - {ts}Financial Type{/ts} - </td> - <td {$valueStyle}> - {$financialTypeName} - </td> - </tr> - {/if} - - {if !empty($trxn_id)} - <tr> - <td {$labelStyle}> - {ts}Transaction #{/ts} - </td> - <td {$valueStyle}> - {$trxn_id} - </td> - </tr> - {/if} - - {if !empty($paidBy)} - <tr> - <td {$labelStyle}> - {ts}Paid By{/ts} - </td> - <td {$valueStyle}> - {$paidBy} - </td> - </tr> - {/if} - - {if !empty($checkNumber)} - <tr> - <td {$labelStyle}> - {ts}Check Number{/ts} - </td> - <td {$valueStyle}> - {$checkNumber} - </td> - </tr> - {/if} - - {if !empty($billingName)} - <tr> - <th {$headerStyle}> - {ts}Billing Name and Address{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$billingName}<br /> - {$address|nl2br} - </td> - </tr> - {/if} - - {if !empty($credit_card_type)} - <tr> - <th {$headerStyle}> - {ts}Credit Card Information{/ts} - </th> - </tr> + </table> + {if !empty($event.allow_selfcancelxfer)} <tr> - <td colspan="2" {$valueStyle}> - {$credit_card_type}<br /> - {$credit_card_number}<br /> - {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate} - </td> + <td colspan="2" {$valueStyle}> + {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}<br/> + {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid={participant.id}&{contact.checksum}" h=0 a=1 fe=1}{/capture} + <a href="{$selfService}">{ts}Click here to transfer or cancel your registration.{/ts}</a> + </td> </tr> - {/if} - {/if} - - {/if} {* End of conditional section for Paid events *} - - -{if !empty($customPre)} -{foreach from=$customPre item=customPr key=i} - <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr> - {foreach from=$customPr item=customValue key=customName} - <tr> - <td {$labelStyle}>{$customName}</td> - <td {$valueStyle}>{$customValue}</td> - </tr> - {/foreach} -{/foreach} -{/if} - -{if !empty($customPost)} -{foreach from=$customPost item=customPos key=j} - <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr> - {foreach from=$customPos item=customValue key=customName} - <tr> - <td {$labelStyle}>{$customName}</td> - <td {$valueStyle}>{$customValue}</td> - </tr> - {/foreach} -{/foreach} -{/if} - -{if !empty($customProfile)} -{foreach from=$customProfile.profile item=eachParticipant key=participantID} - <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr> - {foreach from=$eachParticipant item=eachProfile key=pid} - <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr> - {foreach from=$eachProfile item=val key=field} - <tr>{foreach from=$val item=v key=f} - <td {$labelStyle}>{$field}</td> - <td {$valueStyle}>{$v}</td> - {/foreach} - </tr> - {/foreach} -{/foreach} -{/foreach} -{/if} - - </table> - {if !empty($event.allow_selfcancelxfer) } - <tr> - <td colspan="2" {$valueStyle}> - {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}<br /> - {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid={participant.id}&{contact.checksum}" h=0 a=1 fe=1}{/capture} - <a href="{$selfService}">{ts}Click here to transfer or cancel your registration.{/ts}</a> - </td> - </tr> - {/if} </table> </body> @@ -15683,8 +15648,8 @@ Total: {$total|crmMoney:$currency|string_format:"%10s"} </head> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} - {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} - {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} + {capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} + {capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} {if $is_pay_later} @@ -15940,8 +15905,8 @@ Total: {$total|crmMoney:$currency|string_format:"%10s"} </head> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} - {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} - {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} + {capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} + {capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} {if $is_pay_later} @@ -16166,8 +16131,8 @@ Total: {$total|crmMoney:$currency|string_format:"%10s"} <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -16342,8 +16307,8 @@ Total: {$total|crmMoney:$currency|string_format:"%10s"} <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -16478,7 +16443,7 @@ Total: {$total|crmMoney:$currency|string_format:"%10s"} Click this link to go to a web page where you can confirm your registration online: {$confirmUrl} {/if} -{if $event.allow_selfcancelxfer } +{if $event.allow_selfcancelxfer} {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if} {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture} {ts}Transfer or cancel your registration:{/ts} {$selfService} @@ -16489,24 +16454,6 @@ Click this link to go to a web page where you can confirm your registration onli =========================================================== {$event.event_title} {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if} -{if $conference_sessions} - - -{ts}Your schedule:{/ts} -{assign var=\'group_by_day\' value=\'NA\'} -{foreach from=$conference_sessions item=session} -{if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} -{assign var=\'group_by_day\' value=$session.start_date} - -{$group_by_day|crmDate:"%m/%d/%Y"} - - -{/if} -{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title} -{if $session.location} {$session.location}{/if} -{/foreach} -{/if} - {ts}Participant Role{/ts}: {$participant.role} @@ -16559,8 +16506,8 @@ Click this link to go to a web page where you can confirm your registration onli <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> <!-- BEGIN HEADER --> @@ -16588,7 +16535,7 @@ Click this link to go to a web page where you can confirm your registration onli </td> </tr> {/if} - {if $event.allow_selfcancelxfer } + {if $event.allow_selfcancelxfer} {ts}This event allows for{/ts} {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture} <a href="{$selfService}"> {ts}self service cancel or transfer{/ts}</a> @@ -16608,26 +16555,6 @@ Click this link to go to a web page where you can confirm your registration onli {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if} </td> </tr> - {if $conference_sessions} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Your schedule:{/ts} - </td> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {assign var=\'group_by_day\' value=\'NA\'} - {foreach from=$conference_sessions item=session} - {if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} - {assign var=\'group_by_day\' value=$session.start_date} - <em>{$group_by_day|crmDate:"%m/%d/%Y"}</em><br /> - {/if} - {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br /> - {if $session.location} {$session.location}<br />{/if} - {/foreach} - </td> - </tr> - {/if} <tr> <td {$labelStyle}> {ts}Participant Role{/ts}: @@ -16719,7 +16646,7 @@ Click this link to go to a web page where you can confirm your registration onli </table> </td> </tr> - {if $event.allow_selfcancelxfer } + {if $event.allow_selfcancelxfer} <tr> <td colspan="2" {$valueStyle}> {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}<br /> @@ -16754,7 +16681,7 @@ Click this link to go to a web page where you can confirm your registration onli Click this link to go to a web page where you can confirm your registration online: {$confirmUrl} {/if} -{if $event.allow_selfcancelxfer } +{if $event.allow_selfcancelxfer} {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if} {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture} {ts}Transfer or cancel your registration:{/ts} {$selfService} @@ -16765,24 +16692,6 @@ Click this link to go to a web page where you can confirm your registration onli =========================================================== {$event.event_title} {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if} -{if $conference_sessions} - - -{ts}Your schedule:{/ts} -{assign var=\'group_by_day\' value=\'NA\'} -{foreach from=$conference_sessions item=session} -{if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} -{assign var=\'group_by_day\' value=$session.start_date} - -{$group_by_day|crmDate:"%m/%d/%Y"} - - -{/if} -{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title} -{if $session.location} {$session.location}{/if} -{/foreach} -{/if} - {ts}Participant Role{/ts}: {$participant.role} @@ -16835,8 +16744,8 @@ Click this link to go to a web page where you can confirm your registration onli <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> <!-- BEGIN HEADER --> @@ -16864,7 +16773,7 @@ Click this link to go to a web page where you can confirm your registration onli </td> </tr> {/if} - {if $event.allow_selfcancelxfer } + {if $event.allow_selfcancelxfer} {ts}This event allows for{/ts} {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture} <a href="{$selfService}"> {ts}self service cancel or transfer{/ts}</a> @@ -16884,26 +16793,6 @@ Click this link to go to a web page where you can confirm your registration onli {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if} </td> </tr> - {if $conference_sessions} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Your schedule:{/ts} - </td> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {assign var=\'group_by_day\' value=\'NA\'} - {foreach from=$conference_sessions item=session} - {if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} - {assign var=\'group_by_day\' value=$session.start_date} - <em>{$group_by_day|crmDate:"%m/%d/%Y"}</em><br /> - {/if} - {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br /> - {if $session.location} {$session.location}<br />{/if} - {/foreach} - </td> - </tr> - {/if} <tr> <td {$labelStyle}> {ts}Participant Role{/ts}: @@ -16995,7 +16884,7 @@ Click this link to go to a web page where you can confirm your registration onli </table> </td> </tr> - {if $event.allow_selfcancelxfer } + {if $event.allow_selfcancelxfer} <tr> <td colspan="2" {$valueStyle}> {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}<br /> @@ -17078,8 +16967,8 @@ or want to inquire about reinstating your registration for this event.{/ts} <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -17261,8 +17150,8 @@ or want to inquire about reinstating your registration for this event.{/ts} <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -17440,8 +17329,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -17614,8 +17503,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -17760,8 +17649,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -17815,8 +17704,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -17894,7 +17783,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> -------------------------------------------------------------------------------------------------- {foreach from=$lineItems item=line} -{line.title} {$line.line_total|crmMoney|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {/if} {$line.membership.start_date|string_format:"%20s"} {$line.membership.end_date|string_format:"%20s"} +{line.title} {$line.line_total|crmMoney|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {else} {/if} {$line.line_total_inclusive|crmMoney|string_format:"%10s"} {/if} {$line.membership.start_date|string_format:"%20s"} {$line.membership.end_date|string_format:"%20s"} {/foreach} {if $isShowTax && {contribution.tax_amount|boolean}} @@ -17924,7 +17813,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> {/if} {/if} -{if !empty($isPrimary) } +{if !empty($isPrimary)} {if !empty($billingName)} =========================================================== @@ -17965,8 +17854,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-membership_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -18079,7 +17968,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <td></td> {/if} <td> - {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'} + {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'} </td> {/if} <td> @@ -18139,7 +18028,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> </td> </tr> {/if} - {if {contribution.payment_instrument_id|boolean}} + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} <tr> <td {$labelStyle}> {ts}Paid By{/ts} @@ -18287,7 +18176,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> -------------------------------------------------------------------------------------------------- {foreach from=$lineItems item=line} -{line.title} {$line.line_total|crmMoney|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {/if} {$line.membership.start_date|string_format:"%20s"} {$line.membership.end_date|string_format:"%20s"} +{line.title} {$line.line_total|crmMoney|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:"%10s"} {else} {/if} {$line.line_total_inclusive|crmMoney|string_format:"%10s"} {/if} {$line.membership.start_date|string_format:"%20s"} {$line.membership.end_date|string_format:"%20s"} {/foreach} {if $isShowTax && {contribution.tax_amount|boolean}} @@ -18317,7 +18206,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> {/if} {/if} -{if !empty($isPrimary) } +{if !empty($isPrimary)} {if !empty($billingName)} =========================================================== @@ -18358,8 +18247,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-membership_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -18472,7 +18361,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <td></td> {/if} <td> - {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'} + {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'} </td> {/if} <td> @@ -18532,7 +18421,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> </td> </tr> {/if} - {if {contribution.payment_instrument_id|boolean}} + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} <tr> <td {$labelStyle}> {ts}Paid By{/ts} @@ -18666,7 +18555,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> =========================================================== {if !$useForMember && isset($membership_amount) && !empty($is_quick_config)} {ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney} -{if $amount && !$is_separate_payment } +{if $amount && !$is_separate_payment} {ts}Contribution Amount{/ts}: {$amount|crmMoney} ------------------------------------------- {ts}Total{/ts}: {$amount+$membership_amount|crmMoney} @@ -18725,7 +18614,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency} {/if} -{ts}Amount{/ts}: {$amount|crmMoney} {if isset($amount_level) } - {$amount_level} {/if} +{ts}Amount{/ts}: {$amount|crmMoney} {if isset($amount_level)} - {$amount_level} {/if} {/if} {elseif isset($membership_amount)} =========================================================== @@ -18761,7 +18650,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> {/if} {/if} -{if $honor_block_is_active } +{if $honor_block_is_active} =========================================================== {$soft_credit_type} =========================================================== @@ -18882,8 +18771,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -18963,7 +18852,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> {$membership_amount|crmMoney} </td> </tr> - {if $amount && !$is_separate_payment } + {if $amount && !$is_separate_payment} <tr> <td {$labelStyle}> {ts}Contribution Amount{/ts} @@ -19454,7 +19343,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> =========================================================== {if !$useForMember && isset($membership_amount) && !empty($is_quick_config)} {ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney} -{if $amount && !$is_separate_payment } +{if $amount && !$is_separate_payment} {ts}Contribution Amount{/ts}: {$amount|crmMoney} ------------------------------------------- {ts}Total{/ts}: {$amount+$membership_amount|crmMoney} @@ -19513,7 +19402,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency} {/if} -{ts}Amount{/ts}: {$amount|crmMoney} {if isset($amount_level) } - {$amount_level} {/if} +{ts}Amount{/ts}: {$amount|crmMoney} {if isset($amount_level)} - {$amount_level} {/if} {/if} {elseif isset($membership_amount)} =========================================================== @@ -19549,7 +19438,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> {/if} {/if} -{if $honor_block_is_active } +{if $honor_block_is_active} =========================================================== {$soft_credit_type} =========================================================== @@ -19670,8 +19559,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -19751,7 +19640,7 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> {$membership_amount|crmMoney} </td> </tr> - {if $amount && !$is_separate_payment } + {if $amount && !$is_separate_payment} <tr> <td {$labelStyle}> {ts}Contribution Amount{/ts} @@ -20237,8 +20126,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -20321,8 +20210,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -20416,8 +20305,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -20505,8 +20394,8 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -20623,11 +20512,11 @@ or want to inquire about reinstating your registration for this event.{/ts}</p> {/if} {if $payments} -{assign var="count" value="1"} +{assign var="count" value=1} {foreach from=$payments item=payment} {ts 1=$count}Payment %1{/ts}: {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if} -{assign var="count" value=`$count+1`} +{assign var="count" value=$count+1} {/foreach} {/if} @@ -20654,8 +20543,8 @@ or need to modify your payment schedule.{/ts} <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -20711,7 +20600,7 @@ or need to modify your payment schedule.{/ts} </tr> {if $payments} - {assign var="count" value="1"} + {assign var="count" value=1} {foreach from=$payments item=payment} <tr> <td {$labelStyle}> @@ -20721,7 +20610,7 @@ or need to modify your payment schedule.{/ts} {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if} </td> </tr> - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} {/foreach} {/if} @@ -20785,11 +20674,11 @@ or need to modify your payment schedule.{/ts}</p> {/if} {if $payments} -{assign var="count" value="1"} +{assign var="count" value=1} {foreach from=$payments item=payment} {ts 1=$count}Payment %1{/ts}: {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if} -{assign var="count" value=`$count+1`} +{assign var="count" value=$count+1} {/foreach} {/if} @@ -20816,8 +20705,8 @@ or need to modify your payment schedule.{/ts} <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -20873,7 +20762,7 @@ or need to modify your payment schedule.{/ts} </tr> {if $payments} - {assign var="count" value="1"} + {assign var="count" value=1} {foreach from=$payments item=payment} <tr> <td {$labelStyle}> @@ -20883,7 +20772,7 @@ or need to modify your payment schedule.{/ts} {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if} </td> </tr> - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} {/foreach} {/if} @@ -20968,8 +20857,8 @@ or need to modify your payment schedule.{/ts} <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -21108,8 +20997,8 @@ or need to modify your payment schedule.{/ts} <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -21228,8 +21117,8 @@ or need to modify your payment schedule.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -21313,8 +21202,8 @@ or need to modify your payment schedule.{/ts}</p> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -22891,11 +22780,9 @@ VALUES ( @fieldID, 'contribution_amount', 'Contribution Amount', '1', '1', '0', INSERT IGNORE INTO civicrm_extension (`file`,`full_name`,`is_active`,`label`,`name`,`type`) VALUES ("sequentialcreditnotes","sequentialcreditnotes","1","Sequential credit notes","Sequential credit notes","module"), ("greenwich","greenwich","1","Theme: Greenwich","Theme: Greenwich","module"), -("eventcart","eventcart","1","Event cart","Event cart","module"), ("financialacls","financialacls","1","Financial ACLs","Financial ACLs","module"), ("recaptcha","recaptcha","1","reCAPTCHA","reCAPTCHA","module"), ("ckeditor4","ckeditor4","1","CKEditor4","CKEditor4","module"), -("legacycustomsearches","legacycustomsearches","1","Custom search framework","Custom search framework","module"), ("flexmailer","org.civicrm.flexmailer","1","FlexMailer","FlexMailer","module"), ("civi_contribute","civi_contribute","1","CiviContribute","CiviContribute","module"), ("civi_event","civi_event","1","CiviEvent","CiviEvent","module"), @@ -23161,14 +23048,6 @@ SET @campaignlastID:=LAST_INSERT_ID(); INSERT INTO civicrm_navigation ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight ) VALUES - ( @domainID, 'civicrm/campaign?reset=1', 'Dashboard', 'Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 1 ); -SET @campaigndashboardlastID:=LAST_INSERT_ID(); -INSERT INTO civicrm_navigation - ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight ) -VALUES - ( @domainID, 'civicrm/campaign?reset=1&subPage=survey', 'Surveys', 'Survey Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 1 ), - ( @domainID, 'civicrm/campaign?reset=1&subPage=petition', 'Petitions', 'Petition Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 2 ), - ( @domainID, 'civicrm/campaign?reset=1&subPage=campaign', 'Campaigns', 'Campaign Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 3 ), ( @domainID, 'civicrm/campaign/add?reset=1', 'New Campaign', 'New Campaign', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 2 ), ( @domainID, 'civicrm/survey/add?reset=1', 'New Survey', 'New Survey', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 3 ), ( @domainID, 'civicrm/petition/add?reset=1', 'New Petition', 'New Petition', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 4 ), @@ -23701,4 +23580,4 @@ INSERT INTO `civicrm_report_instance` ( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`) VALUES ( @domainID, 'Survey Details', 'survey/detail', 'Detailed report for canvassing, phone-banking, walk lists or other surveys.', 'access CiviReport', 'a:39:{s:6:"fields";a:2:{s:9:"sort_name";s:1:"1";s:6:"result";s:1:"1";}s:22:"assignee_contact_id_op";s:2:"eq";s:25:"assignee_contact_id_value";s:0:"";s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:17:"street_number_min";s:0:"";s:17:"street_number_max";s:0:"";s:16:"street_number_op";s:3:"lte";s:19:"street_number_value";s:0:"";s:14:"street_name_op";s:3:"has";s:17:"street_name_value";s:0:"";s:15:"postal_code_min";s:0:"";s:15:"postal_code_max";s:0:"";s:14:"postal_code_op";s:3:"lte";s:17:"postal_code_value";s:0:"";s:7:"city_op";s:3:"has";s:10:"city_value";s:0:"";s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:12:"survey_id_op";s:2:"in";s:15:"survey_id_value";a:0:{}s:12:"status_id_op";s:2:"eq";s:15:"status_id_value";s:1:"1";s:11:"custom_1_op";s:2:"in";s:14:"custom_1_value";a:0:{}s:11:"custom_2_op";s:2:"in";s:14:"custom_2_value";a:0:{}s:17:"custom_3_relative";s:1:"0";s:13:"custom_3_from";s:0:"";s:11:"custom_3_to";s:0:"";s:11:"description";s:75:"Detailed report for canvassing, phone-banking, walk lists or other surveys.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"access CiviReport";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}'); -UPDATE civicrm_domain SET version = '5.66.2'; +UPDATE civicrm_domain SET version = '5.67.0'; diff --git a/civicrm/sql/civicrm_data/civicrm_extension.sqldata.php b/civicrm/sql/civicrm_data/civicrm_extension.sqldata.php index 2ec47f048a..90b3c23668 100644 --- a/civicrm/sql/civicrm_data/civicrm_extension.sqldata.php +++ b/civicrm/sql/civicrm_data/civicrm_extension.sqldata.php @@ -20,10 +20,6 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_extension', 'INSERT IGNORE INTO 'full_name' => 'greenwich', 'name' => 'Theme: Greenwich', ], - [ - 'full_name' => 'eventcart', - 'name' => 'Event cart', - ], [ 'full_name' => 'financialacls', 'name' => 'Financial ACLs', @@ -36,10 +32,6 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_extension', 'INSERT IGNORE INTO 'full_name' => 'ckeditor4', 'name' => 'CKEditor4', ], - [ - 'full_name' => 'legacycustomsearches', - 'name' => 'Custom search framework', - ], [ 'full_name' => 'org.civicrm.flexmailer', 'name' => 'FlexMailer', diff --git a/civicrm/sql/civicrm_data/civicrm_option_group/custom_data_type.sqldata.php b/civicrm/sql/civicrm_data/civicrm_option_group/custom_data_type.sqldata.php index 0ecea058f3..13f200ae6c 100644 --- a/civicrm/sql/civicrm_data/civicrm_option_group/custom_data_type.sqldata.php +++ b/civicrm/sql/civicrm_data/civicrm_option_group/custom_data_type.sqldata.php @@ -3,21 +3,25 @@ return CRM_Core_CodeGen_OptionGroup::create('custom_data_type', 'a/0034') ->addMetadata([ 'title' => ts('Custom Data Type'), ]) + // Note: When adding options to this group, the 'name' *must* begin with the exact name of the base entity, + // as that's the (very lo-tech) way these options are matched with their base entity. + // Wrong: 'name' => 'ActivitiesByStatus' + // Right: 'name' => 'ActivityByStatus' ->addValues([ [ - 'label' => ts('Participants (Role)'), + 'label' => ts('Role'), 'value' => 1, 'name' => 'ParticipantRole', 'grouping' => 'role_id', ], [ - 'label' => ts('Participants (Event Name)'), + 'label' => ts('Event Name'), 'value' => 2, 'name' => 'ParticipantEventName', 'grouping' => 'event_id', ], [ - 'label' => ts('Participants (Event Type)'), + 'label' => ts('Event Type'), 'value' => 3, 'name' => 'ParticipantEventType', 'grouping' => 'event_id.event_type_id', diff --git a/civicrm/sql/civicrm_data/civicrm_option_group/note_used_for.sqldata.php b/civicrm/sql/civicrm_data/civicrm_option_group/note_used_for.sqldata.php index a3ed714dcc..f36eb93f20 100644 --- a/civicrm/sql/civicrm_data/civicrm_option_group/note_used_for.sqldata.php +++ b/civicrm/sql/civicrm_data/civicrm_option_group/note_used_for.sqldata.php @@ -9,4 +9,6 @@ return CRM_Core_CodeGen_OptionGroup::create('note_used_for', 'a/0047') [ts('Relationships'), 'Relationship', 'civicrm_relationship'], [ts('Participants'), 'Participant', 'civicrm_participant'], [ts('Contributions'), 'Contribution', 'civicrm_contribution'], + // Notes can be attached to notes as comments + [ts('Notes'), 'Note', 'civicrm_note'], ]); diff --git a/civicrm/sql/civicrm_generated.mysql b/civicrm/sql/civicrm_generated.mysql index 59607fafb1..1a938fa007 100644 --- a/civicrm/sql/civicrm_generated.mysql +++ b/civicrm/sql/civicrm_generated.mysql @@ -1,16 +1,15 @@ --- MySQL dump 10.13 Distrib 8.0.34, for Linux (x86_64) +-- MariaDB dump 10.19 Distrib 10.5.19-MariaDB, for debian-linux-gnu (x86_64) -- --- Host: 127.0.0.1 Database: 47testcivi_yg7kx +-- Host: database Database: dmastercivicrm -- ------------------------------------------------------ --- Server version 8.0.34 +-- Server version 10.4.20-MariaDB-1:10.4.20+maria~focal /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!50503 SET NAMES utf8mb4 */; +/*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; @@ -53,7 +52,7 @@ LOCK TABLES `civicrm_acl_entity_role` WRITE; /*!40000 ALTER TABLE `civicrm_acl_entity_role` DISABLE KEYS */; INSERT INTO `civicrm_acl_entity_role` (`id`, `acl_role_id`, `entity_table`, `entity_id`, `is_active`) VALUES (1,1,'civicrm_group',1,1), - (2,869,'civicrm_group',4,1); + (2,870,'civicrm_group',4,1); /*!40000 ALTER TABLE `civicrm_acl_entity_role` ENABLE KEYS */; UNLOCK TABLES; @@ -82,647 +81,647 @@ UNLOCK TABLES; LOCK TABLES `civicrm_activity` WRITE; /*!40000 ALTER TABLE `civicrm_activity` DISABLE KEYS */; INSERT INTO `civicrm_activity` (`id`, `source_record_id`, `activity_type_id`, `subject`, `activity_date_time`, `duration`, `location`, `phone_id`, `phone_number`, `details`, `status_id`, `priority_id`, `parent_id`, `is_test`, `medium_id`, `is_auto`, `relationship_id`, `is_current_revision`, `original_id`, `result`, `is_deleted`, `campaign_id`, `engagement_level`, `weight`, `is_star`, `created_date`, `modified_date`) VALUES - (1,NULL,2,'Subject for Phone Call','2022-10-07 17:04:00',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (2,NULL,1,'Subject for Meeting','2023-01-29 08:33:00',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (3,NULL,9,'Subject for Tell a Friend','2023-02-04 20:31:54',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (4,NULL,2,'Subject for Phone Call','2023-01-05 14:28:31',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (5,NULL,2,'Subject for Phone Call','2022-09-20 11:44:57',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (6,NULL,22,'Subject for Print/Merge Document','2022-12-25 05:37:44',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (7,NULL,9,'Subject for Tell a Friend','2023-06-12 00:41:44',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (8,NULL,56,'Subject for Interview','2022-10-12 05:55:16',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (9,NULL,56,'Subject for Interview','2022-10-12 19:41:37',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (10,NULL,2,'Subject for Phone Call','2022-09-20 03:45:15',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (11,NULL,1,'Subject for Meeting','2023-04-26 22:59:58',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (12,NULL,56,'Subject for Interview','2023-08-17 21:30:36',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (13,NULL,9,'Subject for Tell a Friend','2023-04-27 23:57:57',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (14,NULL,9,'Subject for Tell a Friend','2023-09-06 22:01:41',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (15,NULL,1,'Subject for Meeting','2022-11-02 02:14:21',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (16,NULL,9,'Subject for Tell a Friend','2022-09-21 20:54:50',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (17,NULL,56,'Subject for Interview','2023-06-05 09:36:07',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (18,NULL,1,'Subject for Meeting','2023-08-03 14:59:43',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (19,NULL,9,'Subject for Tell a Friend','2022-10-30 17:15:27',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (20,NULL,1,'Subject for Meeting','2023-01-26 23:46:37',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (21,NULL,22,'Subject for Print/Merge Document','2023-03-18 23:00:52',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (22,NULL,9,'Subject for Tell a Friend','2023-04-27 17:58:01',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (23,NULL,56,'Subject for Interview','2022-11-18 21:15:38',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (24,NULL,1,'Subject for Meeting','2023-01-19 17:44:14',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (25,NULL,9,'Subject for Tell a Friend','2022-09-26 06:04:21',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (26,NULL,1,'Subject for Meeting','2023-07-20 03:35:39',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (27,NULL,1,'Subject for Meeting','2022-10-14 20:23:09',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (28,NULL,1,'Subject for Meeting','2023-05-10 13:03:47',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (29,NULL,56,'Subject for Interview','2022-12-27 04:57:23',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (30,NULL,2,'Subject for Phone Call','2023-03-22 23:53:41',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (31,NULL,1,'Subject for Meeting','2023-04-04 08:59:39',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (32,NULL,9,'Subject for Tell a Friend','2022-12-19 08:32:10',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (33,NULL,9,'Subject for Tell a Friend','2023-08-14 01:53:29',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (34,NULL,2,'Subject for Phone Call','2023-06-02 15:10:21',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (35,NULL,2,'Subject for Phone Call','2023-02-14 07:52:35',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (36,NULL,2,'Subject for Phone Call','2022-12-11 22:55:53',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (37,NULL,56,'Subject for Interview','2023-05-22 15:07:03',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (38,NULL,1,'Subject for Meeting','2023-03-26 13:19:28',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (39,NULL,2,'Subject for Phone Call','2023-01-15 01:11:30',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (40,NULL,1,'Subject for Meeting','2023-07-03 14:43:05',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (41,NULL,2,'Subject for Phone Call','2022-12-22 20:55:59',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (42,NULL,56,'Subject for Interview','2023-08-25 16:45:45',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (43,NULL,2,'Subject for Phone Call','2023-07-07 15:38:14',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (44,NULL,2,'Subject for Phone Call','2023-01-29 11:22:30',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (45,NULL,22,'Subject for Print/Merge Document','2022-09-22 13:46:20',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (46,NULL,22,'Subject for Print/Merge Document','2023-04-10 15:58:26',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (47,NULL,22,'Subject for Print/Merge Document','2023-08-08 04:59:13',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (48,NULL,9,'Subject for Tell a Friend','2023-01-25 07:38:08',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (49,NULL,56,'Subject for Interview','2023-01-20 10:33:05',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (50,NULL,2,'Subject for Phone Call','2023-05-11 19:41:36',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (51,NULL,22,'Subject for Print/Merge Document','2022-12-21 03:19:28',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (52,NULL,1,'Subject for Meeting','2023-03-15 01:52:41',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (53,NULL,56,'Subject for Interview','2023-08-17 12:19:35',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (54,NULL,1,'Subject for Meeting','2022-12-04 08:40:24',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (55,NULL,1,'Subject for Meeting','2023-05-08 15:10:29',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (56,NULL,22,'Subject for Print/Merge Document','2023-05-24 04:15:26',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (57,NULL,1,'Subject for Meeting','2023-03-10 12:19:23',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (58,NULL,22,'Subject for Print/Merge Document','2023-08-04 18:16:56',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (59,NULL,9,'Subject for Tell a Friend','2023-02-13 06:25:36',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (60,NULL,1,'Subject for Meeting','2023-07-17 16:35:20',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (61,NULL,56,'Subject for Interview','2023-08-03 21:34:52',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (62,NULL,2,'Subject for Phone Call','2022-10-25 03:56:22',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (63,NULL,2,'Subject for Phone Call','2023-06-10 02:17:03',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (64,NULL,56,'Subject for Interview','2023-04-05 05:01:10',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (65,NULL,56,'Subject for Interview','2022-10-22 18:54:18',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (66,NULL,22,'Subject for Print/Merge Document','2022-09-22 17:32:27',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (67,NULL,22,'Subject for Print/Merge Document','2023-01-12 04:53:42',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (68,NULL,22,'Subject for Print/Merge Document','2022-11-21 09:14:08',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (69,NULL,1,'Subject for Meeting','2022-11-19 18:44:03',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (70,NULL,2,'Subject for Phone Call','2023-01-09 08:36:15',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (71,NULL,1,'Subject for Meeting','2022-12-28 14:56:49',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (72,NULL,56,'Subject for Interview','2023-03-06 01:10:05',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (73,NULL,9,'Subject for Tell a Friend','2023-02-07 14:14:13',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (74,NULL,56,'Subject for Interview','2023-04-25 00:27:08',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (75,NULL,22,'Subject for Print/Merge Document','2023-05-03 22:49:30',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (76,NULL,9,'Subject for Tell a Friend','2022-12-04 20:14:25',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (77,NULL,1,'Subject for Meeting','2023-06-11 20:40:58',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (78,NULL,22,'Subject for Print/Merge Document','2022-10-08 05:33:14',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (79,NULL,56,'Subject for Interview','2023-02-17 05:32:55',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (80,NULL,22,'Subject for Print/Merge Document','2023-01-21 13:35:17',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (81,NULL,9,'Subject for Tell a Friend','2023-02-23 11:28:27',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (82,NULL,9,'Subject for Tell a Friend','2023-06-16 22:53:21',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (83,NULL,1,'Subject for Meeting','2023-03-09 02:57:40',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (84,NULL,2,'Subject for Phone Call','2023-03-04 03:15:08',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (85,NULL,9,'Subject for Tell a Friend','2023-08-28 12:49:12',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (86,NULL,9,'Subject for Tell a Friend','2023-02-18 12:32:33',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (87,NULL,9,'Subject for Tell a Friend','2022-09-27 20:58:09',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (88,NULL,2,'Subject for Phone Call','2023-07-15 11:11:57',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (89,NULL,9,'Subject for Tell a Friend','2023-01-19 03:03:17',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (90,NULL,1,'Subject for Meeting','2022-10-22 10:10:46',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (91,NULL,56,'Subject for Interview','2023-05-06 15:26:18',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (92,NULL,56,'Subject for Interview','2022-11-16 07:12:02',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (93,NULL,9,'Subject for Tell a Friend','2023-06-12 01:37:33',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (94,NULL,22,'Subject for Print/Merge Document','2022-10-18 01:26:24',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (95,NULL,22,'Subject for Print/Merge Document','2023-03-31 21:52:22',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (96,NULL,56,'Subject for Interview','2023-01-06 02:37:13',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (97,NULL,1,'Subject for Meeting','2023-09-04 08:17:19',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (98,NULL,2,'Subject for Phone Call','2023-03-21 07:41:55',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (99,NULL,2,'Subject for Phone Call','2023-01-27 20:45:38',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (100,NULL,22,'Subject for Print/Merge Document','2022-11-19 16:39:56',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (101,NULL,1,'Subject for Meeting','2023-06-07 09:30:52',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (102,NULL,2,'Subject for Phone Call','2023-05-13 17:03:07',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (103,NULL,9,'Subject for Tell a Friend','2022-09-30 18:51:14',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (104,NULL,56,'Subject for Interview','2022-12-13 01:31:02',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (105,NULL,1,'Subject for Meeting','2023-07-25 02:01:10',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (106,NULL,1,'Subject for Meeting','2023-01-07 13:06:47',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (107,NULL,56,'Subject for Interview','2023-03-26 19:03:07',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (108,NULL,2,'Subject for Phone Call','2023-03-18 20:56:28',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (109,NULL,1,'Subject for Meeting','2022-12-14 16:03:18',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (110,NULL,9,'Subject for Tell a Friend','2023-08-15 03:30:42',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (111,NULL,9,'Subject for Tell a Friend','2023-01-20 04:14:49',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (112,NULL,1,'Subject for Meeting','2023-04-01 14:10:35',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (113,NULL,22,'Subject for Print/Merge Document','2023-05-03 10:18:46',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (114,NULL,9,'Subject for Tell a Friend','2023-08-18 07:08:06',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (115,NULL,2,'Subject for Phone Call','2023-05-19 20:57:08',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (116,NULL,56,'Subject for Interview','2022-09-22 00:30:51',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (117,NULL,1,'Subject for Meeting','2023-07-16 19:03:35',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (118,NULL,1,'Subject for Meeting','2022-12-22 12:57:10',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (119,NULL,2,'Subject for Phone Call','2023-03-10 22:54:32',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (120,NULL,56,'Subject for Interview','2023-02-04 19:32:53',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (121,NULL,1,'Subject for Meeting','2023-05-29 15:01:22',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (122,NULL,9,'Subject for Tell a Friend','2023-01-29 09:50:21',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (123,NULL,22,'Subject for Print/Merge Document','2023-03-31 13:19:23',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (124,NULL,22,'Subject for Print/Merge Document','2022-09-12 13:13:38',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (125,NULL,2,'Subject for Phone Call','2023-05-26 20:38:09',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (126,NULL,2,'Subject for Phone Call','2023-04-22 06:59:02',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (127,NULL,1,'Subject for Meeting','2022-09-29 04:55:09',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (128,NULL,9,'Subject for Tell a Friend','2023-07-29 08:37:49',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (129,NULL,2,'Subject for Phone Call','2023-08-20 00:10:22',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (130,NULL,1,'Subject for Meeting','2022-11-23 09:04:47',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (131,NULL,56,'Subject for Interview','2023-04-10 16:25:38',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (132,NULL,56,'Subject for Interview','2023-02-04 10:34:57',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (133,NULL,9,'Subject for Tell a Friend','2023-07-19 00:40:55',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (134,NULL,22,'Subject for Print/Merge Document','2022-12-07 00:52:03',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (135,NULL,9,'Subject for Tell a Friend','2023-06-04 21:04:48',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (136,NULL,2,'Subject for Phone Call','2022-10-05 20:23:07',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (137,NULL,2,'Subject for Phone Call','2023-03-20 23:12:04',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (138,NULL,1,'Subject for Meeting','2023-02-28 01:48:27',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (139,NULL,56,'Subject for Interview','2023-06-10 06:04:23',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (140,NULL,22,'Subject for Print/Merge Document','2023-03-09 13:54:37',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (141,NULL,1,'Subject for Meeting','2023-05-06 20:54:47',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (142,NULL,56,'Subject for Interview','2023-06-24 07:48:56',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (143,NULL,2,'Subject for Phone Call','2023-05-12 03:41:01',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (144,NULL,56,'Subject for Interview','2023-06-26 02:26:48',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (145,NULL,1,'Subject for Meeting','2023-06-29 04:16:50',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (146,NULL,1,'Subject for Meeting','2023-04-14 19:01:04',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (147,NULL,1,'Subject for Meeting','2022-12-12 14:15:06',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (148,NULL,56,'Subject for Interview','2022-12-02 05:00:52',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (149,NULL,9,'Subject for Tell a Friend','2023-07-26 00:44:41',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (150,NULL,2,'Subject for Phone Call','2023-05-29 03:13:22',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (151,NULL,56,'Subject for Interview','2023-02-14 11:48:52',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (152,NULL,1,'Subject for Meeting','2023-05-17 00:50:10',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (153,NULL,22,'Subject for Print/Merge Document','2023-09-03 21:42:02',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (154,NULL,2,'Subject for Phone Call','2023-03-02 02:37:03',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (155,NULL,56,'Subject for Interview','2023-08-04 22:20:32',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (156,NULL,1,'Subject for Meeting','2023-09-02 12:59:58',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (157,NULL,1,'Subject for Meeting','2023-02-03 00:32:08',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (158,NULL,56,'Subject for Interview','2022-10-08 14:12:28',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (159,NULL,9,'Subject for Tell a Friend','2023-07-29 20:59:57',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (160,NULL,56,'Subject for Interview','2023-08-30 01:47:05',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (161,NULL,9,'Subject for Tell a Friend','2022-10-21 13:20:36',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (162,NULL,1,'Subject for Meeting','2023-07-31 18:59:40',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (163,NULL,56,'Subject for Interview','2023-04-11 21:16:33',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (164,NULL,56,'Subject for Interview','2023-05-11 14:58:34',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (165,NULL,56,'Subject for Interview','2022-10-21 20:15:55',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (166,NULL,56,'Subject for Interview','2022-10-17 06:45:37',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (167,NULL,9,'Subject for Tell a Friend','2022-10-08 03:33:33',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (168,NULL,56,'Subject for Interview','2023-07-14 07:45:18',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (169,NULL,56,'Subject for Interview','2023-05-15 19:19:40',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (170,NULL,9,'Subject for Tell a Friend','2023-09-04 12:47:45',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (171,NULL,22,'Subject for Print/Merge Document','2023-07-05 07:43:25',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (172,NULL,56,'Subject for Interview','2023-07-12 17:55:12',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (173,NULL,56,'Subject for Interview','2023-01-26 01:32:24',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (174,NULL,22,'Subject for Print/Merge Document','2023-08-31 14:08:36',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (175,NULL,56,'Subject for Interview','2023-08-24 12:56:35',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (176,NULL,22,'Subject for Print/Merge Document','2022-11-30 06:34:47',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (177,NULL,1,'Subject for Meeting','2023-01-03 08:23:39',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (178,NULL,9,'Subject for Tell a Friend','2022-12-10 04:37:43',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (179,NULL,22,'Subject for Print/Merge Document','2022-11-18 19:27:43',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (180,NULL,22,'Subject for Print/Merge Document','2023-09-03 10:13:46',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (181,NULL,2,'Subject for Phone Call','2022-12-30 02:36:12',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (182,NULL,9,'Subject for Tell a Friend','2022-10-02 04:21:32',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (183,NULL,9,'Subject for Tell a Friend','2023-02-25 22:54:30',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (184,NULL,2,'Subject for Phone Call','2023-04-25 16:48:31',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (185,NULL,2,'Subject for Phone Call','2023-06-30 18:45:33',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (186,NULL,2,'Subject for Phone Call','2022-09-12 18:36:17',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (187,NULL,9,'Subject for Tell a Friend','2023-03-04 05:55:39',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (188,NULL,9,'Subject for Tell a Friend','2023-01-04 01:51:35',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (189,NULL,22,'Subject for Print/Merge Document','2023-01-08 18:19:55',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (190,NULL,56,'Subject for Interview','2022-12-15 18:58:38',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (191,NULL,1,'Subject for Meeting','2023-03-30 15:19:34',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (192,NULL,22,'Subject for Print/Merge Document','2023-07-02 15:02:14',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (193,NULL,56,'Subject for Interview','2023-03-23 17:12:32',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (194,NULL,56,'Subject for Interview','2023-04-30 18:33:03',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (195,NULL,9,'Subject for Tell a Friend','2022-10-26 01:24:45',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (196,NULL,22,'Subject for Print/Merge Document','2022-12-06 00:39:49',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (197,NULL,9,'Subject for Tell a Friend','2022-12-12 09:57:22',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (198,NULL,1,'Subject for Meeting','2023-05-16 07:55:49',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (199,NULL,9,'Subject for Tell a Friend','2022-11-23 10:09:36',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (200,NULL,22,'Subject for Print/Merge Document','2023-07-04 10:30:33',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (201,NULL,22,'Subject for Print/Merge Document','2022-10-05 11:28:15',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (202,NULL,9,'Subject for Tell a Friend','2023-08-07 22:29:29',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (203,NULL,56,'Subject for Interview','2022-12-19 05:55:36',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (204,NULL,9,'Subject for Tell a Friend','2023-05-11 02:58:53',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (205,NULL,1,'Subject for Meeting','2023-01-05 09:07:44',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (206,NULL,2,'Subject for Phone Call','2023-06-07 11:05:46',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (207,NULL,56,'Subject for Interview','2023-01-22 12:00:17',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (208,NULL,2,'Subject for Phone Call','2023-04-14 05:30:28',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (209,NULL,1,'Subject for Meeting','2023-08-15 23:59:02',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (210,NULL,9,'Subject for Tell a Friend','2022-12-20 17:41:45',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (211,NULL,2,'Subject for Phone Call','2022-11-20 11:52:08',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (212,NULL,1,'Subject for Meeting','2022-11-01 10:01:22',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (213,NULL,56,'Subject for Interview','2023-05-20 18:18:58',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (214,NULL,9,'Subject for Tell a Friend','2023-03-14 21:20:47',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (215,NULL,22,'Subject for Print/Merge Document','2023-01-07 04:29:30',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (216,NULL,22,'Subject for Print/Merge Document','2022-11-08 02:30:04',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (217,NULL,2,'Subject for Phone Call','2022-12-18 20:51:50',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (218,NULL,56,'Subject for Interview','2022-09-25 12:10:56',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (219,NULL,9,'Subject for Tell a Friend','2023-04-10 00:37:33',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (220,NULL,56,'Subject for Interview','2023-04-17 17:50:42',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (221,NULL,22,'Subject for Print/Merge Document','2023-02-23 18:49:50',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (222,NULL,1,'Subject for Meeting','2023-04-28 01:56:51',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (223,NULL,22,'Subject for Print/Merge Document','2022-12-19 05:40:58',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (224,NULL,56,'Subject for Interview','2023-08-08 16:23:02',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (225,NULL,1,'Subject for Meeting','2022-12-26 04:57:10',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (226,NULL,1,'Subject for Meeting','2023-05-30 13:20:56',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (227,NULL,22,'Subject for Print/Merge Document','2023-01-19 17:30:30',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (228,NULL,2,'Subject for Phone Call','2023-03-27 05:06:35',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (229,NULL,22,'Subject for Print/Merge Document','2023-09-01 21:28:19',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (230,NULL,1,'Subject for Meeting','2023-05-09 15:16:22',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (231,NULL,56,'Subject for Interview','2023-05-19 17:33:17',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (232,NULL,56,'Subject for Interview','2023-09-06 02:42:31',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (233,NULL,9,'Subject for Tell a Friend','2023-08-20 17:46:39',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (234,NULL,2,'Subject for Phone Call','2022-09-08 19:59:37',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (235,NULL,22,'Subject for Print/Merge Document','2023-06-30 23:11:41',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (236,NULL,9,'Subject for Tell a Friend','2023-08-06 21:01:54',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (237,NULL,2,'Subject for Phone Call','2022-11-03 22:09:29',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (238,NULL,1,'Subject for Meeting','2022-09-12 10:23:54',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (239,NULL,1,'Subject for Meeting','2023-09-03 07:54:47',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (240,NULL,9,'Subject for Tell a Friend','2023-05-21 16:17:54',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (241,NULL,9,'Subject for Tell a Friend','2022-09-10 23:09:58',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (242,NULL,2,'Subject for Phone Call','2023-01-23 02:16:16',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (243,NULL,22,'Subject for Print/Merge Document','2022-09-08 20:28:22',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (244,NULL,22,'Subject for Print/Merge Document','2023-03-25 16:37:39',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (245,NULL,56,'Subject for Interview','2022-10-08 01:16:47',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (246,NULL,56,'Subject for Interview','2023-02-28 16:51:54',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (247,NULL,2,'Subject for Phone Call','2023-04-27 21:28:07',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (248,NULL,1,'Subject for Meeting','2023-06-23 02:39:23',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (249,NULL,56,'Subject for Interview','2022-11-14 09:00:03',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (250,NULL,9,'Subject for Tell a Friend','2023-07-29 11:04:54',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (251,NULL,2,'Subject for Phone Call','2022-10-01 08:21:09',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (252,NULL,2,'Subject for Phone Call','2023-03-22 21:52:39',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (253,NULL,22,'Subject for Print/Merge Document','2022-12-22 12:07:03',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (254,NULL,56,'Subject for Interview','2023-06-08 02:51:46',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (255,NULL,2,'Subject for Phone Call','2023-05-24 01:56:45',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (256,NULL,9,'Subject for Tell a Friend','2023-02-27 07:47:48',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (257,NULL,9,'Subject for Tell a Friend','2023-06-14 07:26:04',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (258,NULL,22,'Subject for Print/Merge Document','2023-01-10 14:04:40',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (259,NULL,1,'Subject for Meeting','2023-02-01 12:36:35',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (260,NULL,1,'Subject for Meeting','2023-05-18 19:38:06',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (261,NULL,56,'Subject for Interview','2023-06-30 07:19:08',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (262,NULL,1,'Subject for Meeting','2022-11-14 21:29:44',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (263,NULL,22,'Subject for Print/Merge Document','2023-07-13 23:23:53',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (264,NULL,22,'Subject for Print/Merge Document','2023-03-18 13:59:45',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (265,NULL,22,'Subject for Print/Merge Document','2023-07-25 10:43:40',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (266,NULL,56,'Subject for Interview','2023-04-25 22:52:45',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (267,NULL,22,'Subject for Print/Merge Document','2023-08-19 10:42:08',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (268,NULL,9,'Subject for Tell a Friend','2023-04-13 03:20:38',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (269,NULL,1,'Subject for Meeting','2023-05-27 18:51:19',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (270,NULL,1,'Subject for Meeting','2023-03-22 21:52:51',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (271,NULL,1,'Subject for Meeting','2022-09-21 12:19:04',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (272,NULL,9,'Subject for Tell a Friend','2023-08-19 12:02:34',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (273,NULL,1,'Subject for Meeting','2023-05-08 21:33:39',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (274,NULL,22,'Subject for Print/Merge Document','2023-04-24 22:20:58',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (275,NULL,2,'Subject for Phone Call','2022-09-30 15:42:46',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (276,NULL,9,'Subject for Tell a Friend','2023-03-12 07:55:21',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (277,NULL,1,'Subject for Meeting','2023-07-22 00:06:36',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (278,NULL,22,'Subject for Print/Merge Document','2022-09-08 10:41:32',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (279,NULL,9,'Subject for Tell a Friend','2023-08-16 11:15:50',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (280,NULL,2,'Subject for Phone Call','2023-03-15 15:46:53',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (281,NULL,9,'Subject for Tell a Friend','2022-11-02 16:51:14',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (282,NULL,2,'Subject for Phone Call','2023-05-19 10:31:49',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (283,NULL,2,'Subject for Phone Call','2023-02-11 05:02:19',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (284,NULL,2,'Subject for Phone Call','2022-09-24 14:23:41',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (285,NULL,56,'Subject for Interview','2022-11-27 14:18:01',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (286,NULL,56,'Subject for Interview','2022-09-24 17:20:34',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (287,NULL,22,'Subject for Print/Merge Document','2023-08-20 18:27:29',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (288,NULL,2,'Subject for Phone Call','2023-08-12 19:30:38',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (289,NULL,22,'Subject for Print/Merge Document','2023-02-18 15:39:07',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (290,NULL,22,'Subject for Print/Merge Document','2023-04-15 19:50:20',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (291,NULL,9,'Subject for Tell a Friend','2023-04-15 17:33:01',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (292,NULL,2,'Subject for Phone Call','2023-06-18 10:23:58',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (293,NULL,56,'Subject for Interview','2023-01-27 03:45:59',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (294,NULL,1,'Subject for Meeting','2022-11-01 20:15:35',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (295,NULL,2,'Subject for Phone Call','2023-04-06 13:16:30',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (296,NULL,9,'Subject for Tell a Friend','2023-08-27 08:40:54',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (297,NULL,1,'Subject for Meeting','2023-05-19 18:21:00',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (298,NULL,56,'Subject for Interview','2022-09-26 17:45:01',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (299,NULL,9,'Subject for Tell a Friend','2023-07-29 02:53:30',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (300,NULL,1,'Subject for Meeting','2022-09-29 02:02:19',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (301,NULL,22,'Subject for Print/Merge Document','2023-05-05 17:25:10',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (302,NULL,2,'Subject for Phone Call','2023-05-08 09:50:47',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (303,NULL,1,'Subject for Meeting','2022-09-11 02:26:09',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (304,NULL,56,'Subject for Interview','2023-05-17 07:51:18',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (305,NULL,56,'Subject for Interview','2023-06-06 21:07:28',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (306,NULL,9,'Subject for Tell a Friend','2023-03-06 21:15:01',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (307,NULL,56,'Subject for Interview','2022-09-12 16:38:17',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (308,NULL,22,'Subject for Print/Merge Document','2023-02-10 18:15:25',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (309,NULL,9,'Subject for Tell a Friend','2022-09-08 13:16:59',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (310,NULL,22,'Subject for Print/Merge Document','2023-06-16 08:16:17',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (311,NULL,22,'Subject for Print/Merge Document','2023-04-08 01:16:13',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (312,NULL,56,'Subject for Interview','2022-10-06 17:53:18',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (313,NULL,56,'Subject for Interview','2023-02-03 19:45:11',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (314,NULL,56,'Subject for Interview','2023-07-06 01:44:33',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (315,NULL,9,'Subject for Tell a Friend','2023-02-11 04:43:04',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (316,NULL,22,'Subject for Print/Merge Document','2023-05-02 11:24:45',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (317,NULL,2,'Subject for Phone Call','2022-10-05 08:19:38',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (318,NULL,9,'Subject for Tell a Friend','2023-05-05 06:09:45',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (319,NULL,56,'Subject for Interview','2023-06-16 12:30:19',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (320,NULL,22,'Subject for Print/Merge Document','2022-12-07 12:58:47',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (321,NULL,56,'Subject for Interview','2023-08-01 18:28:14',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (322,NULL,2,'Subject for Phone Call','2023-05-08 23:28:14',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (323,NULL,2,'Subject for Phone Call','2022-10-23 06:15:37',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (324,NULL,1,'Subject for Meeting','2022-11-11 16:33:06',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (325,NULL,56,'Subject for Interview','2023-03-27 21:09:58',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (326,NULL,2,'Subject for Phone Call','2023-06-23 19:36:02',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (327,NULL,2,'Subject for Phone Call','2023-06-13 02:49:59',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (328,NULL,56,'Subject for Interview','2023-01-22 06:49:00',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (329,NULL,1,'Subject for Meeting','2022-11-02 00:51:22',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (330,NULL,9,'Subject for Tell a Friend','2022-10-11 09:00:56',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (331,NULL,22,'Subject for Print/Merge Document','2023-02-23 05:23:34',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (332,NULL,1,'Subject for Meeting','2023-07-04 04:04:09',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (333,NULL,2,'Subject for Phone Call','2023-01-07 03:18:04',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (334,NULL,1,'Subject for Meeting','2022-12-09 13:08:02',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (335,NULL,9,'Subject for Tell a Friend','2023-01-02 07:12:37',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (336,NULL,56,'Subject for Interview','2022-10-05 10:11:53',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (337,NULL,56,'Subject for Interview','2023-07-07 16:46:24',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (338,NULL,22,'Subject for Print/Merge Document','2023-09-03 01:20:01',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (339,NULL,1,'Subject for Meeting','2023-04-22 17:48:38',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (340,NULL,9,'Subject for Tell a Friend','2023-04-13 07:23:50',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (341,NULL,9,'Subject for Tell a Friend','2023-06-30 09:33:39',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (342,NULL,22,'Subject for Print/Merge Document','2022-11-02 02:02:29',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (343,NULL,2,'Subject for Phone Call','2023-03-07 08:50:51',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (344,NULL,22,'Subject for Print/Merge Document','2023-08-23 17:51:46',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (345,NULL,1,'Subject for Meeting','2022-12-18 04:00:50',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:19','2023-09-06 22:52:19'), - (346,NULL,1,'Subject for Meeting','2023-05-30 06:20:30',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (347,NULL,22,'Subject for Print/Merge Document','2022-10-28 22:47:18',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (348,NULL,9,'Subject for Tell a Friend','2022-12-06 08:44:21',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (349,NULL,22,'Subject for Print/Merge Document','2023-04-26 13:16:41',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (350,NULL,22,'Subject for Print/Merge Document','2022-11-09 10:39:05',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (351,NULL,22,'Subject for Print/Merge Document','2023-04-04 10:27:29',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (352,NULL,2,'Subject for Phone Call','2023-09-04 10:10:21',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (353,NULL,2,'Subject for Phone Call','2022-11-29 07:52:44',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (354,NULL,9,'Subject for Tell a Friend','2023-08-31 16:02:34',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (355,NULL,1,'Subject for Meeting','2023-01-27 01:06:35',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (356,NULL,1,'Subject for Meeting','2023-03-24 15:02:29',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (357,NULL,2,'Subject for Phone Call','2023-04-18 02:23:29',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (358,NULL,1,'Subject for Meeting','2022-12-28 10:53:20',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (359,NULL,56,'Subject for Interview','2022-09-08 02:45:51',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (360,NULL,2,'Subject for Phone Call','2022-12-22 17:04:55',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (361,NULL,22,'Subject for Print/Merge Document','2022-12-22 05:07:49',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (362,NULL,1,'Subject for Meeting','2022-12-28 14:32:09',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (363,NULL,22,'Subject for Print/Merge Document','2022-10-26 19:48:44',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (364,NULL,1,'Subject for Meeting','2022-11-23 06:55:05',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (365,NULL,9,'Subject for Tell a Friend','2023-04-18 17:13:07',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (366,NULL,56,'Subject for Interview','2023-02-21 08:31:47',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (367,NULL,56,'Subject for Interview','2022-12-24 09:16:43',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (368,NULL,2,'Subject for Phone Call','2022-09-18 03:06:16',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (369,NULL,1,'Subject for Meeting','2023-05-09 08:31:10',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (370,NULL,56,'Subject for Interview','2022-09-17 12:11:06',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (371,NULL,9,'Subject for Tell a Friend','2023-05-27 17:57:50',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (372,NULL,22,'Subject for Print/Merge Document','2023-07-10 14:38:05',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (373,NULL,2,'Subject for Phone Call','2023-02-11 00:37:46',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (374,NULL,56,'Subject for Interview','2023-05-23 09:26:10',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (375,NULL,22,'Subject for Print/Merge Document','2023-02-21 09:28:18',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (376,NULL,22,'Subject for Print/Merge Document','2022-11-09 00:38:36',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (377,NULL,22,'Subject for Print/Merge Document','2023-06-13 20:10:48',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (378,NULL,22,'Subject for Print/Merge Document','2023-09-06 10:54:32',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (379,NULL,22,'Subject for Print/Merge Document','2023-03-02 13:18:19',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (380,NULL,22,'Subject for Print/Merge Document','2023-05-10 23:17:23',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (381,NULL,56,'Subject for Interview','2023-05-02 01:00:47',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (382,NULL,2,'Subject for Phone Call','2023-05-19 14:48:04',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (383,NULL,2,'Subject for Phone Call','2023-07-17 14:31:51',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (384,NULL,2,'Subject for Phone Call','2023-08-11 02:20:09',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (385,NULL,1,'Subject for Meeting','2022-11-09 11:35:33',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (386,NULL,56,'Subject for Interview','2023-05-11 20:19:06',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (387,NULL,9,'Subject for Tell a Friend','2023-02-08 11:20:36',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (388,NULL,22,'Subject for Print/Merge Document','2022-10-08 19:26:48',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (389,NULL,1,'Subject for Meeting','2022-12-11 14:00:35',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (390,NULL,2,'Subject for Phone Call','2022-09-28 06:01:52',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (391,NULL,1,'Subject for Meeting','2023-07-25 16:42:28',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (392,NULL,1,'Subject for Meeting','2023-08-13 18:46:23',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (393,NULL,9,'Subject for Tell a Friend','2023-02-12 09:06:05',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (394,NULL,9,'Subject for Tell a Friend','2022-10-09 13:09:55',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (395,NULL,56,'Subject for Interview','2023-01-19 01:12:52',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (396,NULL,22,'Subject for Print/Merge Document','2022-09-11 23:10:06',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (397,NULL,56,'Subject for Interview','2023-07-03 13:51:09',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (398,NULL,22,'Subject for Print/Merge Document','2022-11-02 17:42:37',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (399,NULL,1,'Subject for Meeting','2023-08-22 07:25:34',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (400,NULL,22,'Subject for Print/Merge Document','2023-06-16 22:02:44',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (401,NULL,2,'Subject for Phone Call','2023-03-02 17:18:43',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (402,NULL,56,'Subject for Interview','2023-04-22 10:01:21',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (403,NULL,9,'Subject for Tell a Friend','2022-09-19 08:59:23',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (404,NULL,9,'Subject for Tell a Friend','2022-11-16 23:14:16',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (405,NULL,9,'Subject for Tell a Friend','2023-04-23 10:18:34',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (406,NULL,9,'Subject for Tell a Friend','2022-12-31 01:25:45',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (407,NULL,1,'Subject for Meeting','2023-05-05 00:29:08',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (408,NULL,56,'Subject for Interview','2023-06-22 17:13:44',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (409,NULL,22,'Subject for Print/Merge Document','2023-05-15 20:21:44',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (410,NULL,56,'Subject for Interview','2023-03-11 01:37:12',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (411,NULL,56,'Subject for Interview','2023-03-28 12:36:11',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (412,NULL,22,'Subject for Print/Merge Document','2022-12-14 17:59:40',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (413,NULL,9,'Subject for Tell a Friend','2023-04-03 17:14:21',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (414,NULL,2,'Subject for Phone Call','2023-07-05 02:57:00',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (415,NULL,2,'Subject for Phone Call','2023-06-21 03:45:31',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (416,NULL,2,'Subject for Phone Call','2022-10-22 10:30:49',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (417,NULL,1,'Subject for Meeting','2022-10-14 02:21:38',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (418,NULL,56,'Subject for Interview','2023-02-06 11:31:31',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (419,NULL,9,'Subject for Tell a Friend','2023-08-06 18:40:11',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (420,NULL,56,'Subject for Interview','2023-08-10 05:01:48',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (421,NULL,1,'Subject for Meeting','2023-02-03 11:13:27',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (422,NULL,1,'Subject for Meeting','2023-02-21 14:32:47',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (423,NULL,2,'Subject for Phone Call','2022-11-07 05:45:27',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (424,NULL,56,'Subject for Interview','2023-07-19 02:23:25',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (425,NULL,56,'Subject for Interview','2023-07-31 07:14:44',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (426,NULL,9,'Subject for Tell a Friend','2023-08-24 10:06:12',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (427,NULL,1,'Subject for Meeting','2022-12-11 23:54:08',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (428,NULL,1,'Subject for Meeting','2022-10-20 05:54:12',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (429,NULL,2,'Subject for Phone Call','2022-09-26 21:33:00',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (430,NULL,56,'Subject for Interview','2023-03-25 20:40:35',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (431,NULL,1,'Subject for Meeting','2023-04-05 12:39:16',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (432,NULL,9,'Subject for Tell a Friend','2023-08-27 18:51:04',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (433,NULL,56,'Subject for Interview','2023-02-10 01:47:01',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (434,NULL,2,'Subject for Phone Call','2023-09-03 05:37:48',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (435,NULL,2,'Subject for Phone Call','2023-06-28 21:59:18',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (436,NULL,2,'Subject for Phone Call','2023-06-04 19:13:23',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (437,NULL,22,'Subject for Print/Merge Document','2022-11-15 03:24:12',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (438,NULL,22,'Subject for Print/Merge Document','2023-04-14 01:34:57',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (439,NULL,22,'Subject for Print/Merge Document','2023-04-03 14:27:58',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (440,NULL,56,'Subject for Interview','2023-07-24 15:26:40',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (441,NULL,22,'Subject for Print/Merge Document','2023-08-31 03:39:10',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (442,NULL,56,'Subject for Interview','2023-04-02 03:47:49',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (443,NULL,9,'Subject for Tell a Friend','2023-07-03 20:52:49',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (444,NULL,2,'Subject for Phone Call','2023-02-05 00:10:32',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (445,NULL,22,'Subject for Print/Merge Document','2022-09-16 23:01:47',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (446,NULL,1,'Subject for Meeting','2023-08-16 05:59:04',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (447,NULL,22,'Subject for Print/Merge Document','2022-12-14 02:51:56',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (448,NULL,2,'Subject for Phone Call','2023-08-22 08:05:07',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (449,NULL,2,'Subject for Phone Call','2023-06-04 12:30:31',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (450,NULL,9,'Subject for Tell a Friend','2023-05-05 14:56:51',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (451,1,6,'$ 125 April Mailer 1','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (452,2,6,'$ 50 Online: Save the Penguins','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (453,3,6,'£ 25 April Mailer 1','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (454,4,6,'$ 50 Online: Save the Penguins','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (455,5,6,'$ 50 Online: Save the Penguins','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (456,6,6,'$ 500 April Mailer 1','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (457,7,6,'$ 1750 Online: Save the Penguins','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (458,8,6,'$ 50 Online: Save the Penguins','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (459,9,6,'$ 10 Online: Help CiviCRM','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (460,10,6,'$ 250 Online: Help CiviCRM','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (461,11,6,'Â¥ 500 ','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (462,12,6,'$ 50 Online: Save the Penguins','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (463,13,6,'$ 50 ','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (464,14,6,'$ 50 ','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (465,15,6,'$ 25 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (466,16,6,'$ 25 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (467,17,6,'$ 25 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (468,18,6,'$ 25 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (469,19,6,'$ 25 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (470,20,6,'$ 25 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (471,21,6,'$ 25 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (472,22,6,'$ 25 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (473,23,6,'$ 25 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (474,24,6,'$ 25 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (475,25,6,'$ 25 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (476,26,6,'$ 10 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (477,27,6,'$ 10 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (478,28,6,'$ 10 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (479,29,6,'$ 10 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (480,30,6,'$ 10 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (481,31,6,'€ 5 Recurring contribution','2023-11-07 08:52:20',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (482,1,7,'General','2023-09-07 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (483,2,7,'Student','2023-09-06 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (484,3,7,'General','2023-09-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (485,4,7,'Student','2023-09-04 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (486,5,7,'General','2021-08-06 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (487,6,7,'Student','2023-09-02 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (488,7,7,'General','2023-09-01 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (489,8,7,'Student','2023-08-31 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (490,9,7,'General','2023-08-30 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (491,10,7,'Student','2022-08-29 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (492,11,7,'Lifetime','2023-08-28 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (493,12,7,'Student','2023-08-27 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (494,13,7,'General','2023-08-26 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (495,14,7,'Student','2023-08-25 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (496,15,7,'General','2021-05-18 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (497,16,7,'Student','2023-08-23 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (498,17,7,'General','2023-08-22 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (499,18,7,'Student','2023-08-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (500,19,7,'General','2023-08-20 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (501,20,7,'General','2021-04-08 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (502,21,7,'General','2023-08-18 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (503,22,7,'Lifetime','2023-08-17 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (504,23,7,'General','2023-08-16 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (505,24,7,'Student','2023-08-15 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (506,25,7,'Student','2022-08-14 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (507,26,7,'Student','2023-08-13 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (508,27,7,'General','2023-08-12 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (509,28,7,'Student','2023-08-11 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (510,29,7,'General','2023-08-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (511,30,7,'Student','2022-08-09 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (512,32,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (513,33,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (514,34,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (515,35,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (516,36,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (517,37,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (518,38,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (519,39,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (520,40,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (521,41,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (522,42,6,'$ 1200.00 - Lifetime Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (523,43,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (524,44,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (525,45,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (526,46,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (527,47,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (528,48,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (529,49,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (530,50,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (531,51,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (532,52,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (533,53,6,'$ 1200.00 - Lifetime Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (534,54,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (535,55,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (536,56,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (537,57,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (538,58,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (539,59,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (540,60,6,'$ 100.00 - General Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (541,61,6,'$ 50.00 - Student Membership: Offline signup','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (543,1,5,'NULL','2009-01-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (544,2,5,'NULL','2008-05-07 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (545,3,5,'NULL','2008-05-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (546,4,5,'NULL','2008-10-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (547,5,5,'NULL','2008-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (548,6,5,'NULL','2008-03-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (549,7,5,'NULL','2009-07-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (550,8,5,'NULL','2009-03-07 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (551,9,5,'NULL','2008-02-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (552,10,5,'NULL','2008-02-01 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (553,11,5,'NULL','2009-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (554,12,5,'NULL','2009-03-06 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (555,13,5,'NULL','2008-06-04 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (556,14,5,'NULL','2008-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (557,15,5,'NULL','2008-07-04 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (558,16,5,'NULL','2009-01-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (559,17,5,'NULL','2008-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (560,18,5,'NULL','2009-03-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (561,19,5,'NULL','2008-10-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (562,20,5,'NULL','2009-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (563,21,5,'NULL','2008-03-25 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (564,22,5,'NULL','2009-10-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (565,23,5,'NULL','2008-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (566,24,5,'NULL','2008-03-11 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (567,25,5,'NULL','2008-04-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (568,26,5,'NULL','2009-01-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (569,27,5,'NULL','2008-05-07 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (570,28,5,'NULL','2009-12-12 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (571,29,5,'NULL','2009-12-13 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (572,30,5,'NULL','2009-12-14 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (573,31,5,'NULL','2009-12-15 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (574,32,5,'NULL','2009-07-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (575,33,5,'NULL','2009-03-07 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (576,34,5,'NULL','2009-12-15 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (577,35,5,'NULL','2009-12-13 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (578,36,5,'NULL','2009-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (579,37,5,'NULL','2009-03-06 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (580,38,5,'NULL','2009-12-13 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (581,39,5,'NULL','2008-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (582,40,5,'NULL','2009-12-14 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (583,41,5,'NULL','2009-01-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (584,42,5,'NULL','2009-12-15 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (585,43,5,'NULL','2009-03-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (586,44,5,'NULL','2009-12-13 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (587,45,5,'NULL','2009-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (588,46,5,'NULL','2009-12-13 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (589,47,5,'NULL','2009-10-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (590,48,5,'NULL','2009-12-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (591,49,5,'NULL','2009-03-11 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (592,50,5,'NULL','2009-04-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (593,63,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (594,64,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (595,65,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (596,66,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (597,67,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (598,68,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (599,69,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (600,70,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (601,71,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (602,72,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (603,73,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (604,74,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (605,75,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (606,76,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (607,77,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (608,78,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (609,79,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (610,80,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (611,81,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (612,82,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (613,83,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (614,84,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (615,85,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (616,86,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (617,87,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (618,88,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (619,89,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (620,90,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (621,91,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (622,92,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (623,93,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (624,94,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (625,95,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (626,96,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (627,97,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (628,98,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (629,99,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (630,100,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (631,101,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (632,102,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (633,103,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (634,104,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (635,105,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (636,106,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (637,107,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (638,108,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (639,109,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (640,110,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (641,111,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'), - (642,112,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-09-07 08:52:20',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-09-06 22:52:20','2023-09-06 22:52:20'); + (1,NULL,1,'Subject for Meeting','2023-01-10 03:50:28',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (2,NULL,2,'Subject for Phone Call','2023-03-17 02:02:05',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (3,NULL,2,'Subject for Phone Call','2023-06-13 07:07:24',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (4,NULL,1,'Subject for Meeting','2022-10-15 22:22:54',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (5,NULL,1,'Subject for Meeting','2023-06-30 02:06:13',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (6,NULL,22,'Subject for Print/Merge Document','2023-04-03 03:22:01',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (7,NULL,22,'Subject for Print/Merge Document','2022-11-11 21:57:46',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (8,NULL,1,'Subject for Meeting','2022-12-24 17:58:07',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (9,NULL,1,'Subject for Meeting','2023-02-03 17:52:32',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (10,NULL,1,'Subject for Meeting','2022-11-30 04:08:45',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (11,NULL,22,'Subject for Print/Merge Document','2023-06-03 13:25:45',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (12,NULL,22,'Subject for Print/Merge Document','2023-07-22 02:54:44',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (13,NULL,1,'Subject for Meeting','2023-06-16 08:28:37',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (14,NULL,9,'Subject for Tell a Friend','2023-03-20 23:03:31',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (15,NULL,9,'Subject for Tell a Friend','2023-10-06 05:34:06',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (16,NULL,22,'Subject for Print/Merge Document','2022-10-14 07:05:34',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (17,NULL,2,'Subject for Phone Call','2023-06-01 12:32:34',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (18,NULL,9,'Subject for Tell a Friend','2023-06-15 02:38:03',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (19,NULL,2,'Subject for Phone Call','2023-08-24 05:51:05',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (20,NULL,22,'Subject for Print/Merge Document','2023-02-12 19:22:38',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (21,NULL,2,'Subject for Phone Call','2023-09-07 19:42:31',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (22,NULL,22,'Subject for Print/Merge Document','2023-06-30 00:13:20',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (23,NULL,9,'Subject for Tell a Friend','2023-07-18 19:55:54',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (24,NULL,56,'Subject for Interview','2022-10-22 03:58:15',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (25,NULL,9,'Subject for Tell a Friend','2023-01-03 18:44:37',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (26,NULL,2,'Subject for Phone Call','2023-05-09 10:43:02',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (27,NULL,2,'Subject for Phone Call','2023-06-06 18:07:17',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (28,NULL,9,'Subject for Tell a Friend','2023-08-16 04:18:20',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (29,NULL,2,'Subject for Phone Call','2023-01-05 23:52:30',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:35','2023-10-07 01:51:35'), + (30,NULL,9,'Subject for Tell a Friend','2023-07-06 08:45:24',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (31,NULL,22,'Subject for Print/Merge Document','2022-12-19 09:47:34',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (32,NULL,9,'Subject for Tell a Friend','2023-07-21 13:08:53',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (33,NULL,22,'Subject for Print/Merge Document','2023-08-31 07:34:17',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (34,NULL,56,'Subject for Interview','2023-04-10 13:06:53',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (35,NULL,9,'Subject for Tell a Friend','2023-07-10 22:10:01',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (36,NULL,2,'Subject for Phone Call','2023-01-18 07:01:53',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (37,NULL,1,'Subject for Meeting','2023-09-29 02:04:53',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (38,NULL,9,'Subject for Tell a Friend','2023-02-25 02:46:39',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (39,NULL,1,'Subject for Meeting','2023-06-06 02:54:14',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (40,NULL,22,'Subject for Print/Merge Document','2023-05-20 22:16:24',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (41,NULL,1,'Subject for Meeting','2022-10-16 04:38:26',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (42,NULL,56,'Subject for Interview','2022-12-07 00:18:57',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (43,NULL,56,'Subject for Interview','2022-11-21 11:23:05',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (44,NULL,56,'Subject for Interview','2022-10-20 01:00:22',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (45,NULL,9,'Subject for Tell a Friend','2023-08-24 19:31:07',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (46,NULL,9,'Subject for Tell a Friend','2023-05-16 13:18:24',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (47,NULL,2,'Subject for Phone Call','2023-08-23 02:30:36',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (48,NULL,9,'Subject for Tell a Friend','2023-03-24 02:03:35',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (49,NULL,22,'Subject for Print/Merge Document','2023-08-28 10:03:06',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (50,NULL,1,'Subject for Meeting','2023-05-19 17:32:46',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (51,NULL,2,'Subject for Phone Call','2023-08-26 17:28:08',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (52,NULL,56,'Subject for Interview','2023-06-12 05:52:22',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (53,NULL,2,'Subject for Phone Call','2023-01-13 21:06:19',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (54,NULL,9,'Subject for Tell a Friend','2023-09-20 07:02:26',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (55,NULL,56,'Subject for Interview','2023-05-14 06:32:40',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (56,NULL,22,'Subject for Print/Merge Document','2023-07-14 20:47:47',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (57,NULL,22,'Subject for Print/Merge Document','2023-02-05 02:12:03',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (58,NULL,22,'Subject for Print/Merge Document','2022-12-12 03:01:05',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (59,NULL,56,'Subject for Interview','2023-07-22 22:20:00',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (60,NULL,9,'Subject for Tell a Friend','2023-05-13 22:19:23',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (61,NULL,22,'Subject for Print/Merge Document','2023-08-04 11:31:12',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (62,NULL,22,'Subject for Print/Merge Document','2023-04-21 13:57:09',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (63,NULL,9,'Subject for Tell a Friend','2023-08-15 03:16:53',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (64,NULL,56,'Subject for Interview','2023-03-17 10:02:59',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (65,NULL,9,'Subject for Tell a Friend','2023-03-28 09:31:03',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (66,NULL,56,'Subject for Interview','2023-02-01 21:30:35',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (67,NULL,56,'Subject for Interview','2022-10-23 23:14:00',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (68,NULL,9,'Subject for Tell a Friend','2023-01-10 23:06:00',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (69,NULL,56,'Subject for Interview','2023-04-23 14:00:54',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (70,NULL,56,'Subject for Interview','2023-06-16 14:53:59',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (71,NULL,9,'Subject for Tell a Friend','2023-06-21 07:01:09',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (72,NULL,56,'Subject for Interview','2023-09-11 20:35:07',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (73,NULL,56,'Subject for Interview','2023-02-11 21:25:29',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (74,NULL,1,'Subject for Meeting','2023-08-28 21:56:47',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (75,NULL,2,'Subject for Phone Call','2023-04-30 06:35:58',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (76,NULL,22,'Subject for Print/Merge Document','2023-05-26 19:24:16',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (77,NULL,22,'Subject for Print/Merge Document','2023-08-06 02:33:08',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (78,NULL,56,'Subject for Interview','2022-11-25 02:25:34',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (79,NULL,56,'Subject for Interview','2023-06-04 01:51:31',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (80,NULL,56,'Subject for Interview','2023-01-13 03:17:27',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (81,NULL,2,'Subject for Phone Call','2022-11-03 17:45:31',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (82,NULL,2,'Subject for Phone Call','2023-07-14 07:20:09',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (83,NULL,1,'Subject for Meeting','2023-06-30 03:22:33',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (84,NULL,9,'Subject for Tell a Friend','2023-01-03 18:11:53',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (85,NULL,1,'Subject for Meeting','2023-03-17 14:25:18',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (86,NULL,2,'Subject for Phone Call','2023-03-17 01:53:59',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (87,NULL,56,'Subject for Interview','2023-02-20 08:15:50',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (88,NULL,22,'Subject for Print/Merge Document','2023-01-30 07:27:48',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (89,NULL,22,'Subject for Print/Merge Document','2023-05-26 20:25:41',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (90,NULL,56,'Subject for Interview','2023-08-11 03:36:17',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (91,NULL,2,'Subject for Phone Call','2023-05-25 03:46:03',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (92,NULL,2,'Subject for Phone Call','2023-05-09 14:06:30',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (93,NULL,22,'Subject for Print/Merge Document','2023-10-01 02:26:43',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (94,NULL,56,'Subject for Interview','2023-09-14 04:28:56',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (95,NULL,1,'Subject for Meeting','2023-05-20 01:23:31',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (96,NULL,2,'Subject for Phone Call','2023-01-29 16:39:33',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (97,NULL,2,'Subject for Phone Call','2023-06-05 22:23:32',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (98,NULL,22,'Subject for Print/Merge Document','2022-12-31 15:48:55',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (99,NULL,2,'Subject for Phone Call','2023-04-21 22:30:17',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (100,NULL,9,'Subject for Tell a Friend','2022-12-08 10:36:01',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (101,NULL,1,'Subject for Meeting','2022-10-31 11:07:41',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (102,NULL,22,'Subject for Print/Merge Document','2023-03-08 06:30:48',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (103,NULL,2,'Subject for Phone Call','2022-10-08 09:27:03',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (104,NULL,56,'Subject for Interview','2022-11-24 21:30:36',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (105,NULL,2,'Subject for Phone Call','2023-09-15 05:57:27',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (106,NULL,56,'Subject for Interview','2023-05-24 05:31:42',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (107,NULL,2,'Subject for Phone Call','2023-06-17 02:48:50',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (108,NULL,9,'Subject for Tell a Friend','2023-08-07 23:09:07',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (109,NULL,2,'Subject for Phone Call','2023-07-10 06:46:10',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (110,NULL,9,'Subject for Tell a Friend','2023-04-23 12:10:02',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (111,NULL,56,'Subject for Interview','2022-10-24 22:12:19',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (112,NULL,9,'Subject for Tell a Friend','2023-03-30 06:56:36',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (113,NULL,1,'Subject for Meeting','2023-05-05 02:34:43',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (114,NULL,9,'Subject for Tell a Friend','2023-06-21 21:57:03',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (115,NULL,9,'Subject for Tell a Friend','2023-07-10 19:33:04',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (116,NULL,56,'Subject for Interview','2023-10-02 09:03:07',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (117,NULL,2,'Subject for Phone Call','2022-11-18 03:35:36',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (118,NULL,56,'Subject for Interview','2022-12-12 04:18:44',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (119,NULL,22,'Subject for Print/Merge Document','2023-08-19 21:00:38',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (120,NULL,22,'Subject for Print/Merge Document','2022-12-02 15:10:17',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (121,NULL,1,'Subject for Meeting','2023-01-13 07:04:45',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (122,NULL,2,'Subject for Phone Call','2023-06-14 13:40:29',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (123,NULL,1,'Subject for Meeting','2023-01-25 23:52:03',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (124,NULL,56,'Subject for Interview','2023-09-23 00:32:11',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (125,NULL,22,'Subject for Print/Merge Document','2022-10-31 03:46:10',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (126,NULL,22,'Subject for Print/Merge Document','2023-09-25 11:43:10',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (127,NULL,9,'Subject for Tell a Friend','2022-10-30 22:24:00',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (128,NULL,9,'Subject for Tell a Friend','2023-02-09 16:57:14',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (129,NULL,56,'Subject for Interview','2023-10-03 13:17:26',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (130,NULL,56,'Subject for Interview','2023-05-08 15:01:54',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (131,NULL,2,'Subject for Phone Call','2022-10-22 03:07:28',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (132,NULL,9,'Subject for Tell a Friend','2023-04-18 11:30:42',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (133,NULL,56,'Subject for Interview','2023-05-13 01:52:38',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (134,NULL,9,'Subject for Tell a Friend','2023-02-17 08:34:07',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (135,NULL,22,'Subject for Print/Merge Document','2023-09-10 22:43:30',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (136,NULL,2,'Subject for Phone Call','2023-02-01 08:18:45',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (137,NULL,1,'Subject for Meeting','2022-11-27 22:01:48',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (138,NULL,9,'Subject for Tell a Friend','2023-03-27 12:51:08',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (139,NULL,9,'Subject for Tell a Friend','2022-10-18 01:21:39',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (140,NULL,9,'Subject for Tell a Friend','2023-05-17 14:45:56',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (141,NULL,9,'Subject for Tell a Friend','2023-07-20 07:28:41',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (142,NULL,22,'Subject for Print/Merge Document','2023-09-19 20:49:39',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (143,NULL,22,'Subject for Print/Merge Document','2023-02-02 00:55:49',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (144,NULL,9,'Subject for Tell a Friend','2023-05-11 00:28:18',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (145,NULL,2,'Subject for Phone Call','2023-07-08 19:50:15',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (146,NULL,9,'Subject for Tell a Friend','2023-09-16 02:39:34',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (147,NULL,56,'Subject for Interview','2023-09-16 14:45:12',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (148,NULL,56,'Subject for Interview','2023-05-09 00:36:39',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (149,NULL,2,'Subject for Phone Call','2023-09-17 12:23:04',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (150,NULL,9,'Subject for Tell a Friend','2023-05-07 05:21:17',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (151,NULL,9,'Subject for Tell a Friend','2023-05-19 21:37:13',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:36','2023-10-07 01:51:36'), + (152,NULL,9,'Subject for Tell a Friend','2023-07-18 21:31:11',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (153,NULL,22,'Subject for Print/Merge Document','2023-07-20 05:36:32',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (154,NULL,22,'Subject for Print/Merge Document','2023-03-11 11:16:20',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (155,NULL,2,'Subject for Phone Call','2023-03-07 14:30:41',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (156,NULL,1,'Subject for Meeting','2022-11-25 15:02:09',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (157,NULL,2,'Subject for Phone Call','2022-12-10 13:52:19',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (158,NULL,2,'Subject for Phone Call','2023-08-04 09:03:14',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (159,NULL,2,'Subject for Phone Call','2023-03-29 20:31:58',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (160,NULL,1,'Subject for Meeting','2023-08-05 20:27:31',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (161,NULL,56,'Subject for Interview','2023-06-26 10:23:40',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (162,NULL,1,'Subject for Meeting','2023-01-08 13:10:04',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (163,NULL,56,'Subject for Interview','2023-04-17 06:42:24',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (164,NULL,22,'Subject for Print/Merge Document','2022-12-10 18:51:54',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (165,NULL,2,'Subject for Phone Call','2022-12-22 14:29:24',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (166,NULL,1,'Subject for Meeting','2023-04-21 15:00:11',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (167,NULL,56,'Subject for Interview','2023-07-18 11:00:49',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (168,NULL,1,'Subject for Meeting','2022-12-14 09:15:38',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (169,NULL,22,'Subject for Print/Merge Document','2022-10-11 18:59:20',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (170,NULL,2,'Subject for Phone Call','2022-12-20 11:57:31',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (171,NULL,9,'Subject for Tell a Friend','2022-11-27 20:00:25',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (172,NULL,2,'Subject for Phone Call','2023-07-25 20:03:30',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (173,NULL,9,'Subject for Tell a Friend','2023-05-03 09:10:41',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (174,NULL,56,'Subject for Interview','2023-01-18 04:24:44',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (175,NULL,9,'Subject for Tell a Friend','2023-02-22 20:05:09',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (176,NULL,22,'Subject for Print/Merge Document','2023-04-11 15:48:07',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (177,NULL,22,'Subject for Print/Merge Document','2023-09-20 17:13:30',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (178,NULL,22,'Subject for Print/Merge Document','2022-12-19 06:09:47',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (179,NULL,22,'Subject for Print/Merge Document','2022-12-13 09:34:35',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (180,NULL,1,'Subject for Meeting','2023-01-03 15:17:40',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (181,NULL,9,'Subject for Tell a Friend','2022-12-11 00:38:18',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (182,NULL,56,'Subject for Interview','2023-07-19 08:42:14',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (183,NULL,2,'Subject for Phone Call','2023-04-20 14:41:33',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (184,NULL,1,'Subject for Meeting','2023-07-17 07:13:37',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (185,NULL,56,'Subject for Interview','2022-12-10 04:38:25',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (186,NULL,9,'Subject for Tell a Friend','2023-10-06 08:33:12',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (187,NULL,9,'Subject for Tell a Friend','2023-09-14 04:39:21',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (188,NULL,22,'Subject for Print/Merge Document','2023-08-30 17:08:22',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (189,NULL,22,'Subject for Print/Merge Document','2022-12-31 05:31:07',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (190,NULL,1,'Subject for Meeting','2023-02-17 17:29:36',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (191,NULL,9,'Subject for Tell a Friend','2023-02-28 21:15:09',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (192,NULL,56,'Subject for Interview','2023-05-02 15:24:24',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (193,NULL,1,'Subject for Meeting','2023-02-13 16:10:24',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (194,NULL,22,'Subject for Print/Merge Document','2023-08-12 18:32:06',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (195,NULL,9,'Subject for Tell a Friend','2023-02-14 03:08:38',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (196,NULL,1,'Subject for Meeting','2023-06-23 20:50:34',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (197,NULL,56,'Subject for Interview','2023-07-23 12:25:07',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (198,NULL,2,'Subject for Phone Call','2023-04-15 05:57:55',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (199,NULL,9,'Subject for Tell a Friend','2023-04-21 22:47:12',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (200,NULL,9,'Subject for Tell a Friend','2023-04-20 21:33:59',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (201,NULL,1,'Subject for Meeting','2022-12-02 17:58:06',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (202,NULL,9,'Subject for Tell a Friend','2023-03-25 03:45:59',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (203,NULL,1,'Subject for Meeting','2023-07-30 16:26:38',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (204,NULL,56,'Subject for Interview','2023-06-18 21:21:54',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (205,NULL,56,'Subject for Interview','2023-06-22 21:37:27',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (206,NULL,2,'Subject for Phone Call','2023-04-09 17:24:07',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (207,NULL,2,'Subject for Phone Call','2023-01-29 22:01:16',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (208,NULL,22,'Subject for Print/Merge Document','2023-07-17 11:12:59',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (209,NULL,1,'Subject for Meeting','2023-01-11 08:49:18',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (210,NULL,1,'Subject for Meeting','2023-07-12 01:18:01',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (211,NULL,9,'Subject for Tell a Friend','2023-01-10 06:44:41',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (212,NULL,1,'Subject for Meeting','2023-08-18 07:17:26',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (213,NULL,1,'Subject for Meeting','2023-01-28 11:50:59',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (214,NULL,1,'Subject for Meeting','2022-12-30 21:42:19',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (215,NULL,1,'Subject for Meeting','2022-11-21 05:17:27',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (216,NULL,22,'Subject for Print/Merge Document','2022-12-22 15:31:23',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (217,NULL,22,'Subject for Print/Merge Document','2023-03-11 10:13:10',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (218,NULL,22,'Subject for Print/Merge Document','2023-07-20 14:29:46',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (219,NULL,1,'Subject for Meeting','2023-09-19 14:45:34',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (220,NULL,9,'Subject for Tell a Friend','2023-01-11 23:35:40',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (221,NULL,22,'Subject for Print/Merge Document','2023-03-01 03:26:42',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (222,NULL,1,'Subject for Meeting','2023-05-20 13:41:34',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (223,NULL,22,'Subject for Print/Merge Document','2023-02-14 16:33:38',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (224,NULL,9,'Subject for Tell a Friend','2023-04-04 21:04:58',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (225,NULL,22,'Subject for Print/Merge Document','2023-06-09 01:49:51',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (226,NULL,9,'Subject for Tell a Friend','2022-11-14 09:42:01',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (227,NULL,2,'Subject for Phone Call','2023-04-11 00:14:05',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (228,NULL,1,'Subject for Meeting','2023-01-07 22:36:55',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (229,NULL,2,'Subject for Phone Call','2023-07-29 21:15:28',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (230,NULL,56,'Subject for Interview','2023-04-19 06:54:25',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (231,NULL,56,'Subject for Interview','2023-01-15 10:26:33',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (232,NULL,22,'Subject for Print/Merge Document','2023-09-29 18:45:20',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (233,NULL,22,'Subject for Print/Merge Document','2022-10-20 12:16:06',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (234,NULL,1,'Subject for Meeting','2022-10-17 00:22:17',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (235,NULL,56,'Subject for Interview','2023-05-08 17:32:08',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (236,NULL,22,'Subject for Print/Merge Document','2022-11-05 00:48:57',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (237,NULL,1,'Subject for Meeting','2022-10-30 16:57:56',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (238,NULL,9,'Subject for Tell a Friend','2023-08-18 00:01:10',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (239,NULL,56,'Subject for Interview','2023-09-23 08:23:55',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (240,NULL,9,'Subject for Tell a Friend','2023-09-09 15:04:53',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (241,NULL,9,'Subject for Tell a Friend','2023-08-10 10:29:16',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (242,NULL,9,'Subject for Tell a Friend','2023-06-03 16:43:00',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (243,NULL,56,'Subject for Interview','2023-05-24 03:12:48',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (244,NULL,1,'Subject for Meeting','2023-08-29 09:08:23',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (245,NULL,1,'Subject for Meeting','2023-03-17 03:44:42',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (246,NULL,9,'Subject for Tell a Friend','2023-05-30 08:24:04',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (247,NULL,56,'Subject for Interview','2023-03-11 14:57:03',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (248,NULL,1,'Subject for Meeting','2023-08-23 14:34:31',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (249,NULL,56,'Subject for Interview','2023-05-20 18:36:48',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (250,NULL,1,'Subject for Meeting','2022-12-15 20:59:01',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (251,NULL,1,'Subject for Meeting','2023-07-11 13:59:24',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (252,NULL,2,'Subject for Phone Call','2023-09-13 16:52:05',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (253,NULL,9,'Subject for Tell a Friend','2023-10-06 06:15:52',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (254,NULL,2,'Subject for Phone Call','2023-03-26 15:09:41',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (255,NULL,22,'Subject for Print/Merge Document','2023-04-29 20:07:47',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (256,NULL,22,'Subject for Print/Merge Document','2023-04-13 15:32:29',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (257,NULL,2,'Subject for Phone Call','2023-10-05 15:04:49',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (258,NULL,9,'Subject for Tell a Friend','2022-10-13 23:50:24',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (259,NULL,22,'Subject for Print/Merge Document','2022-10-12 13:01:11',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (260,NULL,9,'Subject for Tell a Friend','2023-09-05 19:37:36',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (261,NULL,2,'Subject for Phone Call','2023-06-17 02:25:39',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (262,NULL,1,'Subject for Meeting','2022-10-23 16:24:10',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (263,NULL,22,'Subject for Print/Merge Document','2023-07-05 07:47:59',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (264,NULL,9,'Subject for Tell a Friend','2022-12-01 15:53:36',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (265,NULL,22,'Subject for Print/Merge Document','2023-07-15 03:55:14',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (266,NULL,1,'Subject for Meeting','2022-10-23 10:16:36',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (267,NULL,22,'Subject for Print/Merge Document','2023-10-06 13:55:49',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (268,NULL,2,'Subject for Phone Call','2023-06-28 03:05:28',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (269,NULL,2,'Subject for Phone Call','2023-02-12 07:57:30',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (270,NULL,22,'Subject for Print/Merge Document','2023-01-04 09:47:04',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (271,NULL,9,'Subject for Tell a Friend','2023-05-31 09:06:15',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (272,NULL,56,'Subject for Interview','2022-10-09 15:18:57',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (273,NULL,56,'Subject for Interview','2023-01-02 15:11:34',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (274,NULL,9,'Subject for Tell a Friend','2022-11-29 05:37:55',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (275,NULL,2,'Subject for Phone Call','2022-12-24 23:34:21',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (276,NULL,2,'Subject for Phone Call','2023-08-17 02:46:22',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:37','2023-10-07 01:51:37'), + (277,NULL,9,'Subject for Tell a Friend','2023-07-11 03:48:19',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (278,NULL,56,'Subject for Interview','2023-07-26 04:03:36',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (279,NULL,2,'Subject for Phone Call','2023-01-31 22:16:40',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (280,NULL,56,'Subject for Interview','2023-01-01 00:36:45',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (281,NULL,9,'Subject for Tell a Friend','2023-09-13 10:19:19',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (282,NULL,9,'Subject for Tell a Friend','2023-02-01 16:20:17',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (283,NULL,1,'Subject for Meeting','2022-12-17 16:05:26',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (284,NULL,22,'Subject for Print/Merge Document','2023-02-24 18:58:49',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (285,NULL,56,'Subject for Interview','2023-04-10 08:57:12',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (286,NULL,2,'Subject for Phone Call','2022-10-29 23:44:58',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (287,NULL,9,'Subject for Tell a Friend','2023-05-26 01:20:46',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (288,NULL,2,'Subject for Phone Call','2023-04-08 07:39:29',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (289,NULL,9,'Subject for Tell a Friend','2022-12-31 15:27:34',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (290,NULL,22,'Subject for Print/Merge Document','2023-03-24 11:57:02',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (291,NULL,22,'Subject for Print/Merge Document','2023-08-15 19:23:06',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (292,NULL,2,'Subject for Phone Call','2022-11-21 07:28:04',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (293,NULL,56,'Subject for Interview','2023-02-24 15:46:26',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (294,NULL,1,'Subject for Meeting','2022-12-15 16:09:14',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (295,NULL,22,'Subject for Print/Merge Document','2023-03-31 02:08:27',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (296,NULL,1,'Subject for Meeting','2022-10-26 01:37:09',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (297,NULL,9,'Subject for Tell a Friend','2023-08-06 04:52:41',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (298,NULL,56,'Subject for Interview','2023-08-22 11:51:47',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (299,NULL,2,'Subject for Phone Call','2022-11-30 05:11:11',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (300,NULL,2,'Subject for Phone Call','2023-09-21 17:55:42',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (301,NULL,1,'Subject for Meeting','2023-03-24 02:46:51',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (302,NULL,9,'Subject for Tell a Friend','2022-11-01 23:14:56',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (303,NULL,56,'Subject for Interview','2023-09-06 12:26:09',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (304,NULL,56,'Subject for Interview','2023-03-01 01:06:35',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (305,NULL,9,'Subject for Tell a Friend','2023-08-24 21:53:56',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (306,NULL,1,'Subject for Meeting','2023-03-13 07:22:57',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (307,NULL,56,'Subject for Interview','2023-08-29 06:57:14',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (308,NULL,22,'Subject for Print/Merge Document','2023-01-10 13:39:10',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (309,NULL,2,'Subject for Phone Call','2023-03-11 22:47:16',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (310,NULL,56,'Subject for Interview','2023-03-16 19:54:55',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (311,NULL,56,'Subject for Interview','2023-09-10 18:44:45',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (312,NULL,9,'Subject for Tell a Friend','2023-04-30 11:17:22',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (313,NULL,22,'Subject for Print/Merge Document','2023-05-16 09:24:59',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (314,NULL,22,'Subject for Print/Merge Document','2023-08-02 05:20:02',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (315,NULL,9,'Subject for Tell a Friend','2022-10-20 03:49:20',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (316,NULL,56,'Subject for Interview','2023-06-06 01:04:12',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (317,NULL,2,'Subject for Phone Call','2022-11-01 04:50:11',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (318,NULL,22,'Subject for Print/Merge Document','2022-10-17 15:08:35',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (319,NULL,2,'Subject for Phone Call','2023-09-17 23:48:01',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (320,NULL,9,'Subject for Tell a Friend','2023-04-05 09:42:27',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (321,NULL,56,'Subject for Interview','2023-03-03 19:55:24',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (322,NULL,9,'Subject for Tell a Friend','2023-05-10 19:20:03',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (323,NULL,2,'Subject for Phone Call','2023-01-31 18:23:17',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (324,NULL,9,'Subject for Tell a Friend','2023-09-19 02:32:05',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (325,NULL,56,'Subject for Interview','2023-05-16 21:52:01',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (326,NULL,56,'Subject for Interview','2023-07-19 03:20:20',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (327,NULL,56,'Subject for Interview','2023-08-21 23:06:32',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (328,NULL,22,'Subject for Print/Merge Document','2023-06-23 09:14:19',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (329,NULL,1,'Subject for Meeting','2023-04-15 18:21:51',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (330,NULL,1,'Subject for Meeting','2023-07-17 20:34:32',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (331,NULL,2,'Subject for Phone Call','2022-12-27 12:52:34',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (332,NULL,22,'Subject for Print/Merge Document','2022-10-28 17:28:25',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (333,NULL,1,'Subject for Meeting','2023-04-19 22:28:00',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (334,NULL,56,'Subject for Interview','2023-04-06 16:27:06',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (335,NULL,56,'Subject for Interview','2023-09-26 15:29:55',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (336,NULL,22,'Subject for Print/Merge Document','2023-10-02 01:11:36',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (337,NULL,56,'Subject for Interview','2022-10-15 21:25:24',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (338,NULL,1,'Subject for Meeting','2023-09-08 21:51:28',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (339,NULL,22,'Subject for Print/Merge Document','2023-06-30 18:19:38',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (340,NULL,9,'Subject for Tell a Friend','2023-06-24 10:38:54',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (341,NULL,22,'Subject for Print/Merge Document','2023-03-01 07:04:27',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (342,NULL,22,'Subject for Print/Merge Document','2022-10-27 16:53:38',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (343,NULL,1,'Subject for Meeting','2023-09-09 23:16:44',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (344,NULL,9,'Subject for Tell a Friend','2023-01-10 19:58:35',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (345,NULL,2,'Subject for Phone Call','2023-05-04 14:07:07',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (346,NULL,56,'Subject for Interview','2022-12-06 22:35:50',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (347,NULL,9,'Subject for Tell a Friend','2023-09-13 06:08:27',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (348,NULL,1,'Subject for Meeting','2023-07-29 21:36:31',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (349,NULL,1,'Subject for Meeting','2023-03-25 08:54:00',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (350,NULL,1,'Subject for Meeting','2022-12-12 07:41:52',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (351,NULL,1,'Subject for Meeting','2023-01-18 03:58:31',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (352,NULL,22,'Subject for Print/Merge Document','2023-09-10 09:28:39',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (353,NULL,56,'Subject for Interview','2022-10-28 02:06:44',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (354,NULL,2,'Subject for Phone Call','2023-03-26 20:22:05',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (355,NULL,56,'Subject for Interview','2023-06-23 01:36:46',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (356,NULL,22,'Subject for Print/Merge Document','2023-03-31 14:47:39',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (357,NULL,9,'Subject for Tell a Friend','2023-08-15 11:19:03',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (358,NULL,9,'Subject for Tell a Friend','2023-08-06 22:23:57',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (359,NULL,22,'Subject for Print/Merge Document','2022-12-13 01:47:54',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (360,NULL,2,'Subject for Phone Call','2023-02-26 10:44:48',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (361,NULL,2,'Subject for Phone Call','2023-01-24 04:48:18',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (362,NULL,1,'Subject for Meeting','2023-01-18 02:49:53',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (363,NULL,2,'Subject for Phone Call','2023-07-28 16:07:49',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (364,NULL,1,'Subject for Meeting','2023-04-12 02:18:47',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (365,NULL,22,'Subject for Print/Merge Document','2023-04-13 07:06:32',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (366,NULL,9,'Subject for Tell a Friend','2023-04-08 20:35:39',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (367,NULL,22,'Subject for Print/Merge Document','2022-10-29 23:48:04',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (368,NULL,9,'Subject for Tell a Friend','2022-11-26 03:34:38',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (369,NULL,9,'Subject for Tell a Friend','2023-05-21 08:46:51',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (370,NULL,9,'Subject for Tell a Friend','2023-03-09 05:15:03',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (371,NULL,56,'Subject for Interview','2022-11-18 18:25:08',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (372,NULL,56,'Subject for Interview','2023-04-25 02:58:26',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (373,NULL,1,'Subject for Meeting','2022-10-14 00:33:30',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (374,NULL,2,'Subject for Phone Call','2023-06-03 05:03:56',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (375,NULL,1,'Subject for Meeting','2022-11-21 10:32:40',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (376,NULL,9,'Subject for Tell a Friend','2023-05-22 10:36:29',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (377,NULL,22,'Subject for Print/Merge Document','2023-07-13 20:35:54',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (378,NULL,2,'Subject for Phone Call','2023-06-07 06:28:33',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (379,NULL,9,'Subject for Tell a Friend','2023-07-12 19:59:21',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (380,NULL,22,'Subject for Print/Merge Document','2023-01-31 12:58:41',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (381,NULL,2,'Subject for Phone Call','2023-08-11 06:17:15',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (382,NULL,9,'Subject for Tell a Friend','2023-06-07 03:35:29',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (383,NULL,56,'Subject for Interview','2023-06-17 11:05:11',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (384,NULL,56,'Subject for Interview','2023-09-19 04:32:59',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (385,NULL,56,'Subject for Interview','2023-09-22 01:29:45',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (386,NULL,56,'Subject for Interview','2023-03-12 09:47:10',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (387,NULL,1,'Subject for Meeting','2022-12-08 19:07:36',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (388,NULL,56,'Subject for Interview','2023-05-29 13:24:50',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (389,NULL,56,'Subject for Interview','2023-02-26 06:41:38',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (390,NULL,1,'Subject for Meeting','2023-07-26 21:55:30',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (391,NULL,56,'Subject for Interview','2023-10-02 14:03:16',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (392,NULL,2,'Subject for Phone Call','2023-05-11 07:46:19',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:38','2023-10-07 01:51:38'), + (393,NULL,22,'Subject for Print/Merge Document','2023-02-28 19:40:28',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (394,NULL,56,'Subject for Interview','2022-12-21 07:53:36',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (395,NULL,56,'Subject for Interview','2023-08-31 00:44:26',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (396,NULL,2,'Subject for Phone Call','2023-09-14 00:51:59',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (397,NULL,22,'Subject for Print/Merge Document','2023-05-03 09:32:53',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (398,NULL,22,'Subject for Print/Merge Document','2023-07-07 14:21:26',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (399,NULL,2,'Subject for Phone Call','2023-02-18 20:22:03',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (400,NULL,9,'Subject for Tell a Friend','2023-05-31 03:16:15',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (401,NULL,22,'Subject for Print/Merge Document','2023-06-01 02:25:28',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (402,NULL,1,'Subject for Meeting','2023-06-20 14:38:48',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (403,NULL,56,'Subject for Interview','2023-03-27 08:55:26',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (404,NULL,2,'Subject for Phone Call','2022-10-12 07:39:41',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (405,NULL,9,'Subject for Tell a Friend','2023-09-12 03:08:50',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (406,NULL,9,'Subject for Tell a Friend','2023-03-17 00:00:39',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (407,NULL,9,'Subject for Tell a Friend','2023-06-18 16:43:53',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (408,NULL,2,'Subject for Phone Call','2023-01-30 07:12:56',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (409,NULL,22,'Subject for Print/Merge Document','2023-05-13 13:10:07',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (410,NULL,56,'Subject for Interview','2022-10-17 21:09:50',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (411,NULL,1,'Subject for Meeting','2023-04-17 06:20:00',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (412,NULL,56,'Subject for Interview','2023-05-31 07:24:24',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (413,NULL,56,'Subject for Interview','2023-03-24 12:29:24',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (414,NULL,56,'Subject for Interview','2023-05-25 06:47:14',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (415,NULL,1,'Subject for Meeting','2023-07-10 23:56:58',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (416,NULL,9,'Subject for Tell a Friend','2023-02-28 03:48:10',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (417,NULL,22,'Subject for Print/Merge Document','2023-02-16 02:51:18',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (418,NULL,9,'Subject for Tell a Friend','2023-04-28 14:15:13',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (419,NULL,56,'Subject for Interview','2022-11-17 23:20:47',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (420,NULL,2,'Subject for Phone Call','2022-12-09 14:15:41',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (421,NULL,2,'Subject for Phone Call','2023-03-16 18:08:53',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (422,NULL,1,'Subject for Meeting','2023-09-16 15:39:07',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (423,NULL,1,'Subject for Meeting','2022-11-10 11:59:15',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (424,NULL,22,'Subject for Print/Merge Document','2023-07-25 09:36:15',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (425,NULL,9,'Subject for Tell a Friend','2023-03-17 05:16:55',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (426,NULL,1,'Subject for Meeting','2023-09-18 17:29:06',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (427,NULL,22,'Subject for Print/Merge Document','2023-09-07 12:12:40',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (428,NULL,56,'Subject for Interview','2023-08-16 11:14:30',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (429,NULL,56,'Subject for Interview','2022-11-25 05:37:01',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (430,NULL,22,'Subject for Print/Merge Document','2023-07-18 06:57:12',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (431,NULL,1,'Subject for Meeting','2023-04-14 21:49:10',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (432,NULL,22,'Subject for Print/Merge Document','2023-06-17 16:53:44',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (433,NULL,22,'Subject for Print/Merge Document','2023-03-21 06:42:21',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (434,NULL,9,'Subject for Tell a Friend','2023-05-28 22:47:37',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (435,NULL,9,'Subject for Tell a Friend','2023-06-13 07:17:49',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (436,NULL,9,'Subject for Tell a Friend','2023-05-23 22:34:59',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (437,NULL,9,'Subject for Tell a Friend','2023-05-08 03:13:56',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (438,NULL,9,'Subject for Tell a Friend','2023-07-04 00:37:04',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (439,NULL,1,'Subject for Meeting','2023-01-31 02:41:59',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (440,NULL,56,'Subject for Interview','2023-05-31 14:56:31',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (441,NULL,56,'Subject for Interview','2022-12-18 02:21:52',5,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (442,NULL,9,'Subject for Tell a Friend','2023-04-30 04:59:56',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (443,NULL,9,'Subject for Tell a Friend','2023-08-20 03:46:20',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (444,NULL,22,'Subject for Print/Merge Document','2023-03-09 13:26:12',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (445,NULL,22,'Subject for Print/Merge Document','2023-06-30 04:29:05',2,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (446,NULL,22,'Subject for Print/Merge Document','2023-05-05 11:16:32',1,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (447,NULL,1,'Subject for Meeting','2023-04-10 22:39:39',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (448,NULL,22,'Subject for Print/Merge Document','2022-10-23 23:52:52',4,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (449,NULL,9,'Subject for Tell a Friend','2023-07-12 15:21:33',3,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (450,NULL,1,'Subject for Meeting','2023-01-26 20:43:43',6,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (451,1,6,'$ 125 April Mailer 1','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (452,2,6,'$ 50 Online: Save the Penguins','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (453,3,6,'£ 25 April Mailer 1','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (454,4,6,'$ 50 Online: Save the Penguins','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (455,5,6,'$ 50 Online: Save the Penguins','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (456,6,6,'$ 500 April Mailer 1','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (457,7,6,'$ 1750 Online: Save the Penguins','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (458,8,6,'$ 50 Online: Save the Penguins','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (459,9,6,'$ 10 Online: Help CiviCRM','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (460,10,6,'$ 250 Online: Help CiviCRM','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (461,11,6,'Â¥ 500 ','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (462,12,6,'$ 50 Online: Save the Penguins','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (463,13,6,'$ 50 ','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (464,14,6,'$ 50 ','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (465,15,6,'$ 25 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (466,16,6,'$ 25 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (467,17,6,'$ 25 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (468,18,6,'$ 25 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (469,19,6,'$ 25 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (470,20,6,'$ 25 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (471,21,6,'$ 25 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (472,22,6,'$ 25 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (473,23,6,'$ 25 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (474,24,6,'$ 25 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (475,25,6,'$ 25 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (476,26,6,'$ 10 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (477,27,6,'$ 10 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (478,28,6,'$ 10 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (479,29,6,'$ 10 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (480,30,6,'$ 10 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (481,31,6,'€ 5 Recurring contribution','2023-12-07 01:51:39',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (482,1,7,'General','2023-10-07 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (483,2,7,'Student','2023-10-06 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (484,3,7,'General','2023-10-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (485,4,7,'Student','2023-10-04 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (486,5,7,'Student','2022-10-03 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (487,6,7,'Student','2023-10-02 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (488,7,7,'General','2023-10-01 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (489,8,7,'Student','2023-09-30 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (490,9,7,'General','2023-09-29 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (491,10,7,'General','2021-07-27 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (492,11,7,'Lifetime','2023-09-27 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (493,12,7,'Student','2023-09-26 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (494,13,7,'General','2023-09-25 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (495,14,7,'Student','2023-09-24 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (496,15,7,'General','2021-06-17 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (497,16,7,'Student','2023-09-22 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (498,17,7,'General','2023-09-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (499,18,7,'Student','2023-09-20 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (500,19,7,'General','2023-09-19 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (501,20,7,'General','2021-05-08 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (502,21,7,'General','2023-09-17 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (503,22,7,'Lifetime','2023-09-16 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (504,23,7,'General','2023-09-15 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (505,24,7,'Student','2023-09-14 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (506,25,7,'General','2021-03-29 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (507,26,7,'Student','2023-09-12 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (508,27,7,'General','2023-09-11 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (509,28,7,'Student','2023-09-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (510,29,7,'General','2023-09-09 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (511,30,7,'Student','2022-09-08 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (512,32,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (513,33,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (514,34,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (515,35,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (516,36,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (517,37,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (518,38,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (519,39,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (520,40,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (521,41,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (522,42,6,'$ 1200.00 - Lifetime Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (523,43,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (524,44,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (525,45,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (526,46,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (527,47,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (528,48,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (529,49,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (530,50,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (531,51,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (532,52,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (533,53,6,'$ 1200.00 - Lifetime Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (534,54,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (535,55,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (536,56,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (537,57,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (538,58,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (539,59,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (540,60,6,'$ 100.00 - General Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (541,61,6,'$ 50.00 - Student Membership: Offline signup','2023-10-07 01:51:39',NULL,NULL,NULL,NULL,'Membership Payment',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:39','2023-10-07 01:51:39'), + (543,1,5,'NULL','2009-01-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (544,2,5,'NULL','2008-05-07 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (545,3,5,'NULL','2008-05-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (546,4,5,'NULL','2008-10-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (547,5,5,'NULL','2008-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (548,6,5,'NULL','2008-03-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (549,7,5,'NULL','2009-07-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (550,8,5,'NULL','2009-03-07 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (551,9,5,'NULL','2008-02-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (552,10,5,'NULL','2008-02-01 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (553,11,5,'NULL','2009-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (554,12,5,'NULL','2009-03-06 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (555,13,5,'NULL','2008-06-04 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (556,14,5,'NULL','2008-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (557,15,5,'NULL','2008-07-04 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (558,16,5,'NULL','2009-01-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (559,17,5,'NULL','2008-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (560,18,5,'NULL','2009-03-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (561,19,5,'NULL','2008-10-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (562,20,5,'NULL','2009-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (563,21,5,'NULL','2008-03-25 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (564,22,5,'NULL','2009-10-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (565,23,5,'NULL','2008-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (566,24,5,'NULL','2008-03-11 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (567,25,5,'NULL','2008-04-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (568,26,5,'NULL','2009-01-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (569,27,5,'NULL','2008-05-07 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (570,28,5,'NULL','2009-12-12 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (571,29,5,'NULL','2009-12-13 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (572,30,5,'NULL','2009-12-14 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (573,31,5,'NULL','2009-12-15 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (574,32,5,'NULL','2009-07-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (575,33,5,'NULL','2009-03-07 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (576,34,5,'NULL','2009-12-15 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (577,35,5,'NULL','2009-12-13 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (578,36,5,'NULL','2009-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (579,37,5,'NULL','2009-03-06 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (580,38,5,'NULL','2009-12-13 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (581,39,5,'NULL','2008-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (582,40,5,'NULL','2009-12-14 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (583,41,5,'NULL','2009-01-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (584,42,5,'NULL','2009-12-15 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (585,43,5,'NULL','2009-03-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (586,44,5,'NULL','2009-12-13 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (587,45,5,'NULL','2009-01-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (588,46,5,'NULL','2009-12-13 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (589,47,5,'NULL','2009-10-21 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (590,48,5,'NULL','2009-12-10 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (591,49,5,'NULL','2009-03-11 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (592,50,5,'NULL','2009-04-05 00:00:00',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (593,63,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (594,64,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (595,65,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (596,66,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (597,67,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (598,68,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (599,69,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (600,70,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (601,71,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (602,72,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (603,73,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (604,74,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (605,75,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (606,76,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (607,77,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (608,78,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (609,79,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (610,80,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (611,81,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (612,82,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (613,83,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (614,84,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (615,85,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (616,86,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (617,87,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (618,88,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (619,89,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (620,90,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (621,91,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (622,92,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (623,93,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (624,94,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (625,95,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (626,96,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (627,97,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (628,98,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (629,99,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (630,100,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (631,101,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (632,102,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (633,103,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (634,104,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (635,105,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (636,106,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (637,107,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (638,108,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (639,109,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (640,110,6,'$ 800.00 - Rain-forest Cup Youth Soccer Tournament : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (641,111,6,'$ 50.00 - Summer Solstice Festival Day Concert : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'), + (642,112,6,'$ 50.00 - Fall Fundraiser Dinner : Offline registration','2023-10-07 01:51:40',NULL,NULL,NULL,NULL,'Participant',2,NULL,NULL,0,NULL,0,NULL,1,NULL,NULL,0,NULL,NULL,NULL,0,'2023-10-07 01:51:40','2023-10-07 01:51:40'); /*!40000 ALTER TABLE `civicrm_activity` ENABLE KEYS */; UNLOCK TABLES; @@ -733,959 +732,953 @@ UNLOCK TABLES; LOCK TABLES `civicrm_activity_contact` WRITE; /*!40000 ALTER TABLE `civicrm_activity_contact` DISABLE KEYS */; INSERT INTO `civicrm_activity_contact` (`id`, `activity_id`, `contact_id`, `record_type_id`) VALUES - (234,127,1,3), - (244,132,1,3), - (800,443,1,3), - (145,79,2,3), - (180,98,2,3), - (301,162,2,3), - (480,262,2,3), - (593,326,2,3), - (669,369,2,3), - (813,451,2,2), - (953,591,2,2), - (15,8,3,3), - (37,19,3,3), - (287,155,3,3), - (389,211,3,3), - (427,233,3,3), - (701,389,3,3), - (929,567,3,2), - (116,62,4,3), - (525,288,4,3), - (641,354,4,3), - (659,364,4,3), - (665,367,4,3), - (756,419,4,3), - (814,452,4,2), - (817,455,4,2), - (201,109,5,3), - (220,119,5,3), - (624,343,5,3), - (758,420,5,3), - (27,14,6,3), - (311,167,6,3), - (330,178,6,3), - (716,397,6,3), - (815,453,6,2), - (102,54,7,3), - (137,74,7,3), - (270,146,7,3), - (866,504,7,2), - (896,534,7,2), - (222,120,8,3), - (816,454,8,2), - (854,492,8,2), - (884,522,8,2), - (84,43,9,3), - (365,198,9,3), - (377,205,9,3), - (442,241,9,3), - (933,571,9,2), - (315,169,10,3), - (399,217,10,3), - (405,220,10,3), - (411,224,10,3), - (488,268,10,3), - (673,371,10,3), - (774,428,10,3), - (295,159,11,3), - (440,240,11,3), - (474,259,11,3), - (496,272,11,3), - (776,429,11,3), - (844,482,11,2), - (874,512,11,2), - (946,584,11,2), - (448,245,13,3), - (768,425,13,3), - (44,23,14,3), - (214,116,14,3), - (724,402,14,3), - (732,406,14,3), - (54,28,15,3), - (251,136,15,3), - (328,177,15,3), - (805,446,15,3), - (860,498,15,2), - (890,528,15,2), - (95,50,16,3), - (226,122,16,3), - (818,456,16,2), - (847,485,16,2), - (877,515,16,2), - (195,106,17,3), - (560,307,17,3), - (632,348,17,3), - (746,414,17,3), - (360,195,18,3), - (379,206,18,3), - (764,423,18,3), - (62,32,19,3), - (274,148,19,3), - (556,305,19,3), - (778,430,19,3), - (819,457,19,2), - (317,170,20,3), - (476,260,20,3), - (185,101,21,3), - (240,130,21,3), - (694,385,22,3), - (485,266,23,3), - (522,286,23,3), - (543,298,23,3), - (356,193,24,3), - (156,85,25,3), - (246,133,25,3), - (385,209,25,3), - (456,249,25,3), - (505,277,25,3), - (563,309,25,3), - (567,312,25,3), - (696,386,25,3), - (736,408,25,3), - (766,424,25,3), - (13,7,26,3), - (578,318,26,3), - (661,365,26,3), - (760,421,26,3), - (780,431,26,3), - (862,500,26,2), - (892,530,26,2), - (498,273,27,3), - (547,300,27,3), - (589,324,27,3), - (812,450,27,3), - (285,154,28,3), - (293,158,28,3), - (299,161,28,3), - (713,395,28,3), - (46,24,29,3), - (131,71,29,3), - (160,87,29,3), - (383,208,29,3), - (621,341,29,3), - (734,407,29,3), - (917,555,29,2), - (93,49,30,3), - (100,53,30,3), - (168,91,30,3), - (238,129,30,3), - (552,303,30,3), - (33,17,31,3), - (52,27,31,3), - (210,114,31,3), - (303,163,31,3), - (35,18,32,3), - (322,173,32,3), - (647,357,32,3), - (825,463,32,2), - (826,464,32,2), - (66,34,33,3), - (452,247,33,3), - (845,483,33,2), - (875,513,33,2), - (242,131,34,3), - (822,460,34,2), - (110,59,35,3), - (176,96,35,3), - (617,339,35,3), - (653,360,35,3), - (1,1,36,2), - (3,2,36,2), - (5,3,36,2), - (7,4,36,2), - (9,5,36,2), - (11,6,36,2), - (12,7,36,2), - (14,8,36,2), - (16,9,36,2), - (18,10,36,2), - (20,11,36,2), - (22,12,36,2), - (24,13,36,2), - (26,14,36,2), - (28,15,36,2), - (30,16,36,2), - (32,17,36,2), - (34,18,36,2), - (36,19,36,2), - (38,20,36,2), - (40,21,36,2), - (41,22,36,2), - (43,23,36,2), - (45,24,36,2), - (47,25,36,2), - (49,26,36,2), - (51,27,36,2), - (53,28,36,2), - (55,29,36,2), - (57,30,36,2), - (59,31,36,2), - (61,32,36,2), - (63,33,36,2), - (65,34,36,2), - (67,35,36,2), - (69,36,36,2), - (71,37,36,2), - (73,38,36,2), - (75,39,36,2), - (77,40,36,2), - (79,41,36,2), - (81,42,36,2), - (83,43,36,2), - (85,44,36,2), - (87,45,36,2), - (88,46,36,2), - (89,47,36,2), - (90,48,36,2), - (92,49,36,2), - (94,50,36,2), - (96,51,36,2), - (97,52,36,2), - (99,53,36,2), - (101,54,36,2), - (103,55,36,2), - (105,56,36,2), - (106,57,36,2), - (108,58,36,2), - (109,59,36,2), - (111,60,36,2), - (113,61,36,2), - (115,62,36,2), - (117,63,36,2), - (119,64,36,2), - (121,65,36,2), - (123,66,36,2), - (124,67,36,2), - (125,68,36,2), - (126,69,36,2), - (128,70,36,2), - (130,71,36,2), - (132,72,36,2), - (134,73,36,2), - (135,73,36,3), - (136,74,36,2), - (138,75,36,2), - (139,76,36,2), - (141,77,36,2), - (143,78,36,2), - (144,79,36,2), - (146,80,36,2), - (147,81,36,2), - (149,82,36,2), - (151,83,36,2), - (153,84,36,2), - (155,85,36,2), - (157,86,36,2), - (159,87,36,2), - (161,88,36,2), - (163,89,36,2), - (165,90,36,2), - (167,91,36,2), - (169,92,36,2), - (171,93,36,2), - (173,94,36,2), - (174,95,36,2), - (175,96,36,2), - (177,97,36,2), - (179,98,36,2), - (181,99,36,2), - (183,100,36,2), - (184,101,36,2), - (186,102,36,2), - (188,103,36,2), - (190,104,36,2), - (192,105,36,2), - (194,106,36,2), - (196,107,36,2), - (198,108,36,2), - (200,109,36,2), - (202,110,36,2), - (204,111,36,2), - (206,112,36,2), - (208,113,36,2), - (209,114,36,2), - (211,115,36,2), - (213,116,36,2), - (215,117,36,2), - (217,118,36,2), - (219,119,36,2), - (221,120,36,2), - (223,121,36,2), - (225,122,36,2), - (227,123,36,2), - (228,124,36,2), - (229,125,36,2), - (231,126,36,2), - (233,127,36,2), - (235,128,36,2), - (237,129,36,2), - (239,130,36,2), - (241,131,36,2), - (243,132,36,2), - (245,133,36,2), - (247,134,36,2), - (248,135,36,2), - (250,136,36,2), - (252,137,36,2), - (254,138,36,2), - (256,139,36,2), - (258,140,36,2), - (259,141,36,2), - (261,142,36,2), - (263,143,36,2), - (265,144,36,2), - (267,145,36,2), - (269,146,36,2), - (271,147,36,2), - (273,148,36,2), - (275,149,36,2), - (277,150,36,2), - (434,237,36,3), - (450,246,36,3), - (516,283,36,3), - (855,493,36,2), - (885,523,36,2), - (148,81,37,3), - (255,138,37,3), - (338,183,37,3), - (639,353,37,3), - (857,495,37,2), - (887,525,37,2), - (950,588,37,2), - (31,16,38,3), - (373,203,38,3), - (637,352,38,3), - (926,564,38,2), - (403,219,39,3), - (595,327,39,3), - (276,149,40,3), - (465,254,40,3), - (698,387,40,3), - (711,394,40,3), - (798,442,40,3), - (142,77,41,3), - (197,107,41,3), - (391,212,41,3), - (462,252,41,3), - (656,362,41,3), - (216,117,42,3), - (272,147,42,3), - (533,293,42,3), - (678,374,42,3), - (864,502,42,2), - (894,532,42,2), - (951,589,42,2), - (510,280,43,3), - (692,384,43,3), - (824,462,43,2), - (918,556,43,2), - (58,30,44,3), - (344,186,44,3), - (490,269,44,3), - (688,382,44,3), - (726,403,44,3), - (856,494,44,2), - (886,524,44,2), - (253,137,45,3), - (262,142,45,3), - (353,191,45,3), - (520,285,45,3), - (539,296,45,3), - (548,301,45,2), - (549,302,45,2), - (551,303,45,2), - (553,304,45,2), - (555,305,45,2), - (557,306,45,2), - (559,307,45,2), - (561,308,45,2), - (562,309,45,2), - (564,310,45,2), - (565,311,45,2), - (566,312,45,2), - (568,313,45,2), - (570,314,45,2), - (572,315,45,2), - (574,316,45,2), - (575,317,45,2), - (577,318,45,2), - (579,319,45,2), - (581,320,45,2), - (582,321,45,2), - (584,322,45,2), - (586,323,45,2), - (588,324,45,2), - (590,325,45,2), - (592,326,45,2), - (594,327,45,2), - (596,328,45,2), - (598,329,45,2), - (600,330,45,2), - (602,331,45,2), - (603,332,45,2), - (605,333,45,2), - (607,334,45,2), - (609,335,45,2), - (611,336,45,2), - (613,337,45,2), - (615,338,45,2), - (616,339,45,2), - (618,340,45,2), - (620,341,45,2), - (622,342,45,2), - (623,343,45,2), - (625,344,45,2), - (626,345,45,2), - (628,346,45,2), - (630,347,45,2), - (631,348,45,2), - (633,349,45,2), - (634,350,45,2), - (635,351,45,2), - (636,352,45,2), - (638,353,45,2), - (640,354,45,2), - (642,355,45,2), - (644,356,45,2), - (646,357,45,2), - (648,358,45,2), - (650,359,45,2), - (652,360,45,2), - (654,361,45,2), - (655,362,45,2), - (657,363,45,2), - (658,364,45,2), - (660,365,45,2), - (662,366,45,2), - (664,367,45,2), - (666,368,45,2), - (668,369,45,2), - (670,370,45,2), - (672,371,45,2), - (674,372,45,2), - (675,373,45,2), - (677,374,45,2), - (679,375,45,2), - (680,376,45,2), - (681,377,45,2), - (682,378,45,2), - (683,379,45,2), - (684,380,45,2), - (685,381,45,2), - (687,382,45,2), - (689,383,45,2), - (691,384,45,2), - (693,385,45,2), - (695,386,45,2), - (697,387,45,2), - (699,388,45,2), - (700,389,45,2), - (702,390,45,2), - (704,391,45,2), - (706,392,45,2), - (708,393,45,2), - (710,394,45,2), - (712,395,45,2), - (714,396,45,2), - (715,397,45,2), - (717,398,45,2), - (718,399,45,2), - (720,400,45,2), - (721,401,45,2), - (723,402,45,2), - (725,403,45,2), - (727,404,45,2), - (729,405,45,2), - (731,406,45,2), - (733,407,45,2), - (735,408,45,2), - (737,409,45,2), - (738,410,45,2), - (740,411,45,2), - (742,412,45,2), - (743,413,45,2), - (745,414,45,2), - (747,415,45,2), - (749,416,45,2), - (751,417,45,2), - (753,418,45,2), - (755,419,45,2), - (757,420,45,2), - (759,421,45,2), - (761,422,45,2), - (763,423,45,2), - (765,424,45,2), - (767,425,45,2), - (769,426,45,2), - (771,427,45,2), - (773,428,45,2), - (775,429,45,2), - (777,430,45,2), - (779,431,45,2), - (781,432,45,2), - (783,433,45,2), - (785,434,45,2), - (787,435,45,2), - (789,436,45,2), - (791,437,45,2), - (792,438,45,2), - (793,439,45,2), - (794,440,45,2), - (796,441,45,2), - (797,442,45,2), - (799,443,45,2), - (801,444,45,2), - (803,445,45,2), - (804,446,45,2), - (806,447,45,2), - (807,448,45,2), - (809,449,45,2), - (811,450,45,2), - (189,103,46,3), - (387,210,46,3), - (651,359,46,3), - (42,22,47,3), - (98,52,47,3), - (363,197,47,3), - (395,214,47,3), - (744,413,47,3), - (915,553,47,2), - (91,48,48,3), - (576,317,48,3), - (325,175,49,3), - (429,234,49,3), - (707,392,49,3), - (597,328,50,3), - (850,488,50,2), - (880,518,50,2), - (948,586,50,2), - (140,76,51,3), - (150,82,51,3), - (203,110,51,3), - (342,185,51,3), - (415,226,51,3), - (469,256,51,3), - (501,275,51,3), - (367,199,52,3), - (627,345,52,3), - (762,422,52,3), - (782,432,52,3), - (569,313,53,3), - (676,373,53,3), - (4,2,54,3), - (471,257,54,3), - (571,314,54,3), - (56,29,55,3), - (266,144,55,3), - (408,222,55,3), - (478,261,55,3), - (218,118,56,3), - (492,270,56,3), - (518,284,56,3), - (535,294,56,3), - (558,306,56,3), - (913,551,56,2), - (122,65,57,3), - (260,141,57,3), - (187,102,59,3), - (418,228,59,3), - (827,465,59,2), - (828,466,59,2), - (829,467,59,2), - (830,468,59,2), - (831,469,59,2), - (832,470,59,2), - (833,471,59,2), - (834,472,59,2), - (835,473,59,2), - (836,474,59,2), - (837,475,59,2), - (23,12,60,3), - (19,10,61,3), - (86,44,61,3), - (199,108,62,3), - (268,145,62,3), - (772,427,62,3), - (802,444,62,3), - (129,70,63,3), - (162,88,63,3), - (289,156,63,3), - (604,332,63,3), - (722,401,63,3), - (741,411,63,3), - (922,560,63,2), - (114,61,64,3), - (164,89,64,3), - (170,92,64,3), - (224,121,64,3), - (236,128,64,3), - (619,340,64,3), - (29,15,65,3), - (358,194,65,3), - (104,55,66,3), - (107,57,66,3), - (739,410,66,3), - (754,418,66,3), - (10,5,67,3), - (313,168,67,3), - (643,355,67,3), - (808,448,67,3), - (118,63,68,3), - (152,83,68,3), - (436,238,68,3), - (444,242,68,3), - (686,381,68,3), - (952,590,68,2), - (172,93,69,3), - (232,126,69,3), - (297,160,69,3), - (861,499,69,2), - (891,529,69,2), - (178,97,70,3), - (291,157,70,3), - (503,276,70,3), - (823,461,71,2), - (2,1,72,3), - (60,31,72,3), - (705,391,72,3), - (21,11,73,3), - (230,125,73,3), - (537,295,73,3), - (550,302,73,3), - (580,319,73,3), - (629,346,73,3), - (709,393,73,3), - (748,415,73,3), - (17,9,74,3), - (351,190,74,3), - (795,440,74,3), - (280,151,75,3), - (514,282,75,3), - (846,484,75,2), - (876,514,75,2), - (74,38,76,3), - (166,90,76,3), - (601,330,76,3), - (608,334,76,3), - (927,565,76,2), - (425,232,77,3), - (39,20,78,3), - (64,33,78,3), - (193,105,78,3), - (645,356,78,3), - (649,358,78,3), - (750,416,78,3), - (786,434,78,3), - (70,36,79,3), - (212,115,79,3), - (458,250,79,3), - (467,255,79,3), - (703,390,79,3), - (50,26,80,3), - (599,329,80,3), - (728,404,80,3), - (770,426,80,3), - (454,248,81,3), - (127,69,82,3), - (154,84,82,3), - (182,99,82,3), - (334,181,82,3), - (371,202,82,3), - (573,315,82,3), - (667,368,82,3), - (790,436,82,3), - (810,449,82,3), - (820,458,82,2), - (72,37,83,3), - (76,39,83,3), - (120,64,83,3), - (340,184,83,3), - (421,230,83,3), - (545,299,83,3), - (719,399,83,3), - (78,40,84,3), - (207,112,84,3), - (393,213,84,3), - (191,104,85,3), - (531,292,85,3), - (591,325,85,3), - (8,4,86,3), - (80,41,86,3), - (133,72,86,3), - (413,225,86,3), - (585,322,86,3), - (610,335,86,3), - (614,337,86,3), - (663,366,86,3), - (730,405,86,3), - (257,139,87,3), - (583,321,87,3), - (784,433,87,3), - (205,111,88,3), - (309,166,88,3), - (851,489,88,2), - (881,519,88,2), - (910,548,88,2), - (401,218,89,3), - (25,13,90,3), - (690,383,90,3), - (939,577,90,2), - (112,60,91,3), - (671,370,91,3), - (924,562,91,2), - (460,251,92,3), - (541,297,92,3), - (821,459,92,2), - (923,561,92,2), - (48,25,93,3), - (158,86,93,3), - (508,279,93,3), - (278,150,94,3), - (336,182,94,3), - (375,204,94,3), - (381,207,94,3), - (432,236,94,3), - (788,435,94,3), - (934,572,94,2), - (612,336,95,3), - (512,281,96,3), - (554,304,96,3), - (587,323,97,3), - (264,143,98,3), - (282,152,98,3), - (346,187,98,3), - (494,271,98,3), - (606,333,98,3), - (6,3,99,3), - (82,42,99,3), - (348,188,99,3), - (529,291,99,3), - (838,476,99,2), - (839,477,99,2), - (840,478,99,2), - (841,479,99,2), - (842,480,99,2), - (249,135,100,3), - (305,164,100,3), - (307,165,100,3), - (320,172,100,3), - (438,239,100,3), - (752,417,100,3), - (68,35,101,3), - (423,231,101,3), - (905,543,102,2), - (843,481,103,2), - (944,582,104,2), - (848,486,107,2), - (878,516,107,2), - (947,585,115,2), - (859,497,117,2), - (889,527,117,2), - (908,546,119,2), - (871,509,121,2), - (901,539,121,2), - (909,547,123,2), - (937,575,127,2), - (932,570,128,2), - (943,581,131,2), - (925,563,132,2), - (916,554,133,2), - (912,550,137,2), - (869,507,140,2), - (899,537,140,2), - (849,487,141,2), - (879,517,141,2), - (921,559,142,2), - (919,557,145,2), - (911,549,149,2), - (865,503,150,2), - (895,533,150,2), - (942,580,151,2), - (914,552,153,2), - (852,490,154,2), - (882,520,154,2), - (940,578,159,2), - (945,583,161,2), - (872,510,162,2), - (902,540,162,2), - (870,508,163,2), - (900,538,163,2), - (930,568,167,2), - (931,569,170,2), - (853,491,174,2), - (883,521,174,2), - (928,566,174,2), - (279,151,176,2), - (281,152,176,2), - (283,153,176,2), - (284,154,176,2), - (286,155,176,2), - (288,156,176,2), - (290,157,176,2), - (292,158,176,2), - (294,159,176,2), - (296,160,176,2), - (298,161,176,2), - (300,162,176,2), - (302,163,176,2), - (304,164,176,2), - (306,165,176,2), - (308,166,176,2), - (310,167,176,2), - (312,168,176,2), - (314,169,176,2), - (316,170,176,2), - (318,171,176,2), - (319,172,176,2), - (321,173,176,2), - (323,174,176,2), - (324,175,176,2), - (326,176,176,2), - (327,177,176,2), - (329,178,176,2), - (331,179,176,2), - (332,180,176,2), - (333,181,176,2), - (335,182,176,2), - (337,183,176,2), - (339,184,176,2), - (341,185,176,2), - (343,186,176,2), - (345,187,176,2), - (347,188,176,2), - (349,189,176,2), - (350,190,176,2), - (352,191,176,2), - (354,192,176,2), - (355,193,176,2), - (357,194,176,2), - (359,195,176,2), - (361,196,176,2), - (362,197,176,2), - (364,198,176,2), - (366,199,176,2), - (368,200,176,2), - (369,201,176,2), - (370,202,176,2), - (372,203,176,2), - (374,204,176,2), - (376,205,176,2), - (378,206,176,2), - (380,207,176,2), - (382,208,176,2), - (384,209,176,2), - (386,210,176,2), - (388,211,176,2), - (390,212,176,2), - (392,213,176,2), - (394,214,176,2), - (396,215,176,2), - (397,216,176,2), - (398,217,176,2), - (400,218,176,2), - (402,219,176,2), - (404,220,176,2), - (406,221,176,2), - (407,222,176,2), - (409,223,176,2), - (410,224,176,2), - (412,225,176,2), - (414,226,176,2), - (416,227,176,2), - (417,228,176,2), - (419,229,176,2), - (420,230,176,2), - (422,231,176,2), - (424,232,176,2), - (426,233,176,2), - (428,234,176,2), - (430,235,176,2), - (431,236,176,2), - (433,237,176,2), - (435,238,176,2), - (437,239,176,2), - (439,240,176,2), - (441,241,176,2), - (443,242,176,2), - (445,243,176,2), - (446,244,176,2), - (447,245,176,2), - (449,246,176,2), - (451,247,176,2), - (453,248,176,2), - (455,249,176,2), - (457,250,176,2), - (459,251,176,2), - (461,252,176,2), - (463,253,176,2), - (464,254,176,2), - (466,255,176,2), - (468,256,176,2), - (470,257,176,2), - (472,258,176,2), - (473,259,176,2), - (475,260,176,2), - (477,261,176,2), - (479,262,176,2), - (481,263,176,2), - (482,264,176,2), - (483,265,176,2), - (484,266,176,2), - (486,267,176,2), - (487,268,176,2), - (489,269,176,2), - (491,270,176,2), - (493,271,176,2), - (495,272,176,2), - (497,273,176,2), - (499,274,176,2), - (500,275,176,2), - (502,276,176,2), - (504,277,176,2), - (506,278,176,2), - (507,279,176,2), - (509,280,176,2), - (511,281,176,2), - (513,282,176,2), - (515,283,176,2), - (517,284,176,2), - (519,285,176,2), - (521,286,176,2), - (523,287,176,2), - (524,288,176,2), - (526,289,176,2), - (527,290,176,2), - (528,291,176,2), - (530,292,176,2), - (532,293,176,2), - (534,294,176,2), - (536,295,176,2), - (538,296,176,2), - (540,297,176,2), - (542,298,176,2), - (544,299,176,2), - (546,300,176,2), - (938,576,177,2), - (936,574,178,2), - (906,544,181,2), - (907,545,184,2), - (868,506,186,2), - (898,536,186,2), - (935,573,186,2), - (954,592,193,2), - (920,558,194,2), - (941,579,195,2), - (863,501,196,2), - (893,531,196,2), - (858,496,197,2), - (888,526,197,2), - (867,505,198,2), - (897,535,198,2), - (949,587,199,2), - (873,511,202,2), - (903,541,202,2); + (97,54,1,3), + (241,134,1,3), + (274,152,1,3), + (916,560,1,2), + (128,72,2,3), + (203,113,2,3), + (239,133,2,3), + (445,248,2,3), + (637,355,2,3), + (678,378,2,3), + (729,406,2,3), + (807,451,2,2), + (252,140,3,3), + (294,163,3,3), + (642,358,3,3), + (689,384,3,3), + (757,421,3,3), + (796,443,3,3), + (401,224,4,3), + (582,324,4,3), + (727,405,4,3), + (808,452,4,2), + (811,455,4,2), + (152,85,5,3), + (420,235,5,3), + (640,357,5,3), + (398,222,6,3), + (647,361,6,3), + (746,415,6,3), + (809,453,6,2), + (659,368,7,3), + (936,580,7,2), + (591,329,8,3), + (605,337,8,3), + (759,422,8,3), + (810,454,8,2), + (116,66,9,3), + (332,185,9,3), + (365,203,9,3), + (607,338,9,3), + (630,351,9,3), + (65,37,10,3), + (262,146,10,3), + (373,207,10,3), + (538,300,10,3), + (933,577,10,2), + (552,307,11,3), + (1,1,12,2), + (3,2,12,2), + (5,3,12,2), + (7,4,12,2), + (9,5,12,2), + (11,6,12,2), + (12,7,12,2), + (13,8,12,2), + (15,9,12,2), + (17,10,12,2), + (19,11,12,2), + (20,12,12,2), + (21,13,12,2), + (23,14,12,2), + (25,15,12,2), + (27,16,12,2), + (28,17,12,2), + (30,18,12,2), + (32,19,12,2), + (34,20,12,2), + (35,21,12,2), + (37,22,12,2), + (38,23,12,2), + (40,24,12,2), + (42,25,12,2), + (44,26,12,2), + (46,27,12,2), + (48,28,12,2), + (50,29,12,2), + (52,30,12,2), + (54,31,12,2), + (55,32,12,2), + (57,33,12,2), + (58,34,12,2), + (60,35,12,2), + (62,36,12,2), + (64,37,12,2), + (66,38,12,2), + (68,39,12,2), + (70,40,12,2), + (71,41,12,2), + (73,42,12,2), + (75,43,12,2), + (77,44,12,2), + (79,45,12,2), + (81,46,12,2), + (83,47,12,2), + (85,48,12,2), + (87,49,12,2), + (88,50,12,2), + (90,51,12,2), + (92,52,12,2), + (94,53,12,2), + (96,54,12,2), + (98,55,12,2), + (100,56,12,2), + (101,57,12,2), + (102,58,12,2), + (103,59,12,2), + (105,60,12,2), + (107,61,12,2), + (108,62,12,2), + (109,63,12,2), + (111,64,12,2), + (113,65,12,2), + (115,66,12,2), + (117,67,12,2), + (119,68,12,2), + (121,69,12,2), + (123,70,12,2), + (125,71,12,2), + (127,72,12,2), + (129,73,12,2), + (131,74,12,2), + (133,75,12,2), + (135,76,12,2), + (136,77,12,2), + (137,78,12,2), + (139,79,12,2), + (141,80,12,2), + (143,81,12,2), + (145,82,12,2), + (147,83,12,2), + (149,84,12,2), + (151,85,12,2), + (153,86,12,2), + (155,87,12,2), + (157,88,12,2), + (158,89,12,2), + (159,90,12,2), + (161,91,12,2), + (163,92,12,2), + (165,93,12,2), + (166,94,12,2), + (168,95,12,2), + (170,96,12,2), + (172,97,12,2), + (174,98,12,2), + (175,99,12,2), + (177,100,12,2), + (179,101,12,2), + (181,102,12,2), + (182,103,12,2), + (184,104,12,2), + (186,105,12,2), + (188,106,12,2), + (190,107,12,2), + (192,108,12,2), + (194,109,12,2), + (196,110,12,2), + (198,111,12,2), + (200,112,12,2), + (202,113,12,2), + (204,114,12,2), + (206,115,12,2), + (208,116,12,2), + (210,117,12,2), + (212,118,12,2), + (214,119,12,2), + (215,120,12,2), + (216,121,12,2), + (218,122,12,2), + (220,123,12,2), + (222,124,12,2), + (224,125,12,2), + (225,126,12,2), + (226,127,12,2), + (228,128,12,2), + (230,129,12,2), + (232,130,12,2), + (234,131,12,2), + (236,132,12,2), + (238,133,12,2), + (240,134,12,2), + (242,135,12,2), + (243,136,12,2), + (245,137,12,2), + (247,138,12,2), + (249,139,12,2), + (251,140,12,2), + (253,141,12,2), + (255,142,12,2), + (256,143,12,2), + (257,144,12,2), + (259,145,12,2), + (261,146,12,2), + (263,147,12,2), + (265,148,12,2), + (267,149,12,2), + (269,150,12,2), + (508,283,12,3), + (211,117,13,3), + (780,435,13,3), + (911,555,13,2), + (233,130,14,3), + (742,413,14,3), + (943,587,14,2), + (104,59,15,3), + (316,175,15,3), + (423,237,15,3), + (527,294,15,3), + (649,362,15,3), + (685,382,15,3), + (748,416,15,3), + (863,507,15,2), + (868,537,15,2), + (138,78,16,3), + (154,86,16,3), + (574,320,16,3), + (812,456,16,2), + (61,35,17,3), + (412,230,17,3), + (740,412,17,3), + (948,592,17,2), + (10,5,18,3), + (134,75,18,3), + (546,304,18,3), + (565,315,18,3), + (624,348,18,3), + (846,490,18,2), + (869,520,18,2), + (45,26,19,3), + (63,36,19,3), + (306,170,19,3), + (517,288,19,3), + (813,457,19,2), + (346,193,20,3), + (588,327,20,3), + (723,403,20,3), + (792,441,20,3), + (36,21,21,3), + (408,228,21,3), + (498,278,21,3), + (616,344,21,3), + (695,387,21,3), + (764,425,21,3), + (118,67,22,3), + (404,226,22,3), + (266,148,23,3), + (441,246,23,3), + (755,420,23,3), + (848,492,23,2), + (870,522,23,2), + (8,4,24,3), + (167,94,24,3), + (31,18,25,3), + (326,182,25,3), + (336,187,25,3), + (494,276,25,3), + (534,298,25,3), + (786,438,25,3), + (22,13,26,3), + (51,29,26,3), + (130,73,26,3), + (246,137,26,3), + (330,184,26,3), + (431,241,26,3), + (502,280,26,3), + (523,292,26,3), + (544,303,26,3), + (626,349,26,3), + (126,71,27,3), + (308,171,27,3), + (367,204,27,3), + (378,210,27,3), + (697,388,27,3), + (784,437,27,3), + (945,589,27,2), + (290,161,28,3), + (342,191,28,3), + (344,192,28,3), + (602,335,28,3), + (114,65,29,3), + (178,100,29,3), + (189,106,29,3), + (268,149,29,3), + (371,206,29,3), + (427,239,29,3), + (470,262,29,3), + (909,553,29,2), + (49,28,30,3), + (388,215,30,3), + (406,227,30,3), + (451,251,30,3), + (699,389,30,3), + (782,436,30,3), + (806,450,30,3), + (867,511,30,2), + (871,541,30,2), + (93,52,31,3), + (340,190,31,3), + (540,301,31,3), + (525,293,32,3), + (819,463,32,2), + (820,464,32,2), + (843,487,32,2), + (872,517,32,2), + (904,548,32,2), + (6,3,33,3), + (209,116,33,3), + (490,274,33,3), + (270,150,34,3), + (693,386,34,3), + (816,460,34,2), + (479,268,36,3), + (513,286,36,3), + (671,374,36,3), + (683,381,36,3), + (862,506,36,2), + (873,536,36,2), + (511,285,37,3), + (859,503,37,2), + (874,533,37,2), + (901,545,37,2), + (197,110,38,3), + (231,129,38,3), + (433,242,38,3), + (673,375,38,3), + (733,408,38,3), + (39,23,39,3), + (91,51,39,3), + (463,258,39,3), + (567,316,39,3), + (584,325,39,3), + (418,234,40,3), + (14,8,41,3), + (29,17,41,3), + (74,42,41,3), + (146,82,41,3), + (176,99,41,3), + (280,156,41,3), + (288,160,41,3), + (201,112,42,3), + (496,277,42,3), + (593,330,42,3), + (324,181,43,3), + (382,212,43,3), + (620,346,43,3), + (771,429,43,3), + (818,462,43,2), + (69,39,44,3), + (86,48,44,3), + (303,168,44,3), + (410,229,44,3), + (569,317,44,3), + (618,345,44,3), + (633,353,44,3), + (769,428,44,3), + (254,141,45,3), + (357,199,45,3), + (361,201,45,3), + (106,60,46,3), + (162,91,46,3), + (310,172,46,3), + (429,240,46,3), + (753,419,47,3), + (59,34,48,3), + (457,254,48,3), + (667,372,48,3), + (95,53,49,3), + (380,211,49,3), + (578,322,49,3), + (16,9,50,3), + (47,27,50,3), + (645,360,50,3), + (929,573,50,2), + (665,371,52,3), + (122,69,53,3), + (164,92,53,3), + (425,238,53,3), + (905,549,53,2), + (132,74,54,3), + (447,249,54,3), + (449,250,54,3), + (610,340,54,3), + (687,383,54,3), + (913,557,54,2), + (160,90,55,3), + (221,123,55,3), + (353,197,55,3), + (703,391,55,3), + (851,495,55,2), + (875,525,55,2), + (112,64,56,3), + (506,282,56,3), + (18,10,57,3), + (187,105,57,3), + (286,159,57,3), + (595,331,57,3), + (710,395,57,3), + (169,95,58,3), + (297,165,58,3), + (359,200,58,3), + (548,305,58,3), + (708,394,58,3), + (788,439,58,3), + (519,289,59,3), + (675,376,59,3), + (691,385,59,3), + (821,465,59,2), + (822,466,59,2), + (823,467,59,2), + (824,468,59,2), + (825,469,59,2), + (826,470,59,2), + (827,471,59,2), + (828,472,59,2), + (829,473,59,2), + (830,474,59,2), + (831,475,59,2), + (193,108,60,3), + (492,275,60,3), + (515,287,60,3), + (468,261,61,3), + (555,309,61,3), + (919,563,61,2), + (72,41,62,3), + (84,47,62,3), + (229,128,62,3), + (264,147,62,3), + (328,183,62,3), + (376,209,62,3), + (453,252,62,3), + (561,312,62,3), + (738,411,62,3), + (926,570,63,2), + (124,70,64,3), + (156,87,64,3), + (248,138,64,3), + (622,347,64,3), + (680,379,64,3), + (918,562,64,2), + (144,81,65,3), + (183,103,65,3), + (301,167,65,3), + (349,195,65,3), + (576,321,65,3), + (600,334,65,3), + (614,343,65,3), + (766,426,65,3), + (205,114,66,3), + (369,205,66,3), + (804,449,66,3), + (4,2,67,3), + (150,84,67,3), + (292,162,67,3), + (393,219,67,3), + (718,400,67,3), + (314,174,68,3), + (33,19,69,3), + (223,124,69,3), + (455,253,69,3), + (840,484,69,2), + (876,514,69,2), + (930,574,69,2), + (716,399,70,3), + (774,431,70,3), + (355,198,71,3), + (635,354,71,3), + (817,461,71,2), + (24,14,72,3), + (43,25,72,3), + (120,68,72,3), + (312,173,72,3), + (476,266,72,3), + (26,15,73,3), + (89,50,73,3), + (110,63,73,3), + (148,83,73,3), + (282,157,73,3), + (384,213,73,3), + (481,269,73,3), + (669,373,73,3), + (180,101,74,3), + (191,107,74,3), + (731,407,74,3), + (530,296,75,3), + (651,363,75,3), + (661,369,75,3), + (744,414,75,3), + (484,271,76,3), + (56,32,77,3), + (76,43,77,3), + (173,97,77,3), + (237,132,78,3), + (244,136,78,3), + (947,591,78,2), + (414,231,79,3), + (559,311,79,3), + (751,418,79,3), + (914,558,79,2), + (443,247,80,3), + (504,281,80,3), + (705,392,80,3), + (712,396,80,3), + (258,144,81,3), + (363,202,81,3), + (500,279,81,3), + (761,423,81,3), + (790,440,81,3), + (860,504,81,2), + (877,534,81,2), + (921,565,81,2), + (814,458,82,2), + (536,299,83,3), + (778,434,83,3), + (80,45,84,3), + (185,104,84,3), + (271,151,84,2), + (273,152,84,2), + (275,153,84,2), + (276,154,84,2), + (277,155,84,2), + (279,156,84,2), + (281,157,84,2), + (283,158,84,2), + (285,159,84,2), + (287,160,84,2), + (289,161,84,2), + (291,162,84,2), + (293,163,84,2), + (295,164,84,2), + (296,165,84,2), + (298,166,84,2), + (300,167,84,2), + (302,168,84,2), + (304,169,84,2), + (305,170,84,2), + (307,171,84,2), + (309,172,84,2), + (311,173,84,2), + (313,174,84,2), + (315,175,84,2), + (317,176,84,2), + (318,177,84,2), + (319,178,84,2), + (320,179,84,2), + (321,180,84,2), + (323,181,84,2), + (325,182,84,2), + (327,183,84,2), + (329,184,84,2), + (331,185,84,2), + (333,186,84,2), + (335,187,84,2), + (337,188,84,2), + (338,189,84,2), + (339,190,84,2), + (341,191,84,2), + (343,192,84,2), + (345,193,84,2), + (347,194,84,2), + (348,195,84,2), + (350,196,84,2), + (352,197,84,2), + (354,198,84,2), + (356,199,84,2), + (358,200,84,2), + (360,201,84,2), + (362,202,84,2), + (364,203,84,2), + (366,204,84,2), + (368,205,84,2), + (370,206,84,2), + (372,207,84,2), + (374,208,84,2), + (375,209,84,2), + (377,210,84,2), + (379,211,84,2), + (381,212,84,2), + (383,213,84,2), + (385,214,84,2), + (387,215,84,2), + (389,216,84,2), + (390,217,84,2), + (391,218,84,2), + (392,219,84,2), + (394,220,84,2), + (396,221,84,2), + (397,222,84,2), + (399,223,84,2), + (400,224,84,2), + (402,225,84,2), + (403,226,84,2), + (405,227,84,2), + (407,228,84,2), + (409,229,84,2), + (411,230,84,2), + (413,231,84,2), + (415,232,84,2), + (416,233,84,2), + (417,234,84,2), + (419,235,84,2), + (421,236,84,2), + (422,237,84,2), + (424,238,84,2), + (426,239,84,2), + (428,240,84,2), + (430,241,84,2), + (432,242,84,2), + (434,243,84,2), + (436,244,84,2), + (438,245,84,2), + (440,246,84,2), + (442,247,84,2), + (444,248,84,2), + (446,249,84,2), + (448,250,84,2), + (450,251,84,2), + (452,252,84,2), + (454,253,84,2), + (456,254,84,2), + (458,255,84,2), + (459,256,84,2), + (460,257,84,2), + (462,258,84,2), + (464,259,84,2), + (465,260,84,2), + (467,261,84,2), + (469,262,84,2), + (471,263,84,2), + (472,264,84,2), + (474,265,84,2), + (475,266,84,2), + (477,267,84,2), + (478,268,84,2), + (480,269,84,2), + (482,270,84,2), + (483,271,84,2), + (485,272,84,2), + (487,273,84,2), + (489,274,84,2), + (491,275,84,2), + (493,276,84,2), + (495,277,84,2), + (497,278,84,2), + (499,279,84,2), + (501,280,84,2), + (503,281,84,2), + (505,282,84,2), + (507,283,84,2), + (509,284,84,2), + (510,285,84,2), + (512,286,84,2), + (514,287,84,2), + (516,288,84,2), + (518,289,84,2), + (520,290,84,2), + (521,291,84,2), + (522,292,84,2), + (524,293,84,2), + (526,294,84,2), + (528,295,84,2), + (529,296,84,2), + (531,297,84,2), + (532,297,84,3), + (533,298,84,2), + (535,299,84,2), + (537,300,84,2), + (542,302,84,3), + (82,46,85,3), + (351,196,85,3), + (466,260,85,3), + (580,323,85,3), + (900,544,85,2), + (250,139,86,3), + (628,350,86,3), + (598,333,88,3), + (663,370,88,3), + (794,442,88,3), + (140,79,89,3), + (439,245,89,3), + (653,364,89,3), + (721,402,89,3), + (931,575,89,2), + (219,122,90,3), + (386,214,90,3), + (572,319,90,3), + (171,96,91,3), + (435,243,91,3), + (473,264,91,3), + (53,30,92,3), + (815,459,92,2), + (78,44,93,3), + (142,80,93,3), + (207,115,93,3), + (284,158,93,3), + (395,220,93,3), + (858,502,93,2), + (878,532,93,2), + (928,572,93,2), + (41,24,94,3), + (227,127,94,3), + (235,131,94,3), + (322,180,94,3), + (486,272,94,3), + (217,121,95,3), + (260,145,95,3), + (940,584,95,2), + (67,38,96,3), + (99,55,97,3), + (199,111,97,3), + (334,186,97,3), + (488,273,97,3), + (557,310,97,3), + (801,447,97,3), + (2,1,98,3), + (437,244,98,3), + (586,326,98,3), + (195,109,99,3), + (461,257,99,3), + (736,410,99,3), + (832,476,99,2), + (833,477,99,2), + (834,478,99,2), + (835,479,99,2), + (836,480,99,2), + (847,491,99,2), + (879,521,99,2), + (213,118,100,3), + (278,155,100,3), + (550,306,100,3), + (656,366,100,3), + (701,390,100,3), + (917,561,100,2), + (272,151,101,3), + (299,166,101,3), + (725,404,101,3), + (902,546,101,2), + (915,559,102,2), + (837,481,103,2), + (903,547,111,2), + (935,579,112,2), + (844,488,113,2), + (880,518,113,2), + (937,581,114,2), + (849,493,115,2), + (881,523,115,2), + (908,552,118,2), + (842,486,119,2), + (882,516,119,2), + (920,564,121,2), + (861,505,122,2), + (883,535,122,2), + (932,576,122,2), + (855,499,125,2), + (884,529,125,2), + (853,497,126,2), + (885,527,126,2), + (922,566,126,2), + (850,494,128,2), + (886,524,128,2), + (864,508,131,2), + (887,538,131,2), + (907,551,134,2), + (841,485,140,2), + (888,515,140,2), + (854,498,141,2), + (889,528,141,2), + (924,568,141,2), + (839,483,143,2), + (890,513,143,2), + (942,586,147,2), + (923,567,150,2), + (912,556,152,2), + (857,501,156,2), + (891,531,156,2), + (845,489,157,2), + (892,519,157,2), + (865,509,158,2), + (893,539,158,2), + (906,550,160,2), + (852,496,163,2), + (894,526,163,2), + (927,571,165,2), + (925,569,168,2), + (941,585,169,2), + (856,500,172,2), + (895,530,172,2), + (910,554,172,2), + (946,590,175,2), + (838,482,181,2), + (896,512,181,2), + (938,582,181,2), + (899,543,188,2), + (944,588,190,2), + (866,510,193,2), + (897,540,193,2), + (934,578,195,2), + (539,301,196,2), + (541,302,196,2), + (543,303,196,2), + (545,304,196,2), + (547,305,196,2), + (549,306,196,2), + (551,307,196,2), + (553,308,196,2), + (554,309,196,2), + (556,310,196,2), + (558,311,196,2), + (560,312,196,2), + (562,313,196,2), + (563,314,196,2), + (564,315,196,2), + (566,316,196,2), + (568,317,196,2), + (570,318,196,2), + (571,319,196,2), + (573,320,196,2), + (575,321,196,2), + (577,322,196,2), + (579,323,196,2), + (581,324,196,2), + (583,325,196,2), + (585,326,196,2), + (587,327,196,2), + (589,328,196,2), + (590,329,196,2), + (592,330,196,2), + (594,331,196,2), + (596,332,196,2), + (597,333,196,2), + (599,334,196,2), + (601,335,196,2), + (603,336,196,2), + (604,337,196,2), + (606,338,196,2), + (608,339,196,2), + (609,340,196,2), + (611,341,196,2), + (612,342,196,2), + (613,343,196,2), + (615,344,196,2), + (617,345,196,2), + (619,346,196,2), + (621,347,196,2), + (623,348,196,2), + (625,349,196,2), + (627,350,196,2), + (629,351,196,2), + (631,352,196,2), + (632,353,196,2), + (634,354,196,2), + (636,355,196,2), + (638,356,196,2), + (639,357,196,2), + (641,358,196,2), + (643,359,196,2), + (644,360,196,2), + (646,361,196,2), + (648,362,196,2), + (650,363,196,2), + (652,364,196,2), + (654,365,196,2), + (655,366,196,2), + (657,367,196,2), + (658,368,196,2), + (660,369,196,2), + (662,370,196,2), + (664,371,196,2), + (666,372,196,2), + (668,373,196,2), + (670,374,196,2), + (672,375,196,2), + (674,376,196,2), + (676,377,196,2), + (677,378,196,2), + (679,379,196,2), + (681,380,196,2), + (682,381,196,2), + (684,382,196,2), + (686,383,196,2), + (688,384,196,2), + (690,385,196,2), + (692,386,196,2), + (694,387,196,2), + (696,388,196,2), + (698,389,196,2), + (700,390,196,2), + (702,391,196,2), + (704,392,196,2), + (706,393,196,2), + (707,394,196,2), + (709,395,196,2), + (711,396,196,2), + (713,397,196,2), + (714,398,196,2), + (715,399,196,2), + (717,400,196,2), + (719,401,196,2), + (720,402,196,2), + (722,403,196,2), + (724,404,196,2), + (726,405,196,2), + (728,406,196,2), + (730,407,196,2), + (732,408,196,2), + (734,409,196,2), + (735,410,196,2), + (737,411,196,2), + (739,412,196,2), + (741,413,196,2), + (743,414,196,2), + (745,415,196,2), + (747,416,196,2), + (749,417,196,2), + (750,418,196,2), + (752,419,196,2), + (754,420,196,2), + (756,421,196,2), + (758,422,196,2), + (760,423,196,2), + (762,424,196,2), + (763,425,196,2), + (765,426,196,2), + (767,427,196,2), + (768,428,196,2), + (770,429,196,2), + (772,430,196,2), + (773,431,196,2), + (775,432,196,2), + (776,433,196,2), + (777,434,196,2), + (779,435,196,2), + (781,436,196,2), + (783,437,196,2), + (785,438,196,2), + (787,439,196,2), + (789,440,196,2), + (791,441,196,2), + (793,442,196,2), + (795,443,196,2), + (797,444,196,2), + (798,445,196,2), + (799,446,196,2), + (800,447,196,2), + (802,448,196,2), + (803,449,196,2), + (805,450,196,2), + (939,583,200,2); /*!40000 ALTER TABLE `civicrm_activity_contact` ENABLE KEYS */; UNLOCK TABLES; @@ -1696,188 +1689,193 @@ UNLOCK TABLES; LOCK TABLES `civicrm_address` WRITE; /*!40000 ALTER TABLE `civicrm_address` DISABLE KEYS */; INSERT INTO `civicrm_address` (`id`, `contact_id`, `location_type_id`, `is_primary`, `is_billing`, `street_address`, `street_number`, `street_number_suffix`, `street_number_predirectional`, `street_name`, `street_type`, `street_number_postdirectional`, `street_unit`, `supplemental_address_1`, `supplemental_address_2`, `supplemental_address_3`, `city`, `county_id`, `state_province_id`, `postal_code_suffix`, `postal_code`, `usps_adc`, `country_id`, `geo_code_1`, `geo_code_2`, `manual_geo_code`, `timezone`, `name`, `master_id`) VALUES - (1,41,1,1,0,'118B Pine Pl SE',118,'B',NULL,'Pine','Pl','SE',NULL,NULL,NULL,NULL,'Dahlonega',1,1009,NULL,'30597',NULL,1228,34.527671,-83.980879,0,NULL,NULL,NULL), - (2,171,1,1,0,'848R Main Pl W',848,'R',NULL,'Main','Pl','W',NULL,NULL,NULL,NULL,'Brushton',1,1031,NULL,'12916',NULL,1228,44.830736,-74.51434,0,NULL,NULL,NULL), - (3,64,1,1,0,'399Y Woodbridge Ave W',399,'Y',NULL,'Woodbridge','Ave','W',NULL,NULL,NULL,NULL,'Houston',1,1042,NULL,'77253',NULL,1228,29.83399,-95.434241,0,NULL,NULL,NULL), - (4,178,1,1,0,'441M Jackson St SE',441,'M',NULL,'Jackson','St','SE',NULL,NULL,NULL,NULL,'Palm Bay',1,1008,NULL,'32908',NULL,1228,27.958982,-80.68591,0,NULL,NULL,NULL), - (5,24,1,1,0,'327M States Pl NE',327,'M',NULL,'States','Pl','NE',NULL,NULL,NULL,NULL,'Grand Mound',1,1014,NULL,'52751',NULL,1228,41.836317,-90.67008,0,NULL,NULL,NULL), - (6,146,1,1,0,'192S Jackson Pl SE',192,'S',NULL,'Jackson','Pl','SE',NULL,NULL,NULL,NULL,'Waccabuc',1,1031,NULL,'10597',NULL,1228,41.289162,-73.58834,0,NULL,NULL,NULL), - (7,4,1,1,0,'299U Lincoln Pl N',299,'U',NULL,'Lincoln','Pl','N',NULL,NULL,NULL,NULL,'Tulsa',1,1035,NULL,'74182',NULL,1228,36.139826,-96.029725,0,NULL,NULL,NULL), - (8,37,1,1,0,'725K Second St NE',725,'K',NULL,'Second','St','NE',NULL,NULL,NULL,NULL,'New York',1,1031,NULL,'10116',NULL,1228,40.780751,-73.977182,0,NULL,NULL,NULL), - (9,160,1,1,0,'249O Dowlen Way S',249,'O',NULL,'Dowlen','Way','S',NULL,NULL,NULL,NULL,'Munfordville',1,1016,NULL,'42765',NULL,1228,37.291869,-85.90786,0,NULL,NULL,NULL), - (10,82,1,1,0,'728X Dowlen Ave SE',728,'X',NULL,'Dowlen','Ave','SE',NULL,NULL,NULL,NULL,'Duluth',1,1009,NULL,'30099',NULL,1228,33.959535,-84.105011,0,NULL,NULL,NULL), - (11,102,1,1,0,'784J Maple Blvd S',784,'J',NULL,'Maple','Blvd','S',NULL,NULL,NULL,NULL,'Bloomington',1,1013,NULL,'47404',NULL,1228,39.188246,-86.56779,0,NULL,NULL,NULL), - (12,124,1,1,0,'307U Green Ave NW',307,'U',NULL,'Green','Ave','NW',NULL,NULL,NULL,NULL,'Lowden',1,1014,NULL,'52255',NULL,1228,41.86521,-90.94316,0,NULL,NULL,NULL), - (13,28,1,1,0,'609L Martin Luther King St E',609,'L',NULL,'Martin Luther King','St','E',NULL,NULL,NULL,NULL,'Wrigley',1,1016,NULL,'41477',NULL,1228,37.914002,-83.233761,0,NULL,NULL,NULL), - (14,40,1,1,0,'148R Martin Luther King Ln N',148,'R',NULL,'Martin Luther King','Ln','N',NULL,NULL,NULL,NULL,'Albuquerque',1,1030,NULL,'87201',NULL,1228,35.044339,-106.672872,0,NULL,NULL,NULL), - (15,32,1,1,0,'576E Beech Blvd W',576,'E',NULL,'Beech','Blvd','W',NULL,NULL,NULL,NULL,'Steep Falls',1,1018,NULL,'04085',NULL,1228,43.770432,-70.63812,0,NULL,NULL,NULL), - (16,199,1,1,0,'979E Dowlen Ave SE',979,'E',NULL,'Dowlen','Ave','SE',NULL,NULL,NULL,NULL,'Clothier',1,1047,NULL,'25047',NULL,1228,37.950033,-81.78924,0,NULL,NULL,NULL), - (17,180,1,1,0,'717Z Second Pl N',717,'Z',NULL,'Second','Pl','N',NULL,NULL,NULL,NULL,'Huntsville',1,1000,NULL,'35824',NULL,1228,34.654126,-86.73987,0,NULL,NULL,NULL), - (18,192,1,1,0,'449G States Ln W',449,'G',NULL,'States','Ln','W',NULL,NULL,NULL,NULL,'West Bloomfield',1,1031,NULL,'14585',NULL,1228,42.901162,-77.54848,0,NULL,NULL,NULL), - (19,141,1,1,0,'774H Maple Way NW',774,'H',NULL,'Maple','Way','NW',NULL,NULL,NULL,NULL,'Fort Morgan',1,1005,NULL,'80701',NULL,1228,40.226357,-103.80625,0,NULL,NULL,NULL), - (20,59,1,1,0,'836A Dowlen Ave W',836,'A',NULL,'Dowlen','Ave','W',NULL,NULL,NULL,NULL,'Wakpala',1,1040,NULL,'57658',NULL,1228,45.68838,-100.51908,0,NULL,NULL,NULL), - (21,100,1,1,0,'49T Cadell St SW',49,'T',NULL,'Cadell','St','SW',NULL,NULL,NULL,NULL,'Ross',1,1042,NULL,'76684',NULL,1228,31.717293,-97.118754,0,NULL,NULL,NULL), - (22,11,1,1,0,'388F Northpoint Blvd SW',388,'F',NULL,'Northpoint','Blvd','SW',NULL,NULL,NULL,NULL,'New Bedford',1,1020,NULL,'02741',NULL,1228,41.756214,-71.067062,0,NULL,NULL,NULL), - (23,144,1,1,0,'860L Lincoln Way NE',860,'L',NULL,'Lincoln','Way','NE',NULL,NULL,NULL,NULL,'Oakland',1,1004,NULL,'94606',NULL,1228,37.793177,-122.24352,0,NULL,NULL,NULL), - (24,75,1,1,0,'692H Dowlen Pl E',692,'H',NULL,'Dowlen','Pl','E',NULL,NULL,NULL,NULL,'Oakdale',1,1037,NULL,'15071',NULL,1228,40.420319,-80.18692,0,NULL,NULL,NULL), - (25,112,1,1,0,'987Z Jackson Rd NE',987,'Z',NULL,'Jackson','Rd','NE',NULL,NULL,NULL,NULL,'Gray Mountain',1,1002,NULL,'86016',NULL,1228,35.675689,-111.49474,0,NULL,NULL,NULL), - (26,182,1,1,0,'826E Bay Ave NW',826,'E',NULL,'Bay','Ave','NW',NULL,NULL,NULL,NULL,'Golf',1,1012,NULL,'60029',NULL,1228,42.056529,-87.79286,0,NULL,NULL,NULL), - (27,165,1,1,0,'329F Main Path SW',329,'F',NULL,'Main','Path','SW',NULL,NULL,NULL,NULL,'Nada',1,1042,NULL,'77460',NULL,1228,29.60466,-96.524899,0,NULL,NULL,NULL), - (28,132,1,1,0,'981C Beech Path NE',981,'C',NULL,'Beech','Path','NE',NULL,NULL,NULL,NULL,'Big Island',1,1045,NULL,'24526',NULL,1228,37.528701,-79.39812,0,NULL,NULL,NULL), - (29,172,1,1,0,'858Y Second Rd NE',858,'Y',NULL,'Second','Rd','NE',NULL,NULL,NULL,NULL,'El Paso',1,1042,NULL,'79960',NULL,1228,31.694842,-106.299987,0,NULL,NULL,NULL), - (30,186,1,1,0,'797F Beech Path N',797,'F',NULL,'Beech','Path','N',NULL,NULL,NULL,NULL,'Bivins',1,1042,NULL,'75555',NULL,1228,32.930895,-94.13542,0,NULL,NULL,NULL), - (31,90,1,1,0,'841M Cadell Blvd SE',841,'M',NULL,'Cadell','Blvd','SE',NULL,NULL,NULL,NULL,'Pasadena',1,1004,NULL,'91114',NULL,1228,33.786594,-118.298662,0,NULL,NULL,NULL), - (32,155,1,1,0,'320H Van Ness Ln S',320,'H',NULL,'Van Ness','Ln','S',NULL,NULL,NULL,NULL,'Montgomery',1,1037,NULL,'17752',NULL,1228,41.173254,-76.88449,0,NULL,NULL,NULL), - (33,96,1,1,0,'455X Martin Luther King Ln S',455,'X',NULL,'Martin Luther King','Ln','S',NULL,NULL,NULL,NULL,'New Windsor',1,1019,NULL,'21776',NULL,1228,39.529834,-77.09715,0,NULL,NULL,NULL), - (34,108,1,1,0,'915O Dowlen Way SW',915,'O',NULL,'Dowlen','Way','SW',NULL,NULL,NULL,NULL,'Jerome',1,1002,NULL,'86631',NULL,1228,34.748879,-112.115853,0,NULL,NULL,NULL), - (35,78,1,1,0,'214V Maple Dr S',214,'V',NULL,'Maple','Dr','S',NULL,NULL,NULL,NULL,'Reading',1,1037,NULL,'19605',NULL,1228,40.390943,-75.9375,0,NULL,NULL,NULL), - (36,103,1,1,0,'238J Second Pl SE',238,'J',NULL,'Second','Pl','SE',NULL,NULL,NULL,NULL,'Organ',1,1030,NULL,'88052',NULL,1228,32.437435,-106.60256,0,NULL,NULL,NULL), - (37,107,1,1,0,'155S Bay Way NW',155,'S',NULL,'Bay','Way','NW',NULL,NULL,NULL,NULL,'Camargo',1,1012,NULL,'61919',NULL,1228,39.783794,-88.13861,0,NULL,NULL,NULL), - (38,44,1,1,0,'443H El Camino Dr SE',443,'H',NULL,'El Camino','Dr','SE',NULL,NULL,NULL,NULL,'Kailua Kona',1,1010,NULL,'96740',NULL,1228,19.675386,-155.97588,0,NULL,NULL,NULL), - (39,115,1,1,0,'999X States Path SE',999,'X',NULL,'States','Path','SE',NULL,NULL,NULL,NULL,'Clearwater',1,1015,NULL,'67026',NULL,1228,37.518342,-97.49452,0,NULL,NULL,NULL), - (40,56,1,1,0,'423U Caulder Pl SW',423,'U',NULL,'Caulder','Pl','SW',NULL,NULL,NULL,NULL,'Dighton',1,1015,NULL,'67839',NULL,1228,38.514924,-100.43776,0,NULL,NULL,NULL), - (41,183,1,1,0,'22J College Ave S',22,'J',NULL,'College','Ave','S',NULL,NULL,NULL,NULL,'Auburn',1,1026,NULL,'68305',NULL,1228,40.376356,-95.84422,0,NULL,NULL,NULL), - (42,62,1,1,0,'334N Second Way SW',334,'N',NULL,'Second','Way','SW',NULL,NULL,NULL,NULL,'Sorrento',1,1008,NULL,'32776',NULL,1228,28.804039,-81.53689,0,NULL,NULL,NULL), - (43,121,1,1,0,'494X Second Rd NW',494,'X',NULL,'Second','Rd','NW',NULL,NULL,NULL,NULL,'Bowring',1,1035,NULL,'74009',NULL,1228,36.665794,-96.398424,0,NULL,NULL,NULL), - (44,143,1,1,0,'880H Lincoln Way S',880,'H',NULL,'Lincoln','Way','S',NULL,NULL,NULL,NULL,'Waccabuc',1,1031,NULL,'10597',NULL,1228,41.289162,-73.58834,0,NULL,NULL,NULL), - (45,39,1,1,0,'258B Dowlen Dr S',258,'B',NULL,'Dowlen','Dr','S',NULL,NULL,NULL,NULL,'Tarzan',1,1042,NULL,'79783',NULL,1228,32.369835,-102.03317,0,NULL,NULL,NULL), - (46,190,1,1,0,'817L Caulder Way SE',817,'L',NULL,'Caulder','Way','SE',NULL,NULL,NULL,NULL,'Bullhead City',1,1002,NULL,'86429',NULL,1228,35.172854,-114.54696,0,NULL,NULL,NULL), - (47,10,1,1,0,'106Z Beech Dr NE',106,'Z',NULL,'Beech','Dr','NE',NULL,NULL,NULL,NULL,'Weston',1,1047,NULL,'26452',NULL,1228,39.04101,-80.47731,0,NULL,NULL,NULL), - (48,156,1,1,0,'624S Martin Luther King Pl SW',624,'S',NULL,'Martin Luther King','Pl','SW',NULL,NULL,NULL,NULL,'Shawnee Mission',1,1015,NULL,'66208',NULL,1228,38.999505,-94.63102,0,NULL,NULL,NULL), - (49,131,1,1,0,'435P Jackson St E',435,'P',NULL,'Jackson','St','E',NULL,NULL,NULL,NULL,'Sunnyside',1,1031,NULL,'11104',NULL,1228,40.743796,-73.91949,0,NULL,NULL,NULL), - (50,118,1,1,0,'971J Main Way NW',971,'J',NULL,'Main','Way','NW',NULL,NULL,NULL,NULL,'Irmo',1,1039,NULL,'29063',NULL,1228,34.120487,-81.19686,0,NULL,NULL,NULL), - (51,5,1,1,0,'374F College St W',374,'F',NULL,'College','St','W',NULL,NULL,NULL,NULL,'Miami',1,1008,NULL,'33174',NULL,1228,25.763044,-80.35919,0,NULL,NULL,NULL), - (52,113,1,1,0,'304E Lincoln Ln E',304,'E',NULL,'Lincoln','Ln','E',NULL,NULL,NULL,NULL,'San Jose',1,1004,NULL,'95113',NULL,1228,37.333941,-121.89154,0,NULL,NULL,NULL), - (53,149,1,1,0,'282O Bay Dr SE',282,'O',NULL,'Bay','Dr','SE',NULL,NULL,NULL,NULL,'Bowie',1,1042,NULL,'76230',NULL,1228,33.54007,-97.88575,0,NULL,NULL,NULL), - (54,134,1,1,0,'724H Lincoln Ave SE',724,'H',NULL,'Lincoln','Ave','SE',NULL,NULL,NULL,NULL,'Las Vegas',1,1027,NULL,'89199',NULL,1228,35.927901,-114.972061,0,NULL,NULL,NULL), - (55,92,1,1,0,'849L Jackson Way SE',849,'L',NULL,'Jackson','Way','SE',NULL,NULL,NULL,NULL,'New York',1,1031,NULL,'10149',NULL,1228,40.780751,-73.977182,0,NULL,NULL,NULL), - (56,14,1,1,0,'625L Martin Luther King Blvd SW',625,'L',NULL,'Martin Luther King','Blvd','SW',NULL,NULL,NULL,NULL,'Burlington',1,1044,NULL,'05401',NULL,1228,44.484038,-73.22126,0,NULL,NULL,NULL), - (57,201,1,1,0,'628X Lincoln Dr NW',628,'X',NULL,'Lincoln','Dr','NW',NULL,NULL,NULL,NULL,'Grand Rapids',1,1021,NULL,'49507',NULL,1228,42.933077,-85.65435,0,NULL,NULL,NULL), - (58,161,1,1,0,'776O Van Ness St S',776,'O',NULL,'Van Ness','St','S',NULL,NULL,NULL,NULL,'Renfrew',1,1037,NULL,'16053',NULL,1228,40.808934,-79.97811,0,NULL,NULL,NULL), - (59,68,1,1,0,'508N Pine Blvd NE',508,'N',NULL,'Pine','Blvd','NE',NULL,NULL,NULL,NULL,'Chatsworth',1,1004,NULL,'91312',NULL,1228,33.786594,-118.298662,0,NULL,NULL,NULL), - (60,52,1,1,0,'346I States Pl W',346,'I',NULL,'States','Pl','W',NULL,NULL,NULL,NULL,'Spencer',1,1041,NULL,'38585',NULL,1228,35.69653,-85.41146,0,NULL,NULL,NULL), - (61,6,1,1,0,'851W Woodbridge Pl N',851,'W',NULL,'Woodbridge','Pl','N',NULL,NULL,NULL,NULL,'Harrison',1,1031,NULL,'10528',NULL,1228,40.972667,-73.71886,0,NULL,NULL,NULL), - (62,111,1,1,0,'327Y Maple Path W',327,'Y',NULL,'Maple','Path','W',NULL,NULL,NULL,NULL,'Glencoe',1,1030,NULL,'88324',NULL,1228,33.429637,-105.48489,0,NULL,NULL,NULL), - (63,138,1,1,0,'763F Main St SW',763,'F',NULL,'Main','St','SW',NULL,NULL,NULL,NULL,'Grand Rapids',1,1021,NULL,'49555',NULL,1228,43.031413,-85.550267,0,NULL,NULL,NULL), - (64,168,1,1,0,'99G Cadell Way W',99,'G',NULL,'Cadell','Way','W',NULL,NULL,NULL,NULL,'Gardner',1,1012,NULL,'60424',NULL,1228,41.174117,-88.30954,0,NULL,NULL,NULL), - (65,142,1,1,0,'273D Caulder Blvd NE',273,'D',NULL,'Caulder','Blvd','NE',NULL,NULL,NULL,NULL,'Sioux Falls',1,1040,NULL,'57108',NULL,1228,43.488472,-96.72258,0,NULL,NULL,NULL), - (66,12,1,1,0,'876H Martin Luther King Ave NE',876,'H',NULL,'Martin Luther King','Ave','NE',NULL,NULL,NULL,NULL,'Detroit',1,1021,NULL,'48243',NULL,1228,42.239933,-83.150823,0,NULL,NULL,NULL), - (67,48,3,1,0,'792M Beech St S',792,'M',NULL,'Beech','St','S',NULL,'Subscriptions Dept',NULL,NULL,'Prattsville',1,1031,NULL,'12468',NULL,1228,42.297725,-74.40063,0,NULL,NULL,NULL), - (68,27,2,1,0,'792M Beech St S',792,'M',NULL,'Beech','St','S',NULL,'Subscriptions Dept',NULL,NULL,'Prattsville',1,1031,NULL,'12468',NULL,1228,42.297725,-74.40063,0,NULL,NULL,67), - (69,105,3,1,0,'402W Second Blvd N',402,'W',NULL,'Second','Blvd','N',NULL,'Editorial Dept',NULL,NULL,'Earling',1,1014,NULL,'51530',NULL,1228,41.77364,-95.42761,0,NULL,NULL,NULL), - (70,53,2,1,0,'402W Second Blvd N',402,'W',NULL,'Second','Blvd','N',NULL,'Editorial Dept',NULL,NULL,'Earling',1,1014,NULL,'51530',NULL,1228,41.77364,-95.42761,0,NULL,NULL,69), - (71,43,3,1,0,'752F States Ln SW',752,'F',NULL,'States','Ln','SW',NULL,'Editorial Dept',NULL,NULL,'Star',1,1032,NULL,'27356',NULL,1228,35.414095,-79.78487,0,NULL,NULL,NULL), - (72,145,2,1,0,'752F States Ln SW',752,'F',NULL,'States','Ln','SW',NULL,'Editorial Dept',NULL,NULL,'Star',1,1032,NULL,'27356',NULL,1228,35.414095,-79.78487,0,NULL,NULL,71), - (73,128,3,1,0,'660O Green Path SW',660,'O',NULL,'Green','Path','SW',NULL,'Subscriptions Dept',NULL,NULL,'Crystal Lake',1,1012,NULL,'60039',NULL,1228,42.324761,-88.452481,0,NULL,NULL,NULL), - (74,3,2,1,0,'660O Green Path SW',660,'O',NULL,'Green','Path','SW',NULL,'Subscriptions Dept',NULL,NULL,'Crystal Lake',1,1012,NULL,'60039',NULL,1228,42.324761,-88.452481,0,NULL,NULL,73), - (75,169,3,1,0,'524Q Northpoint Blvd W',524,'Q',NULL,'Northpoint','Blvd','W',NULL,'Cuffe Parade',NULL,NULL,'Riegelsville',1,1037,NULL,'18077',NULL,1228,40.576989,-75.22121,0,NULL,NULL,NULL), - (76,177,3,1,0,'823R Northpoint Blvd W',823,'R',NULL,'Northpoint','Blvd','W',NULL,'Attn: Accounting',NULL,NULL,'Draper',1,1043,NULL,'84020',NULL,1228,40.514843,-111.87294,0,NULL,NULL,NULL), - (77,50,2,1,0,'823R Northpoint Blvd W',823,'R',NULL,'Northpoint','Blvd','W',NULL,'Attn: Accounting',NULL,NULL,'Draper',1,1043,NULL,'84020',NULL,1228,40.514843,-111.87294,0,NULL,NULL,76), - (78,101,3,1,0,'597H El Camino Rd SE',597,'H',NULL,'El Camino','Rd','SE',NULL,'Disbursements',NULL,NULL,'Laurel',1,1023,NULL,'39442',NULL,1228,31.682254,-89.040622,0,NULL,NULL,NULL), - (79,39,2,0,0,'597H El Camino Rd SE',597,'H',NULL,'El Camino','Rd','SE',NULL,'Disbursements',NULL,NULL,'Laurel',1,1023,NULL,'39442',NULL,1228,31.682254,-89.040622,0,NULL,NULL,78), - (80,153,3,1,0,'933A Woodbridge St S',933,'A',NULL,'Woodbridge','St','S',NULL,'c/o OPDC',NULL,NULL,'Hurricane Mills',1,1041,NULL,'37078',NULL,1228,35.924976,-87.77219,0,NULL,NULL,NULL), - (81,82,2,0,0,'933A Woodbridge St S',933,'A',NULL,'Woodbridge','St','S',NULL,'c/o OPDC',NULL,NULL,'Hurricane Mills',1,1041,NULL,'37078',NULL,1228,35.924976,-87.77219,0,NULL,NULL,80), - (82,91,3,1,0,'877V Beech St S',877,'V',NULL,'Beech','St','S',NULL,'Community Relations',NULL,NULL,'Reydell',1,1003,NULL,'72133',NULL,1228,34.165734,-91.57169,0,NULL,NULL,NULL), - (83,154,2,1,0,'877V Beech St S',877,'V',NULL,'Beech','St','S',NULL,'Community Relations',NULL,NULL,'Reydell',1,1003,NULL,'72133',NULL,1228,34.165734,-91.57169,0,NULL,NULL,82), - (84,67,3,1,0,'996K Woodbridge Ln W',996,'K',NULL,'Woodbridge','Ln','W',NULL,'Churchgate',NULL,NULL,'Industry',1,1037,NULL,'15052',NULL,1228,40.665001,-80.42534,0,NULL,NULL,NULL), - (85,49,3,1,0,'776A Second Ln NE',776,'A',NULL,'Second','Ln','NE',NULL,'Attn: Accounting',NULL,NULL,'Alexandria',1,1037,NULL,'16611',NULL,1228,40.561651,-78.10583,0,NULL,NULL,NULL), - (86,157,3,1,0,'711P Bay Pl W',711,'P',NULL,'Bay','Pl','W',NULL,'Urgent',NULL,NULL,'Burgess',1,1045,NULL,'22432',NULL,1228,37.860549,-76.35637,0,NULL,NULL,NULL), - (87,172,2,0,0,'711P Bay Pl W',711,'P',NULL,'Bay','Pl','W',NULL,'Urgent',NULL,NULL,'Burgess',1,1045,NULL,'22432',NULL,1228,37.860549,-76.35637,0,NULL,NULL,86), - (88,129,3,1,0,'953K Maple Way SE',953,'K',NULL,'Maple','Way','SE',NULL,'c/o OPDC',NULL,NULL,'Greenville',1,1004,NULL,'95947',NULL,1228,40.144573,-120.88311,0,NULL,NULL,NULL), - (89,96,2,0,0,'953K Maple Way SE',953,'K',NULL,'Maple','Way','SE',NULL,'c/o OPDC',NULL,NULL,'Greenville',1,1004,NULL,'95947',NULL,1228,40.144573,-120.88311,0,NULL,NULL,88), - (90,188,3,1,0,'597T Dowlen Ln S',597,'T',NULL,'Dowlen','Ln','S',NULL,'Receiving',NULL,NULL,'San Francisco',1,1004,NULL,'94132',NULL,1228,37.724231,-122.47958,0,NULL,NULL,NULL), - (91,193,3,1,0,'429Z Beech Path N',429,'Z',NULL,'Beech','Path','N',NULL,'Payables Dept.',NULL,NULL,'Modesto',1,1004,NULL,'95356',NULL,1228,37.704138,-121.02187,0,NULL,NULL,NULL), - (92,73,3,1,0,'884K Bay Ln E',884,'K',NULL,'Bay','Ln','E',NULL,'Receiving',NULL,NULL,'Surveyor',1,1047,NULL,'25932',NULL,1228,37.764498,-81.3169,0,NULL,NULL,NULL), - (93,166,2,1,0,'884K Bay Ln E',884,'K',NULL,'Bay','Ln','E',NULL,'Receiving',NULL,NULL,'Surveyor',1,1047,NULL,'25932',NULL,1228,37.764498,-81.3169,0,NULL,NULL,92), - (94,61,3,1,0,'654T Northpoint Pl SW',654,'T',NULL,'Northpoint','Pl','SW',NULL,'Payables Dept.',NULL,NULL,'Port Wing',1,1048,NULL,'54865',NULL,1228,46.757192,-91.39611,0,NULL,NULL,NULL), - (95,152,3,1,0,'408K Woodbridge Path NW',408,'K',NULL,'Woodbridge','Path','NW',NULL,'c/o PO Plus',NULL,NULL,'Terre Haute',1,1013,NULL,'47805',NULL,1228,39.535285,-87.35222,0,NULL,NULL,NULL), - (96,26,2,1,0,'408K Woodbridge Path NW',408,'K',NULL,'Woodbridge','Path','NW',NULL,'c/o PO Plus',NULL,NULL,'Terre Haute',1,1013,NULL,'47805',NULL,1228,39.535285,-87.35222,0,NULL,NULL,95), - (97,51,3,1,0,'87L Dowlen Dr SW',87,'L',NULL,'Dowlen','Dr','SW',NULL,'Urgent',NULL,NULL,'Lewisville',1,1042,NULL,'75077',NULL,1228,33.075138,-97.0529,0,NULL,NULL,NULL), - (98,76,2,1,0,'87L Dowlen Dr SW',87,'L',NULL,'Dowlen','Dr','SW',NULL,'Urgent',NULL,NULL,'Lewisville',1,1042,NULL,'75077',NULL,1228,33.075138,-97.0529,0,NULL,NULL,97), - (99,135,3,1,0,'845T Second Dr W',845,'T',NULL,'Second','Dr','W',NULL,'Urgent',NULL,NULL,'Deland',1,1008,NULL,'32724',NULL,1228,29.039757,-81.27927,0,NULL,NULL,NULL), - (100,85,1,1,0,'106Z Beech Dr NE',106,'Z',NULL,'Beech','Dr','NE',NULL,NULL,NULL,NULL,'Weston',1,1047,NULL,'26452',NULL,1228,39.04101,-80.47731,0,NULL,NULL,47), - (101,13,1,1,0,'106Z Beech Dr NE',106,'Z',NULL,'Beech','Dr','NE',NULL,NULL,NULL,NULL,'Weston',1,1047,NULL,'26452',NULL,1228,39.04101,-80.47731,0,NULL,NULL,47), - (102,53,1,0,0,'106Z Beech Dr NE',106,'Z',NULL,'Beech','Dr','NE',NULL,NULL,NULL,NULL,'Weston',1,1047,NULL,'26452',NULL,1228,39.04101,-80.47731,0,NULL,NULL,47), - (103,190,1,0,0,'512C Northpoint Ave NE',512,'C',NULL,'Northpoint','Ave','NE',NULL,NULL,NULL,NULL,'Allentown',1,1037,NULL,'18109',NULL,1228,40.693376,-75.471156,0,NULL,NULL,NULL), - (104,106,1,1,0,'624S Martin Luther King Pl SW',624,'S',NULL,'Martin Luther King','Pl','SW',NULL,NULL,NULL,NULL,'Shawnee Mission',1,1015,NULL,'66208',NULL,1228,38.999505,-94.63102,0,NULL,NULL,48), - (105,154,1,0,0,'624S Martin Luther King Pl SW',624,'S',NULL,'Martin Luther King','Pl','SW',NULL,NULL,NULL,NULL,'Shawnee Mission',1,1015,NULL,'66208',NULL,1228,38.999505,-94.63102,0,NULL,NULL,48), - (106,23,1,1,0,'624S Martin Luther King Pl SW',624,'S',NULL,'Martin Luther King','Pl','SW',NULL,NULL,NULL,NULL,'Shawnee Mission',1,1015,NULL,'66208',NULL,1228,38.999505,-94.63102,0,NULL,NULL,48), - (107,58,1,1,0,'624S Martin Luther King Pl SW',624,'S',NULL,'Martin Luther King','Pl','SW',NULL,NULL,NULL,NULL,'Shawnee Mission',1,1015,NULL,'66208',NULL,1228,38.999505,-94.63102,0,NULL,NULL,48), - (108,20,1,1,0,'435P Jackson St E',435,'P',NULL,'Jackson','St','E',NULL,NULL,NULL,NULL,'Sunnyside',1,1031,NULL,'11104',NULL,1228,40.743796,-73.91949,0,NULL,NULL,49), - (109,30,1,1,0,'435P Jackson St E',435,'P',NULL,'Jackson','St','E',NULL,NULL,NULL,NULL,'Sunnyside',1,1031,NULL,'11104',NULL,1228,40.743796,-73.91949,0,NULL,NULL,49), - (110,15,1,1,0,'435P Jackson St E',435,'P',NULL,'Jackson','St','E',NULL,NULL,NULL,NULL,'Sunnyside',1,1031,NULL,'11104',NULL,1228,40.743796,-73.91949,0,NULL,NULL,49), - (111,151,1,1,0,'783Q Green Pl S',783,'Q',NULL,'Green','Pl','S',NULL,NULL,NULL,NULL,'Clarksburg',1,1024,NULL,'65025',NULL,1228,38.662989,-92.67253,0,NULL,NULL,NULL), - (112,194,1,1,0,'971J Main Way NW',971,'J',NULL,'Main','Way','NW',NULL,NULL,NULL,NULL,'Irmo',1,1039,NULL,'29063',NULL,1228,34.120487,-81.19686,0,NULL,NULL,50), - (113,140,1,1,0,'971J Main Way NW',971,'J',NULL,'Main','Way','NW',NULL,NULL,NULL,NULL,'Irmo',1,1039,NULL,'29063',NULL,1228,34.120487,-81.19686,0,NULL,NULL,50), - (114,87,1,1,0,'971J Main Way NW',971,'J',NULL,'Main','Way','NW',NULL,NULL,NULL,NULL,'Irmo',1,1039,NULL,'29063',NULL,1228,34.120487,-81.19686,0,NULL,NULL,50), - (115,50,1,0,0,'955H College Rd W',955,'H',NULL,'College','Rd','W',NULL,NULL,NULL,NULL,'Norwood',1,1022,NULL,'55554',NULL,1228,44.805487,-93.766524,0,NULL,NULL,NULL), - (116,63,1,1,0,'374F College St W',374,'F',NULL,'College','St','W',NULL,NULL,NULL,NULL,'Miami',1,1008,NULL,'33174',NULL,1228,25.763044,-80.35919,0,NULL,NULL,51), - (117,8,1,1,0,'374F College St W',374,'F',NULL,'College','St','W',NULL,NULL,NULL,NULL,'Miami',1,1008,NULL,'33174',NULL,1228,25.763044,-80.35919,0,NULL,NULL,51), - (118,189,1,1,0,'374F College St W',374,'F',NULL,'College','St','W',NULL,NULL,NULL,NULL,'Miami',1,1008,NULL,'33174',NULL,1228,25.763044,-80.35919,0,NULL,NULL,51), - (119,18,1,1,0,'587I Cadell Pl N',587,'I',NULL,'Cadell','Pl','N',NULL,NULL,NULL,NULL,'San Antonio',1,1042,NULL,'78212',NULL,1228,29.460381,-98.49649,0,NULL,NULL,NULL), - (120,104,1,1,0,'304E Lincoln Ln E',304,'E',NULL,'Lincoln','Ln','E',NULL,NULL,NULL,NULL,'San Jose',1,1004,NULL,'95113',NULL,1228,37.333941,-121.89154,0,NULL,NULL,52), - (121,137,1,1,0,'304E Lincoln Ln E',304,'E',NULL,'Lincoln','Ln','E',NULL,NULL,NULL,NULL,'San Jose',1,1004,NULL,'95113',NULL,1228,37.333941,-121.89154,0,NULL,NULL,52), - (122,126,1,1,0,'304E Lincoln Ln E',304,'E',NULL,'Lincoln','Ln','E',NULL,NULL,NULL,NULL,'San Jose',1,1004,NULL,'95113',NULL,1228,37.333941,-121.89154,0,NULL,NULL,52), - (123,80,1,1,0,'98A Pine Rd SE',98,'A',NULL,'Pine','Rd','SE',NULL,NULL,NULL,NULL,'Bloomingburg',1,1031,NULL,'12721',NULL,1228,41.564426,-74.4265,0,NULL,NULL,NULL), - (124,27,1,0,0,'282O Bay Dr SE',282,'O',NULL,'Bay','Dr','SE',NULL,NULL,NULL,NULL,'Bowie',1,1042,NULL,'76230',NULL,1228,33.54007,-97.88575,0,NULL,NULL,53), - (125,35,1,1,0,'282O Bay Dr SE',282,'O',NULL,'Bay','Dr','SE',NULL,NULL,NULL,NULL,'Bowie',1,1042,NULL,'76230',NULL,1228,33.54007,-97.88575,0,NULL,NULL,53), - (126,3,1,0,0,'282O Bay Dr SE',282,'O',NULL,'Bay','Dr','SE',NULL,NULL,NULL,NULL,'Bowie',1,1042,NULL,'76230',NULL,1228,33.54007,-97.88575,0,NULL,NULL,53), - (127,163,1,1,0,'622T Pine Ln N',622,'T',NULL,'Pine','Ln','N',NULL,NULL,NULL,NULL,'Eagle Creek',1,1036,NULL,'97022',NULL,1228,45.349244,-122.33554,0,NULL,NULL,NULL), - (128,164,1,1,0,'724H Lincoln Ave SE',724,'H',NULL,'Lincoln','Ave','SE',NULL,NULL,NULL,NULL,'Las Vegas',1,1027,NULL,'89199',NULL,1228,35.927901,-114.972061,0,NULL,NULL,54), - (129,191,1,1,0,'724H Lincoln Ave SE',724,'H',NULL,'Lincoln','Ave','SE',NULL,NULL,NULL,NULL,'Las Vegas',1,1027,NULL,'89199',NULL,1228,35.927901,-114.972061,0,NULL,NULL,54), - (130,122,1,1,0,'724H Lincoln Ave SE',724,'H',NULL,'Lincoln','Ave','SE',NULL,NULL,NULL,NULL,'Las Vegas',1,1027,NULL,'89199',NULL,1228,35.927901,-114.972061,0,NULL,NULL,54), - (131,147,1,1,0,'724H Lincoln Ave SE',724,'H',NULL,'Lincoln','Ave','SE',NULL,NULL,NULL,NULL,'Las Vegas',1,1027,NULL,'89199',NULL,1228,35.927901,-114.972061,0,NULL,NULL,54), - (132,81,1,1,0,'849L Jackson Way SE',849,'L',NULL,'Jackson','Way','SE',NULL,NULL,NULL,NULL,'New York',1,1031,NULL,'10149',NULL,1228,40.780751,-73.977182,0,NULL,NULL,55), - (133,150,1,1,0,'849L Jackson Way SE',849,'L',NULL,'Jackson','Way','SE',NULL,NULL,NULL,NULL,'New York',1,1031,NULL,'10149',NULL,1228,40.780751,-73.977182,0,NULL,NULL,55), - (134,127,1,1,0,'849L Jackson Way SE',849,'L',NULL,'Jackson','Way','SE',NULL,NULL,NULL,NULL,'New York',1,1031,NULL,'10149',NULL,1228,40.780751,-73.977182,0,NULL,NULL,55), - (135,16,1,1,0,'849L Jackson Way SE',849,'L',NULL,'Jackson','Way','SE',NULL,NULL,NULL,NULL,'New York',1,1031,NULL,'10149',NULL,1228,40.780751,-73.977182,0,NULL,NULL,55), - (136,72,1,1,0,'625L Martin Luther King Blvd SW',625,'L',NULL,'Martin Luther King','Blvd','SW',NULL,NULL,NULL,NULL,'Burlington',1,1044,NULL,'05401',NULL,1228,44.484038,-73.22126,0,NULL,NULL,56), - (137,125,1,1,0,'625L Martin Luther King Blvd SW',625,'L',NULL,'Martin Luther King','Blvd','SW',NULL,NULL,NULL,NULL,'Burlington',1,1044,NULL,'05401',NULL,1228,44.484038,-73.22126,0,NULL,NULL,56), - (138,17,1,1,0,'625L Martin Luther King Blvd SW',625,'L',NULL,'Martin Luther King','Blvd','SW',NULL,NULL,NULL,NULL,'Burlington',1,1044,NULL,'05401',NULL,1228,44.484038,-73.22126,0,NULL,NULL,56), - (139,95,1,1,0,'148Z Green Way NE',148,'Z',NULL,'Green','Way','NE',NULL,NULL,NULL,NULL,'Laurinburg',1,1032,NULL,'28352',NULL,1228,34.779227,-79.45745,0,NULL,NULL,NULL), - (140,139,1,1,0,'628X Lincoln Dr NW',628,'X',NULL,'Lincoln','Dr','NW',NULL,NULL,NULL,NULL,'Grand Rapids',1,1021,NULL,'49507',NULL,1228,42.933077,-85.65435,0,NULL,NULL,57), - (141,88,1,1,0,'628X Lincoln Dr NW',628,'X',NULL,'Lincoln','Dr','NW',NULL,NULL,NULL,NULL,'Grand Rapids',1,1021,NULL,'49507',NULL,1228,42.933077,-85.65435,0,NULL,NULL,57), - (142,77,1,1,0,'628X Lincoln Dr NW',628,'X',NULL,'Lincoln','Dr','NW',NULL,NULL,NULL,NULL,'Grand Rapids',1,1021,NULL,'49507',NULL,1228,42.933077,-85.65435,0,NULL,NULL,57), - (143,173,1,1,0,'628X Lincoln Dr NW',628,'X',NULL,'Lincoln','Dr','NW',NULL,NULL,NULL,NULL,'Grand Rapids',1,1021,NULL,'49507',NULL,1228,42.933077,-85.65435,0,NULL,NULL,57), - (144,99,1,1,0,'776O Van Ness St S',776,'O',NULL,'Van Ness','St','S',NULL,NULL,NULL,NULL,'Renfrew',1,1037,NULL,'16053',NULL,1228,40.808934,-79.97811,0,NULL,NULL,58), - (145,116,1,1,0,'776O Van Ness St S',776,'O',NULL,'Van Ness','St','S',NULL,NULL,NULL,NULL,'Renfrew',1,1037,NULL,'16053',NULL,1228,40.808934,-79.97811,0,NULL,NULL,58), - (146,29,1,1,0,'776O Van Ness St S',776,'O',NULL,'Van Ness','St','S',NULL,NULL,NULL,NULL,'Renfrew',1,1037,NULL,'16053',NULL,1228,40.808934,-79.97811,0,NULL,NULL,58), - (147,31,1,1,0,'690V States St NE',690,'V',NULL,'States','St','NE',NULL,NULL,NULL,NULL,'Welda',1,1015,NULL,'66091',NULL,1228,38.185196,-95.33705,0,NULL,NULL,NULL), - (148,60,1,1,0,'508N Pine Blvd NE',508,'N',NULL,'Pine','Blvd','NE',NULL,NULL,NULL,NULL,'Chatsworth',1,1004,NULL,'91312',NULL,1228,33.786594,-118.298662,0,NULL,NULL,59), - (149,170,1,1,0,'508N Pine Blvd NE',508,'N',NULL,'Pine','Blvd','NE',NULL,NULL,NULL,NULL,'Chatsworth',1,1004,NULL,'91312',NULL,1228,33.786594,-118.298662,0,NULL,NULL,59), - (150,38,1,1,0,'508N Pine Blvd NE',508,'N',NULL,'Pine','Blvd','NE',NULL,NULL,NULL,NULL,'Chatsworth',1,1004,NULL,'91312',NULL,1228,33.786594,-118.298662,0,NULL,NULL,59), - (151,86,1,1,0,'508N Pine Blvd NE',508,'N',NULL,'Pine','Blvd','NE',NULL,NULL,NULL,NULL,'Chatsworth',1,1004,NULL,'91312',NULL,1228,33.786594,-118.298662,0,NULL,NULL,59), - (152,65,1,1,0,'346I States Pl W',346,'I',NULL,'States','Pl','W',NULL,NULL,NULL,NULL,'Spencer',1,1041,NULL,'38585',NULL,1228,35.69653,-85.41146,0,NULL,NULL,60), - (153,94,1,1,0,'346I States Pl W',346,'I',NULL,'States','Pl','W',NULL,NULL,NULL,NULL,'Spencer',1,1041,NULL,'38585',NULL,1228,35.69653,-85.41146,0,NULL,NULL,60), - (154,195,1,1,0,'346I States Pl W',346,'I',NULL,'States','Pl','W',NULL,NULL,NULL,NULL,'Spencer',1,1041,NULL,'38585',NULL,1228,35.69653,-85.41146,0,NULL,NULL,60), - (155,7,1,1,0,'958R Martin Luther King Ln N',958,'R',NULL,'Martin Luther King','Ln','N',NULL,NULL,NULL,NULL,'West Forks',1,1018,NULL,'04985',NULL,1228,45.380034,-69.90892,0,NULL,NULL,NULL), - (156,42,1,1,0,'851W Woodbridge Pl N',851,'W',NULL,'Woodbridge','Pl','N',NULL,NULL,NULL,NULL,'Harrison',1,1031,NULL,'10528',NULL,1228,40.972667,-73.71886,0,NULL,NULL,61), - (157,176,1,1,0,'851W Woodbridge Pl N',851,'W',NULL,'Woodbridge','Pl','N',NULL,NULL,NULL,NULL,'Harrison',1,1031,NULL,'10528',NULL,1228,40.972667,-73.71886,0,NULL,NULL,61), - (158,36,1,1,0,'851W Woodbridge Pl N',851,'W',NULL,'Woodbridge','Pl','N',NULL,NULL,NULL,NULL,'Harrison',1,1031,NULL,'10528',NULL,1228,40.972667,-73.71886,0,NULL,NULL,61), - (159,45,1,1,0,'851W Woodbridge Pl N',851,'W',NULL,'Woodbridge','Pl','N',NULL,NULL,NULL,NULL,'Harrison',1,1031,NULL,'10528',NULL,1228,40.972667,-73.71886,0,NULL,NULL,61), - (160,25,1,1,0,'327Y Maple Path W',327,'Y',NULL,'Maple','Path','W',NULL,NULL,NULL,NULL,'Glencoe',1,1030,NULL,'88324',NULL,1228,33.429637,-105.48489,0,NULL,NULL,62), - (161,19,1,1,0,'327Y Maple Path W',327,'Y',NULL,'Maple','Path','W',NULL,NULL,NULL,NULL,'Glencoe',1,1030,NULL,'88324',NULL,1228,33.429637,-105.48489,0,NULL,NULL,62), - (162,97,1,1,0,'327Y Maple Path W',327,'Y',NULL,'Maple','Path','W',NULL,NULL,NULL,NULL,'Glencoe',1,1030,NULL,'88324',NULL,1228,33.429637,-105.48489,0,NULL,NULL,62), - (163,133,1,1,0,'327Y Maple Path W',327,'Y',NULL,'Maple','Path','W',NULL,NULL,NULL,NULL,'Glencoe',1,1030,NULL,'88324',NULL,1228,33.429637,-105.48489,0,NULL,NULL,62), - (164,93,1,1,0,'763F Main St SW',763,'F',NULL,'Main','St','SW',NULL,NULL,NULL,NULL,'Grand Rapids',1,1021,NULL,'49555',NULL,1228,43.031413,-85.550267,0,NULL,NULL,63), - (165,76,1,0,0,'763F Main St SW',763,'F',NULL,'Main','St','SW',NULL,NULL,NULL,NULL,'Grand Rapids',1,1021,NULL,'49555',NULL,1228,43.031413,-85.550267,0,NULL,NULL,63), - (166,187,1,1,0,'763F Main St SW',763,'F',NULL,'Main','St','SW',NULL,NULL,NULL,NULL,'Grand Rapids',1,1021,NULL,'49555',NULL,1228,43.031413,-85.550267,0,NULL,NULL,63), - (167,46,1,1,0,'763F Main St SW',763,'F',NULL,'Main','St','SW',NULL,NULL,NULL,NULL,'Grand Rapids',1,1021,NULL,'49555',NULL,1228,43.031413,-85.550267,0,NULL,NULL,63), - (168,179,1,1,0,'99G Cadell Way W',99,'G',NULL,'Cadell','Way','W',NULL,NULL,NULL,NULL,'Gardner',1,1012,NULL,'60424',NULL,1228,41.174117,-88.30954,0,NULL,NULL,64), - (169,185,1,1,0,'99G Cadell Way W',99,'G',NULL,'Cadell','Way','W',NULL,NULL,NULL,NULL,'Gardner',1,1012,NULL,'60424',NULL,1228,41.174117,-88.30954,0,NULL,NULL,64), - (170,197,1,1,0,'99G Cadell Way W',99,'G',NULL,'Cadell','Way','W',NULL,NULL,NULL,NULL,'Gardner',1,1012,NULL,'60424',NULL,1228,41.174117,-88.30954,0,NULL,NULL,64), - (171,74,1,1,0,'329E Green Path W',329,'E',NULL,'Green','Path','W',NULL,NULL,NULL,NULL,'Santa Ana',1,1004,NULL,'92712',NULL,1228,33.640302,-117.769442,0,NULL,NULL,NULL), - (172,119,1,1,0,'273D Caulder Blvd NE',273,'D',NULL,'Caulder','Blvd','NE',NULL,NULL,NULL,NULL,'Sioux Falls',1,1040,NULL,'57108',NULL,1228,43.488472,-96.72258,0,NULL,NULL,65), - (173,2,1,1,0,'273D Caulder Blvd NE',273,'D',NULL,'Caulder','Blvd','NE',NULL,NULL,NULL,NULL,'Sioux Falls',1,1040,NULL,'57108',NULL,1228,43.488472,-96.72258,0,NULL,NULL,65), - (174,57,1,1,0,'273D Caulder Blvd NE',273,'D',NULL,'Caulder','Blvd','NE',NULL,NULL,NULL,NULL,'Sioux Falls',1,1040,NULL,'57108',NULL,1228,43.488472,-96.72258,0,NULL,NULL,65), - (175,184,1,1,0,'273D Caulder Blvd NE',273,'D',NULL,'Caulder','Blvd','NE',NULL,NULL,NULL,NULL,'Sioux Falls',1,1040,NULL,'57108',NULL,1228,43.488472,-96.72258,0,NULL,NULL,65), - (176,9,1,1,0,'876H Martin Luther King Ave NE',876,'H',NULL,'Martin Luther King','Ave','NE',NULL,NULL,NULL,NULL,'Detroit',1,1021,NULL,'48243',NULL,1228,42.239933,-83.150823,0,NULL,NULL,66), - (177,89,1,1,0,'876H Martin Luther King Ave NE',876,'H',NULL,'Martin Luther King','Ave','NE',NULL,NULL,NULL,NULL,'Detroit',1,1021,NULL,'48243',NULL,1228,42.239933,-83.150823,0,NULL,NULL,66), - (178,54,1,1,0,'876H Martin Luther King Ave NE',876,'H',NULL,'Martin Luther King','Ave','NE',NULL,NULL,NULL,NULL,'Detroit',1,1021,NULL,'48243',NULL,1228,42.239933,-83.150823,0,NULL,NULL,66), - (179,110,1,1,0,'15D Maple Blvd SW',15,'D',NULL,'Maple','Blvd','SW',NULL,NULL,NULL,NULL,'Arcola',1,1024,NULL,'65603',NULL,1228,37.557203,-93.86589,0,NULL,NULL,NULL), - (180,NULL,1,1,1,'14S El Camino Way E',14,'S',NULL,'El Camino','Way',NULL,NULL,NULL,NULL,NULL,'Collinsville',NULL,1006,NULL,'6022',NULL,1228,41.8328,-72.9253,0,NULL,NULL,NULL), - (181,NULL,1,1,1,'11B Woodbridge Path SW',11,'B',NULL,'Woodbridge','Path',NULL,NULL,NULL,NULL,NULL,'Dayton',NULL,1034,NULL,'45417',NULL,1228,39.7531,-84.2471,0,NULL,NULL,NULL), - (182,NULL,1,1,1,'581O Lincoln Dr SW',581,'O',NULL,'Lincoln','Dr',NULL,NULL,NULL,NULL,NULL,'Santa Fe',NULL,1030,NULL,'87594',NULL,1228,35.5212,-105.982,0,NULL,NULL,NULL); + (1,201,1,1,0,'469W States St SW',469,'W',NULL,'States','St','SW',NULL,NULL,NULL,NULL,'Brewton',1,1000,NULL,'36426',NULL,1228,31.129008,-87.10173,0,NULL,NULL,NULL), + (2,113,1,1,0,'244S Jackson Path W',244,'S',NULL,'Jackson','Path','W',NULL,NULL,NULL,NULL,'Provo',1,1016,NULL,'42267',NULL,1228,37.229645,-86.804803,0,NULL,NULL,NULL), + (3,81,1,1,0,'574K States Ln W',574,'K',NULL,'States','Ln','W',NULL,NULL,NULL,NULL,'Honolulu',1,1010,NULL,'96830',NULL,1228,24.859832,-168.021815,0,NULL,NULL,NULL), + (4,61,1,1,0,'490B States Ave SE',490,'B',NULL,'States','Ave','SE',NULL,NULL,NULL,NULL,'Gloucester',1,1032,NULL,'28528',NULL,1228,34.732744,-76.53869,0,NULL,NULL,NULL), + (5,5,1,1,0,'120V Dowlen Way S',120,'V',NULL,'Dowlen','Way','S',NULL,NULL,NULL,NULL,'Denmark',1,1018,NULL,'04022',NULL,1228,43.969,-70.78804,0,NULL,NULL,NULL), + (6,182,1,1,0,'380X Martin Luther King Pl S',380,'X',NULL,'Martin Luther King','Pl','S',NULL,NULL,NULL,NULL,'Acosta',1,1037,NULL,'15520',NULL,1228,40.112153,-79.06772,0,NULL,NULL,NULL), + (7,179,1,1,0,'749K Bay Blvd SE',749,'K',NULL,'Bay','Blvd','SE',NULL,NULL,NULL,NULL,'Escatawpa',1,1023,NULL,'39552',NULL,1228,30.441072,-88.634482,0,NULL,NULL,NULL), + (8,125,1,1,0,'983Y Bay Path SE',983,'Y',NULL,'Bay','Path','SE',NULL,NULL,NULL,NULL,'Ann Arbor',1,1021,NULL,'48109',NULL,1228,42.291637,-83.71831,0,NULL,NULL,NULL), + (9,90,1,1,0,'648B Martin Luther King St N',648,'B',NULL,'Martin Luther King','St','N',NULL,NULL,NULL,NULL,'Hampstead',1,1028,NULL,'03841',NULL,1228,42.880837,-71.18252,0,NULL,NULL,NULL), + (10,72,1,1,0,'295A Martin Luther King Way NW',295,'A',NULL,'Martin Luther King','Way','NW',NULL,NULL,NULL,NULL,'Wharton',1,1047,NULL,'25208',NULL,1228,37.887883,-81.67191,0,NULL,NULL,NULL), + (11,129,1,1,0,'89O Pine Ln N',89,'O',NULL,'Pine','Ln','N',NULL,NULL,NULL,NULL,'Farmington',1,1021,NULL,'48331',NULL,1228,42.508809,-83.40875,0,NULL,NULL,NULL), + (12,185,1,1,0,'528P Bay Ave NW',528,'P',NULL,'Bay','Ave','NW',NULL,NULL,NULL,NULL,'South Kingstown',1,1038,NULL,'02789',NULL,1228,41.487831,-71.457592,0,NULL,NULL,NULL), + (13,169,1,1,0,'581D Martin Luther King Blvd NE',581,'D',NULL,'Martin Luther King','Blvd','NE',NULL,NULL,NULL,NULL,'Penn',1,1037,NULL,'15675',NULL,1228,40.330326,-79.64061,0,NULL,NULL,NULL), + (14,96,1,1,0,'589N Cadell Pl NE',589,'N',NULL,'Cadell','Pl','NE',NULL,NULL,NULL,NULL,'Village',1,1003,NULL,'71769',NULL,1228,33.236156,-93.234494,0,NULL,NULL,NULL), + (15,110,1,1,0,'788E Lincoln St E',788,'E',NULL,'Lincoln','St','E',NULL,NULL,NULL,NULL,'Glenmoore',1,1037,NULL,'19343',NULL,1228,40.094621,-75.74602,0,NULL,NULL,NULL), + (16,160,1,1,0,'507G Northpoint Dr NE',507,'G',NULL,'Northpoint','Dr','NE',NULL,NULL,NULL,NULL,'Brookeland',1,1042,NULL,'75931',NULL,1228,31.109064,-93.99031,0,NULL,NULL,NULL), + (17,106,1,1,0,'803S Northpoint Way NW',803,'S',NULL,'Northpoint','Way','NW',NULL,NULL,NULL,NULL,'Charlotte',1,1032,NULL,'28212',NULL,1228,35.189544,-80.74742,0,NULL,NULL,NULL), + (18,100,1,1,0,'856C Pine Path NE',856,'C',NULL,'Pine','Path','NE',NULL,NULL,NULL,NULL,'Saverton',1,1024,NULL,'63467',NULL,1228,39.650045,-91.270502,0,NULL,NULL,NULL), + (19,20,1,1,0,'745Z Van Ness Ave SE',745,'Z',NULL,'Van Ness','Ave','SE',NULL,NULL,NULL,NULL,'Perrysburg',1,1034,NULL,'43551',NULL,1228,41.540724,-83.58904,0,NULL,NULL,NULL), + (20,155,1,1,0,'165V Maple Pl W',165,'V',NULL,'Maple','Pl','W',NULL,NULL,NULL,NULL,'Fresno',1,1004,NULL,'93711',NULL,1228,36.831723,-119.83198,0,NULL,NULL,NULL), + (21,94,1,1,0,'481Y Beech Ln SE',481,'Y',NULL,'Beech','Ln','SE',NULL,NULL,NULL,NULL,'Hornbrook',1,1004,NULL,'96044',NULL,1228,41.925752,-122.52253,0,NULL,NULL,NULL), + (22,197,1,1,0,'260Z Dowlen Pl SE',260,'Z',NULL,'Dowlen','Pl','SE',NULL,NULL,NULL,NULL,'Los Angeles',1,1004,NULL,'90062',NULL,1228,34.003213,-118.3078,0,NULL,NULL,NULL), + (23,55,1,1,0,'494P Green Way N',494,'P',NULL,'Green','Way','N',NULL,NULL,NULL,NULL,'Brunswick',1,1009,NULL,'31523',NULL,1228,31.212705,-81.60975,0,NULL,NULL,NULL), + (24,142,1,1,0,'337I Beech Pl N',337,'I',NULL,'Beech','Pl','N',NULL,NULL,NULL,NULL,'Milo',1,1014,NULL,'50166',NULL,1228,41.283703,-93.41399,0,NULL,NULL,NULL), + (25,43,1,1,0,'785S Van Ness Way NE',785,'S',NULL,'Van Ness','Way','NE',NULL,NULL,NULL,NULL,'Pueblo',1,1005,NULL,'81001',NULL,1228,38.282872,-104.57029,0,NULL,NULL,NULL), + (26,70,1,1,0,'458X Bay Path E',458,'X',NULL,'Bay','Path','E',NULL,NULL,NULL,NULL,'Hawthorne',1,1008,NULL,'32640',NULL,1228,29.601599,-82.0309,0,NULL,NULL,NULL), + (27,16,1,1,0,'169S Martin Luther King Blvd S',169,'S',NULL,'Martin Luther King','Blvd','S',NULL,NULL,NULL,NULL,'New Effington',1,1040,NULL,'57255',NULL,1228,45.859799,-96.91988,0,NULL,NULL,NULL), + (28,47,1,1,0,'346Q States St NW',346,'Q',NULL,'States','St','NW',NULL,NULL,NULL,NULL,'Esbon',1,1015,NULL,'66941',NULL,1228,39.827165,-98.44356,0,NULL,NULL,NULL), + (29,199,1,1,0,'80K States Ln S',80,'K',NULL,'States','Ln','S',NULL,NULL,NULL,NULL,'Cleveland',1,1042,NULL,'77327',NULL,1228,30.35469,-95.04514,0,NULL,NULL,NULL), + (30,2,1,1,0,'876X Beech Path SW',876,'X',NULL,'Beech','Path','SW',NULL,NULL,NULL,NULL,'Callaway',1,1019,NULL,'20620',NULL,1228,38.226406,-76.51759,0,NULL,NULL,NULL), + (31,91,1,1,0,'207I Dowlen Path W',207,'I',NULL,'Dowlen','Path','W',NULL,NULL,NULL,NULL,'Pittsburgh',1,1037,NULL,'15223',NULL,1228,40.503768,-79.95164,0,NULL,NULL,NULL), + (32,54,1,1,0,'654B Northpoint Way W',654,'B',NULL,'Northpoint','Way','W',NULL,NULL,NULL,NULL,'San Lorenzo',1,1004,NULL,'94580',NULL,1228,37.678531,-122.13199,0,NULL,NULL,NULL), + (33,30,1,1,0,'555X Lincoln Path NW',555,'X',NULL,'Lincoln','Path','NW',NULL,NULL,NULL,NULL,'Harper',1,1015,NULL,'67058',NULL,1228,37.297898,-98.03916,0,NULL,NULL,NULL), + (34,170,1,1,0,'238O Second Ln NW',238,'O',NULL,'Second','Ln','NW',NULL,NULL,NULL,NULL,'Lyndhurst',1,1029,NULL,'07071',NULL,1228,40.808416,-74.12111,0,NULL,NULL,NULL), + (35,156,1,1,0,'481F Beech Blvd N',481,'F',NULL,'Beech','Blvd','N',NULL,NULL,NULL,NULL,'Harpers Ferry',1,1014,NULL,'52146',NULL,1228,43.195154,-91.16405,0,NULL,NULL,NULL), + (36,177,1,1,0,'436V El Camino Dr NW',436,'V',NULL,'El Camino','Dr','NW',NULL,NULL,NULL,NULL,'Delaware',1,1035,NULL,'74027',NULL,1228,36.793303,-95.63631,0,NULL,NULL,NULL), + (37,143,1,1,0,'961D Second St SE',961,'D',NULL,'Second','St','SE',NULL,NULL,NULL,NULL,'Chesapeake',1,1045,NULL,'23321',NULL,1228,36.826239,-76.41524,0,NULL,NULL,NULL), + (38,122,1,1,0,'645Q Woodbridge Ave S',645,'Q',NULL,'Woodbridge','Ave','S',NULL,NULL,NULL,NULL,'Port Hope',1,1021,NULL,'48468',NULL,1228,43.938529,-82.77514,0,NULL,NULL,NULL), + (39,196,1,1,0,'150W Beech Blvd E',150,'W',NULL,'Beech','Blvd','E',NULL,NULL,NULL,NULL,'Westminster',1,1004,NULL,'92685',NULL,1228,33.640302,-117.769442,0,NULL,NULL,NULL), + (40,198,1,1,0,'383M Pine Way E',383,'M',NULL,'Pine','Way','E',NULL,NULL,NULL,NULL,'Cokeburg',1,1037,NULL,'15324',NULL,1228,40.10012,-80.06363,0,NULL,NULL,NULL), + (41,102,1,1,0,'533W Northpoint Way NE',533,'W',NULL,'Northpoint','Way','NE',NULL,NULL,NULL,NULL,'La Ward',1,1042,NULL,'77970',NULL,1228,28.865213,-96.4397,0,NULL,NULL,NULL), + (42,167,1,1,0,'549J Second Dr SE',549,'J',NULL,'Second','Dr','SE',NULL,NULL,NULL,NULL,'Leesburg',1,1008,NULL,'34749',NULL,1228,28.811078,-81.653642,0,NULL,NULL,NULL), + (43,68,1,1,0,'779G Main Path S',779,'G',NULL,'Main','Path','S',NULL,NULL,NULL,NULL,'Mesa',1,1046,NULL,'99343',NULL,1228,46.581454,-119.12107,0,NULL,NULL,NULL), + (44,115,1,1,0,'527K Woodbridge Dr SW',527,'K',NULL,'Woodbridge','Dr','SW',NULL,NULL,NULL,NULL,'Robbins',1,1041,NULL,'37852',NULL,1228,36.335832,-84.6022,0,NULL,NULL,NULL), + (45,12,1,1,0,'432O Maple Ln SE',432,'O',NULL,'Maple','Ln','SE',NULL,NULL,NULL,NULL,'Baton Rouge',1,1017,NULL,'70826',NULL,1228,30.51589,-91.080373,0,NULL,NULL,NULL), + (46,195,1,1,0,'873T Main Way SE',873,'T',NULL,'Main','Way','SE',NULL,NULL,NULL,NULL,'Malvern',1,1003,NULL,'72104',NULL,1228,34.364093,-92.8146,0,NULL,NULL,NULL), + (47,36,1,1,0,'68C Lincoln Pl N',68,'C',NULL,'Lincoln','Pl','N',NULL,NULL,NULL,NULL,'Lakeshore',1,1023,NULL,'39558',NULL,1228,30.239124,-89.459526,0,NULL,NULL,NULL), + (48,32,1,1,0,'851D El Camino Rd SE',851,'D',NULL,'El Camino','Rd','SE',NULL,NULL,NULL,NULL,'Auburndale',1,1048,NULL,'54412',NULL,1228,44.662975,-89.9943,0,NULL,NULL,NULL), + (49,37,1,1,0,'3H College Pl W',3,'H',NULL,'College','Pl','W',NULL,NULL,NULL,NULL,'Springfield',1,1024,NULL,'65898',NULL,1228,37.180349,-93.295137,0,NULL,NULL,NULL), + (50,123,1,1,0,'289J States Rd W',289,'J',NULL,'States','Rd','W',NULL,NULL,NULL,NULL,'Bridgeport',1,1006,NULL,'06608',NULL,1228,41.188746,-73.1813,0,NULL,NULL,NULL), + (51,163,1,1,0,'643M Dowlen Blvd N',643,'M',NULL,'Dowlen','Blvd','N',NULL,NULL,NULL,NULL,'Atwood',1,1035,NULL,'74827',NULL,1228,34.949547,-96.33356,0,NULL,NULL,NULL), + (52,200,1,1,0,'967F Van Ness St N',967,'F',NULL,'Van Ness','St','N',NULL,NULL,NULL,NULL,'Cincinnati',1,1034,NULL,'45253',NULL,1228,39.166759,-84.53822,0,NULL,NULL,NULL), + (53,14,1,1,0,'317A States Blvd E',317,'A',NULL,'States','Blvd','E',NULL,NULL,NULL,NULL,'Senecaville',1,1034,NULL,'43780',NULL,1228,39.930047,-81.44256,0,NULL,NULL,NULL), + (54,52,1,1,0,'280B Green Blvd SW',280,'B',NULL,'Green','Blvd','SW',NULL,NULL,NULL,NULL,'Valley Center',1,1015,NULL,'67147',NULL,1228,37.853935,-97.33059,0,NULL,NULL,NULL), + (55,6,1,1,0,'78Y Main Path SW',78,'Y',NULL,'Main','Path','SW',NULL,NULL,NULL,NULL,'Tornado',1,1047,NULL,'25202',NULL,1228,38.327452,-81.84485,0,NULL,NULL,NULL), + (56,11,1,1,0,'1T Pine Rd E',1,'T',NULL,'Pine','Rd','E',NULL,NULL,NULL,NULL,'Konawa',1,1035,NULL,'74894',NULL,1228,34.955971,-96.754575,0,NULL,NULL,NULL), + (57,139,1,1,0,'772M Green Ln NE',772,'M',NULL,'Green','Ln','NE',NULL,NULL,NULL,NULL,'Brownsdale',1,1022,NULL,'55918',NULL,1228,43.743087,-92.86434,0,NULL,NULL,NULL), + (58,130,1,1,0,'206P States Dr S',206,'P',NULL,'States','Dr','S',NULL,NULL,NULL,NULL,'Childwold',1,1031,NULL,'12922',NULL,1228,44.224185,-74.76539,0,NULL,NULL,NULL), + (59,124,1,1,0,'692T Van Ness Way NE',692,'T',NULL,'Van Ness','Way','NE',NULL,NULL,NULL,NULL,'Fulton',1,1023,NULL,'38843',NULL,1228,34.265985,-88.38409,0,NULL,NULL,NULL), + (60,147,1,1,0,'998K Northpoint Path NW',998,'K',NULL,'Northpoint','Path','NW',NULL,NULL,NULL,NULL,'Keyesport',1,1012,NULL,'62253',NULL,1228,38.761214,-89.29128,0,NULL,NULL,NULL), + (61,107,1,1,0,'425C Green Rd NE',425,'C',NULL,'Green','Rd','NE',NULL,NULL,NULL,NULL,'Forestport',1,1031,NULL,'13338',NULL,1228,43.506153,-75.07355,0,NULL,NULL,NULL), + (62,161,1,1,0,'517I Woodbridge Dr SW',517,'I',NULL,'Woodbridge','Dr','SW',NULL,NULL,NULL,NULL,'Sutter',1,1004,NULL,'95982',NULL,1228,39.16855,-121.76465,0,NULL,NULL,NULL), + (63,59,1,1,0,'599B Lincoln Ln N',599,'B',NULL,'Lincoln','Ln','N',NULL,NULL,NULL,NULL,'Birmingham',1,1000,NULL,'35226',NULL,1228,33.406409,-86.8295,0,NULL,NULL,NULL), + (64,117,1,1,0,'548G Van Ness Way NE',548,'G',NULL,'Van Ness','Way','NE',NULL,NULL,NULL,NULL,'Freeville',1,1031,NULL,'13068',NULL,1228,42.505075,-76.35283,0,NULL,NULL,NULL), + (65,88,1,1,0,'858A Woodbridge Dr SE',858,'A',NULL,'Woodbridge','Dr','SE',NULL,NULL,NULL,NULL,'Marion',1,1003,NULL,'72364',NULL,1228,35.200501,-90.20234,0,NULL,NULL,NULL), + (66,135,1,1,0,'582T Main Rd E',582,'T',NULL,'Main','Rd','E',NULL,NULL,NULL,NULL,'Goreville',1,1012,NULL,'62939',NULL,1228,37.558235,-88.96661,0,NULL,NULL,NULL), + (67,132,1,1,0,'665C College St S',665,'C',NULL,'College','St','S',NULL,NULL,NULL,NULL,'Dayton',1,1034,NULL,'45420',NULL,1228,39.723909,-84.13453,0,NULL,NULL,NULL), + (68,76,1,1,0,'470W Beech Way E',470,'W',NULL,'Beech','Way','E',NULL,NULL,NULL,NULL,'Wyoming',1,1038,NULL,'02898',NULL,1228,41.51495,-71.68484,0,NULL,NULL,NULL), + (69,21,1,1,0,'584E Beech Ave E',584,'E',NULL,'Beech','Ave','E',NULL,NULL,NULL,NULL,'Encino',1,1042,NULL,'78353',NULL,1228,26.894094,-98.21561,0,NULL,NULL,NULL), + (70,183,1,1,0,'304U Beech Ln SW',304,'U',NULL,'Beech','Ln','SW',NULL,NULL,NULL,NULL,'Mabscott',1,1047,NULL,'25871',NULL,1228,37.771364,-81.2093,0,NULL,NULL,NULL), + (71,148,1,1,0,'712B Cadell Path SE',712,'B',NULL,'Cadell','Path','SE',NULL,NULL,NULL,NULL,'Secretary',1,1019,NULL,'21664',NULL,1228,38.609886,-75.949,0,NULL,NULL,NULL), + (72,31,3,1,0,'255Q Second Rd S',255,'Q',NULL,'Second','Rd','S',NULL,'Mailstop 101',NULL,NULL,'Ben Franklin',1,1042,NULL,'75415',NULL,1228,33.460447,-95.75734,0,NULL,NULL,NULL), + (73,194,2,1,0,'255Q Second Rd S',255,'Q',NULL,'Second','Rd','S',NULL,'Mailstop 101',NULL,NULL,'Ben Franklin',1,1042,NULL,'75415',NULL,1228,33.460447,-95.75734,0,NULL,NULL,72), + (74,150,3,1,0,'30U Van Ness Pl SW',30,'U',NULL,'Van Ness','Pl','SW',NULL,'Subscriptions Dept',NULL,NULL,'Novelty',1,1034,NULL,'44073',NULL,1228,41.837043,-80.955545,0,NULL,NULL,NULL), + (75,79,2,1,0,'30U Van Ness Pl SW',30,'U',NULL,'Van Ness','Pl','SW',NULL,'Subscriptions Dept',NULL,NULL,'Novelty',1,1034,NULL,'44073',NULL,1228,41.837043,-80.955545,0,NULL,NULL,74), + (76,133,3,1,0,'66U Lincoln Path N',66,'U',NULL,'Lincoln','Path','N',NULL,'Attn: Development',NULL,NULL,'Guerra',1,1042,NULL,'78360',NULL,1228,27.071318,-98.686327,0,NULL,NULL,NULL), + (77,104,2,1,0,'66U Lincoln Path N',66,'U',NULL,'Lincoln','Path','N',NULL,'Attn: Development',NULL,NULL,'Guerra',1,1042,NULL,'78360',NULL,1228,27.071318,-98.686327,0,NULL,NULL,76), + (78,168,3,1,0,'716B Cadell Rd SE',716,'B',NULL,'Cadell','Rd','SE',NULL,'Editorial Dept',NULL,NULL,'Highmount',1,1031,NULL,'12441',NULL,1228,41.878801,-74.345684,0,NULL,NULL,NULL), + (79,174,3,1,0,'79L Maple Path NE',79,'L',NULL,'Maple','Path','NE',NULL,'Urgent',NULL,NULL,'Mountain View',1,1003,NULL,'72560',NULL,1228,35.863114,-92.11108,0,NULL,NULL,NULL), + (80,187,2,1,0,'79L Maple Path NE',79,'L',NULL,'Maple','Path','NE',NULL,'Urgent',NULL,NULL,'Mountain View',1,1003,NULL,'72560',NULL,1228,35.863114,-92.11108,0,NULL,NULL,79), + (81,190,3,1,0,'914Q Jackson Rd S',914,'Q',NULL,'Jackson','Rd','S',NULL,'Payables Dept.',NULL,NULL,'Jacksonville',1,1008,NULL,'32267',NULL,1228,30.34494,-81.683107,0,NULL,NULL,NULL), + (82,122,2,0,0,'914Q Jackson Rd S',914,'Q',NULL,'Jackson','Rd','S',NULL,'Payables Dept.',NULL,NULL,'Jacksonville',1,1008,NULL,'32267',NULL,1228,30.34494,-81.683107,0,NULL,NULL,81), + (83,118,3,1,0,'208X Caulder Ave NE',208,'X',NULL,'Caulder','Ave','NE',NULL,'Attn: Accounting',NULL,NULL,'Toledo',1,1034,NULL,'43682',NULL,1228,41.686778,-83.43943,0,NULL,NULL,NULL), + (84,12,2,0,0,'208X Caulder Ave NE',208,'X',NULL,'Caulder','Ave','NE',NULL,'Attn: Accounting',NULL,NULL,'Toledo',1,1034,NULL,'43682',NULL,1228,41.686778,-83.43943,0,NULL,NULL,83), + (85,74,3,1,0,'162B Bay Ln SE',162,'B',NULL,'Bay','Ln','SE',NULL,'c/o OPDC',NULL,NULL,'Longville',1,1022,NULL,'56655',NULL,1228,46.975876,-94.21508,0,NULL,NULL,NULL), + (86,89,3,1,0,'374S Green Ave NW',374,'S',NULL,'Green','Ave','NW',NULL,'Disbursements',NULL,NULL,'El Centro',1,1004,NULL,'92243',NULL,1228,32.783359,-115.57746,0,NULL,NULL,NULL), + (87,171,3,1,0,'577W Jackson Ave S',577,'W',NULL,'Jackson','Ave','S',NULL,'Payables Dept.',NULL,NULL,'San Antonio',1,1042,NULL,'78279',NULL,1228,29.437532,-98.461582,0,NULL,NULL,NULL), + (88,169,2,0,0,'577W Jackson Ave S',577,'W',NULL,'Jackson','Ave','S',NULL,'Payables Dept.',NULL,NULL,'San Antonio',1,1042,NULL,'78279',NULL,1228,29.437532,-98.461582,0,NULL,NULL,87), + (89,121,3,1,0,'792G College St SE',792,'G',NULL,'College','St','SE',NULL,'Churchgate',NULL,NULL,'Redding',1,1004,NULL,'96003',NULL,1228,40.641389,-122.34206,0,NULL,NULL,NULL), + (90,58,2,1,0,'792G College St SE',792,'G',NULL,'College','St','SE',NULL,'Churchgate',NULL,NULL,'Redding',1,1004,NULL,'96003',NULL,1228,40.641389,-122.34206,0,NULL,NULL,89), + (91,50,3,1,0,'224N College Ln E',224,'N',NULL,'College','Ln','E',NULL,'Urgent',NULL,NULL,'Marseilles',1,1012,NULL,'61341',NULL,1228,41.336202,-88.69727,0,NULL,NULL,NULL), + (92,112,3,1,0,'546I Northpoint Dr S',546,'I',NULL,'Northpoint','Dr','S',NULL,'Attn: Development',NULL,NULL,'Jamaica',1,1014,NULL,'50128',NULL,1228,41.855913,-94.29981,0,NULL,NULL,NULL), + (93,53,3,1,0,'15J Jackson Way S',15,'J',NULL,'Jackson','Way','S',NULL,'Attn: Development',NULL,NULL,'Pittsburgh',1,1037,NULL,'15239',NULL,1228,40.482655,-79.74278,0,NULL,NULL,NULL), + (94,180,2,1,0,'15J Jackson Way S',15,'J',NULL,'Jackson','Way','S',NULL,'Attn: Development',NULL,NULL,'Pittsburgh',1,1037,NULL,'15239',NULL,1228,40.482655,-79.74278,0,NULL,NULL,93), + (95,19,3,1,0,'287J College Way N',287,'J',NULL,'College','Way','N',NULL,'Mailstop 101',NULL,NULL,'Bradenton',1,1008,NULL,'34205',NULL,1228,27.485617,-82.58294,0,NULL,NULL,NULL), + (96,69,2,1,0,'287J College Way N',287,'J',NULL,'College','Way','N',NULL,'Mailstop 101',NULL,NULL,'Bradenton',1,1008,NULL,'34205',NULL,1228,27.485617,-82.58294,0,NULL,NULL,95), + (97,111,3,1,0,'131U States Rd NW',131,'U',NULL,'States','Rd','NW',NULL,'Receiving',NULL,NULL,'Crawfordsville',1,1013,NULL,'47939',NULL,1228,40.040014,-86.893614,0,NULL,NULL,NULL), + (98,17,3,1,0,'422O Jackson Path NW',422,'O',NULL,'Jackson','Path','NW',NULL,'Receiving',NULL,NULL,'Lancaster',1,1037,NULL,'17603',NULL,1228,40.03263,-76.33328,0,NULL,NULL,NULL), + (99,57,2,1,0,'422O Jackson Path NW',422,'O',NULL,'Jackson','Path','NW',NULL,'Receiving',NULL,NULL,'Lancaster',1,1037,NULL,'17603',NULL,1228,40.03263,-76.33328,0,NULL,NULL,98), + (100,64,3,1,0,'637S Van Ness Pl NE',637,'S',NULL,'Van Ness','Pl','NE',NULL,'Payables Dept.',NULL,NULL,'Charleston',1,1047,NULL,'25317',NULL,1228,38.335647,-81.613794,0,NULL,NULL,NULL), + (101,120,2,1,0,'637S Van Ness Pl NE',637,'S',NULL,'Van Ness','Pl','NE',NULL,'Payables Dept.',NULL,NULL,'Charleston',1,1047,NULL,'25317',NULL,1228,38.335647,-81.613794,0,NULL,NULL,100), + (102,166,3,1,0,'651E Pine Ave S',651,'E',NULL,'Pine','Ave','S',NULL,'Churchgate',NULL,NULL,'Lambert',1,1023,NULL,'38643',NULL,1228,34.179708,-90.27846,0,NULL,NULL,NULL), + (103,51,3,1,0,'554W Caulder Path SE',554,'W',NULL,'Caulder','Path','SE',NULL,'Editorial Dept',NULL,NULL,'Montier',1,1024,NULL,'65546',NULL,1228,37.153294,-91.337506,0,NULL,NULL,NULL), + (104,75,2,1,0,'554W Caulder Path SE',554,'W',NULL,'Caulder','Path','SE',NULL,'Editorial Dept',NULL,NULL,'Montier',1,1024,NULL,'65546',NULL,1228,37.153294,-91.337506,0,NULL,NULL,103), + (105,46,1,1,0,'967F Van Ness St N',967,'F',NULL,'Van Ness','St','N',NULL,NULL,NULL,NULL,'Cincinnati',1,1034,NULL,'45253',NULL,1228,39.166759,-84.53822,0,NULL,NULL,52), + (106,66,1,1,0,'967F Van Ness St N',967,'F',NULL,'Van Ness','St','N',NULL,NULL,NULL,NULL,'Cincinnati',1,1034,NULL,'45253',NULL,1228,39.166759,-84.53822,0,NULL,NULL,52), + (107,149,1,1,0,'967F Van Ness St N',967,'F',NULL,'Van Ness','St','N',NULL,NULL,NULL,NULL,'Cincinnati',1,1034,NULL,'45253',NULL,1228,39.166759,-84.53822,0,NULL,NULL,52), + (108,163,1,0,0,'871F Dowlen Blvd S',871,'F',NULL,'Dowlen','Blvd','S',NULL,NULL,NULL,NULL,'Emmons',1,1022,NULL,'56029',NULL,1228,43.516115,-93.51768,0,NULL,NULL,NULL), + (109,184,1,1,0,'317A States Blvd E',317,'A',NULL,'States','Blvd','E',NULL,NULL,NULL,NULL,'Senecaville',1,1034,NULL,'43780',NULL,1228,39.930047,-81.44256,0,NULL,NULL,53), + (110,10,1,1,0,'317A States Blvd E',317,'A',NULL,'States','Blvd','E',NULL,NULL,NULL,NULL,'Senecaville',1,1034,NULL,'43780',NULL,1228,39.930047,-81.44256,0,NULL,NULL,53), + (111,152,1,1,0,'317A States Blvd E',317,'A',NULL,'States','Blvd','E',NULL,NULL,NULL,NULL,'Senecaville',1,1034,NULL,'43780',NULL,1228,39.930047,-81.44256,0,NULL,NULL,53), + (112,18,1,1,0,'317A States Blvd E',317,'A',NULL,'States','Blvd','E',NULL,NULL,NULL,NULL,'Senecaville',1,1034,NULL,'43780',NULL,1228,39.930047,-81.44256,0,NULL,NULL,53), + (113,87,1,1,0,'280B Green Blvd SW',280,'B',NULL,'Green','Blvd','SW',NULL,NULL,NULL,NULL,'Valley Center',1,1015,NULL,'67147',NULL,1228,37.853935,-97.33059,0,NULL,NULL,54), + (114,57,1,0,0,'280B Green Blvd SW',280,'B',NULL,'Green','Blvd','SW',NULL,NULL,NULL,NULL,'Valley Center',1,1015,NULL,'67147',NULL,1228,37.853935,-97.33059,0,NULL,NULL,54), + (115,126,1,1,0,'280B Green Blvd SW',280,'B',NULL,'Green','Blvd','SW',NULL,NULL,NULL,NULL,'Valley Center',1,1015,NULL,'67147',NULL,1228,37.853935,-97.33059,0,NULL,NULL,54), + (116,63,1,1,0,'280B Green Blvd SW',280,'B',NULL,'Green','Blvd','SW',NULL,NULL,NULL,NULL,'Valley Center',1,1015,NULL,'67147',NULL,1228,37.853935,-97.33059,0,NULL,NULL,54), + (117,175,1,1,0,'78Y Main Path SW',78,'Y',NULL,'Main','Path','SW',NULL,NULL,NULL,NULL,'Tornado',1,1047,NULL,'25202',NULL,1228,38.327452,-81.84485,0,NULL,NULL,55), + (118,93,1,1,0,'78Y Main Path SW',78,'Y',NULL,'Main','Path','SW',NULL,NULL,NULL,NULL,'Tornado',1,1047,NULL,'25202',NULL,1228,38.327452,-81.84485,0,NULL,NULL,55), + (119,29,1,1,0,'78Y Main Path SW',78,'Y',NULL,'Main','Path','SW',NULL,NULL,NULL,NULL,'Tornado',1,1047,NULL,'25202',NULL,1228,38.327452,-81.84485,0,NULL,NULL,55), + (120,23,1,1,0,'78Y Main Path SW',78,'Y',NULL,'Main','Path','SW',NULL,NULL,NULL,NULL,'Tornado',1,1047,NULL,'25202',NULL,1228,38.327452,-81.84485,0,NULL,NULL,55), + (121,101,1,1,0,'1T Pine Rd E',1,'T',NULL,'Pine','Rd','E',NULL,NULL,NULL,NULL,'Konawa',1,1035,NULL,'74894',NULL,1228,34.955971,-96.754575,0,NULL,NULL,56), + (122,40,1,1,0,'1T Pine Rd E',1,'T',NULL,'Pine','Rd','E',NULL,NULL,NULL,NULL,'Konawa',1,1035,NULL,'74894',NULL,1228,34.955971,-96.754575,0,NULL,NULL,56), + (123,136,1,1,0,'1T Pine Rd E',1,'T',NULL,'Pine','Rd','E',NULL,NULL,NULL,NULL,'Konawa',1,1035,NULL,'74894',NULL,1228,34.955971,-96.754575,0,NULL,NULL,56), + (124,194,1,0,0,'1T Pine Rd E',1,'T',NULL,'Pine','Rd','E',NULL,NULL,NULL,NULL,'Konawa',1,1035,NULL,'74894',NULL,1228,34.955971,-96.754575,0,NULL,NULL,56), + (125,62,1,1,0,'772M Green Ln NE',772,'M',NULL,'Green','Ln','NE',NULL,NULL,NULL,NULL,'Brownsdale',1,1022,NULL,'55918',NULL,1228,43.743087,-92.86434,0,NULL,NULL,57), + (126,154,1,1,0,'772M Green Ln NE',772,'M',NULL,'Green','Ln','NE',NULL,NULL,NULL,NULL,'Brownsdale',1,1022,NULL,'55918',NULL,1228,43.743087,-92.86434,0,NULL,NULL,57), + (127,162,1,1,0,'772M Green Ln NE',772,'M',NULL,'Green','Ln','NE',NULL,NULL,NULL,NULL,'Brownsdale',1,1022,NULL,'55918',NULL,1228,43.743087,-92.86434,0,NULL,NULL,57), + (128,85,1,1,0,'997H Pine Dr SE',997,'H',NULL,'Pine','Dr','SE',NULL,NULL,NULL,NULL,'Vancourt',1,1042,NULL,'76955',NULL,1228,31.305402,-100.12871,0,NULL,NULL,NULL), + (129,3,1,1,0,'206P States Dr S',206,'P',NULL,'States','Dr','S',NULL,NULL,NULL,NULL,'Childwold',1,1031,NULL,'12922',NULL,1228,44.224185,-74.76539,0,NULL,NULL,58), + (130,58,1,0,0,'206P States Dr S',206,'P',NULL,'States','Dr','S',NULL,NULL,NULL,NULL,'Childwold',1,1031,NULL,'12922',NULL,1228,44.224185,-74.76539,0,NULL,NULL,58), + (131,131,1,1,0,'206P States Dr S',206,'P',NULL,'States','Dr','S',NULL,NULL,NULL,NULL,'Childwold',1,1031,NULL,'12922',NULL,1228,44.224185,-74.76539,0,NULL,NULL,58), + (132,103,1,1,0,'206P States Dr S',206,'P',NULL,'States','Dr','S',NULL,NULL,NULL,NULL,'Childwold',1,1031,NULL,'12922',NULL,1228,44.224185,-74.76539,0,NULL,NULL,58), + (133,22,1,1,0,'692T Van Ness Way NE',692,'T',NULL,'Van Ness','Way','NE',NULL,NULL,NULL,NULL,'Fulton',1,1023,NULL,'38843',NULL,1228,34.265985,-88.38409,0,NULL,NULL,59), + (134,60,1,1,0,'692T Van Ness Way NE',692,'T',NULL,'Van Ness','Way','NE',NULL,NULL,NULL,NULL,'Fulton',1,1023,NULL,'38843',NULL,1228,34.265985,-88.38409,0,NULL,NULL,59), + (135,158,1,1,0,'692T Van Ness Way NE',692,'T',NULL,'Van Ness','Way','NE',NULL,NULL,NULL,NULL,'Fulton',1,1023,NULL,'38843',NULL,1228,34.265985,-88.38409,0,NULL,NULL,59), + (136,84,1,1,0,'692T Van Ness Way NE',692,'T',NULL,'Van Ness','Way','NE',NULL,NULL,NULL,NULL,'Fulton',1,1023,NULL,'38843',NULL,1228,34.265985,-88.38409,0,NULL,NULL,59), + (137,73,1,1,0,'998K Northpoint Path NW',998,'K',NULL,'Northpoint','Path','NW',NULL,NULL,NULL,NULL,'Keyesport',1,1012,NULL,'62253',NULL,1228,38.761214,-89.29128,0,NULL,NULL,60), + (138,99,1,1,0,'998K Northpoint Path NW',998,'K',NULL,'Northpoint','Path','NW',NULL,NULL,NULL,NULL,'Keyesport',1,1012,NULL,'62253',NULL,1228,38.761214,-89.29128,0,NULL,NULL,60), + (139,9,1,1,0,'998K Northpoint Path NW',998,'K',NULL,'Northpoint','Path','NW',NULL,NULL,NULL,NULL,'Keyesport',1,1012,NULL,'62253',NULL,1228,38.761214,-89.29128,0,NULL,NULL,60), + (140,65,1,1,0,'998K Northpoint Path NW',998,'K',NULL,'Northpoint','Path','NW',NULL,NULL,NULL,NULL,'Keyesport',1,1012,NULL,'62253',NULL,1228,38.761214,-89.29128,0,NULL,NULL,60), + (141,186,1,1,0,'425C Green Rd NE',425,'C',NULL,'Green','Rd','NE',NULL,NULL,NULL,NULL,'Forestport',1,1031,NULL,'13338',NULL,1228,43.506153,-75.07355,0,NULL,NULL,61), + (142,80,1,1,0,'425C Green Rd NE',425,'C',NULL,'Green','Rd','NE',NULL,NULL,NULL,NULL,'Forestport',1,1031,NULL,'13338',NULL,1228,43.506153,-75.07355,0,NULL,NULL,61), + (143,159,1,1,0,'425C Green Rd NE',425,'C',NULL,'Green','Rd','NE',NULL,NULL,NULL,NULL,'Forestport',1,1031,NULL,'13338',NULL,1228,43.506153,-75.07355,0,NULL,NULL,61), + (144,82,1,1,0,'470Y Beech Rd S',470,'Y',NULL,'Beech','Rd','S',NULL,NULL,NULL,NULL,'Inverness',1,1008,NULL,'34452',NULL,1228,28.793722,-82.35021,0,NULL,NULL,NULL), + (145,48,1,1,0,'517I Woodbridge Dr SW',517,'I',NULL,'Woodbridge','Dr','SW',NULL,NULL,NULL,NULL,'Sutter',1,1004,NULL,'95982',NULL,1228,39.16855,-121.76465,0,NULL,NULL,62), + (146,187,1,0,0,'517I Woodbridge Dr SW',517,'I',NULL,'Woodbridge','Dr','SW',NULL,NULL,NULL,NULL,'Sutter',1,1004,NULL,'95982',NULL,1228,39.16855,-121.76465,0,NULL,NULL,62), + (147,141,1,1,0,'517I Woodbridge Dr SW',517,'I',NULL,'Woodbridge','Dr','SW',NULL,NULL,NULL,NULL,'Sutter',1,1004,NULL,'95982',NULL,1228,39.16855,-121.76465,0,NULL,NULL,62), + (148,45,1,1,0,'517I Woodbridge Dr SW',517,'I',NULL,'Woodbridge','Dr','SW',NULL,NULL,NULL,NULL,'Sutter',1,1004,NULL,'95982',NULL,1228,39.16855,-121.76465,0,NULL,NULL,62), + (149,128,1,1,0,'599B Lincoln Ln N',599,'B',NULL,'Lincoln','Ln','N',NULL,NULL,NULL,NULL,'Birmingham',1,1000,NULL,'35226',NULL,1228,33.406409,-86.8295,0,NULL,NULL,63), + (150,8,1,1,0,'599B Lincoln Ln N',599,'B',NULL,'Lincoln','Ln','N',NULL,NULL,NULL,NULL,'Birmingham',1,1000,NULL,'35226',NULL,1228,33.406409,-86.8295,0,NULL,NULL,63), + (151,140,1,1,0,'599B Lincoln Ln N',599,'B',NULL,'Lincoln','Ln','N',NULL,NULL,NULL,NULL,'Birmingham',1,1000,NULL,'35226',NULL,1228,33.406409,-86.8295,0,NULL,NULL,63), + (152,157,1,1,0,'599B Lincoln Ln N',599,'B',NULL,'Lincoln','Ln','N',NULL,NULL,NULL,NULL,'Birmingham',1,1000,NULL,'35226',NULL,1228,33.406409,-86.8295,0,NULL,NULL,63), + (153,4,1,1,0,'548G Van Ness Way NE',548,'G',NULL,'Van Ness','Way','NE',NULL,NULL,NULL,NULL,'Freeville',1,1031,NULL,'13068',NULL,1228,42.505075,-76.35283,0,NULL,NULL,64), + (154,178,1,1,0,'548G Van Ness Way NE',548,'G',NULL,'Van Ness','Way','NE',NULL,NULL,NULL,NULL,'Freeville',1,1031,NULL,'13068',NULL,1228,42.505075,-76.35283,0,NULL,NULL,64), + (155,127,1,1,0,'548G Van Ness Way NE',548,'G',NULL,'Van Ness','Way','NE',NULL,NULL,NULL,NULL,'Freeville',1,1031,NULL,'13068',NULL,1228,42.505075,-76.35283,0,NULL,NULL,64), + (156,144,1,1,0,'542H Van Ness Way NE',542,'H',NULL,'Van Ness','Way','NE',NULL,NULL,NULL,NULL,'Denver',1,1005,NULL,'80279',NULL,1228,39.738752,-104.408349,0,NULL,NULL,NULL), + (157,56,1,1,0,'858A Woodbridge Dr SE',858,'A',NULL,'Woodbridge','Dr','SE',NULL,NULL,NULL,NULL,'Marion',1,1003,NULL,'72364',NULL,1228,35.200501,-90.20234,0,NULL,NULL,65), + (158,34,1,1,0,'858A Woodbridge Dr SE',858,'A',NULL,'Woodbridge','Dr','SE',NULL,NULL,NULL,NULL,'Marion',1,1003,NULL,'72364',NULL,1228,35.200501,-90.20234,0,NULL,NULL,65), + (159,193,1,1,0,'858A Woodbridge Dr SE',858,'A',NULL,'Woodbridge','Dr','SE',NULL,NULL,NULL,NULL,'Marion',1,1003,NULL,'72364',NULL,1228,35.200501,-90.20234,0,NULL,NULL,65), + (160,67,1,1,0,'129W El Camino Pl N',129,'W',NULL,'El Camino','Pl','N',NULL,NULL,NULL,NULL,'Holcomb',1,1012,NULL,'61043',NULL,1228,42.045123,-89.313593,0,NULL,NULL,NULL), + (161,39,1,1,0,'582T Main Rd E',582,'T',NULL,'Main','Rd','E',NULL,NULL,NULL,NULL,'Goreville',1,1012,NULL,'62939',NULL,1228,37.558235,-88.96661,0,NULL,NULL,66), + (162,79,1,0,0,'582T Main Rd E',582,'T',NULL,'Main','Rd','E',NULL,NULL,NULL,NULL,'Goreville',1,1012,NULL,'62939',NULL,1228,37.558235,-88.96661,0,NULL,NULL,66), + (163,49,1,1,0,'582T Main Rd E',582,'T',NULL,'Main','Rd','E',NULL,NULL,NULL,NULL,'Goreville',1,1012,NULL,'62939',NULL,1228,37.558235,-88.96661,0,NULL,NULL,66), + (164,77,1,1,0,'397X Second Dr N',397,'X',NULL,'Second','Dr','N',NULL,NULL,NULL,NULL,'Houston',1,1007,NULL,'19954',NULL,1228,38.909621,-75.51264,0,NULL,NULL,NULL), + (165,137,1,1,0,'665C College St S',665,'C',NULL,'College','St','S',NULL,NULL,NULL,NULL,'Dayton',1,1034,NULL,'45420',NULL,1228,39.723909,-84.13453,0,NULL,NULL,67), + (166,173,1,1,0,'665C College St S',665,'C',NULL,'College','St','S',NULL,NULL,NULL,NULL,'Dayton',1,1034,NULL,'45420',NULL,1228,39.723909,-84.13453,0,NULL,NULL,67), + (167,27,1,1,0,'665C College St S',665,'C',NULL,'College','St','S',NULL,NULL,NULL,NULL,'Dayton',1,1034,NULL,'45420',NULL,1228,39.723909,-84.13453,0,NULL,NULL,67), + (168,172,1,1,0,'665C College St S',665,'C',NULL,'College','St','S',NULL,NULL,NULL,NULL,'Dayton',1,1034,NULL,'45420',NULL,1228,39.723909,-84.13453,0,NULL,NULL,67), + (169,108,1,1,0,'470W Beech Way E',470,'W',NULL,'Beech','Way','E',NULL,NULL,NULL,NULL,'Wyoming',1,1038,NULL,'02898',NULL,1228,41.51495,-71.68484,0,NULL,NULL,68), + (170,134,1,1,0,'470W Beech Way E',470,'W',NULL,'Beech','Way','E',NULL,NULL,NULL,NULL,'Wyoming',1,1038,NULL,'02898',NULL,1228,41.51495,-71.68484,0,NULL,NULL,68), + (171,75,1,0,0,'470W Beech Way E',470,'W',NULL,'Beech','Way','E',NULL,NULL,NULL,NULL,'Wyoming',1,1038,NULL,'02898',NULL,1228,41.51495,-71.68484,0,NULL,NULL,68), + (172,69,1,0,0,'817W Dowlen St S',817,'W',NULL,'Dowlen','St','S',NULL,NULL,NULL,NULL,'Chicago',1,1012,NULL,'60690',NULL,1228,41.811929,-87.68732,0,NULL,NULL,NULL), + (173,38,1,1,0,'584E Beech Ave E',584,'E',NULL,'Beech','Ave','E',NULL,NULL,NULL,NULL,'Encino',1,1042,NULL,'78353',NULL,1228,26.894094,-98.21561,0,NULL,NULL,69), + (174,151,1,1,0,'584E Beech Ave E',584,'E',NULL,'Beech','Ave','E',NULL,NULL,NULL,NULL,'Encino',1,1042,NULL,'78353',NULL,1228,26.894094,-98.21561,0,NULL,NULL,69), + (175,176,1,1,0,'584E Beech Ave E',584,'E',NULL,'Beech','Ave','E',NULL,NULL,NULL,NULL,'Encino',1,1042,NULL,'78353',NULL,1228,26.894094,-98.21561,0,NULL,NULL,69), + (176,42,1,1,0,'584E Beech Ave E',584,'E',NULL,'Beech','Ave','E',NULL,NULL,NULL,NULL,'Encino',1,1042,NULL,'78353',NULL,1228,26.894094,-98.21561,0,NULL,NULL,69), + (177,191,1,1,0,'304U Beech Ln SW',304,'U',NULL,'Beech','Ln','SW',NULL,NULL,NULL,NULL,'Mabscott',1,1047,NULL,'25871',NULL,1228,37.771364,-81.2093,0,NULL,NULL,70), + (178,13,1,1,0,'304U Beech Ln SW',304,'U',NULL,'Beech','Ln','SW',NULL,NULL,NULL,NULL,'Mabscott',1,1047,NULL,'25871',NULL,1228,37.771364,-81.2093,0,NULL,NULL,70), + (179,41,1,1,0,'304U Beech Ln SW',304,'U',NULL,'Beech','Ln','SW',NULL,NULL,NULL,NULL,'Mabscott',1,1047,NULL,'25871',NULL,1228,37.771364,-81.2093,0,NULL,NULL,70), + (180,145,1,1,0,'304U Beech Ln SW',304,'U',NULL,'Beech','Ln','SW',NULL,NULL,NULL,NULL,'Mabscott',1,1047,NULL,'25871',NULL,1228,37.771364,-81.2093,0,NULL,NULL,70), + (181,25,1,1,0,'712B Cadell Path SE',712,'B',NULL,'Cadell','Path','SE',NULL,NULL,NULL,NULL,'Secretary',1,1019,NULL,'21664',NULL,1228,38.609886,-75.949,0,NULL,NULL,71), + (182,28,1,1,0,'712B Cadell Path SE',712,'B',NULL,'Cadell','Path','SE',NULL,NULL,NULL,NULL,'Secretary',1,1019,NULL,'21664',NULL,1228,38.609886,-75.949,0,NULL,NULL,71), + (183,92,1,1,0,'712B Cadell Path SE',712,'B',NULL,'Cadell','Path','SE',NULL,NULL,NULL,NULL,'Secretary',1,1019,NULL,'21664',NULL,1228,38.609886,-75.949,0,NULL,NULL,71), + (184,71,1,1,0,'712B Cadell Path SE',712,'B',NULL,'Cadell','Path','SE',NULL,NULL,NULL,NULL,'Secretary',1,1019,NULL,'21664',NULL,1228,38.609886,-75.949,0,NULL,NULL,71), + (185,NULL,1,1,1,'14S El Camino Way E',14,'S',NULL,'El Camino','Way',NULL,NULL,NULL,NULL,NULL,'Collinsville',NULL,1006,NULL,'6022',NULL,1228,41.8328,-72.9253,0,NULL,NULL,NULL), + (186,NULL,1,1,1,'11B Woodbridge Path SW',11,'B',NULL,'Woodbridge','Path',NULL,NULL,NULL,NULL,NULL,'Dayton',NULL,1034,NULL,'45417',NULL,1228,39.7531,-84.2471,0,NULL,NULL,NULL), + (187,NULL,1,1,1,'581O Lincoln Dr SW',581,'O',NULL,'Lincoln','Dr',NULL,NULL,NULL,NULL,NULL,'Santa Fe',NULL,1030,NULL,'87594',NULL,1228,35.5212,-105.982,0,NULL,NULL,NULL); /*!40000 ALTER TABLE `civicrm_address` ENABLE KEYS */; UNLOCK TABLES; @@ -1987,208 +1985,208 @@ UNLOCK TABLES; LOCK TABLES `civicrm_contact` WRITE; /*!40000 ALTER TABLE `civicrm_contact` DISABLE KEYS */; INSERT INTO `civicrm_contact` (`id`, `contact_type`, `external_identifier`, `display_name`, `organization_name`, `contact_sub_type`, `first_name`, `middle_name`, `last_name`, `do_not_email`, `do_not_phone`, `do_not_mail`, `do_not_sms`, `do_not_trade`, `is_opt_out`, `legal_identifier`, `sort_name`, `nick_name`, `legal_name`, `image_URL`, `preferred_communication_method`, `preferred_language`, `hash`, `api_key`, `source`, `prefix_id`, `suffix_id`, `formal_title`, `communication_style_id`, `email_greeting_id`, `email_greeting_custom`, `email_greeting_display`, `postal_greeting_id`, `postal_greeting_custom`, `postal_greeting_display`, `addressee_id`, `addressee_custom`, `addressee_display`, `job_title`, `gender_id`, `birth_date`, `is_deceased`, `deceased_date`, `household_name`, `primary_contact_id`, `sic_code`, `user_unique_id`, `employer_id`, `is_deleted`, `created_date`, `modified_date`, `preferred_mail_format`) VALUES - (1,'Organization',NULL,'Default Organization','Default Organization',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Default Organization',NULL,'Default Organization',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-09-06 22:52:06','Both'), - (2,'Individual',NULL,'Winford Samuels-Robertson II',NULL,NULL,'Winford','','Samuels-Robertson',1,0,0,0,0,0,NULL,'Samuels-Robertson, Winford',NULL,NULL,NULL,'5',NULL,'1931755287',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Winford',1,NULL,'Dear Winford',1,NULL,'Winford Samuels-Robertson II',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (3,'Individual',NULL,'Omar Wattson II','Crystal Lake Sports Services',NULL,'Omar','K','Wattson',0,0,0,0,0,0,NULL,'Wattson, Omar',NULL,NULL,NULL,'3',NULL,'2457180487',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Omar',1,NULL,'Dear Omar',1,NULL,'Omar Wattson II',NULL,2,'2006-11-22',0,NULL,NULL,NULL,NULL,NULL,128,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (4,'Individual',NULL,'BrzÄ™czysÅ‚aw Jones',NULL,NULL,'BrzÄ™czysÅ‚aw','Y','Jones',0,0,0,0,1,0,NULL,'Jones, BrzÄ™czysÅ‚aw',NULL,NULL,NULL,NULL,NULL,'1102443663',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear BrzÄ™czysÅ‚aw',1,NULL,'Dear BrzÄ™czysÅ‚aw',1,NULL,'BrzÄ™czysÅ‚aw Jones',NULL,2,'1979-12-06',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (5,'Household',NULL,'Wilson family',NULL,NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Wilson family',NULL,NULL,NULL,'3',NULL,'350510798',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Wilson family',5,NULL,'Dear Wilson family',2,NULL,'Wilson family',NULL,NULL,NULL,0,NULL,'Wilson family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (6,'Household',NULL,'Adams-DÃaz family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Adams-DÃaz family',NULL,NULL,NULL,NULL,NULL,'2213874085',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Adams-DÃaz family',5,NULL,'Dear Adams-DÃaz family',2,NULL,'Adams-DÃaz family',NULL,NULL,NULL,0,NULL,'Adams-DÃaz family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (7,'Individual',NULL,'Dr. Winford Zope',NULL,NULL,'Winford','F','Zope',1,1,0,0,1,0,NULL,'Zope, Winford',NULL,NULL,NULL,NULL,NULL,'3617829114',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Winford',1,NULL,'Dear Winford',1,NULL,'Dr. Winford Zope',NULL,2,'1974-03-15',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (8,'Individual',NULL,'Dr. Toby Wilson',NULL,NULL,'Toby','','Wilson',0,0,0,0,0,0,NULL,'Wilson, Toby',NULL,NULL,NULL,'2',NULL,'4291852',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Toby',1,NULL,'Dear Toby',1,NULL,'Dr. Toby Wilson',NULL,2,'1996-05-02',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (9,'Individual',NULL,'Dr. Shad Blackwell',NULL,NULL,'Shad','U','Blackwell',0,0,0,0,0,0,NULL,'Blackwell, Shad',NULL,NULL,NULL,'4',NULL,'1023646981',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Shad',1,NULL,'Dear Shad',1,NULL,'Dr. Shad Blackwell',NULL,2,'1955-04-15',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:18','Both'), - (10,'Household',NULL,'Prentice family',NULL,NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Prentice family',NULL,NULL,NULL,'3',NULL,'3313623671',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Prentice family',5,NULL,'Dear Prentice family',2,NULL,'Prentice family',NULL,NULL,NULL,0,NULL,'Prentice family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (11,'Individual',NULL,'Mr. Jackson Parker',NULL,NULL,'Jackson','C','Parker',1,1,0,0,0,0,NULL,'Parker, Jackson',NULL,NULL,NULL,'3',NULL,'2328007188',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Jackson',1,NULL,'Dear Jackson',1,NULL,'Mr. Jackson Parker',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (12,'Household',NULL,'Dimitrov-Blackwell family',NULL,NULL,NULL,NULL,NULL,1,0,0,0,0,0,NULL,'Dimitrov-Blackwell family',NULL,NULL,NULL,'5',NULL,'3980350456',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Dimitrov-Blackwell family',5,NULL,'Dear Dimitrov-Blackwell family',2,NULL,'Dimitrov-Blackwell family',NULL,NULL,NULL,0,NULL,'Dimitrov-Blackwell family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (13,'Individual',NULL,'Dr. Sherman Prentice',NULL,NULL,'Sherman','','Prentice',0,0,0,0,1,0,NULL,'Prentice, Sherman',NULL,NULL,NULL,NULL,NULL,'2980148757',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Sherman',1,NULL,'Dear Sherman',1,NULL,'Dr. Sherman Prentice',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (14,'Household',NULL,'Terry family',NULL,NULL,NULL,NULL,NULL,1,0,0,0,1,0,NULL,'Terry family',NULL,NULL,NULL,NULL,NULL,'558108751',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Terry family',5,NULL,'Dear Terry family',2,NULL,'Terry family',NULL,NULL,NULL,0,NULL,'Terry family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (15,'Individual',NULL,'Arlyne Müller',NULL,NULL,'Arlyne','Y','Müller',1,0,0,0,1,0,NULL,'Müller, Arlyne',NULL,NULL,NULL,NULL,NULL,'908962805',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Arlyne',1,NULL,'Dear Arlyne',1,NULL,'Arlyne Müller',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (16,'Individual',NULL,'Mr. Rosario Dimitrov Jr.',NULL,NULL,'Rosario','','Dimitrov',1,0,0,0,0,0,NULL,'Dimitrov, Rosario',NULL,NULL,NULL,NULL,NULL,'3331564945',NULL,'Sample Data',3,1,NULL,NULL,1,NULL,'Dear Rosario',1,NULL,'Dear Rosario',1,NULL,'Mr. Rosario Dimitrov Jr.',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (17,'Individual',NULL,'terry.f.teddy@fishmail.co.uk',NULL,NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'terry.f.teddy@fishmail.co.uk',NULL,NULL,NULL,NULL,NULL,'3990920317',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear terry.f.teddy@fishmail.co.uk',1,NULL,'Dear terry.f.teddy@fishmail.co.uk',1,NULL,'terry.f.teddy@fishmail.co.uk',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (18,'Individual',NULL,'wilson.sonny@mymail.net',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'wilson.sonny@mymail.net',NULL,NULL,NULL,NULL,NULL,'2137801864',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear wilson.sonny@mymail.net',1,NULL,'Dear wilson.sonny@mymail.net',1,NULL,'wilson.sonny@mymail.net',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (19,'Individual',NULL,'Carylon Terry',NULL,NULL,'Carylon','E','Terry',0,0,0,0,0,0,NULL,'Terry, Carylon',NULL,NULL,NULL,NULL,NULL,'803011383',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Carylon',1,NULL,'Dear Carylon',1,NULL,'Carylon Terry',NULL,1,'1980-06-27',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (20,'Individual',NULL,'Valene Müller',NULL,NULL,'Valene','G','Müller',1,0,0,0,0,0,NULL,'Müller, Valene',NULL,NULL,NULL,'2',NULL,'444739216',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Valene',1,NULL,'Dear Valene',1,NULL,'Valene Müller',NULL,1,'1967-11-04',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (21,'Individual',NULL,'Sanford Nielsen III',NULL,NULL,'Sanford','','Nielsen',0,0,0,0,0,0,NULL,'Nielsen, Sanford',NULL,NULL,NULL,'5',NULL,'2540808507',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear Sanford',1,NULL,'Dear Sanford',1,NULL,'Sanford Nielsen III',NULL,NULL,'1996-12-09',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (22,'Individual',NULL,'Truman Cooper Jr.',NULL,NULL,'Truman','S','Cooper',0,1,0,0,0,0,NULL,'Cooper, Truman',NULL,NULL,NULL,'3',NULL,'938772676',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Truman',1,NULL,'Dear Truman',1,NULL,'Truman Cooper Jr.',NULL,NULL,'1965-05-14',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (23,'Individual',NULL,'Bob Terrell',NULL,NULL,'Bob','P','Terrell',0,1,0,0,1,0,NULL,'Terrell, Bob',NULL,NULL,NULL,NULL,NULL,'1949116278',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Bob',1,NULL,'Dear Bob',1,NULL,'Bob Terrell',NULL,2,'2003-06-08',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (24,'Individual',NULL,'jeromewilson@lol.net',NULL,NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'jeromewilson@lol.net',NULL,NULL,NULL,'5',NULL,'1863810386',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear jeromewilson@lol.net',1,NULL,'Dear jeromewilson@lol.net',1,NULL,'jeromewilson@lol.net',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (25,'Individual',NULL,'Valene Yadav-Terry',NULL,NULL,'Valene','Q','Yadav-Terry',1,0,0,0,1,0,NULL,'Yadav-Terry, Valene',NULL,NULL,NULL,'3',NULL,'218067921',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Valene',1,NULL,'Dear Valene',1,NULL,'Valene Yadav-Terry',NULL,NULL,'1969-06-30',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (26,'Individual',NULL,'daz.e.justina43@fakemail.co.nz','Terre Haute Action Collective',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'daz.e.justina43@fakemail.co.nz',NULL,NULL,NULL,NULL,NULL,'578424690',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear daz.e.justina43@fakemail.co.nz',1,NULL,'Dear daz.e.justina43@fakemail.co.nz',1,NULL,'daz.e.justina43@fakemail.co.nz',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,152,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (27,'Individual',NULL,'Dr. Arlyne Wattson','Urban Sustainability Partners',NULL,'Arlyne','','Wattson',0,0,0,0,1,0,NULL,'Wattson, Arlyne',NULL,NULL,NULL,'4',NULL,'2534537033',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Arlyne',1,NULL,'Dear Arlyne',1,NULL,'Dr. Arlyne Wattson',NULL,NULL,'1986-02-06',0,NULL,NULL,NULL,NULL,NULL,48,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (28,'Individual',NULL,'Mrs. Heidi Terry','Beech Action Systems',NULL,'Heidi','D','Terry',1,0,0,0,1,0,NULL,'Terry, Heidi',NULL,NULL,NULL,'2',NULL,'3824053436',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Heidi',1,NULL,'Dear Heidi',1,NULL,'Mrs. Heidi Terry',NULL,1,'1933-11-10',1,NULL,NULL,NULL,NULL,NULL,193,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (29,'Individual',NULL,'Kiara Dimitrov',NULL,NULL,'Kiara','','Dimitrov',0,0,0,0,1,0,NULL,'Dimitrov, Kiara',NULL,NULL,NULL,NULL,NULL,'340545341',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Kiara',1,NULL,'Dear Kiara',1,NULL,'Kiara Dimitrov',NULL,1,'1982-08-22',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (30,'Individual',NULL,'Eleonor Müller',NULL,NULL,'Eleonor','Y','Müller',1,1,0,0,0,0,NULL,'Müller, Eleonor',NULL,NULL,NULL,'4',NULL,'4009103845',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Eleonor',1,NULL,'Dear Eleonor',1,NULL,'Eleonor Müller',NULL,NULL,'1983-09-19',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (31,'Individual',NULL,'Norris Dimitrov',NULL,NULL,'Norris','C','Dimitrov',0,1,0,0,0,0,NULL,'Dimitrov, Norris',NULL,NULL,NULL,NULL,NULL,'378198335',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Norris',1,NULL,'Dear Norris',1,NULL,'Norris Dimitrov',NULL,2,'1989-09-23',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (32,'Individual',NULL,'Margaret Wilson',NULL,NULL,'Margaret','','Wilson',0,0,0,0,0,0,NULL,'Wilson, Margaret',NULL,NULL,NULL,'4',NULL,'2853804377',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Margaret',1,NULL,'Dear Margaret',1,NULL,'Margaret Wilson',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (33,'Individual',NULL,'Dr. Troy Robertson II',NULL,NULL,'Troy','G','Robertson',0,0,0,0,0,0,NULL,'Robertson, Troy',NULL,NULL,NULL,NULL,NULL,'3729972619',NULL,'Sample Data',4,3,NULL,NULL,1,NULL,'Dear Troy',1,NULL,'Dear Troy',1,NULL,'Dr. Troy Robertson II',NULL,2,'1991-12-05',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (34,'Individual',NULL,'Brittney Jensen',NULL,NULL,'Brittney','B','Jensen',0,1,0,0,0,0,NULL,'Jensen, Brittney',NULL,NULL,NULL,NULL,NULL,'3335875143',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Brittney',1,NULL,'Dear Brittney',1,NULL,'Brittney Jensen',NULL,NULL,'1974-09-02',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (35,'Individual',NULL,'Angelika Wattson',NULL,NULL,'Angelika','','Wattson',0,0,0,0,0,0,NULL,'Wattson, Angelika',NULL,NULL,NULL,NULL,NULL,'868071594',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Angelika',1,NULL,'Dear Angelika',1,NULL,'Angelika Wattson',NULL,NULL,'2020-09-05',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (36,'Individual',NULL,'adams-dazm89@infomail.net',NULL,NULL,NULL,NULL,NULL,1,0,0,0,0,0,NULL,'adams-dazm89@infomail.net',NULL,NULL,NULL,NULL,NULL,'3264570238',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear adams-dazm89@infomail.net',1,NULL,'Dear adams-dazm89@infomail.net',1,NULL,'adams-dazm89@infomail.net',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (37,'Individual',NULL,'Dr. Iris Zope',NULL,NULL,'Iris','S','Zope',0,0,0,0,0,0,NULL,'Zope, Iris',NULL,NULL,NULL,'5',NULL,'3326964728',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Iris',1,NULL,'Dear Iris',1,NULL,'Dr. Iris Zope',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (38,'Individual',NULL,'Jina Roberts',NULL,NULL,'Jina','','Roberts',0,0,0,0,1,0,NULL,'Roberts, Jina',NULL,NULL,NULL,NULL,NULL,'3944144091',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Jina',1,NULL,'Dear Jina',1,NULL,'Jina Roberts',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (39,'Individual',NULL,'Shad Terrell Jr.','Mississippi Food Partners',NULL,'Shad','','Terrell',0,0,0,0,0,0,NULL,'Terrell, Shad',NULL,NULL,NULL,'3',NULL,'3876111966',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Shad',1,NULL,'Dear Shad',1,NULL,'Shad Terrell Jr.',NULL,2,'1963-05-02',0,NULL,NULL,NULL,NULL,NULL,101,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (40,'Individual',NULL,'Ashlie Samuels',NULL,NULL,'Ashlie','B','Samuels',0,0,0,0,0,0,NULL,'Samuels, Ashlie',NULL,NULL,NULL,'3',NULL,'2718903137',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Ashlie',1,NULL,'Dear Ashlie',1,NULL,'Ashlie Samuels',NULL,NULL,'1996-12-11',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (41,'Individual',NULL,'Valene Jameson',NULL,NULL,'Valene','J','Jameson',0,0,0,0,1,0,NULL,'Jameson, Valene',NULL,NULL,NULL,'5',NULL,'2818413262',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Valene',1,NULL,'Dear Valene',1,NULL,'Valene Jameson',NULL,NULL,'1967-05-16',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (42,'Individual',NULL,'Beula DÃaz',NULL,NULL,'Beula','Y','DÃaz',0,0,0,0,1,0,NULL,'DÃaz, Beula',NULL,NULL,NULL,'1',NULL,'3664256087',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Beula',1,NULL,'Dear Beula',1,NULL,'Beula DÃaz',NULL,1,'1979-12-11',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (43,'Organization',NULL,'Star Environmental Association','Star Environmental Association',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Star Environmental Association',NULL,NULL,NULL,NULL,NULL,'2791975676',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Star Environmental Association',NULL,NULL,NULL,0,NULL,NULL,145,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (44,'Individual',NULL,'terry.craig83@lol.org',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'terry.craig83@lol.org',NULL,NULL,NULL,'1',NULL,'2873019635',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear terry.craig83@lol.org',1,NULL,'Dear terry.craig83@lol.org',1,NULL,'terry.craig83@lol.org',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (45,'Individual',NULL,'Dr. Tanya Adams',NULL,NULL,'Tanya','','Adams',1,0,0,0,1,0,NULL,'Adams, Tanya',NULL,NULL,NULL,'5',NULL,'1181850988',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Tanya',1,NULL,'Dear Tanya',1,NULL,'Dr. Tanya Adams',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (46,'Individual',NULL,'Toby Roberts Jr.',NULL,NULL,'Toby','V','Roberts',0,0,0,0,1,0,NULL,'Roberts, Toby',NULL,NULL,NULL,NULL,NULL,'3766769567',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Toby',1,NULL,'Dear Toby',1,NULL,'Toby Roberts Jr.',NULL,2,'1970-06-18',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (47,'Individual',NULL,'Esta Dimitrov',NULL,NULL,'Esta','Z','Dimitrov',0,1,0,0,0,0,NULL,'Dimitrov, Esta',NULL,NULL,NULL,NULL,NULL,'1897476',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Esta',1,NULL,'Dear Esta',1,NULL,'Esta Dimitrov',NULL,NULL,'1972-04-25',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (48,'Organization',NULL,'Urban Sustainability Partners','Urban Sustainability Partners',NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'Urban Sustainability Partners',NULL,NULL,NULL,NULL,NULL,'199075669',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Urban Sustainability Partners',NULL,NULL,NULL,0,NULL,NULL,27,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (49,'Organization',NULL,'Global Peace Trust','Global Peace Trust',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Global Peace Trust',NULL,NULL,NULL,NULL,NULL,'2469867703',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Global Peace Trust',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (50,'Individual',NULL,'Lincoln Jameson III','Local Poetry Association',NULL,'Lincoln','','Jameson',0,0,0,0,0,0,NULL,'Jameson, Lincoln',NULL,NULL,NULL,NULL,NULL,'2753899992',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear Lincoln',1,NULL,'Dear Lincoln',1,NULL,'Lincoln Jameson III',NULL,2,'1969-04-16',0,NULL,NULL,NULL,NULL,NULL,177,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (51,'Organization',NULL,'Dowlen Arts Partnership','Dowlen Arts Partnership',NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'Dowlen Arts Partnership',NULL,NULL,NULL,'4',NULL,'2015684674',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Dowlen Arts Partnership',NULL,NULL,NULL,0,NULL,NULL,76,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (52,'Household',NULL,'Zope family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Zope family',NULL,NULL,NULL,'2',NULL,'1649131487',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Zope family',5,NULL,'Dear Zope family',2,NULL,'Zope family',NULL,NULL,NULL,0,NULL,'Zope family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (53,'Individual',NULL,'Tanya Prentice','Iowa Legal School',NULL,'Tanya','W','Prentice',1,0,0,0,0,0,NULL,'Prentice, Tanya',NULL,NULL,NULL,NULL,NULL,'3651240443',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Tanya',1,NULL,'Dear Tanya',1,NULL,'Tanya Prentice',NULL,NULL,'1986-01-21',0,NULL,NULL,NULL,NULL,NULL,105,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (54,'Individual',NULL,'rosariod@testing.info',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'rosariod@testing.info',NULL,NULL,NULL,'3',NULL,'1148276092',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear rosariod@testing.info',1,NULL,'Dear rosariod@testing.info',1,NULL,'rosariod@testing.info',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:18','Both'), - (55,'Individual',NULL,'Errol Dimitrov Jr.',NULL,NULL,'Errol','','Dimitrov',0,0,0,0,0,0,NULL,'Dimitrov, Errol',NULL,NULL,NULL,NULL,NULL,'3017354314',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Errol',1,NULL,'Dear Errol',1,NULL,'Errol Dimitrov Jr.',NULL,NULL,'2007-10-19',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (56,'Individual',NULL,'Scarlet Barkley',NULL,NULL,'Scarlet','U','Barkley',0,0,0,0,0,0,NULL,'Barkley, Scarlet',NULL,NULL,NULL,'2',NULL,'817435173',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Scarlet',1,NULL,'Dear Scarlet',1,NULL,'Scarlet Barkley',NULL,NULL,'1959-03-22',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (57,'Individual',NULL,'Mrs. Scarlet Samuels-Robertson',NULL,NULL,'Scarlet','','Samuels-Robertson',1,0,0,0,0,0,NULL,'Samuels-Robertson, Scarlet',NULL,NULL,NULL,'2',NULL,'1638483408',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Scarlet',1,NULL,'Dear Scarlet',1,NULL,'Mrs. Scarlet Samuels-Robertson',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (58,'Individual',NULL,'Mr. BrzÄ™czysÅ‚aw Terrell',NULL,NULL,'BrzÄ™czysÅ‚aw','','Terrell',0,1,0,0,0,0,NULL,'Terrell, BrzÄ™czysÅ‚aw',NULL,NULL,NULL,'2',NULL,'2155865046',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear BrzÄ™czysÅ‚aw',1,NULL,'Dear BrzÄ™czysÅ‚aw',1,NULL,'Mr. BrzÄ™czysÅ‚aw Terrell',NULL,2,'1956-07-05',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (59,'Individual',NULL,'Alexia Bachman',NULL,NULL,'Alexia','','Bachman',0,0,0,0,0,0,NULL,'Bachman, Alexia',NULL,NULL,NULL,NULL,NULL,'703420300',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Alexia',1,NULL,'Dear Alexia',1,NULL,'Alexia Bachman',NULL,1,'1945-05-12',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (60,'Individual',NULL,'Mrs. Elina Roberts','Deland Action Systems',NULL,'Elina','','Roberts',0,0,0,0,0,0,NULL,'Roberts, Elina',NULL,NULL,NULL,'3',NULL,'3456421482',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Elina',1,NULL,'Dear Elina',1,NULL,'Mrs. Elina Roberts',NULL,1,'1997-10-20',0,NULL,NULL,NULL,NULL,NULL,135,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (61,'Organization',NULL,'Global Advocacy Initiative','Global Advocacy Initiative',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Global Advocacy Initiative',NULL,NULL,NULL,'3',NULL,'611717485',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Global Advocacy Initiative',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (62,'Individual',NULL,'Dr. Teresa Patel',NULL,NULL,'Teresa','H','Patel',0,0,0,0,0,0,NULL,'Patel, Teresa',NULL,NULL,NULL,NULL,NULL,'1615801119',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Teresa',1,NULL,'Dear Teresa',1,NULL,'Dr. Teresa Patel',NULL,1,'1997-05-16',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (63,'Individual',NULL,'Ms. Herminia Wilson',NULL,NULL,'Herminia','C','Wilson',0,1,0,0,0,0,NULL,'Wilson, Herminia',NULL,NULL,NULL,'4',NULL,'1306948243',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Herminia',1,NULL,'Dear Herminia',1,NULL,'Ms. Herminia Wilson',NULL,1,'1968-07-20',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (64,'Individual',NULL,'Dr. Lou ÅÄ…chowski Sr.',NULL,NULL,'Lou','','ÅÄ…chowski',0,0,0,0,0,0,NULL,'ÅÄ…chowski, Lou',NULL,NULL,NULL,NULL,NULL,'4023887052',NULL,'Sample Data',4,2,NULL,NULL,1,NULL,'Dear Lou',1,NULL,'Dear Lou',1,NULL,'Dr. Lou ÅÄ…chowski Sr.',NULL,2,'1996-02-19',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (65,'Individual',NULL,'josefabachman-zope@fakemail.biz',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'josefabachman-zope@fakemail.biz',NULL,NULL,NULL,NULL,NULL,'395997919',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear josefabachman-zope@fakemail.biz',1,NULL,'Dear josefabachman-zope@fakemail.biz',1,NULL,'josefabachman-zope@fakemail.biz',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (66,'Individual',NULL,'Mr. Rolando Nielsen Sr.',NULL,NULL,'Rolando','E','Nielsen',0,0,0,0,0,0,NULL,'Nielsen, Rolando',NULL,NULL,NULL,NULL,NULL,'1720954446',NULL,'Sample Data',3,2,NULL,NULL,1,NULL,'Dear Rolando',1,NULL,'Dear Rolando',1,NULL,'Mr. Rolando Nielsen Sr.',NULL,2,'1996-10-30',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (67,'Organization',NULL,'Woodbridge Literacy Association','Woodbridge Literacy Association',NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Woodbridge Literacy Association',NULL,NULL,NULL,NULL,NULL,'3999176872',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Woodbridge Literacy Association',NULL,NULL,NULL,0,NULL,NULL,165,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (68,'Household',NULL,'Roberts family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Roberts family',NULL,NULL,NULL,NULL,NULL,'2097305882',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Roberts family',5,NULL,'Dear Roberts family',2,NULL,'Roberts family',NULL,NULL,NULL,0,NULL,'Roberts family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (69,'Individual',NULL,'Jay Deforest',NULL,NULL,'Jay','','Deforest',0,0,0,0,0,0,NULL,'Deforest, Jay',NULL,NULL,NULL,'3',NULL,'3714093983',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Jay',1,NULL,'Dear Jay',1,NULL,'Jay Deforest',NULL,2,'1951-06-03',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (70,'Individual',NULL,'Dr. Ray Jones Sr.',NULL,NULL,'Ray','','Jones',0,0,0,0,0,0,NULL,'Jones, Ray',NULL,NULL,NULL,NULL,NULL,'3868531541',NULL,'Sample Data',4,2,NULL,NULL,1,NULL,'Dear Ray',1,NULL,'Dear Ray',1,NULL,'Dr. Ray Jones Sr.',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (71,'Individual',NULL,'Elina DÃaz',NULL,NULL,'Elina','E','DÃaz',0,0,0,0,0,0,NULL,'DÃaz, Elina',NULL,NULL,NULL,'3',NULL,'843757403',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Elina',1,NULL,'Dear Elina',1,NULL,'Elina DÃaz',NULL,NULL,'1953-04-20',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (72,'Individual',NULL,'Dr. Betty Terry',NULL,NULL,'Betty','','Terry',0,0,0,0,0,0,NULL,'Terry, Betty',NULL,NULL,NULL,'5',NULL,'3939845643',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Betty',1,NULL,'Dear Betty',1,NULL,'Dr. Betty Terry',NULL,1,'1968-01-07',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (73,'Organization',NULL,'Surveyor Development Services','Surveyor Development Services',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Surveyor Development Services',NULL,NULL,NULL,NULL,NULL,'3185551255',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Surveyor Development Services',NULL,NULL,NULL,0,NULL,NULL,166,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (74,'Individual',NULL,'Mr. Lawerence Müller Sr.',NULL,NULL,'Lawerence','','Müller',1,0,0,0,0,0,NULL,'Müller, Lawerence',NULL,NULL,NULL,'3',NULL,'3263544089',NULL,'Sample Data',3,2,NULL,NULL,1,NULL,'Dear Lawerence',1,NULL,'Dear Lawerence',1,NULL,'Mr. Lawerence Müller Sr.',NULL,2,'1975-04-13',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (75,'Individual',NULL,'Carlos Patel II',NULL,NULL,'Carlos','','Patel',1,1,0,0,0,0,NULL,'Patel, Carlos',NULL,NULL,NULL,NULL,NULL,'2432936038',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Carlos',1,NULL,'Dear Carlos',1,NULL,'Carlos Patel II',NULL,2,'1973-04-24',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (76,'Individual',NULL,'Dr. Bryon Roberts II','Dowlen Arts Partnership',NULL,'Bryon','L','Roberts',0,1,0,0,0,0,NULL,'Roberts, Bryon',NULL,NULL,NULL,'3',NULL,'1499512182',NULL,'Sample Data',4,3,NULL,NULL,1,NULL,'Dear Bryon',1,NULL,'Dear Bryon',1,NULL,'Dr. Bryon Roberts II',NULL,2,'1985-09-13',0,NULL,NULL,NULL,NULL,NULL,51,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (77,'Individual',NULL,'Kandace Jensen',NULL,NULL,'Kandace','Q','Jensen',0,0,0,0,1,0,NULL,'Jensen, Kandace',NULL,NULL,NULL,'4',NULL,'2339972314',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Kandace',1,NULL,'Dear Kandace',1,NULL,'Kandace Jensen',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (78,'Individual',NULL,'Laree Yadav',NULL,NULL,'Laree','Z','Yadav',0,0,0,0,0,0,NULL,'Yadav, Laree',NULL,NULL,NULL,'1',NULL,'3514401547',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Laree',1,NULL,'Dear Laree',1,NULL,'Laree Yadav',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (79,'Individual',NULL,'terry.u.herminia10@notmail.co.pl',NULL,NULL,NULL,NULL,NULL,1,0,0,0,0,0,NULL,'terry.u.herminia10@notmail.co.pl',NULL,NULL,NULL,NULL,NULL,'536505869',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear terry.u.herminia10@notmail.co.pl',1,NULL,'Dear terry.u.herminia10@notmail.co.pl',1,NULL,'terry.u.herminia10@notmail.co.pl',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (80,'Individual',NULL,'jensent17@mymail.co.nz',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'jensent17@mymail.co.nz',NULL,NULL,NULL,'4',NULL,'1690688771',NULL,'Sample Data',4,3,NULL,NULL,1,NULL,'Dear jensent17@mymail.co.nz',1,NULL,'Dear jensent17@mymail.co.nz',1,NULL,'jensent17@mymail.co.nz',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (81,'Individual',NULL,'Scarlet ÅÄ…chowski',NULL,NULL,'Scarlet','','ÅÄ…chowski',0,0,0,0,0,0,NULL,'ÅÄ…chowski, Scarlet',NULL,NULL,NULL,'5',NULL,'2169485989',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Scarlet',1,NULL,'Dear Scarlet',1,NULL,'Scarlet ÅÄ…chowski',NULL,1,'1966-07-07',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (82,'Individual',NULL,'Mr. Lincoln Cruz III','Friends Health Services',NULL,'Lincoln','G','Cruz',0,0,0,0,0,0,NULL,'Cruz, Lincoln',NULL,NULL,NULL,NULL,NULL,'3085396026',NULL,'Sample Data',3,4,NULL,NULL,1,NULL,'Dear Lincoln',1,NULL,'Dear Lincoln',1,NULL,'Mr. Lincoln Cruz III',NULL,NULL,'1965-05-25',0,NULL,NULL,NULL,NULL,NULL,153,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (83,'Individual',NULL,'Dr. Felisha Parker',NULL,NULL,'Felisha','','Parker',0,0,0,0,0,0,NULL,'Parker, Felisha',NULL,NULL,NULL,NULL,NULL,'559181434',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Felisha',1,NULL,'Dear Felisha',1,NULL,'Dr. Felisha Parker',NULL,1,'1974-07-02',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (84,'Individual',NULL,'Miguel Terrell',NULL,NULL,'Miguel','R','Terrell',0,1,0,0,0,0,NULL,'Terrell, Miguel',NULL,NULL,NULL,'5',NULL,'2002488569',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Miguel',1,NULL,'Dear Miguel',1,NULL,'Miguel Terrell',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (85,'Individual',NULL,'Damaris Prentice',NULL,NULL,'Damaris','','Prentice',1,0,0,0,0,0,NULL,'Prentice, Damaris',NULL,NULL,NULL,NULL,NULL,'4205720753',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Damaris',1,NULL,'Dear Damaris',1,NULL,'Damaris Prentice',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (86,'Individual',NULL,'Dr. BrzÄ™czysÅ‚aw Roberts Jr.',NULL,NULL,'BrzÄ™czysÅ‚aw','S','Roberts',0,1,0,0,0,0,NULL,'Roberts, BrzÄ™czysÅ‚aw',NULL,NULL,NULL,'5',NULL,'3691213570',NULL,'Sample Data',4,1,NULL,NULL,1,NULL,'Dear BrzÄ™czysÅ‚aw',1,NULL,'Dear BrzÄ™czysÅ‚aw',1,NULL,'Dr. BrzÄ™czysÅ‚aw Roberts Jr.',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (87,'Individual',NULL,'Kiara Jameson',NULL,NULL,'Kiara','L','Jameson',0,0,0,0,0,0,NULL,'Jameson, Kiara',NULL,NULL,NULL,NULL,NULL,'1442754095',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Kiara',1,NULL,'Dear Kiara',1,NULL,'Kiara Jameson',NULL,NULL,'1995-10-01',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (88,'Individual',NULL,'Mrs. Angelika Jensen',NULL,NULL,'Angelika','','Jensen',0,0,0,0,0,0,NULL,'Jensen, Angelika',NULL,NULL,NULL,NULL,NULL,'2460194929',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Angelika',1,NULL,'Dear Angelika',1,NULL,'Mrs. Angelika Jensen',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (89,'Individual',NULL,'Delana Dimitrov-Blackwell',NULL,NULL,'Delana','F','Dimitrov-Blackwell',0,0,0,0,0,0,NULL,'Dimitrov-Blackwell, Delana',NULL,NULL,NULL,NULL,NULL,'1994167937',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Delana',1,NULL,'Dear Delana',1,NULL,'Delana Dimitrov-Blackwell',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:18','Both'), - (90,'Individual',NULL,'rolandowagner@fishmail.biz',NULL,NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'rolandowagner@fishmail.biz',NULL,NULL,NULL,'5',NULL,'1565157219',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear rolandowagner@fishmail.biz',1,NULL,'Dear rolandowagner@fishmail.biz',1,NULL,'rolandowagner@fishmail.biz',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (91,'Organization',NULL,'Arkansas Literacy Partnership','Arkansas Literacy Partnership',NULL,NULL,NULL,NULL,1,0,0,0,0,0,NULL,'Arkansas Literacy Partnership',NULL,NULL,NULL,NULL,NULL,'4284050225',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Arkansas Literacy Partnership',NULL,NULL,NULL,0,NULL,NULL,154,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (92,'Household',NULL,'Dimitrov-ÅÄ…chowski family',NULL,NULL,NULL,NULL,NULL,1,0,0,0,0,0,NULL,'Dimitrov-ÅÄ…chowski family',NULL,NULL,NULL,NULL,NULL,'2362970834',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Dimitrov-ÅÄ…chowski family',5,NULL,'Dear Dimitrov-ÅÄ…chowski family',2,NULL,'Dimitrov-ÅÄ…chowski family',NULL,NULL,NULL,0,NULL,'Dimitrov-ÅÄ…chowski family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (93,'Individual',NULL,'Mr. Maxwell Roberts Sr.',NULL,NULL,'Maxwell','I','Roberts',0,0,0,0,0,0,NULL,'Roberts, Maxwell',NULL,NULL,NULL,'2',NULL,'3618827003',NULL,'Sample Data',3,2,NULL,NULL,1,NULL,'Dear Maxwell',1,NULL,'Dear Maxwell',1,NULL,'Mr. Maxwell Roberts Sr.',NULL,NULL,'1973-08-31',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (94,'Individual',NULL,'Ms. Brigette Zope',NULL,NULL,'Brigette','F','Zope',1,0,0,0,0,0,NULL,'Zope, Brigette',NULL,NULL,NULL,NULL,NULL,'3799032348',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Brigette',1,NULL,'Dear Brigette',1,NULL,'Ms. Brigette Zope',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (95,'Individual',NULL,'Sherman Terry Jr.',NULL,NULL,'Sherman','','Terry',0,0,0,0,0,0,NULL,'Terry, Sherman',NULL,NULL,NULL,'2',NULL,'4119706907',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Sherman',1,NULL,'Dear Sherman',1,NULL,'Sherman Terry Jr.',NULL,NULL,'1987-11-08',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (96,'Individual',NULL,'Shauna Jones','California Poetry Collective',NULL,'Shauna','Z','Jones',0,0,0,0,0,0,NULL,'Jones, Shauna',NULL,NULL,NULL,'3',NULL,'2088102406',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Shauna',1,NULL,'Dear Shauna',1,NULL,'Shauna Jones',NULL,1,'1971-05-10',0,NULL,NULL,NULL,NULL,NULL,129,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (97,'Individual',NULL,'Maria Terry II',NULL,NULL,'Maria','','Terry',0,0,0,0,0,0,NULL,'Terry, Maria',NULL,NULL,NULL,'2',NULL,'258657909',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Maria',1,NULL,'Dear Maria',1,NULL,'Maria Terry II',NULL,2,'1996-04-24',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (98,'Individual',NULL,'Roland ÅÄ…chowski',NULL,NULL,'Roland','','ÅÄ…chowski',0,1,0,0,0,0,NULL,'ÅÄ…chowski, Roland',NULL,NULL,NULL,'2',NULL,'1498526146',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Roland',1,NULL,'Dear Roland',1,NULL,'Roland ÅÄ…chowski',NULL,2,'1941-02-23',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (99,'Individual',NULL,'Mrs. Juliann Dimitrov',NULL,NULL,'Juliann','','Dimitrov',0,1,0,0,0,0,NULL,'Dimitrov, Juliann',NULL,NULL,NULL,'4',NULL,'835568897',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Juliann',1,NULL,'Dear Juliann',1,NULL,'Mrs. Juliann Dimitrov',NULL,1,'1973-10-01',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (100,'Individual',NULL,'Kathleen Nielsen',NULL,NULL,'Kathleen','Q','Nielsen',0,0,0,0,0,0,NULL,'Nielsen, Kathleen',NULL,NULL,NULL,'5',NULL,'1768989959',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Kathleen',1,NULL,'Dear Kathleen',1,NULL,'Kathleen Nielsen',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (101,'Organization',NULL,'Mississippi Food Partners','Mississippi Food Partners',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Mississippi Food Partners',NULL,NULL,NULL,NULL,NULL,'2602253458',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Mississippi Food Partners',NULL,NULL,NULL,0,NULL,NULL,39,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (102,'Individual',NULL,'Elizabeth Roberts',NULL,NULL,'Elizabeth','','Roberts',1,0,0,0,0,0,NULL,'Roberts, Elizabeth',NULL,NULL,NULL,NULL,NULL,'3104864980',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Elizabeth',1,NULL,'Dear Elizabeth',1,NULL,'Elizabeth Roberts',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (103,'Individual',NULL,'patel.miguel@infomail.co.uk',NULL,NULL,NULL,NULL,NULL,1,0,0,0,0,0,NULL,'patel.miguel@infomail.co.uk',NULL,NULL,NULL,'4',NULL,'3982946382',NULL,'Sample Data',3,3,NULL,NULL,1,NULL,'Dear patel.miguel@infomail.co.uk',1,NULL,'Dear patel.miguel@infomail.co.uk',1,NULL,'patel.miguel@infomail.co.uk',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (104,'Individual',NULL,'Ashlie Jensen',NULL,NULL,'Ashlie','S','Jensen',0,0,0,0,0,0,NULL,'Jensen, Ashlie',NULL,NULL,NULL,'2',NULL,'2039449284',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Ashlie',1,NULL,'Dear Ashlie',1,NULL,'Ashlie Jensen',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (105,'Organization',NULL,'Iowa Legal School','Iowa Legal School',NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'Iowa Legal School',NULL,NULL,NULL,NULL,NULL,'377860758',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Iowa Legal School',NULL,NULL,NULL,0,NULL,NULL,53,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (106,'Individual',NULL,'Mrs. Junko Terrell',NULL,NULL,'Junko','V','Terrell',1,1,0,0,1,0,NULL,'Terrell, Junko',NULL,NULL,NULL,NULL,NULL,'3229402674',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Junko',1,NULL,'Dear Junko',1,NULL,'Mrs. Junko Terrell',NULL,1,'1952-10-26',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (107,'Individual',NULL,'Dr. Margaret Cooper',NULL,NULL,'Margaret','I','Cooper',0,0,0,0,0,0,NULL,'Cooper, Margaret',NULL,NULL,NULL,NULL,NULL,'897960138',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Margaret',1,NULL,'Dear Margaret',1,NULL,'Dr. Margaret Cooper',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (108,'Individual',NULL,'Dr. Allan Terry II',NULL,NULL,'Allan','T','Terry',1,0,0,0,0,0,NULL,'Terry, Allan',NULL,NULL,NULL,NULL,NULL,'1982784074',NULL,'Sample Data',4,3,NULL,NULL,1,NULL,'Dear Allan',1,NULL,'Dear Allan',1,NULL,'Dr. Allan Terry II',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (109,'Individual',NULL,'Damaris Parker',NULL,NULL,'Damaris','','Parker',0,0,0,0,0,0,NULL,'Parker, Damaris',NULL,NULL,NULL,'4',NULL,'1055790628',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Damaris',1,NULL,'Dear Damaris',1,NULL,'Damaris Parker',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (110,'Individual',NULL,'dimitrovs@infomail.net',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'dimitrovs@infomail.net',NULL,NULL,NULL,'5',NULL,'959352248',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear dimitrovs@infomail.net',1,NULL,'Dear dimitrovs@infomail.net',1,NULL,'dimitrovs@infomail.net',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:18','Both'), - (111,'Household',NULL,'Terry family',NULL,NULL,NULL,NULL,NULL,1,1,0,0,0,0,NULL,'Terry family',NULL,NULL,NULL,NULL,NULL,'558108751',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Terry family',5,NULL,'Dear Terry family',2,NULL,'Terry family',NULL,NULL,NULL,0,NULL,'Terry family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (112,'Individual',NULL,'Bryon Lee',NULL,NULL,'Bryon','','Lee',0,0,0,0,1,0,NULL,'Lee, Bryon',NULL,NULL,NULL,NULL,NULL,'369670244',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Bryon',1,NULL,'Dear Bryon',1,NULL,'Bryon Lee',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (113,'Household',NULL,'Jensen family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Jensen family',NULL,NULL,NULL,NULL,NULL,'797435572',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Jensen family',5,NULL,'Dear Jensen family',2,NULL,'Jensen family',NULL,NULL,NULL,0,NULL,'Jensen family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (114,'Individual',NULL,'Mr. Ray Robertson Sr.',NULL,NULL,'Ray','','Robertson',0,0,0,0,0,0,NULL,'Robertson, Ray',NULL,NULL,NULL,NULL,NULL,'2006955715',NULL,'Sample Data',3,2,NULL,NULL,1,NULL,'Dear Ray',1,NULL,'Dear Ray',1,NULL,'Mr. Ray Robertson Sr.',NULL,2,'1962-02-13',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (115,'Individual',NULL,'Brent Grant III',NULL,NULL,'Brent','','Grant',1,0,0,0,0,0,NULL,'Grant, Brent',NULL,NULL,NULL,'5',NULL,'356521495',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear Brent',1,NULL,'Dear Brent',1,NULL,'Brent Grant III',NULL,NULL,'1991-06-21',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (116,'Individual',NULL,'Eleonor Dimitrov',NULL,NULL,'Eleonor','','Dimitrov',0,0,0,0,1,0,NULL,'Dimitrov, Eleonor',NULL,NULL,NULL,'1',NULL,'3445748005',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Eleonor',1,NULL,'Dear Eleonor',1,NULL,'Eleonor Dimitrov',NULL,NULL,'2013-08-06',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (117,'Individual',NULL,'Herminia DÃaz',NULL,NULL,'Herminia','N','DÃaz',0,0,0,0,0,0,NULL,'DÃaz, Herminia',NULL,NULL,NULL,NULL,NULL,'2340298735',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Herminia',1,NULL,'Dear Herminia',1,NULL,'Herminia DÃaz',NULL,NULL,'2001-01-12',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:16','Both'), - (118,'Household',NULL,'Jameson family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Jameson family',NULL,NULL,NULL,NULL,NULL,'2255649769',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Jameson family',5,NULL,'Dear Jameson family',2,NULL,'Jameson family',NULL,NULL,NULL,0,NULL,'Jameson family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:15','2023-09-06 22:52:17','Both'), - (119,'Individual',NULL,'Eleonor Robertson',NULL,NULL,'Eleonor','','Robertson',0,0,0,0,0,0,NULL,'Robertson, Eleonor',NULL,NULL,NULL,NULL,NULL,'2051195654',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Eleonor',1,NULL,'Dear Eleonor',1,NULL,'Eleonor Robertson',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (120,'Individual',NULL,'Dr. Elina Terry',NULL,NULL,'Elina','','Terry',0,0,0,0,0,0,NULL,'Terry, Elina',NULL,NULL,NULL,'4',NULL,'2453833535',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Elina',1,NULL,'Dear Elina',1,NULL,'Dr. Elina Terry',NULL,1,'1944-03-09',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (121,'Individual',NULL,'Mrs. Mei Zope','Dowlen Education Collective',NULL,'Mei','P','Zope',1,0,0,0,0,0,NULL,'Zope, Mei',NULL,NULL,NULL,'4',NULL,'1279923749',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Mei',1,NULL,'Dear Mei',1,NULL,'Mrs. Mei Zope',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,188,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (122,'Individual',NULL,'Mr. Landon Bachman III',NULL,NULL,'Landon','','Bachman',0,0,0,0,0,0,NULL,'Bachman, Landon',NULL,NULL,NULL,NULL,NULL,'1765533665',NULL,'Sample Data',3,4,NULL,NULL,1,NULL,'Dear Landon',1,NULL,'Dear Landon',1,NULL,'Mr. Landon Bachman III',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (123,'Individual',NULL,'Russell Reynolds Jr.',NULL,NULL,'Russell','L','Reynolds',1,0,0,0,0,0,NULL,'Reynolds, Russell',NULL,NULL,NULL,NULL,NULL,'2896350648',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Russell',1,NULL,'Dear Russell',1,NULL,'Russell Reynolds Jr.',NULL,NULL,'1973-01-09',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (124,'Individual',NULL,'Ms. Teresa Yadav',NULL,NULL,'Teresa','','Yadav',0,0,0,0,1,0,NULL,'Yadav, Teresa',NULL,NULL,NULL,'3',NULL,'2032766377',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Teresa',1,NULL,'Dear Teresa',1,NULL,'Ms. Teresa Yadav',NULL,NULL,'1946-03-25',1,'2023-04-25',NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (125,'Individual',NULL,'Russell Terry',NULL,NULL,'Russell','F','Terry',0,1,0,0,1,0,NULL,'Terry, Russell',NULL,NULL,NULL,'1',NULL,'3994938484',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Russell',1,NULL,'Dear Russell',1,NULL,'Russell Terry',NULL,2,'2018-03-03',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (126,'Individual',NULL,'Rosario Jensen Jr.',NULL,NULL,'Rosario','','Jensen',0,1,0,0,0,0,NULL,'Jensen, Rosario',NULL,NULL,NULL,'3',NULL,'3904971531',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Rosario',1,NULL,'Dear Rosario',1,NULL,'Rosario Jensen Jr.',NULL,NULL,'2009-10-24',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (127,'Individual',NULL,'Rosario Dimitrov-ÅÄ…chowski II',NULL,NULL,'Rosario','L','Dimitrov-ÅÄ…chowski',0,0,0,0,0,0,NULL,'Dimitrov-ÅÄ…chowski, Rosario',NULL,NULL,NULL,NULL,NULL,'1639348848',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Rosario',1,NULL,'Dear Rosario',1,NULL,'Rosario Dimitrov-ÅÄ…chowski II',NULL,NULL,'1984-01-24',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (128,'Organization',NULL,'Crystal Lake Sports Services','Crystal Lake Sports Services',NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Crystal Lake Sports Services',NULL,NULL,NULL,'1',NULL,'1594113915',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Crystal Lake Sports Services',NULL,NULL,NULL,0,NULL,NULL,3,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (129,'Organization',NULL,'California Poetry Collective','California Poetry Collective',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'California Poetry Collective',NULL,NULL,NULL,'4',NULL,'3043444793',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'California Poetry Collective',NULL,NULL,NULL,0,NULL,NULL,96,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (130,'Individual',NULL,'Dr. Margaret Olsen',NULL,NULL,'Margaret','','Olsen',1,0,0,0,0,0,NULL,'Olsen, Margaret',NULL,NULL,NULL,NULL,NULL,'3839484919',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Margaret',1,NULL,'Dear Margaret',1,NULL,'Dr. Margaret Olsen',NULL,NULL,'1949-01-29',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (131,'Household',NULL,'Müller family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Müller family',NULL,NULL,NULL,NULL,NULL,'1144797465',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Müller family',5,NULL,'Dear Müller family',2,NULL,'Müller family',NULL,NULL,NULL,0,NULL,'Müller family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (132,'Individual',NULL,'Brent Deforest',NULL,NULL,'Brent','T','Deforest',1,0,0,0,0,0,NULL,'Deforest, Brent',NULL,NULL,NULL,'1',NULL,'368083228',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Brent',1,NULL,'Dear Brent',1,NULL,'Brent Deforest',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (133,'Individual',NULL,'sonnyterry@example.co.uk',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'sonnyterry@example.co.uk',NULL,NULL,NULL,'2',NULL,'2015273871',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear sonnyterry@example.co.uk',1,NULL,'Dear sonnyterry@example.co.uk',1,NULL,'sonnyterry@example.co.uk',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (134,'Household',NULL,'Bachman family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Bachman family',NULL,NULL,NULL,'3',NULL,'1714131215',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Bachman family',5,NULL,'Dear Bachman family',2,NULL,'Bachman family',NULL,NULL,NULL,0,NULL,'Bachman family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (135,'Organization',NULL,'Deland Action Systems','Deland Action Systems',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Deland Action Systems',NULL,NULL,NULL,'2',NULL,'1780999107',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Deland Action Systems',NULL,NULL,NULL,0,NULL,NULL,60,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (136,'Individual',NULL,'Ms. Santina Parker',NULL,NULL,'Santina','','Parker',0,0,0,0,0,0,NULL,'Parker, Santina',NULL,NULL,NULL,NULL,NULL,'276546055',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Santina',1,NULL,'Dear Santina',1,NULL,'Ms. Santina Parker',NULL,NULL,'1966-08-17',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (137,'Individual',NULL,'Brent Jensen',NULL,NULL,'Brent','U','Jensen',0,1,0,0,0,0,NULL,'Jensen, Brent',NULL,NULL,NULL,'4',NULL,'4204826871',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Brent',1,NULL,'Dear Brent',1,NULL,'Brent Jensen',NULL,2,'2016-07-22',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (138,'Household',NULL,'Roberts family',NULL,NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Roberts family',NULL,NULL,NULL,NULL,NULL,'2097305882',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Roberts family',5,NULL,'Dear Roberts family',2,NULL,'Roberts family',NULL,NULL,NULL,0,NULL,'Roberts family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (139,'Individual',NULL,'Felisha Jensen',NULL,NULL,'Felisha','J','Jensen',0,0,0,0,1,0,NULL,'Jensen, Felisha',NULL,NULL,NULL,'2',NULL,'45016701',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Felisha',1,NULL,'Dear Felisha',1,NULL,'Felisha Jensen',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (140,'Individual',NULL,'Jacob Jameson',NULL,NULL,'Jacob','T','Jameson',0,0,0,0,0,0,NULL,'Jameson, Jacob',NULL,NULL,NULL,'3',NULL,'3368765112',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Jacob',1,NULL,'Dear Jacob',1,NULL,'Jacob Jameson',NULL,NULL,'2004-08-01',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (141,'Individual',NULL,'Ms. Kathleen Bachman',NULL,NULL,'Kathleen','U','Bachman',0,0,0,0,1,0,NULL,'Bachman, Kathleen',NULL,NULL,NULL,'1',NULL,'4190804197',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Kathleen',1,NULL,'Dear Kathleen',1,NULL,'Ms. Kathleen Bachman',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (142,'Household',NULL,'Samuels-Robertson family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Samuels-Robertson family',NULL,NULL,NULL,NULL,NULL,'2584738538',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Samuels-Robertson family',5,NULL,'Dear Samuels-Robertson family',2,NULL,'Samuels-Robertson family',NULL,NULL,NULL,0,NULL,'Samuels-Robertson family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (143,'Individual',NULL,'Dr. Kenny Smith',NULL,NULL,'Kenny','','Smith',0,0,0,0,0,0,NULL,'Smith, Kenny',NULL,NULL,NULL,'4',NULL,'2487730925',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Kenny',1,NULL,'Dear Kenny',1,NULL,'Dr. Kenny Smith',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (144,'Individual',NULL,'Mrs. Shauna McReynolds',NULL,NULL,'Shauna','','McReynolds',0,0,0,0,0,0,NULL,'McReynolds, Shauna',NULL,NULL,NULL,NULL,NULL,'3277027646',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Shauna',1,NULL,'Dear Shauna',1,NULL,'Mrs. Shauna McReynolds',NULL,NULL,'1968-09-12',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (145,'Individual',NULL,'Lou Ivanov III','Star Environmental Association',NULL,'Lou','','Ivanov',0,0,0,0,0,0,NULL,'Ivanov, Lou',NULL,NULL,NULL,'1',NULL,'211844515',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear Lou',1,NULL,'Dear Lou',1,NULL,'Lou Ivanov III',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,43,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (146,'Individual',NULL,'Mr. Rosario González III',NULL,NULL,'Rosario','','González',0,0,0,0,0,0,NULL,'González, Rosario',NULL,NULL,NULL,'2',NULL,'3206727065',NULL,'Sample Data',3,4,NULL,NULL,1,NULL,'Dear Rosario',1,NULL,'Dear Rosario',1,NULL,'Mr. Rosario González III',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (147,'Individual',NULL,'Ms. Eleonor Bachman',NULL,NULL,'Eleonor','','Bachman',1,0,0,0,0,0,NULL,'Bachman, Eleonor',NULL,NULL,NULL,'4',NULL,'711175679',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Eleonor',1,NULL,'Dear Eleonor',1,NULL,'Ms. Eleonor Bachman',NULL,1,'1975-10-14',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (148,'Individual',NULL,'Sanford Grant',NULL,NULL,'Sanford','','Grant',0,0,0,0,0,0,NULL,'Grant, Sanford',NULL,NULL,NULL,NULL,NULL,'27540077',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Sanford',1,NULL,'Dear Sanford',1,NULL,'Sanford Grant',NULL,2,'1974-02-12',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (149,'Household',NULL,'Wattson family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Wattson family',NULL,NULL,NULL,'4',NULL,'2851339192',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Wattson family',5,NULL,'Dear Wattson family',2,NULL,'Wattson family',NULL,NULL,NULL,0,NULL,'Wattson family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (150,'Individual',NULL,'Jed Dimitrov-ÅÄ…chowski Jr.',NULL,NULL,'Jed','Q','Dimitrov-ÅÄ…chowski',0,0,0,0,1,0,NULL,'Dimitrov-ÅÄ…chowski, Jed',NULL,NULL,NULL,'5',NULL,'702730648',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Jed',1,NULL,'Dear Jed',1,NULL,'Jed Dimitrov-ÅÄ…chowski Jr.',NULL,2,'2012-05-12',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (151,'Individual',NULL,'Errol Müller Jr.',NULL,NULL,'Errol','','Müller',0,0,0,0,0,0,NULL,'Müller, Errol',NULL,NULL,NULL,'4',NULL,'807767976',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Errol',1,NULL,'Dear Errol',1,NULL,'Errol Müller Jr.',NULL,2,'1968-06-01',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (152,'Organization',NULL,'Terre Haute Action Collective','Terre Haute Action Collective',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Terre Haute Action Collective',NULL,NULL,NULL,'5',NULL,'416209860',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Terre Haute Action Collective',NULL,NULL,NULL,0,NULL,NULL,26,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (153,'Organization',NULL,'Friends Health Services','Friends Health Services',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Friends Health Services',NULL,NULL,NULL,NULL,NULL,'2746682770',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Friends Health Services',NULL,NULL,NULL,0,NULL,NULL,82,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (154,'Individual',NULL,'Brent Terrell','Arkansas Literacy Partnership',NULL,'Brent','','Terrell',0,0,0,0,0,0,NULL,'Terrell, Brent',NULL,NULL,NULL,NULL,NULL,'2526832386',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Brent',1,NULL,'Dear Brent',1,NULL,'Brent Terrell',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,91,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (155,'Individual',NULL,'sk.prentice64@fakemail.co.uk',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'sk.prentice64@fakemail.co.uk',NULL,NULL,NULL,'2',NULL,'772869971',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear sk.prentice64@fakemail.co.uk',1,NULL,'Dear sk.prentice64@fakemail.co.uk',1,NULL,'sk.prentice64@fakemail.co.uk',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (156,'Household',NULL,'Terrell family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Terrell family',NULL,NULL,NULL,'4',NULL,'1136333121',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Terrell family',5,NULL,'Dear Terrell family',2,NULL,'Terrell family',NULL,NULL,NULL,0,NULL,'Terrell family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (157,'Organization',NULL,'Creative Health School','Creative Health School',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Creative Health School',NULL,NULL,NULL,NULL,NULL,'3971821012',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Creative Health School',NULL,NULL,NULL,0,NULL,NULL,172,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (158,'Individual',NULL,'Santina Jameson',NULL,NULL,'Santina','G','Jameson',0,0,0,0,1,0,NULL,'Jameson, Santina',NULL,NULL,NULL,NULL,NULL,'2989109013',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Santina',1,NULL,'Dear Santina',1,NULL,'Santina Jameson',NULL,1,'1995-01-03',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (159,'Individual',NULL,'Bernadette Terry',NULL,NULL,'Bernadette','','Terry',1,0,0,0,0,0,NULL,'Terry, Bernadette',NULL,NULL,NULL,NULL,NULL,'2401458356',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Bernadette',1,NULL,'Dear Bernadette',1,NULL,'Bernadette Terry',NULL,1,'1968-09-27',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (160,'Individual',NULL,'Dr. Carlos Patel',NULL,NULL,'Carlos','','Patel',0,0,0,0,0,0,NULL,'Patel, Carlos',NULL,NULL,NULL,NULL,NULL,'2432936038',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Carlos',1,NULL,'Dear Carlos',1,NULL,'Dr. Carlos Patel',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (161,'Household',NULL,'Dimitrov family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Dimitrov family',NULL,NULL,NULL,NULL,NULL,'3351288571',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Dimitrov family',5,NULL,'Dear Dimitrov family',2,NULL,'Dimitrov family',NULL,NULL,NULL,0,NULL,'Dimitrov family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (162,'Individual',NULL,'Josefa Dimitrov',NULL,NULL,'Josefa','X','Dimitrov',0,0,0,0,1,0,NULL,'Dimitrov, Josefa',NULL,NULL,NULL,NULL,NULL,'1492067390',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Josefa',1,NULL,'Dear Josefa',1,NULL,'Josefa Dimitrov',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (163,'Individual',NULL,'Jackson Wattson Sr.',NULL,NULL,'Jackson','T','Wattson',1,1,0,0,0,0,NULL,'Wattson, Jackson',NULL,NULL,NULL,'5',NULL,'1720434610',NULL,'Sample Data',NULL,2,NULL,NULL,1,NULL,'Dear Jackson',1,NULL,'Dear Jackson',1,NULL,'Jackson Wattson Sr.',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (164,'Individual',NULL,'Lawerence Bachman',NULL,NULL,'Lawerence','','Bachman',0,0,0,0,0,0,NULL,'Bachman, Lawerence',NULL,NULL,NULL,NULL,NULL,'2961144560',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Lawerence',1,NULL,'Dear Lawerence',1,NULL,'Lawerence Bachman',NULL,NULL,'1992-09-29',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (165,'Individual',NULL,'Bernadette Samson','Woodbridge Literacy Association',NULL,'Bernadette','','Samson',1,0,0,0,0,0,NULL,'Samson, Bernadette',NULL,NULL,NULL,'5',NULL,'1089960007',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Bernadette',1,NULL,'Dear Bernadette',1,NULL,'Bernadette Samson',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,67,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (166,'Individual',NULL,'Dr. Landon Parker Sr.','Surveyor Development Services',NULL,'Landon','Y','Parker',1,0,0,0,0,0,NULL,'Parker, Landon',NULL,NULL,NULL,NULL,NULL,'372152677',NULL,'Sample Data',4,2,NULL,NULL,1,NULL,'Dear Landon',1,NULL,'Dear Landon',1,NULL,'Dr. Landon Parker Sr.',NULL,NULL,'1990-10-15',0,NULL,NULL,NULL,NULL,NULL,73,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (167,'Individual',NULL,'Juliann Parker',NULL,NULL,'Juliann','V','Parker',0,1,0,0,0,0,NULL,'Parker, Juliann',NULL,NULL,NULL,NULL,NULL,'1013304220',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Juliann',1,NULL,'Dear Juliann',1,NULL,'Juliann Parker',NULL,NULL,'1985-11-27',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (168,'Household',NULL,'Müller family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Müller family',NULL,NULL,NULL,'2',NULL,'1144797465',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Müller family',5,NULL,'Dear Müller family',2,NULL,'Müller family',NULL,NULL,NULL,0,NULL,'Müller family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (169,'Organization',NULL,'Community Education Center','Community Education Center',NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'Community Education Center',NULL,NULL,NULL,NULL,NULL,'2848846788',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Community Education Center',NULL,NULL,NULL,0,NULL,NULL,183,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (170,'Individual',NULL,'Dr. Jackson Roberts',NULL,NULL,'Jackson','','Roberts',0,0,0,0,0,0,NULL,'Roberts, Jackson',NULL,NULL,NULL,NULL,NULL,'3261233132',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Jackson',1,NULL,'Dear Jackson',1,NULL,'Dr. Jackson Roberts',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (171,'Individual',NULL,'Daren Jensen Jr.',NULL,NULL,'Daren','','Jensen',0,0,0,0,1,0,NULL,'Jensen, Daren',NULL,NULL,NULL,'1',NULL,'817039458',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Daren',1,NULL,'Dear Daren',1,NULL,'Daren Jensen Jr.',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (172,'Individual',NULL,'Mr. Errol González','Creative Health School',NULL,'Errol','','González',0,0,0,0,0,0,NULL,'González, Errol',NULL,NULL,NULL,'4',NULL,'3063008863',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Errol',1,NULL,'Dear Errol',1,NULL,'Mr. Errol González',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,157,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (173,'Individual',NULL,'Kenny Jensen III',NULL,NULL,'Kenny','E','Jensen',1,0,0,0,0,0,NULL,'Jensen, Kenny',NULL,NULL,NULL,NULL,NULL,'1218055932',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear Kenny',1,NULL,'Dear Kenny',1,NULL,'Kenny Jensen III',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (174,'Individual',NULL,'Jacob Parker II',NULL,NULL,'Jacob','','Parker',0,0,0,0,0,0,NULL,'Parker, Jacob',NULL,NULL,NULL,NULL,NULL,'1474401042',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Jacob',1,NULL,'Dear Jacob',1,NULL,'Jacob Parker II',NULL,2,'1935-07-17',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (175,'Individual',NULL,'lareej@fakemail.co.in',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'lareej@fakemail.co.in',NULL,NULL,NULL,'3',NULL,'1330731483',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear lareej@fakemail.co.in',1,NULL,'Dear lareej@fakemail.co.in',1,NULL,'lareej@fakemail.co.in',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (176,'Individual',NULL,'Carlos Adams-DÃaz',NULL,NULL,'Carlos','','Adams-DÃaz',0,1,0,0,0,0,NULL,'Adams-DÃaz, Carlos',NULL,NULL,NULL,NULL,NULL,'3645969436',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Carlos',1,NULL,'Dear Carlos',1,NULL,'Carlos Adams-DÃaz',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (177,'Organization',NULL,'Local Poetry Association','Local Poetry Association',NULL,NULL,NULL,NULL,1,1,0,0,0,0,NULL,'Local Poetry Association',NULL,NULL,NULL,NULL,NULL,'3261821491',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Local Poetry Association',NULL,NULL,NULL,0,NULL,NULL,50,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (178,'Individual',NULL,'Mr. Ray Roberts',NULL,NULL,'Ray','C','Roberts',0,1,0,0,0,0,NULL,'Roberts, Ray',NULL,NULL,NULL,'4',NULL,'1321167237',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Ray',1,NULL,'Dear Ray',1,NULL,'Mr. Ray Roberts',NULL,NULL,'1960-11-02',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (179,'Individual',NULL,'kaceymller@mymail.co.pl',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'kaceymller@mymail.co.pl',NULL,NULL,NULL,'4',NULL,'1097671879',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear kaceymller@mymail.co.pl',1,NULL,'Dear kaceymller@mymail.co.pl',1,NULL,'kaceymller@mymail.co.pl',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (180,'Individual',NULL,'Jerome Jensen',NULL,NULL,'Jerome','S','Jensen',0,0,0,0,0,0,NULL,'Jensen, Jerome',NULL,NULL,NULL,'3',NULL,'2774980739',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Jerome',1,NULL,'Dear Jerome',1,NULL,'Jerome Jensen',NULL,2,'1944-11-04',1,'2022-10-19',NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (181,'Individual',NULL,'Dr. Ashlie ÅÄ…chowski',NULL,NULL,'Ashlie','A','ÅÄ…chowski',0,1,0,0,0,0,NULL,'ÅÄ…chowski, Ashlie',NULL,NULL,NULL,'4',NULL,'3338606881',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Ashlie',1,NULL,'Dear Ashlie',1,NULL,'Dr. Ashlie ÅÄ…chowski',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (182,'Individual',NULL,'Mrs. Sharyn DÃaz',NULL,NULL,'Sharyn','M','DÃaz',0,0,0,0,1,0,NULL,'DÃaz, Sharyn',NULL,NULL,NULL,NULL,NULL,'4129279229',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Sharyn',1,NULL,'Dear Sharyn',1,NULL,'Mrs. Sharyn DÃaz',NULL,1,'1973-01-07',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (183,'Individual',NULL,'iz.cooper@fakemail.co.pl','Community Education Center',NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'iz.cooper@fakemail.co.pl',NULL,NULL,NULL,'2',NULL,'3574521128',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear iz.cooper@fakemail.co.pl',1,NULL,'Dear iz.cooper@fakemail.co.pl',1,NULL,'iz.cooper@fakemail.co.pl',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,169,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (184,'Individual',NULL,'Kenny Samuels II',NULL,NULL,'Kenny','U','Samuels',1,0,0,0,0,0,NULL,'Samuels, Kenny',NULL,NULL,NULL,'1',NULL,'1946058198',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Kenny',1,NULL,'Dear Kenny',1,NULL,'Kenny Samuels II',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (185,'Individual',NULL,'Princess Müller',NULL,NULL,'Princess','J','Müller',0,1,0,0,0,0,NULL,'Müller, Princess',NULL,NULL,NULL,'1',NULL,'1686008496',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Princess',1,NULL,'Dear Princess',1,NULL,'Princess Müller',NULL,1,'1990-04-03',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (186,'Individual',NULL,'Elina Grant',NULL,NULL,'Elina','Y','Grant',0,0,0,0,0,0,NULL,'Grant, Elina',NULL,NULL,NULL,'5',NULL,'1935800100',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Elina',1,NULL,'Dear Elina',1,NULL,'Elina Grant',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (187,'Individual',NULL,'brentr@testing.net',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'brentr@testing.net',NULL,NULL,NULL,NULL,NULL,'307506130',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear brentr@testing.net',1,NULL,'Dear brentr@testing.net',1,NULL,'brentr@testing.net',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (188,'Organization',NULL,'Dowlen Education Collective','Dowlen Education Collective',NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Dowlen Education Collective',NULL,NULL,NULL,NULL,NULL,'4183720313',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Dowlen Education Collective',NULL,NULL,NULL,0,NULL,NULL,121,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (189,'Individual',NULL,'wilsonc98@spamalot.com',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'wilsonc98@spamalot.com',NULL,NULL,NULL,NULL,NULL,'873744776',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear wilsonc98@spamalot.com',1,NULL,'Dear wilsonc98@spamalot.com',1,NULL,'wilsonc98@spamalot.com',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (190,'Individual',NULL,'Ms. Ashlie Barkley',NULL,NULL,'Ashlie','H','Barkley',0,0,0,0,1,0,NULL,'Barkley, Ashlie',NULL,NULL,NULL,'4',NULL,'1002355994',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Ashlie',1,NULL,'Dear Ashlie',1,NULL,'Ms. Ashlie Barkley',NULL,1,'1936-08-05',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (191,'Individual',NULL,'Teddy Bachman',NULL,NULL,'Teddy','I','Bachman',1,0,0,0,1,0,NULL,'Bachman, Teddy',NULL,NULL,NULL,'3',NULL,'352195656',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Teddy',1,NULL,'Dear Teddy',1,NULL,'Teddy Bachman',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (192,'Individual',NULL,'Rodrigo Nielsen',NULL,NULL,'Rodrigo','G','Nielsen',0,0,0,0,1,0,NULL,'Nielsen, Rodrigo',NULL,NULL,NULL,NULL,NULL,'976050360',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Rodrigo',1,NULL,'Dear Rodrigo',1,NULL,'Rodrigo Nielsen',NULL,2,'1943-12-02',1,'2023-07-07',NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (193,'Organization',NULL,'Beech Action Systems','Beech Action Systems',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Beech Action Systems',NULL,NULL,NULL,'2',NULL,'1495349270',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Beech Action Systems',NULL,NULL,NULL,0,NULL,NULL,28,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (194,'Individual',NULL,'Megan Jones-Jameson',NULL,NULL,'Megan','','Jones-Jameson',0,1,0,0,1,0,NULL,'Jones-Jameson, Megan',NULL,NULL,NULL,'5',NULL,'183304244',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Megan',1,NULL,'Dear Megan',1,NULL,'Megan Jones-Jameson',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (195,'Individual',NULL,'Dr. Maxwell Zope Jr.',NULL,NULL,'Maxwell','G','Zope',0,1,0,0,0,0,NULL,'Zope, Maxwell',NULL,NULL,NULL,NULL,NULL,'676762100',NULL,'Sample Data',4,1,NULL,NULL,1,NULL,'Dear Maxwell',1,NULL,'Dear Maxwell',1,NULL,'Dr. Maxwell Zope Jr.',NULL,2,'1978-07-14',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (196,'Individual',NULL,'Dr. Margaret Terrell',NULL,NULL,'Margaret','Y','Terrell',1,1,0,0,0,0,NULL,'Terrell, Margaret',NULL,NULL,NULL,NULL,NULL,'3427129884',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Margaret',1,NULL,'Dear Margaret',1,NULL,'Dr. Margaret Terrell',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (197,'Individual',NULL,'Jacob Müller Sr.',NULL,NULL,'Jacob','','Müller',1,1,0,0,0,0,NULL,'Müller, Jacob',NULL,NULL,NULL,'2',NULL,'176489544',NULL,'Sample Data',NULL,2,NULL,NULL,1,NULL,'Dear Jacob',1,NULL,'Dear Jacob',1,NULL,'Jacob Müller Sr.',NULL,NULL,'2012-08-30',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (198,'Individual',NULL,'BrzÄ™czysÅ‚aw Barkley',NULL,NULL,'BrzÄ™czysÅ‚aw','K','Barkley',1,1,0,0,0,0,NULL,'Barkley, BrzÄ™czysÅ‚aw',NULL,NULL,NULL,'2',NULL,'2169122499',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear BrzÄ™czysÅ‚aw',1,NULL,'Dear BrzÄ™czysÅ‚aw',1,NULL,'BrzÄ™czysÅ‚aw Barkley',NULL,2,'1937-10-11',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (199,'Individual',NULL,'Rodrigo Jensen',NULL,NULL,'Rodrigo','','Jensen',0,1,0,0,0,0,NULL,'Jensen, Rodrigo',NULL,NULL,NULL,'4',NULL,'4133351927',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Rodrigo',1,NULL,'Dear Rodrigo',1,NULL,'Rodrigo Jensen',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (200,'Individual',NULL,'Rebekah Samuels',NULL,NULL,'Rebekah','A','Samuels',1,0,0,0,1,0,NULL,'Samuels, Rebekah',NULL,NULL,NULL,NULL,NULL,'2023061910',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Rebekah',1,NULL,'Dear Rebekah',1,NULL,'Rebekah Samuels',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:16','Both'), - (201,'Household',NULL,'Jensen family',NULL,NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Jensen family',NULL,NULL,NULL,'1',NULL,'797435572',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Jensen family',5,NULL,'Dear Jensen family',2,NULL,'Jensen family',NULL,NULL,NULL,0,NULL,'Jensen family',NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:16','2023-09-06 22:52:17','Both'), - (202,'Individual',NULL,'Jenny Lee',NULL,NULL,'Jenny',NULL,'Lee',0,0,0,0,0,0,NULL,'Lee, Jenny',NULL,NULL,NULL,NULL,'en_US','3dfdac7ea62842e59902c0e6d697c926',NULL,NULL,NULL,NULL,NULL,1,1,NULL,'Dear Jenny',1,NULL,'Dear Jenny',1,NULL,'Jenny Lee','Volunteer coordinator',NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-09-06 22:52:18','2023-09-06 22:52:18','Both'); + (1,'Organization',NULL,'Default Organization','Default Organization',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Default Organization',NULL,'Default Organization',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'2023-10-07 01:51:16','Both'), + (2,'Individual',NULL,'Sonny McReynolds',NULL,NULL,'Sonny','','McReynolds',0,0,0,0,1,0,NULL,'McReynolds, Sonny',NULL,NULL,NULL,NULL,NULL,'3975405155',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Sonny',1,NULL,'Dear Sonny',1,NULL,'Sonny McReynolds',NULL,2,'1965-05-28',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (3,'Individual',NULL,'Teresa Prentice-Zope',NULL,NULL,'Teresa','Y','Prentice-Zope',0,0,0,0,0,0,NULL,'Prentice-Zope, Teresa',NULL,NULL,NULL,'4',NULL,'4026368595',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Teresa',1,NULL,'Dear Teresa',1,NULL,'Teresa Prentice-Zope',NULL,1,'1977-10-03',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (4,'Individual',NULL,'Mrs. Eleonor Wattson-Terrell',NULL,NULL,'Eleonor','','Wattson-Terrell',0,0,0,0,1,0,NULL,'Wattson-Terrell, Eleonor',NULL,NULL,NULL,'5',NULL,'362340920',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Eleonor',1,NULL,'Dear Eleonor',1,NULL,'Mrs. Eleonor Wattson-Terrell',NULL,1,'1967-08-11',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (5,'Individual',NULL,'Dr. Daren Robertson II',NULL,NULL,'Daren','O','Robertson',0,0,0,0,0,0,NULL,'Robertson, Daren',NULL,NULL,NULL,NULL,NULL,'3531188522',NULL,'Sample Data',4,3,NULL,NULL,1,NULL,'Dear Daren',1,NULL,'Dear Daren',1,NULL,'Dr. Daren Robertson II',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (6,'Household',NULL,'McReynolds family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'McReynolds family',NULL,NULL,NULL,NULL,NULL,'3032680972',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear McReynolds family',5,NULL,'Dear McReynolds family',2,NULL,'McReynolds family',NULL,NULL,NULL,0,NULL,'McReynolds family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (7,'Individual',NULL,'Merrie Bachman',NULL,NULL,'Merrie','','Bachman',0,0,0,0,0,0,NULL,'Bachman, Merrie',NULL,NULL,NULL,'4',NULL,'2483805039',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Merrie',1,NULL,'Dear Merrie',1,NULL,'Merrie Bachman',NULL,NULL,'1987-03-21',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (8,'Individual',NULL,'Dr. Merrie Dimitrov-Deforest',NULL,NULL,'Merrie','Z','Dimitrov-Deforest',0,0,0,0,0,0,NULL,'Dimitrov-Deforest, Merrie',NULL,NULL,NULL,'5',NULL,'2904668003',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Merrie',1,NULL,'Dear Merrie',1,NULL,'Dr. Merrie Dimitrov-Deforest',NULL,NULL,'1998-10-03',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (9,'Individual',NULL,'Nicole Zope-Robertson',NULL,NULL,'Nicole','','Zope-Robertson',0,0,0,0,1,0,NULL,'Zope-Robertson, Nicole',NULL,NULL,NULL,'5',NULL,'4230311701',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Nicole',1,NULL,'Dear Nicole',1,NULL,'Nicole Zope-Robertson',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (10,'Individual',NULL,'blackwelln@spamalot.co.pl',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'blackwelln@spamalot.co.pl',NULL,NULL,NULL,'2',NULL,'916898902',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear blackwelln@spamalot.co.pl',1,NULL,'Dear blackwelln@spamalot.co.pl',1,NULL,'blackwelln@spamalot.co.pl',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (11,'Household',NULL,'Lee family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Lee family',NULL,NULL,NULL,NULL,NULL,'845831176',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Lee family',5,NULL,'Dear Lee family',2,NULL,'Lee family',NULL,NULL,NULL,0,NULL,'Lee family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (12,'Individual',NULL,'Lawerence Adams','Ohio Advocacy Association',NULL,'Lawerence','K','Adams',0,0,0,0,0,0,NULL,'Adams, Lawerence',NULL,NULL,NULL,NULL,NULL,'2270644856',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Lawerence',1,NULL,'Dear Lawerence',1,NULL,'Lawerence Adams',NULL,2,'1971-11-12',0,NULL,NULL,NULL,NULL,NULL,118,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (13,'Individual',NULL,'Russell Samuels III',NULL,NULL,'Russell','','Samuels',0,0,0,0,0,0,NULL,'Samuels, Russell',NULL,NULL,NULL,NULL,NULL,'3958135330',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear Russell',1,NULL,'Dear Russell',1,NULL,'Russell Samuels III',NULL,2,'1988-03-12',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:33','Both'), + (14,'Household',NULL,'Blackwell family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Blackwell family',NULL,NULL,NULL,NULL,NULL,'3218641510',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Blackwell family',5,NULL,'Dear Blackwell family',2,NULL,'Blackwell family',NULL,NULL,NULL,0,NULL,'Blackwell family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (15,'Individual',NULL,'Landon Cooper Jr.',NULL,NULL,'Landon','','Cooper',1,0,0,0,0,0,NULL,'Cooper, Landon',NULL,NULL,NULL,NULL,NULL,'3917161471',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Landon',1,NULL,'Dear Landon',1,NULL,'Landon Cooper Jr.',NULL,2,'1985-07-08',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (16,'Individual',NULL,'Dr. Junko McReynolds',NULL,NULL,'Junko','U','McReynolds',0,0,0,0,0,0,NULL,'McReynolds, Junko',NULL,NULL,NULL,'1',NULL,'923065727',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Junko',1,NULL,'Dear Junko',1,NULL,'Dr. Junko McReynolds',NULL,NULL,'1965-09-24',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (17,'Organization',NULL,'Lancaster Sustainability Services','Lancaster Sustainability Services',NULL,NULL,NULL,NULL,1,0,0,0,0,0,NULL,'Lancaster Sustainability Services',NULL,NULL,NULL,'3',NULL,'2607308804',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Lancaster Sustainability Services',NULL,NULL,NULL,0,NULL,NULL,57,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (18,'Individual',NULL,'Rosario Blackwell III',NULL,NULL,'Rosario','','Blackwell',0,1,0,0,0,0,NULL,'Blackwell, Rosario',NULL,NULL,NULL,NULL,NULL,'212312556',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear Rosario',1,NULL,'Dear Rosario',1,NULL,'Rosario Blackwell III',NULL,2,'1981-01-28',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (19,'Organization',NULL,'Local Culture Collective','Local Culture Collective',NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Local Culture Collective',NULL,NULL,NULL,NULL,NULL,'516325396',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Local Culture Collective',NULL,NULL,NULL,0,NULL,NULL,69,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (20,'Individual',NULL,'Roland DÃaz III',NULL,NULL,'Roland','Z','DÃaz',0,0,0,0,0,0,NULL,'DÃaz, Roland',NULL,NULL,NULL,NULL,NULL,'2252303156',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear Roland',1,NULL,'Dear Roland',1,NULL,'Roland DÃaz III',NULL,NULL,'1952-11-05',1,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (21,'Household',NULL,'Blackwell family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'Blackwell family',NULL,NULL,NULL,'2',NULL,'3218641510',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Blackwell family',5,NULL,'Dear Blackwell family',2,NULL,'Blackwell family',NULL,NULL,NULL,0,NULL,'Blackwell family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (22,'Individual',NULL,'Ms. Laree Jameson',NULL,NULL,'Laree','Y','Jameson',0,0,0,0,1,0,NULL,'Jameson, Laree',NULL,NULL,NULL,'2',NULL,'1055131510',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Laree',1,NULL,'Dear Laree',1,NULL,'Ms. Laree Jameson',NULL,1,'1996-11-21',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (23,'Individual',NULL,'Troy McReynolds',NULL,NULL,'Troy','','McReynolds',1,0,0,0,1,0,NULL,'McReynolds, Troy',NULL,NULL,NULL,'5',NULL,'2359789954',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Troy',1,NULL,'Dear Troy',1,NULL,'Troy McReynolds',NULL,NULL,'1977-07-17',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (24,'Individual',NULL,'ivanov.eleonor61@fakemail.co.nz',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'ivanov.eleonor61@fakemail.co.nz',NULL,NULL,NULL,'4',NULL,'2903011637',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear ivanov.eleonor61@fakemail.co.nz',1,NULL,'Dear ivanov.eleonor61@fakemail.co.nz',1,NULL,'ivanov.eleonor61@fakemail.co.nz',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:30','Both'), + (25,'Individual',NULL,'Ms. Merrie Dimitrov',NULL,NULL,'Merrie','','Dimitrov',0,1,0,0,0,0,NULL,'Dimitrov, Merrie',NULL,NULL,NULL,'4',NULL,'779748961',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Merrie',1,NULL,'Dear Merrie',1,NULL,'Ms. Merrie Dimitrov',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:33','Both'), + (26,'Individual',NULL,'Craig Cruz',NULL,NULL,'Craig','U','Cruz',0,0,0,0,0,0,NULL,'Cruz, Craig',NULL,NULL,NULL,'4',NULL,'2921138487',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Craig',1,NULL,'Dear Craig',1,NULL,'Craig Cruz',NULL,2,'2008-05-24',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (27,'Individual',NULL,'Brigette Wilson',NULL,NULL,'Brigette','','Wilson',0,0,0,0,0,0,NULL,'Wilson, Brigette',NULL,NULL,NULL,NULL,NULL,'4271380473',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Brigette',1,NULL,'Dear Brigette',1,NULL,'Brigette Wilson',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (28,'Individual',NULL,'Maria Cruz-Dimitrov Jr.',NULL,NULL,'Maria','','Cruz-Dimitrov',0,0,0,0,0,0,NULL,'Cruz-Dimitrov, Maria',NULL,NULL,NULL,NULL,NULL,'3267119889',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Maria',1,NULL,'Dear Maria',1,NULL,'Maria Cruz-Dimitrov Jr.',NULL,2,'1981-11-09',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:33','Both'), + (29,'Individual',NULL,'mcreynolds.lashawnda@mymail.info',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'mcreynolds.lashawnda@mymail.info',NULL,NULL,NULL,'4',NULL,'268711653',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear mcreynolds.lashawnda@mymail.info',1,NULL,'Dear mcreynolds.lashawnda@mymail.info',1,NULL,'mcreynolds.lashawnda@mymail.info',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (30,'Individual',NULL,'smith.o.mei95@fishmail.co.nz',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'smith.o.mei95@fishmail.co.nz',NULL,NULL,NULL,'2',NULL,'3826978335',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear smith.o.mei95@fishmail.co.nz',1,NULL,'Dear smith.o.mei95@fishmail.co.nz',1,NULL,'smith.o.mei95@fishmail.co.nz',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (31,'Organization',NULL,'Ben Franklin Music Association','Ben Franklin Music Association',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Ben Franklin Music Association',NULL,NULL,NULL,'3',NULL,'390038760',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Ben Franklin Music Association',NULL,NULL,NULL,0,NULL,NULL,194,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (32,'Individual',NULL,'Mr. Toby Grant',NULL,NULL,'Toby','U','Grant',0,0,0,0,0,0,NULL,'Grant, Toby',NULL,NULL,NULL,NULL,NULL,'944702831',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Toby',1,NULL,'Dear Toby',1,NULL,'Mr. Toby Grant',NULL,NULL,'1990-08-06',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:30','Both'), + (33,'Individual',NULL,'rosariosmith@testing.co.uk',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'rosariosmith@testing.co.uk',NULL,NULL,NULL,NULL,NULL,'2541418479',NULL,'Sample Data',NULL,2,NULL,NULL,1,NULL,'Dear rosariosmith@testing.co.uk',1,NULL,'Dear rosariosmith@testing.co.uk',1,NULL,'rosariosmith@testing.co.uk',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (34,'Individual',NULL,'Iris DÃaz',NULL,NULL,'Iris','S','DÃaz',0,0,0,0,0,0,NULL,'DÃaz, Iris',NULL,NULL,NULL,'4',NULL,'2732168560',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Iris',1,NULL,'Dear Iris',1,NULL,'Iris DÃaz',NULL,1,'1982-11-15',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (35,'Individual',NULL,'Maxwell Terry',NULL,NULL,'Maxwell','D','Terry',1,0,0,0,0,0,NULL,'Terry, Maxwell',NULL,NULL,NULL,'2',NULL,'528410264',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Maxwell',1,NULL,'Dear Maxwell',1,NULL,'Maxwell Terry',NULL,2,'1948-02-05',1,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (36,'Individual',NULL,'Kiara Grant',NULL,NULL,'Kiara','','Grant',0,0,0,0,0,0,NULL,'Grant, Kiara',NULL,NULL,NULL,NULL,NULL,'334214546',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Kiara',1,NULL,'Dear Kiara',1,NULL,'Kiara Grant',NULL,1,'1947-10-26',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:30','Both'), + (37,'Individual',NULL,'Princess Terry',NULL,NULL,'Princess','','Terry',1,0,0,0,0,0,NULL,'Terry, Princess',NULL,NULL,NULL,NULL,NULL,'383206962',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Princess',1,NULL,'Dear Princess',1,NULL,'Princess Terry',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:30','Both'), + (38,'Individual',NULL,'Elizabeth Blackwell',NULL,NULL,'Elizabeth','','Blackwell',0,0,0,0,0,0,NULL,'Blackwell, Elizabeth',NULL,NULL,NULL,'3',NULL,'197038680',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Elizabeth',1,NULL,'Dear Elizabeth',1,NULL,'Elizabeth Blackwell',NULL,NULL,'1969-07-20',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (39,'Individual',NULL,'Mrs. Lashawnda Jacobs',NULL,NULL,'Lashawnda','W','Jacobs',0,1,0,0,1,0,NULL,'Jacobs, Lashawnda',NULL,NULL,NULL,'4',NULL,'1880205754',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Lashawnda',1,NULL,'Dear Lashawnda',1,NULL,'Mrs. Lashawnda Jacobs',NULL,1,'1955-01-11',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (40,'Individual',NULL,'Mr. Lawerence Lee Sr.',NULL,NULL,'Lawerence','','Lee',0,0,0,0,1,0,NULL,'Lee, Lawerence',NULL,NULL,NULL,NULL,NULL,'834383091',NULL,'Sample Data',3,2,NULL,NULL,1,NULL,'Dear Lawerence',1,NULL,'Dear Lawerence',1,NULL,'Mr. Lawerence Lee Sr.',NULL,2,'1995-11-11',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (41,'Individual',NULL,'Rolando Samuels',NULL,NULL,'Rolando','S','Samuels',0,0,0,0,1,0,NULL,'Samuels, Rolando',NULL,NULL,NULL,'5',NULL,'210030795',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Rolando',1,NULL,'Dear Rolando',1,NULL,'Rolando Samuels',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:33','Both'), + (42,'Individual',NULL,'Dr. Brittney Blackwell',NULL,NULL,'Brittney','','Blackwell',0,0,0,0,1,0,NULL,'Blackwell, Brittney',NULL,NULL,NULL,'1',NULL,'4167007006',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Brittney',1,NULL,'Dear Brittney',1,NULL,'Dr. Brittney Blackwell',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:33','Both'), + (43,'Individual',NULL,'Mr. Shad Lee Sr.',NULL,NULL,'Shad','D','Lee',0,0,0,0,0,0,NULL,'Lee, Shad',NULL,NULL,NULL,'5',NULL,'2277508634',NULL,'Sample Data',3,2,NULL,NULL,1,NULL,'Dear Shad',1,NULL,'Dear Shad',1,NULL,'Mr. Shad Lee Sr.',NULL,2,'2001-03-20',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (44,'Individual',NULL,'blackwellm13@spamalot.co.pl',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'blackwellm13@spamalot.co.pl',NULL,NULL,NULL,'5',NULL,'1436682692',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear blackwellm13@spamalot.co.pl',1,NULL,'Dear blackwellm13@spamalot.co.pl',1,NULL,'blackwellm13@spamalot.co.pl',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (45,'Individual',NULL,'lawerencejones@fishmail.co.uk','States Action Systems',NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'lawerencejones@fishmail.co.uk',NULL,NULL,NULL,NULL,NULL,'393377011',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear lawerencejones@fishmail.co.uk',1,NULL,'Dear lawerencejones@fishmail.co.uk',1,NULL,'lawerencejones@fishmail.co.uk',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,111,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (46,'Individual',NULL,'Shauna Jensen',NULL,NULL,'Shauna','','Jensen',0,0,0,0,0,0,NULL,'Jensen, Shauna',NULL,NULL,NULL,NULL,NULL,'108136044',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Shauna',1,NULL,'Dear Shauna',1,NULL,'Shauna Jensen',NULL,1,'1957-10-20',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (47,'Individual',NULL,'Valene Barkley',NULL,NULL,'Valene','O','Barkley',1,0,0,0,0,0,NULL,'Barkley, Valene',NULL,NULL,NULL,NULL,NULL,'4039078340',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Valene',1,NULL,'Dear Valene',1,NULL,'Valene Barkley',NULL,1,'1975-09-07',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (48,'Individual',NULL,'mterrell83@notmail.com',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'mterrell83@notmail.com',NULL,NULL,NULL,'3',NULL,'2885628683',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear mterrell83@notmail.com',1,NULL,'Dear mterrell83@notmail.com',1,NULL,'mterrell83@notmail.com',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (49,'Individual',NULL,'Beula Jacobs',NULL,NULL,'Beula','','Jacobs',0,0,0,0,0,0,NULL,'Jacobs, Beula',NULL,NULL,NULL,'3',NULL,'41714917',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Beula',1,NULL,'Dear Beula',1,NULL,'Beula Jacobs',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (50,'Organization',NULL,'College Advocacy Partnership','College Advocacy Partnership',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'College Advocacy Partnership',NULL,NULL,NULL,NULL,NULL,'592323356',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'College Advocacy Partnership',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (51,'Organization',NULL,'Montier Peace Solutions','Montier Peace Solutions',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Montier Peace Solutions',NULL,NULL,NULL,'2',NULL,'1489970106',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Montier Peace Solutions',NULL,NULL,NULL,0,NULL,NULL,75,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (52,'Household',NULL,'Dimitrov family',NULL,NULL,NULL,NULL,NULL,1,0,0,0,0,0,NULL,'Dimitrov family',NULL,NULL,NULL,NULL,NULL,'3351288571',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Dimitrov family',5,NULL,'Dear Dimitrov family',2,NULL,'Dimitrov family',NULL,NULL,NULL,0,NULL,'Dimitrov family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (53,'Organization',NULL,'Community Education Partnership','Community Education Partnership',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Community Education Partnership',NULL,NULL,NULL,NULL,NULL,'2557431911',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Community Education Partnership',NULL,NULL,NULL,0,NULL,NULL,180,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (54,'Individual',NULL,'gonzlez.carlos@mymail.org','Mississippi Wellness Academy',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'gonzlez.carlos@mymail.org',NULL,NULL,NULL,'3',NULL,'603658809',NULL,'Sample Data',4,2,NULL,NULL,1,NULL,'Dear gonzlez.carlos@mymail.org',1,NULL,'Dear gonzlez.carlos@mymail.org',1,NULL,'gonzlez.carlos@mymail.org',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,166,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (55,'Individual',NULL,'Kathlyn Samson',NULL,NULL,'Kathlyn','X','Samson',0,0,0,0,0,0,NULL,'Samson, Kathlyn',NULL,NULL,NULL,'4',NULL,'2952894256',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Kathlyn',1,NULL,'Dear Kathlyn',1,NULL,'Kathlyn Samson',NULL,NULL,'1935-07-07',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (56,'Individual',NULL,'Ms. Ashley Wilson-DÃaz',NULL,NULL,'Ashley','W','Wilson-DÃaz',0,0,0,0,1,0,NULL,'Wilson-DÃaz, Ashley',NULL,NULL,NULL,NULL,NULL,'2387950815',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Ashley',1,NULL,'Dear Ashley',1,NULL,'Ms. Ashley Wilson-DÃaz',NULL,1,'1964-07-20',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (57,'Individual',NULL,'tdimitrov@fishmail.net','Lancaster Sustainability Services',NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'tdimitrov@fishmail.net',NULL,NULL,NULL,'5',NULL,'1109834999',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear tdimitrov@fishmail.net',1,NULL,'Dear tdimitrov@fishmail.net',1,NULL,'tdimitrov@fishmail.net',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,17,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (58,'Individual',NULL,'Juliann Zope','California Sports Collective',NULL,'Juliann','','Zope',0,0,0,0,0,0,NULL,'Zope, Juliann',NULL,NULL,NULL,NULL,NULL,'2334217579',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Juliann',1,NULL,'Dear Juliann',1,NULL,'Juliann Zope',NULL,1,'2006-05-12',0,NULL,NULL,NULL,NULL,NULL,121,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (59,'Household',NULL,'Dimitrov-Deforest family',NULL,NULL,NULL,NULL,NULL,0,1,0,0,1,0,NULL,'Dimitrov-Deforest family',NULL,NULL,NULL,'4',NULL,'1341415404',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Dimitrov-Deforest family',5,NULL,'Dear Dimitrov-Deforest family',2,NULL,'Dimitrov-Deforest family',NULL,NULL,NULL,0,NULL,'Dimitrov-Deforest family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (60,'Individual',NULL,'Brigette Jameson',NULL,NULL,'Brigette','K','Jameson',0,0,0,0,0,0,NULL,'Jameson, Brigette',NULL,NULL,NULL,NULL,NULL,'839229848',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Brigette',1,NULL,'Dear Brigette',1,NULL,'Brigette Jameson',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (61,'Individual',NULL,'Mrs. Rebekah Barkley',NULL,NULL,'Rebekah','Q','Barkley',1,1,0,0,0,0,NULL,'Barkley, Rebekah',NULL,NULL,NULL,NULL,NULL,'3218825396',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Rebekah',1,NULL,'Dear Rebekah',1,NULL,'Mrs. Rebekah Barkley',NULL,1,'1999-08-16',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (62,'Individual',NULL,'Esta Samson-Cruz',NULL,NULL,'Esta','','Samson-Cruz',0,0,0,0,1,0,NULL,'Samson-Cruz, Esta',NULL,NULL,NULL,'4',NULL,'4158236520',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Esta',1,NULL,'Dear Esta',1,NULL,'Esta Samson-Cruz',NULL,1,'1957-07-28',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (63,'Individual',NULL,'Dr. Winford Dimitrov Jr.',NULL,NULL,'Winford','H','Dimitrov',0,0,0,0,1,0,NULL,'Dimitrov, Winford',NULL,NULL,NULL,NULL,NULL,'1833902224',NULL,'Sample Data',4,1,NULL,NULL,1,NULL,'Dear Winford',1,NULL,'Dear Winford',1,NULL,'Dr. Winford Dimitrov Jr.',NULL,2,'1966-03-20',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (64,'Organization',NULL,'West Virginia Software Center','West Virginia Software Center',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'West Virginia Software Center',NULL,NULL,NULL,NULL,NULL,'3912809978',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'West Virginia Software Center',NULL,NULL,NULL,0,NULL,NULL,120,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (65,'Individual',NULL,'Dr. Rolando Zope III',NULL,NULL,'Rolando','','Zope',0,0,0,0,0,0,NULL,'Zope, Rolando',NULL,NULL,NULL,NULL,NULL,'1046286833',NULL,'Sample Data',4,4,NULL,NULL,1,NULL,'Dear Rolando',1,NULL,'Dear Rolando',1,NULL,'Dr. Rolando Zope III',NULL,2,'1973-05-23',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (66,'Individual',NULL,'Mrs. Beula Jensen',NULL,NULL,'Beula','','Jensen',0,0,0,0,0,0,NULL,'Jensen, Beula',NULL,NULL,NULL,'2',NULL,'1956895432',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Beula',1,NULL,'Dear Beula',1,NULL,'Mrs. Beula Jensen',NULL,1,'2001-05-19',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (67,'Individual',NULL,'Mr. Ray DÃaz',NULL,NULL,'Ray','','DÃaz',1,0,0,0,0,0,NULL,'DÃaz, Ray',NULL,NULL,NULL,'1',NULL,'3718606609',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Ray',1,NULL,'Dear Ray',1,NULL,'Mr. Ray DÃaz',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (68,'Individual',NULL,'yadavm72@notmail.org',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'yadavm72@notmail.org',NULL,NULL,NULL,'2',NULL,'1624352172',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear yadavm72@notmail.org',1,NULL,'Dear yadavm72@notmail.org',1,NULL,'yadavm72@notmail.org',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (69,'Individual',NULL,'Maxwell McReynolds II','Local Culture Collective',NULL,'Maxwell','','McReynolds',0,0,0,0,1,0,NULL,'McReynolds, Maxwell',NULL,NULL,NULL,'5',NULL,'961058467',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Maxwell',1,NULL,'Dear Maxwell',1,NULL,'Maxwell McReynolds II',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,19,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (70,'Individual',NULL,'Bernadette Lee',NULL,NULL,'Bernadette','','Lee',0,0,0,0,0,0,NULL,'Lee, Bernadette',NULL,NULL,NULL,'3',NULL,'3876458768',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Bernadette',1,NULL,'Dear Bernadette',1,NULL,'Bernadette Lee',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (71,'Individual',NULL,'Clint Cruz III',NULL,NULL,'Clint','I','Cruz',0,0,0,0,0,0,NULL,'Cruz, Clint',NULL,NULL,NULL,NULL,NULL,'3677859642',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear Clint',1,NULL,'Dear Clint',1,NULL,'Clint Cruz III',NULL,2,'1961-07-08',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:33','Both'), + (72,'Individual',NULL,'Mr. Irvin ÅÄ…chowski',NULL,NULL,'Irvin','','ÅÄ…chowski',0,0,0,0,1,0,NULL,'ÅÄ…chowski, Irvin',NULL,NULL,NULL,'3',NULL,'2177704001',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Irvin',1,NULL,'Dear Irvin',1,NULL,'Mr. Irvin ÅÄ…chowski',NULL,2,'1972-07-01',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (73,'Individual',NULL,'Eleonor Robertson',NULL,NULL,'Eleonor','F','Robertson',0,0,0,0,0,0,NULL,'Robertson, Eleonor',NULL,NULL,NULL,'2',NULL,'2051195654',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Eleonor',1,NULL,'Dear Eleonor',1,NULL,'Eleonor Robertson',NULL,1,'1954-05-18',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (74,'Organization',NULL,'Longville Action Center','Longville Action Center',NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'Longville Action Center',NULL,NULL,NULL,NULL,NULL,'2327686758',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Longville Action Center',NULL,NULL,NULL,0,NULL,NULL,159,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (75,'Individual',NULL,'Mr. Allan McReynolds','Montier Peace Solutions',NULL,'Allan','','McReynolds',0,1,0,0,0,0,NULL,'McReynolds, Allan',NULL,NULL,NULL,'1',NULL,'3819567113',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Allan',1,NULL,'Dear Allan',1,NULL,'Mr. Allan McReynolds',NULL,2,'1992-05-23',0,NULL,NULL,NULL,NULL,NULL,51,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (76,'Household',NULL,'McReynolds family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'McReynolds family',NULL,NULL,NULL,'4',NULL,'3032680972',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear McReynolds family',5,NULL,'Dear McReynolds family',2,NULL,'McReynolds family',NULL,NULL,NULL,0,NULL,'McReynolds family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (77,'Individual',NULL,'Daren Jacobs',NULL,NULL,'Daren','','Jacobs',0,0,0,0,0,0,NULL,'Jacobs, Daren',NULL,NULL,NULL,'4',NULL,'1181505103',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Daren',1,NULL,'Dear Daren',1,NULL,'Daren Jacobs',NULL,NULL,'1979-09-11',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (78,'Individual',NULL,'Lincoln Zope Sr.',NULL,NULL,'Lincoln','','Zope',1,0,0,0,0,0,NULL,'Zope, Lincoln',NULL,NULL,NULL,'2',NULL,'2972737085',NULL,'Sample Data',NULL,2,NULL,NULL,1,NULL,'Dear Lincoln',1,NULL,'Dear Lincoln',1,NULL,'Lincoln Zope Sr.',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (79,'Individual',NULL,'Dr. Beula Jacobs','Van Ness Literacy Solutions',NULL,'Beula','','Jacobs',0,0,0,0,1,0,NULL,'Jacobs, Beula',NULL,NULL,NULL,NULL,NULL,'41714917',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Beula',1,NULL,'Dear Beula',1,NULL,'Dr. Beula Jacobs',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,150,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (80,'Individual',NULL,'Ms. Teresa Yadav',NULL,NULL,'Teresa','','Yadav',0,0,0,0,0,0,NULL,'Yadav, Teresa',NULL,NULL,NULL,NULL,NULL,'2032766377',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Teresa',1,NULL,'Dear Teresa',1,NULL,'Ms. Teresa Yadav',NULL,1,'1983-09-20',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (81,'Individual',NULL,'Mrs. Shauna Roberts',NULL,NULL,'Shauna','','Roberts',0,1,0,0,0,0,NULL,'Roberts, Shauna',NULL,NULL,NULL,NULL,NULL,'927862076',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Shauna',1,NULL,'Dear Shauna',1,NULL,'Mrs. Shauna Roberts',NULL,1,'1980-03-05',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (82,'Individual',NULL,'Dr. Erik Yadav Jr.',NULL,NULL,'Erik','N','Yadav',0,1,0,0,0,0,NULL,'Yadav, Erik',NULL,NULL,NULL,NULL,NULL,'3764928217',NULL,'Sample Data',4,1,NULL,NULL,1,NULL,'Dear Erik',1,NULL,'Dear Erik',1,NULL,'Dr. Erik Yadav Jr.',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (83,'Individual',NULL,'Ashley Jameson',NULL,NULL,'Ashley','','Jameson',1,1,0,0,0,0,NULL,'Jameson, Ashley',NULL,NULL,NULL,'1',NULL,'3561508179',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Ashley',1,NULL,'Dear Ashley',1,NULL,'Ashley Jameson',NULL,1,'1948-08-28',1,'2023-06-21',NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (84,'Individual',NULL,'ashleyjameson@lol.org',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'ashleyjameson@lol.org',NULL,NULL,NULL,'5',NULL,'3536303843',NULL,'Sample Data',4,3,NULL,NULL,1,NULL,'Dear ashleyjameson@lol.org',1,NULL,'Dear ashleyjameson@lol.org',1,NULL,'ashleyjameson@lol.org',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (85,'Individual',NULL,'Dr. Lawerence Cruz III',NULL,NULL,'Lawerence','B','Cruz',0,1,0,0,1,0,NULL,'Cruz, Lawerence',NULL,NULL,NULL,NULL,NULL,'1184039604',NULL,'Sample Data',4,4,NULL,NULL,1,NULL,'Dear Lawerence',1,NULL,'Dear Lawerence',1,NULL,'Dr. Lawerence Cruz III',NULL,NULL,'1989-03-14',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (86,'Individual',NULL,'Jay Wattson II',NULL,NULL,'Jay','','Wattson',0,0,0,0,0,0,NULL,'Wattson, Jay',NULL,NULL,NULL,'5',NULL,'292534569',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Jay',1,NULL,'Dear Jay',1,NULL,'Jay Wattson II',NULL,2,'1998-12-18',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:30','Both'), + (87,'Individual',NULL,'Megan Roberts-Dimitrov',NULL,NULL,'Megan','X','Roberts-Dimitrov',1,1,0,0,0,0,NULL,'Roberts-Dimitrov, Megan',NULL,NULL,NULL,NULL,NULL,'2459166442',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Megan',1,NULL,'Dear Megan',1,NULL,'Megan Roberts-Dimitrov',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (88,'Household',NULL,'DÃaz family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'DÃaz family',NULL,NULL,NULL,NULL,NULL,'2169249835',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear DÃaz family',5,NULL,'Dear DÃaz family',2,NULL,'DÃaz family',NULL,NULL,NULL,0,NULL,'DÃaz family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (89,'Organization',NULL,'Green Action Partnership','Green Action Partnership',NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Green Action Partnership',NULL,NULL,NULL,NULL,NULL,'3207633420',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Green Action Partnership',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (90,'Individual',NULL,'Omar Samuels Sr.',NULL,NULL,'Omar','D','Samuels',0,0,0,0,0,0,NULL,'Samuels, Omar',NULL,NULL,NULL,NULL,NULL,'1072276407',NULL,'Sample Data',NULL,2,NULL,NULL,1,NULL,'Dear Omar',1,NULL,'Dear Omar',1,NULL,'Omar Samuels Sr.',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (91,'Individual',NULL,'Dr. Sanford Ivanov III',NULL,NULL,'Sanford','J','Ivanov',1,0,0,0,0,0,NULL,'Ivanov, Sanford',NULL,NULL,NULL,'2',NULL,'868143877',NULL,'Sample Data',4,4,NULL,NULL,1,NULL,'Dear Sanford',1,NULL,'Dear Sanford',1,NULL,'Dr. Sanford Ivanov III',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (92,'Individual',NULL,'Nicole Cruz-Dimitrov',NULL,NULL,'Nicole','Z','Cruz-Dimitrov',0,0,0,0,1,0,NULL,'Cruz-Dimitrov, Nicole',NULL,NULL,NULL,'3',NULL,'1791683977',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Nicole',1,NULL,'Dear Nicole',1,NULL,'Nicole Cruz-Dimitrov',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:33','Both'), + (93,'Individual',NULL,'Ms. Angelika McReynolds',NULL,NULL,'Angelika','','McReynolds',1,0,0,0,0,0,NULL,'McReynolds, Angelika',NULL,NULL,NULL,NULL,NULL,'3667136043',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Angelika',1,NULL,'Dear Angelika',1,NULL,'Ms. Angelika McReynolds',NULL,NULL,'1992-12-16',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (94,'Individual',NULL,'Ms. Beula Patel',NULL,NULL,'Beula','','Patel',0,0,0,0,0,0,NULL,'Patel, Beula',NULL,NULL,NULL,'5',NULL,'945489022',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Beula',1,NULL,'Dear Beula',1,NULL,'Ms. Beula Patel',NULL,1,'1990-11-16',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (95,'Individual',NULL,'rsmith99@fakemail.org',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'rsmith99@fakemail.org',NULL,NULL,NULL,'2',NULL,'1079387116',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear rsmith99@fakemail.org',1,NULL,'Dear rsmith99@fakemail.org',1,NULL,'rsmith99@fakemail.org',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (96,'Individual',NULL,'Truman Jacobs II',NULL,NULL,'Truman','I','Jacobs',0,0,0,0,1,0,NULL,'Jacobs, Truman',NULL,NULL,NULL,NULL,NULL,'2934376834',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Truman',1,NULL,'Dear Truman',1,NULL,'Truman Jacobs II',NULL,2,'1986-06-21',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (97,'Individual',NULL,'Rolando Roberts Jr.',NULL,NULL,'Rolando','K','Roberts',0,1,0,0,0,0,NULL,'Roberts, Rolando',NULL,NULL,NULL,'2',NULL,'3250154238',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Rolando',1,NULL,'Dear Rolando',1,NULL,'Rolando Roberts Jr.',NULL,2,'1986-03-20',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (98,'Individual',NULL,'Ashlie Robertson',NULL,NULL,'Ashlie','D','Robertson',0,0,0,0,0,0,NULL,'Robertson, Ashlie',NULL,NULL,NULL,NULL,NULL,'23758279',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Ashlie',1,NULL,'Dear Ashlie',1,NULL,'Ashlie Robertson',NULL,1,'1983-04-24',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (99,'Individual',NULL,'Lincoln Zope-Robertson',NULL,NULL,'Lincoln','Y','Zope-Robertson',0,0,0,0,1,0,NULL,'Zope-Robertson, Lincoln',NULL,NULL,NULL,'2',NULL,'3816033638',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Lincoln',1,NULL,'Dear Lincoln',1,NULL,'Lincoln Zope-Robertson',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (100,'Individual',NULL,'Dr. Jerome Samuels',NULL,NULL,'Jerome','','Samuels',0,0,0,0,0,0,NULL,'Samuels, Jerome',NULL,NULL,NULL,'5',NULL,'2129032486',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Jerome',1,NULL,'Dear Jerome',1,NULL,'Dr. Jerome Samuels',NULL,2,'1980-01-16',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (101,'Individual',NULL,'Heidi Lee',NULL,NULL,'Heidi','Z','Lee',0,1,0,0,0,0,NULL,'Lee, Heidi',NULL,NULL,NULL,'4',NULL,'4039123195',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Heidi',1,NULL,'Dear Heidi',1,NULL,'Heidi Lee',NULL,NULL,'1975-06-29',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (102,'Individual',NULL,'jensen.l.daren@example.info',NULL,NULL,NULL,NULL,NULL,1,0,0,0,0,0,NULL,'jensen.l.daren@example.info',NULL,NULL,NULL,'2',NULL,'2984318360',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear jensen.l.daren@example.info',1,NULL,'Dear jensen.l.daren@example.info',1,NULL,'jensen.l.daren@example.info',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (103,'Individual',NULL,'Allen Zope',NULL,NULL,'Allen','','Zope',0,0,0,0,0,0,NULL,'Zope, Allen',NULL,NULL,NULL,'2',NULL,'1364035806',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Allen',1,NULL,'Dear Allen',1,NULL,'Allen Zope',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (104,'Individual',NULL,'Mr. Rolando Blackwell','Texas Culture Alliance',NULL,'Rolando','','Blackwell',0,0,0,0,0,0,NULL,'Blackwell, Rolando',NULL,NULL,NULL,NULL,NULL,'1317373414',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Rolando',1,NULL,'Dear Rolando',1,NULL,'Mr. Rolando Blackwell',NULL,2,'1981-04-05',0,NULL,NULL,NULL,NULL,NULL,133,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (105,'Individual',NULL,'Dr. Landon Barkley',NULL,NULL,'Landon','','Barkley',0,0,0,0,0,0,NULL,'Barkley, Landon',NULL,NULL,NULL,NULL,NULL,'2012224076',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Landon',1,NULL,'Dear Landon',1,NULL,'Dr. Landon Barkley',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (106,'Individual',NULL,'Mrs. Justina Jacobs',NULL,NULL,'Justina','K','Jacobs',0,0,0,0,1,0,NULL,'Jacobs, Justina',NULL,NULL,NULL,NULL,NULL,'1829359712',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Justina',1,NULL,'Dear Justina',1,NULL,'Mrs. Justina Jacobs',NULL,1,'1975-12-25',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (107,'Household',NULL,'Yadav family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'Yadav family',NULL,NULL,NULL,'2',NULL,'1777336212',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Yadav family',5,NULL,'Dear Yadav family',2,NULL,'Yadav family',NULL,NULL,NULL,0,NULL,'Yadav family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (108,'Individual',NULL,'Mei McReynolds',NULL,NULL,'Mei','','McReynolds',0,0,0,0,1,0,NULL,'McReynolds, Mei',NULL,NULL,NULL,NULL,NULL,'2223552605',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Mei',1,NULL,'Dear Mei',1,NULL,'Mei McReynolds',NULL,NULL,'1975-08-04',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:32','Both'), + (109,'Individual',NULL,'Dr. Rolando Dimitrov Jr.',NULL,NULL,'Rolando','','Dimitrov',0,0,0,0,0,0,NULL,'Dimitrov, Rolando',NULL,NULL,NULL,NULL,NULL,'2226225563',NULL,'Sample Data',4,1,NULL,NULL,1,NULL,'Dear Rolando',1,NULL,'Dear Rolando',1,NULL,'Dr. Rolando Dimitrov Jr.',NULL,2,'1959-06-24',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (110,'Individual',NULL,'Josefa Samson',NULL,NULL,'Josefa','B','Samson',0,0,0,0,1,0,NULL,'Samson, Josefa',NULL,NULL,NULL,NULL,NULL,'3599094976',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Josefa',1,NULL,'Dear Josefa',1,NULL,'Josefa Samson',NULL,NULL,'1966-04-16',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (111,'Organization',NULL,'States Action Systems','States Action Systems',NULL,NULL,NULL,NULL,1,0,0,0,0,0,NULL,'States Action Systems',NULL,NULL,NULL,NULL,NULL,'2661521445',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'States Action Systems',NULL,NULL,NULL,0,NULL,NULL,45,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (112,'Organization',NULL,'Jamaica Arts Initiative','Jamaica Arts Initiative',NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Jamaica Arts Initiative',NULL,NULL,NULL,NULL,NULL,'2401175641',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Jamaica Arts Initiative',NULL,NULL,NULL,0,NULL,NULL,136,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (113,'Individual',NULL,'jacobsj46@mymail.com',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'jacobsj46@mymail.com',NULL,NULL,NULL,'3',NULL,'3626232640',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear jacobsj46@mymail.com',1,NULL,'Dear jacobsj46@mymail.com',1,NULL,'jacobsj46@mymail.com',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:28','Both'), + (114,'Individual',NULL,'Dr. Santina Robertson',NULL,NULL,'Santina','L','Robertson',0,0,0,0,0,0,NULL,'Robertson, Santina',NULL,NULL,NULL,NULL,NULL,'2867920569',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Santina',1,NULL,'Dear Santina',1,NULL,'Dr. Santina Robertson',NULL,NULL,'1962-02-27',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (115,'Individual',NULL,'Landon Lee',NULL,NULL,'Landon','I','Lee',0,0,0,0,0,0,NULL,'Lee, Landon',NULL,NULL,NULL,NULL,NULL,'4144706447',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Landon',1,NULL,'Dear Landon',1,NULL,'Landon Lee',NULL,NULL,'1979-10-04',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:30','Both'), + (116,'Individual',NULL,'Mr. Teddy Olsen',NULL,NULL,'Teddy','A','Olsen',0,0,0,0,0,0,NULL,'Olsen, Teddy',NULL,NULL,NULL,'2',NULL,'72064715',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Teddy',1,NULL,'Dear Teddy',1,NULL,'Mr. Teddy Olsen',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:30','Both'), + (117,'Household',NULL,'Terrell family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'Terrell family',NULL,NULL,NULL,'3',NULL,'1136333121',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Terrell family',5,NULL,'Dear Terrell family',2,NULL,'Terrell family',NULL,NULL,NULL,0,NULL,'Terrell family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (118,'Organization',NULL,'Ohio Advocacy Association','Ohio Advocacy Association',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Ohio Advocacy Association',NULL,NULL,NULL,NULL,NULL,'2716732841',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Ohio Advocacy Association',NULL,NULL,NULL,0,NULL,NULL,12,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (119,'Individual',NULL,'Dr. Sherman ÅÄ…chowski',NULL,NULL,'Sherman','','ÅÄ…chowski',0,0,0,0,0,0,NULL,'ÅÄ…chowski, Sherman',NULL,NULL,NULL,NULL,NULL,'2261039855',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Sherman',1,NULL,'Dear Sherman',1,NULL,'Dr. Sherman ÅÄ…chowski',NULL,2,'1967-06-04',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:27','2023-10-07 01:51:29','Both'), + (120,'Individual',NULL,'Dr. Alexia Smith','West Virginia Software Center',NULL,'Alexia','','Smith',0,1,0,0,0,0,NULL,'Smith, Alexia',NULL,NULL,NULL,NULL,NULL,'528182465',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Alexia',1,NULL,'Dear Alexia',1,NULL,'Dr. Alexia Smith',NULL,NULL,'1986-01-18',0,NULL,NULL,NULL,NULL,NULL,64,0,'2023-10-07 01:51:27','2023-10-07 01:51:31','Both'), + (121,'Organization',NULL,'California Sports Collective','California Sports Collective',NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'California Sports Collective',NULL,NULL,NULL,NULL,NULL,'1529826053',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'California Sports Collective',NULL,NULL,NULL,0,NULL,NULL,58,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (122,'Individual',NULL,'Allan Jameson II','Florida Technology Partnership',NULL,'Allan','','Jameson',0,0,0,0,1,0,NULL,'Jameson, Allan',NULL,NULL,NULL,NULL,NULL,'3508046316',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Allan',1,NULL,'Dear Allan',1,NULL,'Allan Jameson II',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,190,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (123,'Individual',NULL,'Dr. Herminia Prentice',NULL,NULL,'Herminia','Q','Prentice',0,0,0,0,0,0,NULL,'Prentice, Herminia',NULL,NULL,NULL,'3',NULL,'4072784830',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Herminia',1,NULL,'Dear Herminia',1,NULL,'Dr. Herminia Prentice',NULL,NULL,'1950-01-07',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:30','Both'), + (124,'Household',NULL,'Jameson family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Jameson family',NULL,NULL,NULL,NULL,NULL,'2255649769',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Jameson family',5,NULL,'Dear Jameson family',2,NULL,'Jameson family',NULL,NULL,NULL,0,NULL,'Jameson family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (125,'Individual',NULL,'Errol Dimitrov III',NULL,NULL,'Errol','K','Dimitrov',0,0,0,0,0,0,NULL,'Dimitrov, Errol',NULL,NULL,NULL,'4',NULL,'3017354314',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear Errol',1,NULL,'Dear Errol',1,NULL,'Errol Dimitrov III',NULL,2,'1967-12-06',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:28','Both'), + (126,'Individual',NULL,'Heidi Dimitrov',NULL,NULL,'Heidi','','Dimitrov',0,0,0,0,0,0,NULL,'Dimitrov, Heidi',NULL,NULL,NULL,NULL,NULL,'90891784',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Heidi',1,NULL,'Dear Heidi',1,NULL,'Heidi Dimitrov',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (127,'Individual',NULL,'terrells@airmail.co.pl',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'terrells@airmail.co.pl',NULL,NULL,NULL,NULL,NULL,'538950638',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear terrells@airmail.co.pl',1,NULL,'Dear terrells@airmail.co.pl',1,NULL,'terrells@airmail.co.pl',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (128,'Individual',NULL,'deforest.maxwell@example.net',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'deforest.maxwell@example.net',NULL,NULL,NULL,NULL,NULL,'2495751068',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear deforest.maxwell@example.net',1,NULL,'Dear deforest.maxwell@example.net',1,NULL,'deforest.maxwell@example.net',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (129,'Individual',NULL,'Elbert Jones Sr.',NULL,NULL,'Elbert','I','Jones',0,0,0,0,0,0,NULL,'Jones, Elbert',NULL,NULL,NULL,'4',NULL,'3645053032',NULL,'Sample Data',NULL,2,NULL,NULL,1,NULL,'Dear Elbert',1,NULL,'Dear Elbert',1,NULL,'Elbert Jones Sr.',NULL,NULL,'1996-07-18',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:28','Both'), + (130,'Household',NULL,'Zope family',NULL,NULL,NULL,NULL,NULL,1,0,0,0,1,0,NULL,'Zope family',NULL,NULL,NULL,NULL,NULL,'1649131487',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Zope family',5,NULL,'Dear Zope family',2,NULL,'Zope family',NULL,NULL,NULL,0,NULL,'Zope family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (131,'Individual',NULL,'Dr. Laree Zope',NULL,NULL,'Laree','','Zope',1,0,0,0,0,0,NULL,'Zope, Laree',NULL,NULL,NULL,NULL,NULL,'3671966528',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Laree',1,NULL,'Dear Laree',1,NULL,'Dr. Laree Zope',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (132,'Household',NULL,'Wilson family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Wilson family',NULL,NULL,NULL,NULL,NULL,'350510798',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Wilson family',5,NULL,'Dear Wilson family',2,NULL,'Wilson family',NULL,NULL,NULL,0,NULL,'Wilson family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (133,'Organization',NULL,'Texas Culture Alliance','Texas Culture Alliance',NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Texas Culture Alliance',NULL,NULL,NULL,NULL,NULL,'729797420',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Texas Culture Alliance',NULL,NULL,NULL,0,NULL,NULL,104,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (134,'Individual',NULL,'Eleonor McReynolds',NULL,NULL,'Eleonor','','McReynolds',0,0,0,0,1,0,NULL,'McReynolds, Eleonor',NULL,NULL,NULL,'4',NULL,'1720935960',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Eleonor',1,NULL,'Dear Eleonor',1,NULL,'Eleonor McReynolds',NULL,1,'1983-03-03',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (135,'Household',NULL,'Jacobs family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Jacobs family',NULL,NULL,NULL,NULL,NULL,'1498986649',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Jacobs family',5,NULL,'Dear Jacobs family',2,NULL,'Jacobs family',NULL,NULL,NULL,0,NULL,'Jacobs family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (136,'Individual',NULL,'Russell Lee II','Jamaica Arts Initiative',NULL,'Russell','W','Lee',0,1,0,0,0,0,NULL,'Lee, Russell',NULL,NULL,NULL,'4',NULL,'776940323',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Russell',1,NULL,'Dear Russell',1,NULL,'Russell Lee II',NULL,2,'1984-03-02',0,NULL,NULL,NULL,NULL,NULL,112,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (137,'Individual',NULL,'wilsonj2@fakemail.biz',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'wilsonj2@fakemail.biz',NULL,NULL,NULL,'3',NULL,'1914491688',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear wilsonj2@fakemail.biz',1,NULL,'Dear wilsonj2@fakemail.biz',1,NULL,'wilsonj2@fakemail.biz',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (138,'Individual',NULL,'Dr. Alida Terry',NULL,NULL,'Alida','I','Terry',0,0,0,0,0,0,NULL,'Terry, Alida',NULL,NULL,NULL,NULL,NULL,'2637023605',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Alida',1,NULL,'Dear Alida',1,NULL,'Dr. Alida Terry',NULL,1,'1975-10-12',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (139,'Household',NULL,'Cruz family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Cruz family',NULL,NULL,NULL,NULL,NULL,'2326538497',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Cruz family',5,NULL,'Dear Cruz family',2,NULL,'Cruz family',NULL,NULL,NULL,0,NULL,'Cruz family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (140,'Individual',NULL,'Toby Dimitrov-Deforest',NULL,NULL,'Toby','','Dimitrov-Deforest',0,0,0,0,0,0,NULL,'Dimitrov-Deforest, Toby',NULL,NULL,NULL,NULL,NULL,'3471721139',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Toby',1,NULL,'Dear Toby',1,NULL,'Toby Dimitrov-Deforest',NULL,2,'2000-02-09',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (141,'Individual',NULL,'jones-terrellm@example.co.pl',NULL,NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'jones-terrellm@example.co.pl',NULL,NULL,NULL,'3',NULL,'3999067002',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear jones-terrellm@example.co.pl',1,NULL,'Dear jones-terrellm@example.co.pl',1,NULL,'jones-terrellm@example.co.pl',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (142,'Individual',NULL,'Russell Yadav',NULL,NULL,'Russell','I','Yadav',0,1,0,0,0,0,NULL,'Yadav, Russell',NULL,NULL,NULL,NULL,NULL,'3160688610',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Russell',1,NULL,'Dear Russell',1,NULL,'Russell Yadav',NULL,NULL,'1966-02-04',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (143,'Individual',NULL,'Errol Wattson',NULL,NULL,'Errol','H','Wattson',0,1,0,0,0,0,NULL,'Wattson, Errol',NULL,NULL,NULL,'4',NULL,'3723119881',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Errol',1,NULL,'Dear Errol',1,NULL,'Errol Wattson',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (144,'Individual',NULL,'terrell.w.sanford@example.co.nz',NULL,NULL,NULL,NULL,NULL,0,1,0,0,1,0,NULL,'terrell.w.sanford@example.co.nz',NULL,NULL,NULL,'4',NULL,'3445331431',NULL,'Sample Data',4,2,NULL,NULL,1,NULL,'Dear terrell.w.sanford@example.co.nz',1,NULL,'Dear terrell.w.sanford@example.co.nz',1,NULL,'terrell.w.sanford@example.co.nz',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (145,'Individual',NULL,'jsamuels68@sample.org',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'jsamuels68@sample.org',NULL,NULL,NULL,NULL,NULL,'418746154',NULL,'Sample Data',3,4,NULL,NULL,1,NULL,'Dear jsamuels68@sample.org',1,NULL,'Dear jsamuels68@sample.org',1,NULL,'jsamuels68@sample.org',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:33','Both'), + (146,'Individual',NULL,'valenew@notmail.co.in',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'valenew@notmail.co.in',NULL,NULL,NULL,'4',NULL,'1355969892',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear valenew@notmail.co.in',1,NULL,'Dear valenew@notmail.co.in',1,NULL,'valenew@notmail.co.in',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (147,'Household',NULL,'Zope-Robertson family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Zope-Robertson family',NULL,NULL,NULL,'1',NULL,'179865441',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Zope-Robertson family',5,NULL,'Dear Zope-Robertson family',2,NULL,'Zope-Robertson family',NULL,NULL,NULL,0,NULL,'Zope-Robertson family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (148,'Household',NULL,'Cruz-Dimitrov family',NULL,NULL,NULL,NULL,NULL,0,1,0,0,0,0,NULL,'Cruz-Dimitrov family',NULL,NULL,NULL,'1',NULL,'3969029419',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Cruz-Dimitrov family',5,NULL,'Dear Cruz-Dimitrov family',2,NULL,'Cruz-Dimitrov family',NULL,NULL,NULL,0,NULL,'Cruz-Dimitrov family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (149,'Individual',NULL,'Jerome Jensen',NULL,NULL,'Jerome','N','Jensen',0,0,0,0,0,0,NULL,'Jensen, Jerome',NULL,NULL,NULL,'4',NULL,'2774980739',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Jerome',1,NULL,'Dear Jerome',1,NULL,'Jerome Jensen',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (150,'Organization',NULL,'Van Ness Literacy Solutions','Van Ness Literacy Solutions',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Van Ness Literacy Solutions',NULL,NULL,NULL,NULL,NULL,'1560626758',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Van Ness Literacy Solutions',NULL,NULL,NULL,0,NULL,NULL,79,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (151,'Individual',NULL,'Sherman Blackwell',NULL,NULL,'Sherman','L','Blackwell',1,0,0,0,0,0,NULL,'Blackwell, Sherman',NULL,NULL,NULL,'2',NULL,'2994560608',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Sherman',1,NULL,'Dear Sherman',1,NULL,'Sherman Blackwell',NULL,2,'2020-01-16',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:33','Both'), + (152,'Individual',NULL,'Elina Blackwell',NULL,NULL,'Elina','O','Blackwell',0,0,0,0,0,0,NULL,'Blackwell, Elina',NULL,NULL,NULL,NULL,NULL,'215876886',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Elina',1,NULL,'Dear Elina',1,NULL,'Elina Blackwell',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (153,'Individual',NULL,'grant.maxwell@testing.net',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'grant.maxwell@testing.net',NULL,NULL,NULL,NULL,NULL,'737287809',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear grant.maxwell@testing.net',1,NULL,'Dear grant.maxwell@testing.net',1,NULL,'grant.maxwell@testing.net',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:28','Both'), + (154,'Individual',NULL,'Dr. Heidi Cruz',NULL,NULL,'Heidi','T','Cruz',0,0,0,0,0,0,NULL,'Cruz, Heidi',NULL,NULL,NULL,NULL,NULL,'1208374770',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Heidi',1,NULL,'Dear Heidi',1,NULL,'Dr. Heidi Cruz',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (155,'Individual',NULL,'Mr. Norris Bachman Sr.',NULL,NULL,'Norris','J','Bachman',0,0,0,0,1,0,NULL,'Bachman, Norris',NULL,NULL,NULL,'3',NULL,'2902131761',NULL,'Sample Data',3,2,NULL,NULL,1,NULL,'Dear Norris',1,NULL,'Dear Norris',1,NULL,'Mr. Norris Bachman Sr.',NULL,NULL,'1946-06-15',1,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (156,'Individual',NULL,'Dr. Winford Yadav',NULL,NULL,'Winford','','Yadav',0,0,0,0,1,0,NULL,'Yadav, Winford',NULL,NULL,NULL,NULL,NULL,'3002231808',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Winford',1,NULL,'Dear Winford',1,NULL,'Dr. Winford Yadav',NULL,2,'1943-12-02',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (157,'Individual',NULL,'Ray Dimitrov Jr.',NULL,NULL,'Ray','Z','Dimitrov',1,0,0,0,0,0,NULL,'Dimitrov, Ray',NULL,NULL,NULL,'3',NULL,'213044700',NULL,'Sample Data',NULL,1,NULL,NULL,1,NULL,'Dear Ray',1,NULL,'Dear Ray',1,NULL,'Ray Dimitrov Jr.',NULL,2,'1956-02-21',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (158,'Individual',NULL,'Russell Jameson Sr.',NULL,NULL,'Russell','U','Jameson',0,0,0,0,1,0,NULL,'Jameson, Russell',NULL,NULL,NULL,NULL,NULL,'3424708861',NULL,'Sample Data',NULL,2,NULL,NULL,1,NULL,'Dear Russell',1,NULL,'Dear Russell',1,NULL,'Russell Jameson Sr.',NULL,NULL,'2004-09-12',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (159,'Individual',NULL,'Dr. Erik Yadav','Longville Action Center',NULL,'Erik','','Yadav',0,1,0,0,0,0,NULL,'Yadav, Erik',NULL,NULL,NULL,NULL,NULL,'3764928217',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Erik',1,NULL,'Dear Erik',1,NULL,'Dr. Erik Yadav',NULL,NULL,'1985-04-21',0,NULL,NULL,NULL,NULL,NULL,74,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (160,'Individual',NULL,'Jina Yadav',NULL,NULL,'Jina','','Yadav',0,0,0,0,0,0,NULL,'Yadav, Jina',NULL,NULL,NULL,NULL,NULL,'132914631',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Jina',1,NULL,'Dear Jina',1,NULL,'Jina Yadav',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (161,'Household',NULL,'Jones-Terrell family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Jones-Terrell family',NULL,NULL,NULL,NULL,NULL,'753128947',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Jones-Terrell family',5,NULL,'Dear Jones-Terrell family',2,NULL,'Jones-Terrell family',NULL,NULL,NULL,0,NULL,'Jones-Terrell family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (162,'Individual',NULL,'Clint Cruz',NULL,NULL,'Clint','','Cruz',0,0,0,0,1,0,NULL,'Cruz, Clint',NULL,NULL,NULL,NULL,NULL,'3677859642',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Clint',1,NULL,'Dear Clint',1,NULL,'Clint Cruz',NULL,2,'2001-11-13',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (163,'Individual',NULL,'Mr. Winford Jones',NULL,NULL,'Winford','K','Jones',0,0,0,0,0,0,NULL,'Jones, Winford',NULL,NULL,NULL,'5',NULL,'3992988064',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Winford',1,NULL,'Dear Winford',1,NULL,'Mr. Winford Jones',NULL,NULL,'1959-04-30',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (164,'Individual',NULL,'Ray Terry',NULL,NULL,'Ray','L','Terry',0,1,0,0,0,0,NULL,'Terry, Ray',NULL,NULL,NULL,'1',NULL,'1646953938',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Ray',1,NULL,'Dear Ray',1,NULL,'Ray Terry',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (165,'Individual',NULL,'Mrs. Kandace Reynolds',NULL,NULL,'Kandace','A','Reynolds',0,0,0,0,0,0,NULL,'Reynolds, Kandace',NULL,NULL,NULL,NULL,NULL,'1783653514',NULL,'Sample Data',1,NULL,NULL,NULL,1,NULL,'Dear Kandace',1,NULL,'Dear Kandace',1,NULL,'Mrs. Kandace Reynolds',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (166,'Organization',NULL,'Mississippi Wellness Academy','Mississippi Wellness Academy',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Mississippi Wellness Academy',NULL,NULL,NULL,NULL,NULL,'653649684',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Mississippi Wellness Academy',NULL,NULL,NULL,0,NULL,NULL,54,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (167,'Individual',NULL,'Jackson Ivanov III',NULL,NULL,'Jackson','','Ivanov',0,0,0,0,0,0,NULL,'Ivanov, Jackson',NULL,NULL,NULL,NULL,NULL,'3246901602',NULL,'Sample Data',NULL,4,NULL,NULL,1,NULL,'Dear Jackson',1,NULL,'Dear Jackson',1,NULL,'Jackson Ivanov III',NULL,2,'1944-07-05',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (168,'Organization',NULL,'Global Agriculture Systems','Global Agriculture Systems',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Global Agriculture Systems',NULL,NULL,NULL,NULL,NULL,'1120005374',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Global Agriculture Systems',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (169,'Individual',NULL,'Santina DÃaz','Jackson Peace Services',NULL,'Santina','H','DÃaz',0,0,0,0,0,0,NULL,'DÃaz, Santina',NULL,NULL,NULL,'1',NULL,'3076461979',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Santina',1,NULL,'Dear Santina',1,NULL,'Santina DÃaz',NULL,NULL,'1944-02-19',0,NULL,NULL,NULL,NULL,NULL,171,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (170,'Individual',NULL,'Ms. Sharyn Deforest',NULL,NULL,'Sharyn','Y','Deforest',0,0,0,0,0,0,NULL,'Deforest, Sharyn',NULL,NULL,NULL,NULL,NULL,'2704728591',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Sharyn',1,NULL,'Dear Sharyn',1,NULL,'Ms. Sharyn Deforest',NULL,1,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (171,'Organization',NULL,'Jackson Peace Services','Jackson Peace Services',NULL,NULL,NULL,NULL,0,1,0,0,1,0,NULL,'Jackson Peace Services',NULL,NULL,NULL,'5',NULL,'1536238043',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Jackson Peace Services',NULL,NULL,NULL,0,NULL,NULL,169,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (172,'Individual',NULL,'Dr. Erik Wilson',NULL,NULL,'Erik','C','Wilson',0,0,0,0,0,0,NULL,'Wilson, Erik',NULL,NULL,NULL,'4',NULL,'3965179222',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Erik',1,NULL,'Dear Erik',1,NULL,'Dr. Erik Wilson',NULL,2,'1983-12-14',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (173,'Individual',NULL,'Scott Wilson',NULL,NULL,'Scott','','Wilson',0,0,0,0,0,0,NULL,'Wilson, Scott',NULL,NULL,NULL,'3',NULL,'3378305352',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Scott',1,NULL,'Dear Scott',1,NULL,'Scott Wilson',NULL,NULL,'1987-02-01',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (174,'Organization',NULL,'Maple Health Fellowship','Maple Health Fellowship',NULL,NULL,NULL,NULL,0,1,0,0,1,0,NULL,'Maple Health Fellowship',NULL,NULL,NULL,'1',NULL,'900732050',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Maple Health Fellowship',NULL,NULL,NULL,0,NULL,NULL,187,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (175,'Individual',NULL,'Elina Olsen-McReynolds',NULL,NULL,'Elina','','Olsen-McReynolds',1,1,0,0,0,0,NULL,'Olsen-McReynolds, Elina',NULL,NULL,NULL,'4',NULL,'1848814956',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Elina',1,NULL,'Dear Elina',1,NULL,'Elina Olsen-McReynolds',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (176,'Individual',NULL,'Angelika Blackwell',NULL,NULL,'Angelika','K','Blackwell',1,1,0,0,1,0,NULL,'Blackwell, Angelika',NULL,NULL,NULL,'3',NULL,'2888403240',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Angelika',1,NULL,'Dear Angelika',1,NULL,'Angelika Blackwell',NULL,1,'1992-05-20',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:33','Both'), + (177,'Individual',NULL,'Teddy Terry',NULL,NULL,'Teddy','','Terry',0,0,0,0,1,0,NULL,'Terry, Teddy',NULL,NULL,NULL,NULL,NULL,'1402049800',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Teddy',1,NULL,'Dear Teddy',1,NULL,'Teddy Terry',NULL,2,'1949-11-26',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (178,'Individual',NULL,'Dr. Toby Terrell',NULL,NULL,'Toby','','Terrell',0,0,0,0,0,0,NULL,'Terrell, Toby',NULL,NULL,NULL,NULL,NULL,'935057272',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Toby',1,NULL,'Dear Toby',1,NULL,'Dr. Toby Terrell',NULL,NULL,'1982-09-09',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (179,'Individual',NULL,'Mr. Clint Ivanov Jr.',NULL,NULL,'Clint','B','Ivanov',0,0,0,0,0,0,NULL,'Ivanov, Clint',NULL,NULL,NULL,NULL,NULL,'3280498131',NULL,'Sample Data',3,1,NULL,NULL,1,NULL,'Dear Clint',1,NULL,'Dear Clint',1,NULL,'Mr. Clint Ivanov Jr.',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:28','Both'), + (180,'Individual',NULL,'barkleym81@spamalot.co.in','Community Education Partnership',NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'barkleym81@spamalot.co.in',NULL,NULL,NULL,'3',NULL,'2546524336',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear barkleym81@spamalot.co.in',1,NULL,'Dear barkleym81@spamalot.co.in',1,NULL,'barkleym81@spamalot.co.in',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,53,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (181,'Individual',NULL,'Allen Yadav',NULL,NULL,'Allen','W','Yadav',0,0,0,0,0,0,NULL,'Yadav, Allen',NULL,NULL,NULL,'1',NULL,'1525270677',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Allen',1,NULL,'Dear Allen',1,NULL,'Allen Yadav',NULL,NULL,'1958-11-12',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (182,'Individual',NULL,'Margaret Jameson',NULL,NULL,'Margaret','','Jameson',0,0,0,0,1,0,NULL,'Jameson, Margaret',NULL,NULL,NULL,NULL,NULL,'1719938872',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Margaret',1,NULL,'Dear Margaret',1,NULL,'Margaret Jameson',NULL,NULL,'1943-10-03',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:28','Both'), + (183,'Household',NULL,'Samuels family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'Samuels family',NULL,NULL,NULL,NULL,NULL,'350459294',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Samuels family',5,NULL,'Dear Samuels family',2,NULL,'Samuels family',NULL,NULL,NULL,0,NULL,'Samuels family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (184,'Individual',NULL,'Margaret Blackwell',NULL,NULL,'Margaret','','Blackwell',0,1,0,0,0,0,NULL,'Blackwell, Margaret',NULL,NULL,NULL,NULL,NULL,'894595567',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Margaret',1,NULL,'Dear Margaret',1,NULL,'Margaret Blackwell',NULL,1,'1951-01-13',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (185,'Individual',NULL,'Dr. Sanford Terry',NULL,NULL,'Sanford','M','Terry',1,0,0,0,0,0,NULL,'Terry, Sanford',NULL,NULL,NULL,NULL,NULL,'4170670568',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Sanford',1,NULL,'Dear Sanford',1,NULL,'Dr. Sanford Terry',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:28','Both'), + (186,'Individual',NULL,'elinay@fakemail.co.in',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'elinay@fakemail.co.in',NULL,NULL,NULL,'3',NULL,'3148721013',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear elinay@fakemail.co.in',1,NULL,'Dear elinay@fakemail.co.in',1,NULL,'elinay@fakemail.co.in',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (187,'Individual',NULL,'Carlos Jones-Terrell','Maple Health Fellowship',NULL,'Carlos','P','Jones-Terrell',0,0,0,0,1,0,NULL,'Jones-Terrell, Carlos',NULL,NULL,NULL,'4',NULL,'1542911489',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Carlos',1,NULL,'Dear Carlos',1,NULL,'Carlos Jones-Terrell',NULL,2,'2002-11-24',0,NULL,NULL,NULL,NULL,NULL,174,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (188,'Individual',NULL,'Toby Patel',NULL,NULL,'Toby','','Patel',0,0,0,0,0,0,NULL,'Patel, Toby',NULL,NULL,NULL,'5',NULL,'2618763021',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Toby',1,NULL,'Dear Toby',1,NULL,'Toby Patel',NULL,NULL,'1986-01-10',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (189,'Individual',NULL,'Mr. Jacob Dimitrov',NULL,NULL,'Jacob','','Dimitrov',0,0,0,0,0,0,NULL,'Dimitrov, Jacob',NULL,NULL,NULL,'3',NULL,'2306451370',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Jacob',1,NULL,'Dear Jacob',1,NULL,'Mr. Jacob Dimitrov',NULL,2,'1976-02-25',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (190,'Organization',NULL,'Florida Technology Partnership','Florida Technology Partnership',NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'Florida Technology Partnership',NULL,NULL,NULL,'3',NULL,'49225528',NULL,'Sample Data',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,'Florida Technology Partnership',NULL,NULL,NULL,0,NULL,NULL,122,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (191,'Individual',NULL,'Dr. Heidi Samuels',NULL,NULL,'Heidi','','Samuels',0,0,0,0,1,0,NULL,'Samuels, Heidi',NULL,NULL,NULL,NULL,NULL,'3595168109',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Heidi',1,NULL,'Dear Heidi',1,NULL,'Dr. Heidi Samuels',NULL,1,'1973-04-25',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:33','Both'), + (192,'Individual',NULL,'nielsen.v.rebekah@fakemail.co.in',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'nielsen.v.rebekah@fakemail.co.in',NULL,NULL,NULL,'5',NULL,'4152494731',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear nielsen.v.rebekah@fakemail.co.in',1,NULL,'Dear nielsen.v.rebekah@fakemail.co.in',1,NULL,'nielsen.v.rebekah@fakemail.co.in',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:30','Both'), + (193,'Individual',NULL,'Dr. Jacob DÃaz',NULL,NULL,'Jacob','','DÃaz',0,0,0,0,0,0,NULL,'DÃaz, Jacob',NULL,NULL,NULL,'3',NULL,'3488947578',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Jacob',1,NULL,'Dear Jacob',1,NULL,'Dr. Jacob DÃaz',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (194,'Individual',NULL,'Mr. Jackson Lee','Ben Franklin Music Association',NULL,'Jackson','','Lee',1,0,0,0,0,0,NULL,'Lee, Jackson',NULL,NULL,NULL,'4',NULL,'3405561048',NULL,'Sample Data',3,NULL,NULL,NULL,1,NULL,'Dear Jackson',1,NULL,'Dear Jackson',1,NULL,'Mr. Jackson Lee',NULL,2,'1968-08-01',0,NULL,NULL,NULL,NULL,NULL,31,0,'2023-10-07 01:51:28','2023-10-07 01:51:32','Both'), + (195,'Individual',NULL,'terryb@notmail.biz',NULL,NULL,NULL,NULL,NULL,0,0,0,0,1,0,NULL,'terryb@notmail.biz',NULL,NULL,NULL,NULL,NULL,'1530894166',NULL,'Sample Data',4,4,NULL,NULL,1,NULL,'Dear terryb@notmail.biz',1,NULL,'Dear terryb@notmail.biz',1,NULL,'terryb@notmail.biz',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:30','Both'), + (196,'Individual',NULL,'Craig Bachman II',NULL,NULL,'Craig','H','Bachman',0,0,0,0,0,0,NULL,'Bachman, Craig',NULL,NULL,NULL,'3',NULL,'1117434169',NULL,'Sample Data',NULL,3,NULL,NULL,1,NULL,'Dear Craig',1,NULL,'Dear Craig',1,NULL,'Craig Bachman II',NULL,2,'1969-12-24',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (197,'Individual',NULL,'Dr. Mei Müller',NULL,NULL,'Mei','H','Müller',0,0,0,0,0,0,NULL,'Müller, Mei',NULL,NULL,NULL,NULL,NULL,'726297805',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Mei',1,NULL,'Dear Mei',1,NULL,'Dr. Mei Müller',NULL,NULL,'1955-10-29',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (198,'Individual',NULL,'Ashley Jameson',NULL,NULL,'Ashley','I','Jameson',0,0,0,0,0,0,NULL,'Jameson, Ashley',NULL,NULL,NULL,'3',NULL,'3561508179',NULL,'Sample Data',NULL,NULL,NULL,NULL,1,NULL,'Dear Ashley',1,NULL,'Dear Ashley',1,NULL,'Ashley Jameson',NULL,NULL,'1983-09-07',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (199,'Individual',NULL,'Dr. Norris Samson',NULL,NULL,'Norris','R','Samson',0,1,0,0,1,0,NULL,'Samson, Norris',NULL,NULL,NULL,NULL,NULL,'2564827585',NULL,'Sample Data',4,NULL,NULL,NULL,1,NULL,'Dear Norris',1,NULL,'Dear Norris',1,NULL,'Dr. Norris Samson',NULL,2,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:29','Both'), + (200,'Household',NULL,'Jensen family',NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,NULL,'Jensen family',NULL,NULL,NULL,'3',NULL,'797435572',NULL,'Sample Data',NULL,NULL,NULL,NULL,5,NULL,'Dear Jensen family',5,NULL,'Dear Jensen family',2,NULL,'Jensen family',NULL,NULL,NULL,0,NULL,'Jensen family',NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:31','Both'), + (201,'Individual',NULL,'Ms. Iris Reynolds',NULL,NULL,'Iris','','Reynolds',0,0,0,0,0,0,NULL,'Reynolds, Iris',NULL,NULL,NULL,'5',NULL,'3509379571',NULL,'Sample Data',2,NULL,NULL,NULL,1,NULL,'Dear Iris',1,NULL,'Dear Iris',1,NULL,'Ms. Iris Reynolds',NULL,1,'1955-04-10',0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:28','2023-10-07 01:51:28','Both'), + (202,'Individual',NULL,'Jenny Lee',NULL,NULL,'Jenny',NULL,'Lee',0,0,0,0,0,0,NULL,'Lee, Jenny',NULL,NULL,NULL,NULL,'en_US','f4e01cf09df9dcf67e0b03c983c89891',NULL,NULL,NULL,NULL,NULL,1,1,NULL,'Dear Jenny',1,NULL,'Dear Jenny',1,NULL,'Jenny Lee','Volunteer coordinator',NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,'2023-10-07 01:51:34','2023-10-07 01:51:35','Both'); /*!40000 ALTER TABLE `civicrm_contact` ENABLE KEYS */; UNLOCK TABLES; @@ -2217,117 +2215,117 @@ UNLOCK TABLES; LOCK TABLES `civicrm_contribution` WRITE; /*!40000 ALTER TABLE `civicrm_contribution` DISABLE KEYS */; INSERT INTO `civicrm_contribution` (`id`, `contact_id`, `financial_type_id`, `contribution_page_id`, `payment_instrument_id`, `receive_date`, `non_deductible_amount`, `total_amount`, `fee_amount`, `net_amount`, `trxn_id`, `invoice_id`, `invoice_number`, `currency`, `cancel_date`, `cancel_reason`, `receipt_date`, `thankyou_date`, `source`, `amount_level`, `contribution_recur_id`, `is_test`, `is_pay_later`, `contribution_status_id`, `address_id`, `check_number`, `campaign_id`, `creditnote_id`, `tax_amount`, `revenue_recognition_date`, `is_template`) VALUES - (1,2,1,NULL,4,'2013-09-07 08:52:20',0.00,125.00,NULL,NULL,NULL,NULL,NULL,'USD',NULL,NULL,NULL,NULL,'April Mailer 1',NULL,NULL,0,0,1,NULL,'1041',NULL,NULL,0.00,NULL,0), - (2,4,1,NULL,1,'2021-06-07 08:52:20',0.00,50.00,NULL,NULL,'P20901X1',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (3,6,1,NULL,4,'2017-08-12 19:52:20',0.00,25.00,NULL,NULL,'GBP12',NULL,NULL,'GBP',NULL,NULL,NULL,NULL,'April Mailer 1',NULL,NULL,0,0,1,NULL,'2095',NULL,NULL,0.00,NULL,0), - (4,8,1,NULL,4,'2021-06-07 08:52:20',0.00,50.00,NULL,NULL,NULL,NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,'10552',NULL,NULL,0.00,NULL,0), - (5,4,1,NULL,1,'2021-06-07 08:52:20',0.00,50.00,NULL,NULL,'Q90901X1',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (6,16,1,NULL,4,'2023-06-14 08:10:20',0.00,500.00,NULL,NULL,NULL,NULL,NULL,'USD',NULL,NULL,NULL,NULL,'April Mailer 1',NULL,NULL,0,0,1,NULL,'509',NULL,NULL,0.00,NULL,0), - (7,19,1,NULL,1,'2023-09-05 08:52:20',0.00,1750.00,NULL,NULL,NULL,NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,'102',NULL,NULL,0.00,NULL,0), - (8,82,1,NULL,1,'2023-01-13 17:03:20',0.00,50.00,NULL,NULL,'P20193L2',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (9,92,1,NULL,1,'2022-10-07 08:52:20',0.00,10.00,NULL,NULL,'P40232Y3',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Help CiviCRM',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (10,34,1,NULL,1,'2019-04-14 10:52:20',0.00,250.00,NULL,NULL,'P20193L6',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Help CiviCRM',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (11,71,1,NULL,1,'2023-09-06 04:52:20',0.00,500.00,NULL,NULL,'PL71',NULL,NULL,'JPY',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (12,43,1,NULL,1,'2022-06-06 22:19:00',0.00,50.00,NULL,NULL,'P291X1',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (13,32,1,NULL,1,'2023-06-07 00:00:00',0.00,50.00,NULL,NULL,'PL32I',NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (14,32,1,NULL,1,'2023-07-07 00:00:00',0.00,50.00,NULL,NULL,'PL32II',NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (15,59,1,NULL,1,'2022-06-07 08:52:20',0.00,25.00,NULL,NULL,'PL32I591',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (16,59,1,NULL,1,'2022-07-07 08:52:20',0.00,25.00,NULL,NULL,'PL32I592',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (17,59,1,NULL,1,'2022-08-07 08:52:20',0.00,25.00,NULL,NULL,'PL32I593',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (18,59,1,NULL,1,'2022-09-07 08:52:20',0.00,25.00,NULL,NULL,'PL32I594',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (19,59,1,NULL,1,'2022-10-07 08:52:20',0.00,25.00,NULL,NULL,'PL32I595',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (20,59,1,NULL,1,'2022-11-07 08:52:20',0.00,25.00,NULL,NULL,'PL32I596',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (21,59,1,NULL,1,'2022-12-07 08:52:20',0.00,25.00,NULL,NULL,'PL32I597',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (22,59,1,NULL,1,'2023-01-07 08:52:20',0.00,25.00,NULL,NULL,'PL32I598',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (23,59,1,NULL,1,'2023-02-07 08:52:20',0.00,25.00,NULL,NULL,'PL32I599',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (24,59,1,NULL,1,'2023-03-07 08:52:20',0.00,25.00,NULL,NULL,'PL32I5910',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (25,59,1,NULL,1,'2023-04-07 08:52:20',0.00,25.00,NULL,NULL,'PL32I5911',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (26,99,1,NULL,1,'2023-01-07 08:52:20',0.00,10.00,NULL,NULL,'PL32I991',NULL,NULL,'CAD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,2,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (27,99,1,NULL,1,'2023-02-07 08:52:20',0.00,10.00,NULL,NULL,'PL32I992',NULL,NULL,'CAD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,2,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (28,99,1,NULL,1,'2023-03-07 08:52:20',0.00,10.00,NULL,NULL,'PL32I993',NULL,NULL,'CAD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,2,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (29,99,1,NULL,1,'2023-04-07 08:52:20',0.00,10.00,NULL,NULL,'PL32I994',NULL,NULL,'CAD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,2,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (30,99,1,NULL,1,'2023-05-07 08:52:20',0.00,10.00,NULL,NULL,'PL32I995',NULL,NULL,'CAD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,2,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (31,103,1,NULL,1,'2023-08-07 08:52:20',0.00,5.00,NULL,NULL,'PL32I1031',NULL,NULL,'EUR',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,3,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (32,11,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'f35f748912345b9a',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (33,33,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'738f047c3933ff17',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (34,75,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'dd391b553f4f7037',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (35,16,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'b4662a764f39f413',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (36,107,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'2da4195398db1ae0',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (37,141,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'147d7e7900ea9163',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (38,50,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'8cf4116bdebff877',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (39,88,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'62009b8346478628',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (40,154,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'20ab7ccf151901d9',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (41,174,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'e13a915046d57644',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (42,8,2,NULL,1,'2023-09-07 08:52:20',0.00,1200.00,NULL,NULL,'0892a3502e515853',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Lifetime Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (43,36,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'94888675227342d8',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (44,44,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'298a429ada534815',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (45,37,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'c3a01540d471682a',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (46,197,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'192bd422f162a438',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (47,117,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'2bcacb63fbdd6c7e',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (48,15,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'4a15317962a69a81',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (49,69,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'352e858c7b02b0db',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (50,26,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'c549161b722ae0e2',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (51,196,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'b0b1c5a7c9f648ea',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (52,42,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'7702196e43a3e0bd',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (53,150,2,NULL,1,'2023-09-07 08:52:20',0.00,1200.00,NULL,NULL,'67949dd99a2da188',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Lifetime Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (54,7,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'f694cbe423ce5eb1',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (55,198,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'78e6fd67eb8c1988',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (56,186,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'1d0c36f4ec1a8c97',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (57,140,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'d0736a30cccfd4d2',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (58,163,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'d5148071d9a8be10',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (59,121,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'074c387c1b91896d',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (60,162,2,NULL,1,'2023-09-07 08:52:20',0.00,100.00,NULL,NULL,'6ca3e34d81c40b8c',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (61,202,2,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'1aa0e1ab9c39369e',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (63,102,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'79c783e5ae59fa0f',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (64,181,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'4965afacf35fbeb7',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (65,184,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'ae656e5ff51eebca',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (66,119,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'f5b612106db16c15',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (67,123,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'e1b3816831d52eba',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (68,88,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'7815807a33652156',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (69,149,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'b701d89308b0dc75',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (70,137,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'3932cb472bbe4923',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (71,56,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'fc388eeb07a269da',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (72,153,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'d38d992b9d596f66',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (73,47,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'39ca5190991329ec',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (74,133,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'f1f08848f07f7972',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (75,29,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'8c55cda559f74822',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (76,43,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'fff2347b446d8133',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (77,145,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'e15f7530fcfe0c49',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (78,194,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'c1ab79895d394891',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (79,142,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'84321fe483b3a002',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (80,63,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'f2d8d1ef5ab09c03',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (81,92,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'0b70d01281d94174',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (82,91,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'287d120bec064cfc',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (83,132,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'0798a94b9b3fcea8',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (84,38,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'e41605930d1c3179',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (85,76,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'1d5c72a7ba1ab008',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (86,174,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'c6dded079f482f42',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (87,3,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'8ab94d8353ac55f7',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (88,167,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'859374cc5860dd44',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (89,170,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'b4da6cbb44ed18e2',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (90,128,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'7937bcc6b55ee936',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (91,9,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'05e1df46874a0aa9',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (92,94,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'96809d2b209570b6',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (93,186,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'95b6f8aaf69ff40b',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (94,178,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'d0c30ff7377ab5de',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (95,127,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'74bac1d50ecee85d',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (96,177,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'4dd65030b75bc608',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (97,90,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'a8bc4bbb21ddadbd',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (98,159,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'3c7cd46f0bf3348b',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (99,195,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'03ed936885020f0d',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (100,151,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'1a8ffab23ccff9f5',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (101,131,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'87c4eb44a576dbbf',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (102,104,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'5d9f0f0c6e602361',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (103,161,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'9fd3e5c674b24e6d',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (104,11,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'114039dd0b31e601',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (105,115,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'f6faa89eb9fc1e2e',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (106,50,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'e1856457692f0c1e',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (107,199,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'5ec3c525c53e3d83',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (108,37,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'868dc65a6102069e',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (109,42,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'fe3e6113a8559c6c',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (110,68,4,NULL,1,'2023-09-07 08:52:20',0.00,50.00,NULL,NULL,'7f5ef93011b78e2b',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (111,2,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'5589f478beddc83c',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), - (112,193,4,NULL,1,'2023-09-07 08:52:20',0.00,800.00,NULL,NULL,'f9de548fc713fb79',NULL,NULL,'USD',NULL,NULL,'2023-09-07 08:52:20',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0); + (1,2,1,NULL,4,'2013-10-07 01:51:39',0.00,125.00,NULL,NULL,NULL,NULL,NULL,'USD',NULL,NULL,NULL,NULL,'April Mailer 1',NULL,NULL,0,0,1,NULL,'1041',NULL,NULL,0.00,NULL,0), + (2,4,1,NULL,1,'2021-07-07 01:51:39',0.00,50.00,NULL,NULL,'P20901X1',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (3,6,1,NULL,4,'2017-09-11 12:51:39',0.00,25.00,NULL,NULL,'GBP12',NULL,NULL,'GBP',NULL,NULL,NULL,NULL,'April Mailer 1',NULL,NULL,0,0,1,NULL,'2095',NULL,NULL,0.00,NULL,0), + (4,8,1,NULL,4,'2021-07-07 01:51:39',0.00,50.00,NULL,NULL,NULL,NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,'10552',NULL,NULL,0.00,NULL,0), + (5,4,1,NULL,1,'2021-07-07 01:51:39',0.00,50.00,NULL,NULL,'Q90901X1',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (6,16,1,NULL,4,'2023-07-14 01:09:39',0.00,500.00,NULL,NULL,NULL,NULL,NULL,'USD',NULL,NULL,NULL,NULL,'April Mailer 1',NULL,NULL,0,0,1,NULL,'509',NULL,NULL,0.00,NULL,0), + (7,19,1,NULL,1,'2023-10-05 01:51:39',0.00,1750.00,NULL,NULL,NULL,NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,'102',NULL,NULL,0.00,NULL,0), + (8,82,1,NULL,1,'2023-02-12 10:02:39',0.00,50.00,NULL,NULL,'P20193L2',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (9,92,1,NULL,1,'2022-11-07 01:51:39',0.00,10.00,NULL,NULL,'P40232Y3',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Help CiviCRM',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (10,34,1,NULL,1,'2019-05-15 03:51:39',0.00,250.00,NULL,NULL,'P20193L6',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Help CiviCRM',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (11,71,1,NULL,1,'2023-10-05 21:51:39',0.00,500.00,NULL,NULL,'PL71',NULL,NULL,'JPY',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (12,43,1,NULL,1,'2022-07-06 15:18:19',0.00,50.00,NULL,NULL,'P291X1',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Online: Save the Penguins',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (13,32,1,NULL,1,'2023-07-07 00:00:00',0.00,50.00,NULL,NULL,'PL32I',NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (14,32,1,NULL,1,'2023-08-07 00:00:00',0.00,50.00,NULL,NULL,'PL32II',NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (15,59,1,NULL,1,'2022-07-07 01:51:39',0.00,25.00,NULL,NULL,'PL32I591',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (16,59,1,NULL,1,'2022-08-07 01:51:39',0.00,25.00,NULL,NULL,'PL32I592',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (17,59,1,NULL,1,'2022-09-07 01:51:39',0.00,25.00,NULL,NULL,'PL32I593',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (18,59,1,NULL,1,'2022-10-07 01:51:39',0.00,25.00,NULL,NULL,'PL32I594',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (19,59,1,NULL,1,'2022-11-07 01:51:39',0.00,25.00,NULL,NULL,'PL32I595',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (20,59,1,NULL,1,'2022-12-07 01:51:39',0.00,25.00,NULL,NULL,'PL32I596',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (21,59,1,NULL,1,'2023-01-07 01:51:39',0.00,25.00,NULL,NULL,'PL32I597',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (22,59,1,NULL,1,'2023-02-07 01:51:39',0.00,25.00,NULL,NULL,'PL32I598',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (23,59,1,NULL,1,'2023-03-07 01:51:39',0.00,25.00,NULL,NULL,'PL32I599',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (24,59,1,NULL,1,'2023-04-07 01:51:39',0.00,25.00,NULL,NULL,'PL32I5910',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (25,59,1,NULL,1,'2023-05-07 01:51:39',0.00,25.00,NULL,NULL,'PL32I5911',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,1,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (26,99,1,NULL,1,'2023-02-07 01:51:39',0.00,10.00,NULL,NULL,'PL32I991',NULL,NULL,'CAD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,2,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (27,99,1,NULL,1,'2023-03-07 01:51:39',0.00,10.00,NULL,NULL,'PL32I992',NULL,NULL,'CAD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,2,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (28,99,1,NULL,1,'2023-04-07 01:51:39',0.00,10.00,NULL,NULL,'PL32I993',NULL,NULL,'CAD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,2,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (29,99,1,NULL,1,'2023-05-07 01:51:39',0.00,10.00,NULL,NULL,'PL32I994',NULL,NULL,'CAD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,2,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (30,99,1,NULL,1,'2023-06-07 01:51:39',0.00,10.00,NULL,NULL,'PL32I995',NULL,NULL,'CAD',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,2,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (31,103,1,NULL,1,'2023-09-07 01:51:39',0.00,5.00,NULL,NULL,'PL32I1031',NULL,NULL,'EUR',NULL,NULL,NULL,NULL,'Recurring contribution',NULL,3,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (32,181,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'199fe91a3a34c8ce',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (33,143,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'92a30dc12bc6f89f',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (34,69,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'b9a6747fd6568fc2',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (35,140,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'82e83517499bed14',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (36,119,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'db59f4a2b5c5e910',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (37,32,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'f4a649ade54561d2',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (38,113,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'39c163eb3d4be45f',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (39,157,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'247f664cf3df1315',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (40,18,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'500ccd7fcc2abbba',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (41,99,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'182b1f7585ecd170',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (42,23,2,NULL,1,'2023-10-07 01:51:39',0.00,1200.00,NULL,NULL,'b237ce5365d90585',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Lifetime Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (43,115,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'335863057117965b',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (44,128,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'f011e469b75a2a36',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (45,55,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'b6176b7b65ed72f1',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (46,163,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'da38a9b7b64f40ca',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (47,126,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'9a4fc74545d39864',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (48,141,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'eb11e97806d830cb',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (49,125,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'05a06f6a774b5ff6',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (50,172,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'5192d580921731bf',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (51,156,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'2950723f11f5e239',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (52,93,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'b7b728e2eaf732e1',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (53,37,2,NULL,1,'2023-10-07 01:51:39',0.00,1200.00,NULL,NULL,'6600cd795ed03a60',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Lifetime Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (54,81,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'94e3e06a9e9b53c1',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (55,122,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'53b4c84f1f6d87f4',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (56,36,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'fb0b2a2539f57eb6',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (57,15,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'7ba0d6192288fd47',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (58,131,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'0eaed8d79ce1b8e2',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (59,158,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'4dd4ba301641ab44',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (60,193,2,NULL,1,'2023-10-07 01:51:39',0.00,100.00,NULL,NULL,'377748d4cf02df93',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'General Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (61,30,2,NULL,1,'2023-10-07 01:51:39',0.00,50.00,NULL,NULL,'ce228497888c2378',NULL,NULL,'USD',NULL,NULL,NULL,NULL,'Student Membership: Offline signup',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (63,1,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'4959fbae7c7cc84c',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (64,7,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'aba6ff5d44f34e7f',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (65,10,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'a94fec7ebdce0620',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (66,13,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'7b7e2bdd408bae45',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (67,14,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'2bee5ffd2592ca3d',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (68,17,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'42a7294b9baf02d3',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (69,27,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'4132024b570ff06c',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (70,29,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'0148e195bca51d81',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (71,32,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'165967a21ea2b659',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (72,37,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'5601aea891e87f0d',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (73,50,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'7ed9ae13f33e76df',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (74,53,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'e532775a80589dd2',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (75,54,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'ed1ca23c1c2945c3',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (76,61,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'89e19b42e174eb80',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (77,63,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'0be1bc2f90a806b7',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (78,64,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'3df236b8a47b5bb9',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (79,69,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'6884516bd1244063',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (80,78,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'043190c33aa17fd2',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (81,79,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'c5ee4eb0b3d0c901',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (82,81,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'faa306e7256fce34',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (83,85,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'692f41d144ba99b2',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (84,89,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'3e52e256b26e001d',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (85,93,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'66e129a8d6e297fa',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (86,95,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'45bb6ea0781be9f0',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (87,100,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'69be08504eee5355',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (88,101,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'f5b11319837ef1e6',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (89,102,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'0840f3d87c6e85fb',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (90,111,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'27132cb320864779',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (91,112,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'374e2f2ed959566e',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (92,114,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'d0430a4a2d99e47f',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (93,118,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'7d4564e1bdd09791',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (94,121,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'03a4f5fe114a9c59',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (95,122,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'fe47d7e306522352',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (96,126,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'60f18e18ad36e0a8',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (97,134,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'e9270c01cb7e7d87',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (98,141,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'b0ec3e0cb2cb6aee',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (99,147,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'11002b1a386b49ad',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (100,150,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'7ab5e66da17e8d68',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (101,152,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'ccb8e93eff3029fa',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (102,160,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'1b101efdd36b05cf',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (103,165,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'629d63496b32ec37',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (104,168,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'a7ff24e77623ff66',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (105,169,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'857dc2777c1a660c',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (106,172,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'7f1e20b2b28f8226',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (107,175,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'609e9f6ac922d912',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (108,181,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'b0f27fe74b6b4a8a',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (109,188,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'8e6e4153b0abab95',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (110,190,4,NULL,1,'2023-10-07 01:51:40',0.00,800.00,NULL,NULL,'d5dbc6b4bd2fac95',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Rain-forest Cup Youth Soccer Tournament : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (111,195,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'58ce3d135fec464e',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Summer Solstice Festival Day Concert : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0), + (112,200,4,NULL,1,'2023-10-07 01:51:40',0.00,50.00,NULL,NULL,'e6502ad537f88d38',NULL,NULL,'USD',NULL,NULL,'2023-10-07 01:51:40',NULL,'Fall Fundraiser Dinner : Offline registration',NULL,NULL,0,0,1,NULL,NULL,NULL,NULL,0.00,NULL,0); /*!40000 ALTER TABLE `civicrm_contribution` ENABLE KEYS */; UNLOCK TABLES; @@ -2360,9 +2358,9 @@ UNLOCK TABLES; LOCK TABLES `civicrm_contribution_recur` WRITE; /*!40000 ALTER TABLE `civicrm_contribution_recur` DISABLE KEYS */; INSERT INTO `civicrm_contribution_recur` (`id`, `contact_id`, `amount`, `currency`, `frequency_unit`, `frequency_interval`, `installments`, `start_date`, `create_date`, `modified_date`, `cancel_date`, `cancel_reason`, `end_date`, `processor_id`, `payment_token_id`, `trxn_id`, `invoice_id`, `contribution_status_id`, `is_test`, `cycle_day`, `next_sched_contribution_date`, `failure_count`, `failure_retry_date`, `auto_renew`, `payment_processor_id`, `financial_type_id`, `payment_instrument_id`, `campaign_id`, `is_email_receipt`) VALUES - (1,59,25.00,'USD','month',1,12,'2022-06-07 08:52:20','2023-09-07 08:52:20','2023-09-06 22:52:20',NULL,'',NULL,'CLC45',NULL,'56799',NULL,1,0,1,NULL,0,NULL,0,1,NULL,NULL,NULL,1), - (2,99,10.00,'CAD','month',1,6,'2023-01-07 08:52:20','2023-09-07 08:52:20','2023-09-06 22:52:20','2023-08-07 08:52:20','No longer interested',NULL,'CLR35',NULL,'22799',NULL,3,0,1,NULL,0,NULL,0,1,NULL,NULL,NULL,1), - (3,103,5.00,'EUR','month',3,3,'2023-08-07 08:52:20','2023-09-07 08:52:20','2023-09-06 22:52:20',NULL,'',NULL,'EGR12',NULL,'44889',NULL,5,0,1,'2023-11-07 08:52:20',0,NULL,0,1,NULL,NULL,NULL,1); + (1,59,25.00,'USD','month',1,12,'2022-07-07 01:51:39','2023-10-07 01:51:39','2023-10-07 01:51:39',NULL,'',NULL,'CLC45',NULL,'56799',NULL,1,0,1,NULL,0,NULL,0,1,NULL,NULL,NULL,1), + (2,99,10.00,'CAD','month',1,6,'2023-02-07 01:51:39','2023-10-07 01:51:39','2023-10-07 01:51:39','2023-09-07 01:51:39','No longer interested',NULL,'CLR35',NULL,'22799',NULL,3,0,1,NULL,0,NULL,0,1,NULL,NULL,NULL,1), + (3,103,5.00,'EUR','month',3,3,'2023-09-07 01:51:39','2023-10-07 01:51:39','2023-10-07 01:51:39',NULL,'',NULL,'EGR12',NULL,'44889',NULL,5,0,1,'2023-12-07 01:51:39',0,NULL,0,1,NULL,NULL,NULL,1); /*!40000 ALTER TABLE `civicrm_contribution_recur` ENABLE KEYS */; UNLOCK TABLES; @@ -2373,8 +2371,8 @@ UNLOCK TABLES; LOCK TABLES `civicrm_contribution_soft` WRITE; /*!40000 ALTER TABLE `civicrm_contribution_soft` DISABLE KEYS */; INSERT INTO `civicrm_contribution_soft` (`id`, `contribution_id`, `contact_id`, `amount`, `currency`, `pcp_id`, `pcp_display_in_roll`, `pcp_roll_nickname`, `pcp_personal_note`, `soft_credit_type_id`) VALUES - (1,9,171,10.00,'USD',1,1,'Jones Family','Helping Hands',10), - (2,10,171,250.00,'USD',1,1,'Annie and the kids','Annie Helps',10); + (1,9,113,10.00,'USD',1,1,'Jones Family','Helping Hands',10), + (2,10,113,250.00,'USD',1,1,'Annie and the kids','Annie Helps',10); /*!40000 ALTER TABLE `civicrm_contribution_soft` ENABLE KEYS */; UNLOCK TABLES; @@ -2972,7 +2970,7 @@ UNLOCK TABLES; LOCK TABLES `civicrm_domain` WRITE; /*!40000 ALTER TABLE `civicrm_domain` DISABLE KEYS */; INSERT INTO `civicrm_domain` (`id`, `name`, `description`, `version`, `contact_id`, `locales`, `locale_custom_strings`) VALUES - (1,'Default Domain Name',NULL,'5.66.2',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}'); + (1,'Default Domain Name',NULL,'5.67.0',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}'); /*!40000 ALTER TABLE `civicrm_domain` ENABLE KEYS */; UNLOCK TABLES; @@ -2984,198 +2982,207 @@ LOCK TABLES `civicrm_email` WRITE; /*!40000 ALTER TABLE `civicrm_email` DISABLE KEYS */; INSERT INTO `civicrm_email` (`id`, `contact_id`, `location_type_id`, `email`, `is_primary`, `is_billing`, `on_hold`, `is_bulkmail`, `hold_date`, `reset_date`, `signature_text`, `signature_html`) VALUES (1,1,1,'fixme.domainemail@example.org',1,0,0,0,NULL,NULL,NULL,NULL), - (2,41,1,'jameson.j.valene80@lol.org',1,0,0,0,NULL,NULL,NULL,NULL), - (3,41,1,'jameson.valene@spamalot.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), - (4,171,1,'darenj@mymail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (5,171,1,'darenj72@testing.com',0,0,0,0,NULL,NULL,NULL,NULL), - (6,123,1,'reynoldsr@sample.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (7,178,1,'rc.roberts96@infomail.org',1,0,0,0,NULL,NULL,NULL,NULL), - (8,24,1,'jeromewilson@lol.net',1,0,0,0,NULL,NULL,NULL,NULL), - (9,146,1,'rgonzlez86@notmail.net',1,0,0,0,NULL,NULL,NULL,NULL), - (10,146,1,'gonzlez.rosario@fakemail.org',0,0,0,0,NULL,NULL,NULL,NULL), - (11,4,1,'by.jones@mymail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (12,98,1,'chowski.roland@example.info',1,0,0,0,NULL,NULL,NULL,NULL), - (13,98,1,'roland@testmail.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), - (14,79,1,'terry.u.herminia10@notmail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (15,158,1,'jameson.g.santina@testmail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (16,158,1,'jameson.g.santina90@airmail.com',0,0,0,0,NULL,NULL,NULL,NULL), - (17,145,1,'ivanovl70@fakemail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (18,82,1,'cruzl@example.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (19,175,1,'lt.jacobs@lol.biz',1,0,0,0,NULL,NULL,NULL,NULL), - (20,175,1,'lareej@fakemail.co.in',0,0,0,0,NULL,NULL,NULL,NULL), - (21,117,1,'dazh@mymail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (22,117,1,'daz.n.herminia@fishmail.co.uk',0,0,0,0,NULL,NULL,NULL,NULL), - (23,124,1,'teresay20@notmail.biz',1,0,0,0,NULL,NULL,NULL,NULL), - (24,124,1,'teresay@lol.co.in',0,0,0,0,NULL,NULL,NULL,NULL), - (25,28,1,'terryh@mymail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (26,40,1,'ab.samuels@spamalot.com',1,0,0,0,NULL,NULL,NULL,NULL), - (27,66,1,'nielsenr@airmail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), - (28,66,1,'re.nielsen@spamalot.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), - (29,32,1,'wilson.margaret84@fishmail.info',1,0,0,0,NULL,NULL,NULL,NULL), - (30,32,1,'margaretw@testmail.co.uk',0,0,0,0,NULL,NULL,NULL,NULL), - (31,162,1,'josefadimitrov@notmail.org',1,0,0,0,NULL,NULL,NULL,NULL), - (32,26,1,'daz.e.justina43@fakemail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), - (33,180,1,'jeromej@spamalot.net',1,0,0,0,NULL,NULL,NULL,NULL), - (34,180,1,'jeromej93@infomail.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), - (35,192,1,'nielsen.g.rodrigo30@sample.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (36,100,1,'kathleenn37@fishmail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (37,11,1,'jacksonparker@airmail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (38,11,1,'jacksonp@example.info',0,0,0,0,NULL,NULL,NULL,NULL), - (39,200,1,'samuels.rebekah@lol.net',1,0,0,0,NULL,NULL,NULL,NULL), - (40,182,1,'sharyndaz@testmail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (41,182,1,'daz.m.sharyn@testing.biz',0,0,0,0,NULL,NULL,NULL,NULL), - (42,136,1,'santinaparker85@mymail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (43,172,1,'gonzleze@testmail.com',1,0,0,0,NULL,NULL,NULL,NULL), - (44,90,1,'wagnerr@spamalot.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (45,90,1,'rolandowagner@fishmail.biz',0,0,0,0,NULL,NULL,NULL,NULL), - (46,83,1,'felishap@lol.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (47,83,1,'fparker@fakemail.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), - (48,120,1,'terry.elina63@infomail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), - (49,174,1,'parker.jacob@testing.com',1,0,0,0,NULL,NULL,NULL,NULL), - (50,174,1,'jparker@lol.co.uk',0,0,0,0,NULL,NULL,NULL,NULL), - (51,109,1,'parker.damaris65@mymail.net',1,0,0,0,NULL,NULL,NULL,NULL), - (52,155,1,'sk.prentice64@fakemail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (53,167,1,'parkerj@testmail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), - (54,159,1,'bernadettet@fishmail.net',1,0,0,0,NULL,NULL,NULL,NULL), - (55,78,1,'lareeyadav14@notmail.org',1,0,0,0,NULL,NULL,NULL,NULL), - (56,70,1,'jones.ray95@example.org',1,0,0,0,NULL,NULL,NULL,NULL), - (57,103,1,'miguelpatel22@lol.org',1,0,0,0,NULL,NULL,NULL,NULL), - (58,103,1,'patel.miguel@infomail.co.uk',0,0,0,0,NULL,NULL,NULL,NULL), - (59,44,1,'terry.craig83@lol.org',1,0,0,0,NULL,NULL,NULL,NULL), - (60,21,1,'nielsens34@example.info',1,0,0,0,NULL,NULL,NULL,NULL), - (61,21,1,'nielsens36@spamalot.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), - (62,71,1,'daze96@spamalot.info',1,0,0,0,NULL,NULL,NULL,NULL), - (63,71,1,'elinadaz@sample.co.uk',0,0,0,0,NULL,NULL,NULL,NULL), - (64,56,1,'barkley.u.scarlet31@sample.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (65,56,1,'barkley.scarlet@testing.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), - (66,183,1,'iz.cooper@fakemail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (67,62,1,'patel.h.teresa63@example.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (68,62,1,'patel.h.teresa@airmail.org',0,0,0,0,NULL,NULL,NULL,NULL), - (69,166,1,'parker.landon59@airmail.com',1,0,0,0,NULL,NULL,NULL,NULL), - (70,166,1,'parkerl18@lol.info',0,0,0,0,NULL,NULL,NULL,NULL), - (71,198,1,'barkley.brzczysaw@lol.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (72,198,1,'brzczysawb81@fishmail.org',0,0,0,0,NULL,NULL,NULL,NULL), - (73,39,1,'shadterrell56@lol.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (74,39,1,'sterrell@testing.biz',0,0,0,0,NULL,NULL,NULL,NULL), - (75,130,1,'molsen@spamalot.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (76,190,1,'ashliebarkley43@spamalot.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (77,190,1,'barkleya@testing.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), - (78,85,1,'damarisp@notmail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (79,53,1,'prentice.w.tanya@infomail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (80,58,1,'brzczysawt@lol.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (81,58,1,'brzczysawterrell3@fishmail.org',0,0,0,0,NULL,NULL,NULL,NULL), - (82,154,1,'terrellb@fakemail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (83,154,1,'brentterrell@sample.info',0,0,0,0,NULL,NULL,NULL,NULL), - (84,23,1,'terrell.bob@fishmail.info',1,0,0,0,NULL,NULL,NULL,NULL), - (85,23,1,'terrellb22@mymail.net',0,0,0,0,NULL,NULL,NULL,NULL), - (86,18,1,'wilsons@fishmail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (87,18,1,'wilson.sonny@mymail.net',0,0,0,0,NULL,NULL,NULL,NULL), - (88,8,1,'tobywilson@infomail.net',1,0,0,0,NULL,NULL,NULL,NULL), - (89,189,1,'wilson.carylon26@airmail.com',1,0,0,0,NULL,NULL,NULL,NULL), - (90,189,1,'wilsonc98@spamalot.com',0,0,0,0,NULL,NULL,NULL,NULL), - (91,80,1,'jensent17@mymail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), - (92,104,1,'ashliej31@sample.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (93,104,1,'jensena@infomail.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), - (94,137,1,'brentj@notmail.biz',1,0,0,0,NULL,NULL,NULL,NULL), - (95,126,1,'jensenr@testing.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (96,126,1,'rosariojensen@fakemail.org',0,0,0,0,NULL,NULL,NULL,NULL), - (97,27,1,'arlynewattson60@fishmail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (98,27,1,'awattson@fakemail.net',0,0,0,0,NULL,NULL,NULL,NULL), - (99,35,1,'angelikawattson@fakemail.net',1,0,0,0,NULL,NULL,NULL,NULL), - (100,35,1,'angelikawattson@fishmail.com',0,0,0,0,NULL,NULL,NULL,NULL), - (101,147,1,'eleonorbachman@sample.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (102,147,1,'ebachman@example.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), - (103,164,1,'lawerencebachman71@testing.org',1,0,0,0,NULL,NULL,NULL,NULL), - (104,164,1,'bachmanl@mymail.com',0,0,0,0,NULL,NULL,NULL,NULL), - (105,191,1,'teddyb@example.info',1,0,0,0,NULL,NULL,NULL,NULL), - (106,191,1,'bachmant@fishmail.info',0,0,0,0,NULL,NULL,NULL,NULL), - (107,81,1,'scarletchowski36@testing.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (108,81,1,'scarletchowski86@notmail.co.in',0,0,0,0,NULL,NULL,NULL,NULL), - (109,150,1,'jedd31@airmail.biz',1,0,0,0,NULL,NULL,NULL,NULL), - (110,150,1,'dimitrov-chowskij@spamalot.org',0,0,0,0,NULL,NULL,NULL,NULL), - (111,127,1,'rosariodimitrov-chowski@sample.com',1,0,0,0,NULL,NULL,NULL,NULL), - (112,127,1,'rosariod@example.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), - (113,72,1,'terry.betty@spamalot.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), - (114,72,1,'bettyterry3@infomail.co.in',0,0,0,0,NULL,NULL,NULL,NULL), - (115,125,1,'rf.terry41@infomail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), - (116,125,1,'terryr29@mymail.net',0,0,0,0,NULL,NULL,NULL,NULL), - (117,17,1,'terry.f.teddy@fishmail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (118,139,1,'jensen.felisha@spamalot.biz',1,0,0,0,NULL,NULL,NULL,NULL), - (119,139,1,'felishajensen41@testing.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), - (120,116,1,'edimitrov31@spamalot.com',1,0,0,0,NULL,NULL,NULL,NULL), - (121,116,1,'eleonordimitrov@mymail.com',0,0,0,0,NULL,NULL,NULL,NULL), - (122,86,1,'robertsb@lol.biz',1,0,0,0,NULL,NULL,NULL,NULL), - (123,170,1,'jacksonr@fakemail.com',1,0,0,0,NULL,NULL,NULL,NULL), - (124,170,1,'roberts.jackson@mymail.co.uk',0,0,0,0,NULL,NULL,NULL,NULL), - (125,38,1,'roberts.jina@mymail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (126,65,1,'bachman-zope.josefa@testing.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (127,65,1,'josefabachman-zope@fakemail.biz',0,0,0,0,NULL,NULL,NULL,NULL), - (128,94,1,'bf.zope@airmail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (129,94,1,'bf.zope@fishmail.info',0,0,0,0,NULL,NULL,NULL,NULL), - (130,195,1,'mg.zope@example.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (131,45,1,'adams.tanya52@lol.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (132,45,1,'adams.tanya49@infomail.biz',0,0,0,0,NULL,NULL,NULL,NULL), - (133,176,1,'adams-dazc55@airmail.org',1,0,0,0,NULL,NULL,NULL,NULL), - (134,36,1,'adams-dazm89@infomail.net',1,0,0,0,NULL,NULL,NULL,NULL), - (135,133,1,'sonnyterry@example.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (136,19,1,'carylonterry@testmail.biz',1,0,0,0,NULL,NULL,NULL,NULL), - (137,19,1,'carylonterry@fakemail.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), - (138,97,1,'mariat@testmail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (139,97,1,'mariat@fishmail.co.in',0,0,0,0,NULL,NULL,NULL,NULL), - (140,46,1,'roberts.toby@testing.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), - (141,46,1,'tobyroberts63@mymail.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), - (142,93,1,'roberts.i.maxwell25@testmail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (143,93,1,'maxwellr10@mymail.co.in',0,0,0,0,NULL,NULL,NULL,NULL), - (144,76,1,'roberts.bryon36@fakemail.biz',1,0,0,0,NULL,NULL,NULL,NULL), - (145,187,1,'broberts88@infomail.info',1,0,0,0,NULL,NULL,NULL,NULL), - (146,187,1,'brentr@testing.net',0,0,0,0,NULL,NULL,NULL,NULL), - (147,74,1,'lmller@notmail.biz',1,0,0,0,NULL,NULL,NULL,NULL), - (148,179,1,'kaceymller99@mymail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), - (149,179,1,'kaceymller@mymail.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), - (150,185,1,'princessmller@example.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), - (151,185,1,'mllerp@fakemail.biz',0,0,0,0,NULL,NULL,NULL,NULL), - (152,197,1,'jmller73@airmail.biz',1,0,0,0,NULL,NULL,NULL,NULL), - (153,197,1,'mllerj1@sample.net',0,0,0,0,NULL,NULL,NULL,NULL), - (154,184,1,'samuelsk59@sample.org',1,0,0,0,NULL,NULL,NULL,NULL), - (155,2,1,'samuels-robertson.winford93@airmail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), - (156,110,1,'dimitrovs@infomail.net',1,0,0,0,NULL,NULL,NULL,NULL), - (157,9,1,'blackwell.shad25@airmail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), - (158,54,1,'rosariod@testing.info',1,0,0,0,NULL,NULL,NULL,NULL), - (159,48,3,'info@urbansustainability.org',1,0,0,0,NULL,NULL,NULL,NULL), - (160,27,2,'awattson@urbansustainability.org',0,0,0,0,NULL,NULL,NULL,NULL), - (161,43,3,'service@starenvironmental.org',1,0,0,0,NULL,NULL,NULL,NULL), - (162,145,2,'livanov@starenvironmental.org',0,0,0,0,NULL,NULL,NULL,NULL), - (163,169,3,'info@communityeducation.org',1,0,0,0,NULL,NULL,NULL,NULL), - (164,183,2,'yadav.allen69@communityeducation.org',0,0,0,0,NULL,NULL,NULL,NULL), - (165,177,3,'sales@localpoetryassociation.org',1,0,0,0,NULL,NULL,NULL,NULL), - (166,50,2,'jamesonl@localpoetryassociation.org',1,0,0,0,NULL,NULL,NULL,NULL), - (167,101,3,'contact@mississippifood.org',1,0,0,0,NULL,NULL,NULL,NULL), - (168,39,2,'terrell.shad39@mississippifood.org',0,0,0,0,NULL,NULL,NULL,NULL), - (169,153,3,'contact@friendshealth.org',1,0,0,0,NULL,NULL,NULL,NULL), - (170,82,2,'lincolnc@friendshealth.org',0,0,0,0,NULL,NULL,NULL,NULL), - (171,91,3,'sales@arkansasliteracy.org',1,0,0,0,NULL,NULL,NULL,NULL), - (172,154,2,'brentt@arkansasliteracy.org',0,0,0,0,NULL,NULL,NULL,NULL), - (173,157,3,'sales@creativeschool.org',1,0,0,0,NULL,NULL,NULL,NULL), - (174,172,2,'gonzleze@creativeschool.org',0,0,0,0,NULL,NULL,NULL,NULL), - (175,129,3,'feedback@californiacollective.org',1,0,0,0,NULL,NULL,NULL,NULL), - (176,96,2,'jones.shauna@californiacollective.org',1,0,0,0,NULL,NULL,NULL,NULL), - (177,188,3,'info@dowleneducationcollective.org',1,0,0,0,NULL,NULL,NULL,NULL), - (178,121,2,'meizope@dowleneducationcollective.org',1,0,0,0,NULL,NULL,NULL,NULL), - (179,193,3,'feedback@beechactionsystems.org',1,0,0,0,NULL,NULL,NULL,NULL), - (180,28,2,'terry.heidi31@beechactionsystems.org',0,0,0,0,NULL,NULL,NULL,NULL), - (181,73,3,'info@surveyordevelopmentservices.org',1,0,0,0,NULL,NULL,NULL,NULL), - (182,166,2,'parkerl@surveyordevelopmentservices.org',0,0,0,0,NULL,NULL,NULL,NULL), - (183,61,3,'service@globaladvocacyinitiative.org',1,0,0,0,NULL,NULL,NULL,NULL), - (184,152,3,'feedback@thactioncollective.org',1,0,0,0,NULL,NULL,NULL,NULL), - (185,26,2,'craigt@thactioncollective.org',0,0,0,0,NULL,NULL,NULL,NULL), - (186,51,3,'service@dowlenpartnership.org',1,0,0,0,NULL,NULL,NULL,NULL), - (187,76,2,'roberts.bryon@dowlenpartnership.org',0,0,0,0,NULL,NULL,NULL,NULL), - (188,135,3,'contact@delandactionsystems.org',1,0,0,0,NULL,NULL,NULL,NULL), - (189,60,2,'roberts.elina@delandactionsystems.org',1,0,0,0,NULL,NULL,NULL,NULL), - (190,202,1,'jenny@example.com',1,0,0,0,NULL,NULL,NULL,NULL), - (191,NULL,1,'development@example.org',0,0,0,0,NULL,NULL,NULL,NULL), - (192,NULL,1,'tournaments@example.org',0,0,0,0,NULL,NULL,NULL,NULL), - (193,NULL,1,'celebration@example.org',0,0,0,0,NULL,NULL,NULL,NULL); + (2,26,1,'craigcruz87@infomail.net',1,0,0,0,NULL,NULL,NULL,NULL), + (3,26,1,'cruz.craig@testmail.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), + (4,201,1,'reynolds.iris@example.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (5,113,1,'jacobsj46@mymail.com',1,0,0,0,NULL,NULL,NULL,NULL), + (6,153,1,'grant.maxwell@testing.net',1,0,0,0,NULL,NULL,NULL,NULL), + (7,98,1,'ashlier@testing.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (8,98,1,'ashlier9@infomail.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), + (9,78,1,'zope.lincoln4@example.org',1,0,0,0,NULL,NULL,NULL,NULL), + (10,78,1,'lincolnz81@fakemail.co.in',0,0,0,0,NULL,NULL,NULL,NULL), + (11,180,1,'barkleym81@spamalot.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (12,182,1,'jameson.margaret@fishmail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), + (13,109,1,'rolandodimitrov6@notmail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (14,109,1,'dimitrovr@spamalot.info',0,0,0,0,NULL,NULL,NULL,NULL), + (15,83,1,'ajameson@lol.com',1,0,0,0,NULL,NULL,NULL,NULL), + (16,83,1,'ashleyjameson65@sample.co.in',0,0,0,0,NULL,NULL,NULL,NULL), + (17,125,1,'ek.dimitrov84@testmail.net',1,0,0,0,NULL,NULL,NULL,NULL), + (18,125,1,'errold@airmail.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), + (19,33,1,'rosariosmith@notmail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (20,33,1,'rosariosmith@testing.co.uk',0,0,0,0,NULL,NULL,NULL,NULL), + (21,90,1,'samuelso87@example.biz',1,0,0,0,NULL,NULL,NULL,NULL), + (22,90,1,'samuels.omar@mymail.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), + (23,72,1,'chowski.irvin5@fakemail.net',1,0,0,0,NULL,NULL,NULL,NULL), + (24,72,1,'chowskii@sample.com',0,0,0,0,NULL,NULL,NULL,NULL), + (25,129,1,'jones.elbert@testmail.net',1,0,0,0,NULL,NULL,NULL,NULL), + (26,185,1,'sanfordterry@example.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (27,44,1,'blackwellm13@spamalot.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (28,114,1,'robertson.l.santina@sample.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), + (29,160,1,'jyadav81@testing.net',1,0,0,0,NULL,NULL,NULL,NULL), + (30,95,1,'rsmith99@fakemail.org',1,0,0,0,NULL,NULL,NULL,NULL), + (31,106,1,'jk.jacobs2@fakemail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (32,20,1,'dazr@airmail.com',1,0,0,0,NULL,NULL,NULL,NULL), + (33,20,1,'rz.daz78@fishmail.org',0,0,0,0,NULL,NULL,NULL,NULL), + (34,94,1,'beulap@sample.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (35,104,1,'rolandoblackwell56@testing.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (36,104,1,'rolandoblackwell@spamalot.co.in',0,0,0,0,NULL,NULL,NULL,NULL), + (37,142,1,'russelly86@fishmail.org',1,0,0,0,NULL,NULL,NULL,NULL), + (38,97,1,'roberts.k.rolando@testing.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (39,97,1,'robertsr51@mymail.net',0,0,0,0,NULL,NULL,NULL,NULL), + (40,120,1,'smitha23@airmail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (41,120,1,'asmith@fishmail.net',0,0,0,0,NULL,NULL,NULL,NULL), + (42,119,1,'shermanchowski@sample.com',1,0,0,0,NULL,NULL,NULL,NULL), + (43,16,1,'mcreynolds.u.junko9@notmail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (44,47,1,'vo.barkley@fishmail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (45,47,1,'valeneb@testmail.com',0,0,0,0,NULL,NULL,NULL,NULL), + (46,15,1,'lcooper@testmail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), + (47,15,1,'cooper.landon@lol.biz',0,0,0,0,NULL,NULL,NULL,NULL), + (48,199,1,'nr.samson7@spamalot.org',1,0,0,0,NULL,NULL,NULL,NULL), + (49,199,1,'norriss@sample.info',0,0,0,0,NULL,NULL,NULL,NULL), + (50,165,1,'reynoldsk@notmail.biz',1,0,0,0,NULL,NULL,NULL,NULL), + (51,146,1,'wilson.valene@airmail.biz',1,0,0,0,NULL,NULL,NULL,NULL), + (52,146,1,'valenew@notmail.co.in',0,0,0,0,NULL,NULL,NULL,NULL), + (53,91,1,'sj.ivanov@fishmail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), + (54,91,1,'sanfordi@example.info',0,0,0,0,NULL,NULL,NULL,NULL), + (55,54,1,'gonzlez.carlos@mymail.org',1,0,0,0,NULL,NULL,NULL,NULL), + (56,30,1,'smith.o.mei95@fishmail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), + (57,164,1,'rayterry98@example.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (58,170,1,'deforests@notmail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), + (59,138,1,'alidat@sample.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (60,138,1,'terrya@example.net',0,0,0,0,NULL,NULL,NULL,NULL), + (61,177,1,'teddyterry@spamalot.biz',1,0,0,0,NULL,NULL,NULL,NULL), + (62,143,1,'wattson.h.errol73@testmail.biz',1,0,0,0,NULL,NULL,NULL,NULL), + (63,143,1,'errolw@mymail.com',0,0,0,0,NULL,NULL,NULL,NULL), + (64,196,1,'bachman.craig8@fakemail.org',1,0,0,0,NULL,NULL,NULL,NULL), + (65,198,1,'ashleyjameson@spamalot.net',1,0,0,0,NULL,NULL,NULL,NULL), + (66,198,1,'jamesona32@testing.co.uk',0,0,0,0,NULL,NULL,NULL,NULL), + (67,181,1,'yadava@fakemail.org',1,0,0,0,NULL,NULL,NULL,NULL), + (68,181,1,'yadava@sample.info',0,0,0,0,NULL,NULL,NULL,NULL), + (69,102,1,'jensend@sample.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), + (70,102,1,'jensen.l.daren@example.info',0,0,0,0,NULL,NULL,NULL,NULL), + (71,167,1,'ivanov.jackson59@infomail.biz',1,0,0,0,NULL,NULL,NULL,NULL), + (72,167,1,'ivanov.jackson@testing.com',0,0,0,0,NULL,NULL,NULL,NULL), + (73,68,1,'meiyadav72@infomail.net',1,0,0,0,NULL,NULL,NULL,NULL), + (74,68,1,'yadavm72@notmail.org',0,0,0,0,NULL,NULL,NULL,NULL), + (75,189,1,'jdimitrov@example.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (76,189,1,'jacobdimitrov@mymail.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), + (77,12,1,'adamsl4@sample.biz',1,0,0,0,NULL,NULL,NULL,NULL), + (78,12,1,'adams.k.lawerence@mymail.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), + (79,195,1,'bd.terry11@testmail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (80,195,1,'terryb@notmail.biz',0,0,0,0,NULL,NULL,NULL,NULL), + (81,192,1,'rebekahnielsen@testing.biz',1,0,0,0,NULL,NULL,NULL,NULL), + (82,192,1,'nielsen.v.rebekah@fakemail.co.in',0,0,0,0,NULL,NULL,NULL,NULL), + (83,36,1,'grantk80@infomail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (84,32,1,'grantt@fishmail.net',1,0,0,0,NULL,NULL,NULL,NULL), + (85,32,1,'grantt@example.biz',0,0,0,0,NULL,NULL,NULL,NULL), + (86,116,1,'teddyo@testmail.info',1,0,0,0,NULL,NULL,NULL,NULL), + (87,116,1,'olsen.a.teddy73@sample.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), + (88,24,1,'eleonorivanov@infomail.net',1,0,0,0,NULL,NULL,NULL,NULL), + (89,24,1,'ivanov.eleonor61@fakemail.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), + (90,163,1,'jones.winford@mymail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (91,163,1,'winfordjones@fishmail.net',0,0,0,0,NULL,NULL,NULL,NULL), + (92,46,1,'sjensen26@mymail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (93,46,1,'jensen.shauna37@lol.co.in',0,0,0,0,NULL,NULL,NULL,NULL), + (94,149,1,'jeromej@airmail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (95,18,1,'rblackwell57@testmail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), + (96,18,1,'rosarioblackwell@testmail.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), + (97,184,1,'blackwellm64@infomail.biz',1,0,0,0,NULL,NULL,NULL,NULL), + (98,184,1,'margaretb34@testmail.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), + (99,10,1,'blackwelln@spamalot.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (100,63,1,'dimitrovw@testing.org',1,0,0,0,NULL,NULL,NULL,NULL), + (101,87,1,'roberts-dimitrov.x.megan@lol.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (102,87,1,'roberts-dimitrovm77@testmail.biz',0,0,0,0,NULL,NULL,NULL,NULL), + (103,57,1,'tdimitrov@fishmail.net',1,0,0,0,NULL,NULL,NULL,NULL), + (104,175,1,'eolsen-mcreynolds91@spamalot.org',1,0,0,0,NULL,NULL,NULL,NULL), + (105,93,1,'mcreynoldsa@fakemail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (106,93,1,'mcreynoldsa25@airmail.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), + (107,29,1,'lashawndamcreynolds@notmail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (108,29,1,'mcreynolds.lashawnda@mymail.info',0,0,0,0,NULL,NULL,NULL,NULL), + (109,101,1,'hz.lee98@sample.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (110,40,1,'llee51@fishmail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (111,40,1,'llee76@airmail.info',0,0,0,0,NULL,NULL,NULL,NULL), + (112,154,1,'ht.cruz@mymail.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), + (113,154,1,'heidicruz84@fakemail.co.uk',0,0,0,0,NULL,NULL,NULL,NULL), + (114,58,1,'zope.juliann@example.com',1,0,0,0,NULL,NULL,NULL,NULL), + (115,58,1,'zope.juliann@infomail.net',0,0,0,0,NULL,NULL,NULL,NULL), + (116,84,1,'ashleyjameson@lol.org',1,0,0,0,NULL,NULL,NULL,NULL), + (117,22,1,'jamesonl@notmail.info',1,0,0,0,NULL,NULL,NULL,NULL), + (118,22,1,'jamesonl91@mymail.info',0,0,0,0,NULL,NULL,NULL,NULL), + (119,158,1,'russelljameson@spamalot.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (120,158,1,'jamesonr@testing.net',0,0,0,0,NULL,NULL,NULL,NULL), + (121,65,1,'rzope42@example.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (122,82,1,'erikyadav16@notmail.info',1,0,0,0,NULL,NULL,NULL,NULL), + (123,82,1,'yadav.n.erik79@notmail.org',0,0,0,0,NULL,NULL,NULL,NULL), + (124,186,1,'elinay@fakemail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (125,80,1,'teresayadav59@example.info',1,0,0,0,NULL,NULL,NULL,NULL), + (126,80,1,'tyadav@sample.org',0,0,0,0,NULL,NULL,NULL,NULL), + (127,159,1,'erikyadav83@infomail.biz',1,0,0,0,NULL,NULL,NULL,NULL), + (128,159,1,'yadave@sample.com',0,0,0,0,NULL,NULL,NULL,NULL), + (129,45,1,'lawerencejones@fishmail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (130,48,1,'meganterrell@infomail.info',1,0,0,0,NULL,NULL,NULL,NULL), + (131,48,1,'mterrell83@notmail.com',0,0,0,0,NULL,NULL,NULL,NULL), + (132,141,1,'jones-terrell.o.mei@lol.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (133,141,1,'jones-terrellm@example.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), + (134,157,1,'dimitrov.z.ray@spamalot.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (135,157,1,'rayd@testmail.org',0,0,0,0,NULL,NULL,NULL,NULL), + (136,128,1,'deforest.maxwell@example.net',1,0,0,0,NULL,NULL,NULL,NULL), + (137,8,1,'mz.dimitrov-deforest@fakemail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (138,8,1,'dimitrov-deforest.z.merrie@sample.co.pl',0,0,0,0,NULL,NULL,NULL,NULL), + (139,140,1,'dimitrov-deforest.toby97@sample.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (140,144,1,'terrell.w.sanford@example.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), + (141,4,1,'eleonorw@example.co.nz',1,0,0,0,NULL,NULL,NULL,NULL), + (142,4,1,'ewattson-terrell@example.co.in',0,0,0,0,NULL,NULL,NULL,NULL), + (143,178,1,'tobyt@mymail.info',1,0,0,0,NULL,NULL,NULL,NULL), + (144,127,1,'terrells@airmail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (145,56,1,'wilson-daz.ashley@spamalot.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (146,193,1,'jdaz@mymail.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (147,193,1,'jacobdaz@example.co.uk',0,0,0,0,NULL,NULL,NULL,NULL), + (148,39,1,'jacobs.w.lashawnda61@notmail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (149,79,1,'jacobs.beula@sample.com',1,0,0,0,NULL,NULL,NULL,NULL), + (150,79,1,'jacobs.beula34@notmail.biz',0,0,0,0,NULL,NULL,NULL,NULL), + (151,49,1,'jacobs.beula@fakemail.info',1,0,0,0,NULL,NULL,NULL,NULL), + (152,137,1,'wilsonj2@fakemail.biz',1,0,0,0,NULL,NULL,NULL,NULL), + (153,173,1,'wilson.scott@airmail.net',1,0,0,0,NULL,NULL,NULL,NULL), + (154,173,1,'wilson.scott@sample.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), + (155,69,1,'mmcreynolds@spamalot.net',1,0,0,0,NULL,NULL,NULL,NULL), + (156,75,1,'allanm@lol.info',1,0,0,0,NULL,NULL,NULL,NULL), + (157,75,1,'mcreynoldsa@fishmail.co.in',0,0,0,0,NULL,NULL,NULL,NULL), + (158,38,1,'elizabethb36@airmail.co.in',1,0,0,0,NULL,NULL,NULL,NULL), + (159,38,1,'blackwelle@lol.co.uk',0,0,0,0,NULL,NULL,NULL,NULL), + (160,176,1,'blackwell.k.angelika11@lol.co.uk',1,0,0,0,NULL,NULL,NULL,NULL), + (161,176,1,'blackwell.angelika@spamalot.biz',0,0,0,0,NULL,NULL,NULL,NULL), + (162,145,1,'samuels.jacob13@notmail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (163,145,1,'jsamuels68@sample.org',0,0,0,0,NULL,NULL,NULL,NULL), + (164,191,1,'hsamuels61@mymail.org',1,0,0,0,NULL,NULL,NULL,NULL), + (165,41,1,'samuels.s.rolando81@lol.org',1,0,0,0,NULL,NULL,NULL,NULL), + (166,25,1,'mdimitrov24@notmail.net',1,0,0,0,NULL,NULL,NULL,NULL), + (167,25,1,'merriedimitrov@spamalot.co.nz',0,0,0,0,NULL,NULL,NULL,NULL), + (168,28,1,'mariacruz-dimitrov48@fakemail.co.pl',1,0,0,0,NULL,NULL,NULL,NULL), + (169,28,1,'mariac75@testmail.org',0,0,0,0,NULL,NULL,NULL,NULL), + (170,31,3,'contact@bfmusicassociation.org',1,0,0,0,NULL,NULL,NULL,NULL), + (171,194,2,'lee.jackson@bfmusicassociation.org',1,0,0,0,NULL,NULL,NULL,NULL), + (172,150,3,'info@vnliteracysolutions.org',1,0,0,0,NULL,NULL,NULL,NULL), + (173,79,2,'bjacobs68@vnliteracysolutions.org',0,0,0,0,NULL,NULL,NULL,NULL), + (174,133,3,'info@texasculturealliance.org',1,0,0,0,NULL,NULL,NULL,NULL), + (175,104,2,'rolandoblackwell@texasculturealliance.org',0,0,0,0,NULL,NULL,NULL,NULL), + (176,168,3,'info@globalagriculture.org',1,0,0,0,NULL,NULL,NULL,NULL), + (177,174,3,'info@maplehealthfellowship.org',1,0,0,0,NULL,NULL,NULL,NULL), + (178,187,2,'jones-terrell.carlos17@maplehealthfellowship.org',1,0,0,0,NULL,NULL,NULL,NULL), + (179,190,3,'feedback@floridatechnology.org',1,0,0,0,NULL,NULL,NULL,NULL), + (180,122,2,'allanjameson68@floridatechnology.org',1,0,0,0,NULL,NULL,NULL,NULL), + (181,74,3,'info@longvilleactioncenter.org',1,0,0,0,NULL,NULL,NULL,NULL), + (182,159,2,'erikyadav@longvilleactioncenter.org',0,0,0,0,NULL,NULL,NULL,NULL), + (183,89,3,'service@greenaction.org',1,0,0,0,NULL,NULL,NULL,NULL), + (184,171,3,'sales@jacksonpeace.org',1,0,0,0,NULL,NULL,NULL,NULL), + (185,169,2,'daz.h.santina57@jacksonpeace.org',1,0,0,0,NULL,NULL,NULL,NULL), + (186,121,3,'info@californiacollective.org',1,0,0,0,NULL,NULL,NULL,NULL), + (187,58,2,'juliannz19@californiacollective.org',0,0,0,0,NULL,NULL,NULL,NULL), + (188,50,3,'info@collegeadvocacy.org',1,0,0,0,NULL,NULL,NULL,NULL), + (189,112,3,'feedback@jamaicaarts.org',1,0,0,0,NULL,NULL,NULL,NULL), + (190,136,2,'lee.russell28@jamaicaarts.org',1,0,0,0,NULL,NULL,NULL,NULL), + (191,53,3,'info@communityeducationpartnership.org',1,0,0,0,NULL,NULL,NULL,NULL), + (192,180,2,'robertson.lawerence31@communityeducationpartnership.org',0,0,0,0,NULL,NULL,NULL,NULL), + (193,111,3,'info@statesactionsystems.org',1,0,0,0,NULL,NULL,NULL,NULL), + (194,45,2,'bterrell@statesactionsystems.org',0,0,0,0,NULL,NULL,NULL,NULL), + (195,17,3,'contact@lancastersustainability.org',1,0,0,0,NULL,NULL,NULL,NULL), + (196,57,2,'chowski.maria@lancastersustainability.org',0,0,0,0,NULL,NULL,NULL,NULL), + (197,51,3,'feedback@montierpeace.org',1,0,0,0,NULL,NULL,NULL,NULL), + (198,75,2,'allanmcreynolds@montierpeace.org',0,0,0,0,NULL,NULL,NULL,NULL), + (199,202,1,'jenny@example.com',1,0,0,0,NULL,NULL,NULL,NULL), + (200,NULL,1,'development@example.org',0,0,0,0,NULL,NULL,NULL,NULL), + (201,NULL,1,'tournaments@example.org',0,0,0,0,NULL,NULL,NULL,NULL), + (202,NULL,1,'celebration@example.org',0,0,0,0,NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `civicrm_email` ENABLE KEYS */; UNLOCK TABLES; @@ -3303,11 +3310,11 @@ INSERT INTO `civicrm_entity_financial_trxn` (`id`, `entity_table`, `entity_id`, (64,'civicrm_financial_item',32,32,100.00), (65,'civicrm_contribution',34,33,100.00), (66,'civicrm_financial_item',33,33,100.00), - (67,'civicrm_contribution',36,34,100.00), + (67,'civicrm_contribution',38,34,100.00), (68,'civicrm_financial_item',34,34,100.00), - (69,'civicrm_contribution',38,35,100.00), + (69,'civicrm_contribution',40,35,100.00), (70,'civicrm_financial_item',35,35,100.00), - (71,'civicrm_contribution',40,36,100.00), + (71,'civicrm_contribution',41,36,100.00), (72,'civicrm_financial_item',36,36,100.00), (73,'civicrm_contribution',44,37,100.00), (74,'civicrm_financial_item',37,37,100.00), @@ -3323,31 +3330,31 @@ INSERT INTO `civicrm_entity_financial_trxn` (`id`, `entity_table`, `entity_id`, (84,'civicrm_financial_item',42,42,100.00), (85,'civicrm_contribution',54,43,100.00), (86,'civicrm_financial_item',43,43,100.00), - (87,'civicrm_contribution',58,44,100.00), + (87,'civicrm_contribution',56,44,100.00), (88,'civicrm_financial_item',44,44,100.00), - (89,'civicrm_contribution',60,45,100.00), + (89,'civicrm_contribution',58,45,100.00), (90,'civicrm_financial_item',45,45,100.00), - (91,'civicrm_contribution',33,46,50.00), - (92,'civicrm_financial_item',46,46,50.00), - (93,'civicrm_contribution',35,47,50.00), + (91,'civicrm_contribution',60,46,100.00), + (92,'civicrm_financial_item',46,46,100.00), + (93,'civicrm_contribution',33,47,50.00), (94,'civicrm_financial_item',47,47,50.00), - (95,'civicrm_contribution',37,48,50.00), + (95,'civicrm_contribution',35,48,50.00), (96,'civicrm_financial_item',48,48,50.00), - (97,'civicrm_contribution',39,49,50.00), + (97,'civicrm_contribution',36,49,50.00), (98,'civicrm_financial_item',49,49,50.00), - (99,'civicrm_contribution',41,50,50.00), + (99,'civicrm_contribution',37,50,50.00), (100,'civicrm_financial_item',50,50,50.00), - (101,'civicrm_contribution',43,51,50.00), + (101,'civicrm_contribution',39,51,50.00), (102,'civicrm_financial_item',51,51,50.00), - (103,'civicrm_contribution',45,52,50.00), + (103,'civicrm_contribution',43,52,50.00), (104,'civicrm_financial_item',52,52,50.00), - (105,'civicrm_contribution',47,53,50.00), + (105,'civicrm_contribution',45,53,50.00), (106,'civicrm_financial_item',53,53,50.00), - (107,'civicrm_contribution',49,54,50.00), + (107,'civicrm_contribution',47,54,50.00), (108,'civicrm_financial_item',54,54,50.00), - (109,'civicrm_contribution',55,55,50.00), + (109,'civicrm_contribution',49,55,50.00), (110,'civicrm_financial_item',55,55,50.00), - (111,'civicrm_contribution',56,56,50.00), + (111,'civicrm_contribution',55,56,50.00), (112,'civicrm_financial_item',56,56,50.00), (113,'civicrm_contribution',57,57,50.00), (114,'civicrm_financial_item',57,57,50.00), @@ -3359,105 +3366,105 @@ INSERT INTO `civicrm_entity_financial_trxn` (`id`, `entity_table`, `entity_id`, (120,'civicrm_financial_item',60,60,1200.00), (121,'civicrm_contribution',53,61,1200.00), (122,'civicrm_financial_item',61,61,1200.00), - (123,'civicrm_contribution',64,62,50.00), + (123,'civicrm_contribution',83,62,50.00), (124,'civicrm_financial_item',62,62,50.00), - (125,'civicrm_contribution',67,63,50.00), + (125,'civicrm_contribution',90,63,50.00), (126,'civicrm_financial_item',63,63,50.00), - (127,'civicrm_contribution',70,64,50.00), + (127,'civicrm_contribution',102,64,50.00), (128,'civicrm_financial_item',64,64,50.00), - (129,'civicrm_contribution',73,65,50.00), + (129,'civicrm_contribution',70,65,50.00), (130,'civicrm_financial_item',65,65,50.00), - (131,'civicrm_contribution',76,66,50.00), + (131,'civicrm_contribution',101,66,50.00), (132,'civicrm_financial_item',66,66,50.00), - (133,'civicrm_contribution',79,67,50.00), + (133,'civicrm_contribution',89,67,50.00), (134,'civicrm_financial_item',67,67,50.00), - (135,'civicrm_contribution',82,68,50.00), + (135,'civicrm_contribution',78,68,50.00), (136,'civicrm_financial_item',68,68,50.00), - (137,'civicrm_contribution',85,69,50.00), + (137,'civicrm_contribution',82,69,50.00), (138,'civicrm_financial_item',69,69,50.00), - (139,'civicrm_contribution',89,70,50.00), + (139,'civicrm_contribution',104,70,50.00), (140,'civicrm_financial_item',70,70,50.00), - (141,'civicrm_contribution',92,71,50.00), + (141,'civicrm_contribution',85,71,50.00), (142,'civicrm_financial_item',71,71,50.00), - (143,'civicrm_contribution',95,72,50.00), + (143,'civicrm_contribution',84,72,50.00), (144,'civicrm_financial_item',72,72,50.00), - (145,'civicrm_contribution',98,73,50.00), + (145,'civicrm_contribution',111,73,50.00), (146,'civicrm_financial_item',73,73,50.00), - (147,'civicrm_contribution',101,74,50.00), + (147,'civicrm_contribution',92,74,50.00), (148,'civicrm_financial_item',74,74,50.00), - (149,'civicrm_contribution',104,75,50.00), + (149,'civicrm_contribution',86,75,50.00), (150,'civicrm_financial_item',75,75,50.00), - (151,'civicrm_contribution',107,76,50.00), + (151,'civicrm_contribution',67,76,50.00), (152,'civicrm_financial_item',76,76,50.00), - (153,'civicrm_contribution',110,77,50.00), + (153,'civicrm_contribution',107,77,50.00), (154,'civicrm_financial_item',77,77,50.00), - (155,'civicrm_contribution',65,78,800.00), + (155,'civicrm_contribution',72,78,800.00), (156,'civicrm_financial_item',78,78,800.00), - (157,'civicrm_contribution',68,79,800.00), + (157,'civicrm_contribution',71,79,800.00), (158,'civicrm_financial_item',79,79,800.00), - (159,'civicrm_contribution',71,80,800.00), + (159,'civicrm_contribution',97,80,800.00), (160,'civicrm_financial_item',80,80,800.00), - (161,'civicrm_contribution',74,81,800.00), + (161,'civicrm_contribution',106,81,800.00), (162,'civicrm_financial_item',81,81,800.00), - (163,'civicrm_contribution',77,82,800.00), + (163,'civicrm_contribution',75,82,800.00), (164,'civicrm_financial_item',82,82,800.00), - (165,'civicrm_contribution',80,83,800.00), + (165,'civicrm_contribution',63,83,800.00), (166,'civicrm_financial_item',83,83,800.00), - (167,'civicrm_contribution',83,84,800.00), + (167,'civicrm_contribution',76,84,800.00), (168,'civicrm_financial_item',84,84,800.00), - (169,'civicrm_contribution',86,85,800.00), + (169,'civicrm_contribution',96,85,800.00), (170,'civicrm_financial_item',85,85,800.00), - (171,'civicrm_contribution',87,86,800.00), + (171,'civicrm_contribution',100,86,800.00), (172,'civicrm_financial_item',86,86,800.00), - (173,'civicrm_contribution',90,87,800.00), + (173,'civicrm_contribution',77,87,800.00), (174,'civicrm_financial_item',87,87,800.00), - (175,'civicrm_contribution',93,88,800.00), + (175,'civicrm_contribution',73,88,800.00), (176,'civicrm_financial_item',88,88,800.00), - (177,'civicrm_contribution',96,89,800.00), + (177,'civicrm_contribution',95,89,800.00), (178,'civicrm_financial_item',89,89,800.00), - (179,'civicrm_contribution',99,90,800.00), + (179,'civicrm_contribution',91,90,800.00), (180,'civicrm_financial_item',90,90,800.00), - (181,'civicrm_contribution',102,91,800.00), + (181,'civicrm_contribution',108,91,800.00), (182,'civicrm_financial_item',91,91,800.00), (183,'civicrm_contribution',105,92,800.00), (184,'civicrm_financial_item',92,92,800.00), - (185,'civicrm_contribution',108,93,800.00), + (185,'civicrm_contribution',110,93,800.00), (186,'civicrm_financial_item',93,93,800.00), - (187,'civicrm_contribution',111,94,800.00), + (187,'civicrm_contribution',80,94,800.00), (188,'civicrm_financial_item',94,94,800.00), - (189,'civicrm_contribution',112,95,800.00), + (189,'civicrm_contribution',68,95,800.00), (190,'civicrm_financial_item',95,95,800.00), - (191,'civicrm_contribution',63,96,50.00), + (191,'civicrm_contribution',109,96,50.00), (192,'civicrm_financial_item',96,96,50.00), - (193,'civicrm_contribution',66,97,50.00), + (193,'civicrm_contribution',88,97,50.00), (194,'civicrm_financial_item',97,97,50.00), - (195,'civicrm_contribution',69,98,50.00), + (195,'civicrm_contribution',74,98,50.00), (196,'civicrm_financial_item',98,98,50.00), - (197,'civicrm_contribution',72,99,50.00), + (197,'civicrm_contribution',93,99,50.00), (198,'civicrm_financial_item',99,99,50.00), - (199,'civicrm_contribution',75,100,50.00), + (199,'civicrm_contribution',66,100,50.00), (200,'civicrm_financial_item',100,100,50.00), - (201,'civicrm_contribution',78,101,50.00), + (201,'civicrm_contribution',81,101,50.00), (202,'civicrm_financial_item',101,101,50.00), - (203,'civicrm_contribution',81,102,50.00), + (203,'civicrm_contribution',87,102,50.00), (204,'civicrm_financial_item',102,102,50.00), - (205,'civicrm_contribution',84,103,50.00), + (205,'civicrm_contribution',94,103,50.00), (206,'civicrm_financial_item',103,103,50.00), - (207,'civicrm_contribution',88,104,50.00), + (207,'civicrm_contribution',98,104,50.00), (208,'civicrm_financial_item',104,104,50.00), - (209,'civicrm_contribution',91,105,50.00), + (209,'civicrm_contribution',103,105,50.00), (210,'civicrm_financial_item',105,105,50.00), - (211,'civicrm_contribution',94,106,50.00), + (211,'civicrm_contribution',79,106,50.00), (212,'civicrm_financial_item',106,106,50.00), - (213,'civicrm_contribution',97,107,50.00), + (213,'civicrm_contribution',65,107,50.00), (214,'civicrm_financial_item',107,107,50.00), - (215,'civicrm_contribution',100,108,50.00), + (215,'civicrm_contribution',64,108,50.00), (216,'civicrm_financial_item',108,108,50.00), - (217,'civicrm_contribution',103,109,50.00), + (217,'civicrm_contribution',112,109,50.00), (218,'civicrm_financial_item',109,109,50.00), - (219,'civicrm_contribution',106,110,50.00), + (219,'civicrm_contribution',99,110,50.00), (220,'civicrm_financial_item',110,110,50.00), - (221,'civicrm_contribution',109,111,50.00), + (221,'civicrm_contribution',69,111,50.00), (222,'civicrm_financial_item',111,111,50.00); /*!40000 ALTER TABLE `civicrm_entity_financial_trxn` ENABLE KEYS */; UNLOCK TABLES; @@ -3469,115 +3476,121 @@ UNLOCK TABLES; LOCK TABLES `civicrm_entity_tag` WRITE; /*!40000 ALTER TABLE `civicrm_entity_tag` DISABLE KEYS */; INSERT INTO `civicrm_entity_tag` (`id`, `entity_table`, `entity_id`, `tag_id`) VALUES - (107,'civicrm_contact',2,4), - (95,'civicrm_contact',7,5), - (76,'civicrm_contact',8,4), - (34,'civicrm_contact',11,5), - (66,'civicrm_contact',13,4), - (84,'civicrm_contact',16,4), - (74,'civicrm_contact',18,4), - (75,'civicrm_contact',18,5), - (101,'civicrm_contact',19,5), - (36,'civicrm_contact',22,5), - (30,'civicrm_contact',26,4), - (25,'civicrm_contact',28,4), - (70,'civicrm_contact',30,4), - (71,'civicrm_contact',30,5), - (91,'civicrm_contact',31,5), - (12,'civicrm_contact',34,4), - (80,'civicrm_contact',35,5), - (17,'civicrm_contact',37,4), - (63,'civicrm_contact',39,4), - (64,'civicrm_contact',39,5), - (2,'civicrm_contact',43,1), - (54,'civicrm_contact',44,4), - (97,'civicrm_contact',45,4), - (98,'civicrm_contact',45,5), - (102,'civicrm_contact',46,5), - (1,'civicrm_contact',48,2), - (6,'civicrm_contact',49,3), - (72,'civicrm_contact',50,5), - (10,'civicrm_contact',51,3), - (11,'civicrm_contact',55,5), - (67,'civicrm_contact',58,5), - (33,'civicrm_contact',59,4), - (9,'civicrm_contact',61,2), - (59,'civicrm_contact',62,5), - (26,'civicrm_contact',66,4), - (27,'civicrm_contact',66,5), - (46,'civicrm_contact',69,4), - (47,'civicrm_contact',69,5), - (104,'civicrm_contact',74,4), - (103,'civicrm_contact',76,4), - (51,'civicrm_contact',78,4), - (52,'civicrm_contact',78,5), - (20,'civicrm_contact',79,4), - (77,'civicrm_contact',80,5), - (43,'civicrm_contact',83,4), - (55,'civicrm_contact',84,4), - (56,'civicrm_contact',84,5), - (93,'civicrm_contact',86,4), - (90,'civicrm_contact',88,5), - (109,'civicrm_contact',89,4), - (5,'civicrm_contact',91,3), - (96,'civicrm_contact',94,5), - (87,'civicrm_contact',95,5), - (18,'civicrm_contact',98,4), - (4,'civicrm_contact',101,1), - (53,'civicrm_contact',103,5), - (108,'civicrm_contact',110,4), - (37,'civicrm_contact',112,5), - (61,'civicrm_contact',114,4), - (62,'civicrm_contact',114,5), - (57,'civicrm_contact',115,4), - (92,'civicrm_contact',116,5), - (23,'civicrm_contact',117,4), - (24,'civicrm_contact',117,5), - (13,'civicrm_contact',123,4), - (14,'civicrm_contact',123,5), - (88,'civicrm_contact',125,4), - (7,'civicrm_contact',129,2), - (100,'civicrm_contact',133,4), - (40,'civicrm_contact',136,5), - (78,'civicrm_contact',137,4), - (73,'civicrm_contact',140,5), - (21,'civicrm_contact',145,4), - (16,'civicrm_contact',146,4), - (81,'civicrm_contact',147,4), - (82,'civicrm_contact',147,5), - (85,'civicrm_contact',150,4), - (86,'civicrm_contact',150,5), - (69,'civicrm_contact',151,5), - (68,'civicrm_contact',154,4), - (49,'civicrm_contact',159,4), - (50,'civicrm_contact',159,5), - (19,'civicrm_contact',160,4), - (28,'civicrm_contact',162,4), - (29,'civicrm_contact',162,5), - (79,'civicrm_contact',163,4), - (38,'civicrm_contact',165,4), - (39,'civicrm_contact',165,5), - (60,'civicrm_contact',166,4), - (48,'civicrm_contact',167,4), - (3,'civicrm_contact',169,1), - (94,'civicrm_contact',170,4), - (89,'civicrm_contact',173,4), - (44,'civicrm_contact',174,4), - (45,'civicrm_contact',174,5), - (22,'civicrm_contact',175,5), - (99,'civicrm_contact',176,4), - (15,'civicrm_contact',178,4), - (106,'civicrm_contact',184,4), - (105,'civicrm_contact',185,5), - (41,'civicrm_contact',186,4), - (42,'civicrm_contact',186,5), - (65,'civicrm_contact',190,4), - (83,'civicrm_contact',191,4), - (31,'civicrm_contact',192,4), - (32,'civicrm_contact',192,5), - (8,'civicrm_contact',193,3), - (58,'civicrm_contact',196,4), - (35,'civicrm_contact',200,5); + (43,'civicrm_contact',2,5), + (96,'civicrm_contact',8,5), + (69,'civicrm_contact',10,5), + (57,'civicrm_contact',12,4), + (58,'civicrm_contact',12,5), + (113,'civicrm_contact',13,5), + (9,'civicrm_contact',17,1), + (67,'civicrm_contact',18,4), + (68,'civicrm_contact',18,5), + (8,'civicrm_contact',19,1), + (32,'civicrm_contact',20,4), + (74,'civicrm_contact',23,4), + (11,'civicrm_contact',26,4), + (115,'civicrm_contact',28,4), + (1,'civicrm_contact',31,1), + (61,'civicrm_contact',32,5), + (22,'civicrm_contact',33,4), + (23,'civicrm_contact',33,5), + (101,'civicrm_contact',34,4), + (63,'civicrm_contact',37,5), + (78,'civicrm_contact',40,4), + (109,'civicrm_contact',42,4), + (110,'civicrm_contact',42,5), + (38,'civicrm_contact',43,5), + (92,'civicrm_contact',45,4), + (93,'civicrm_contact',45,5), + (40,'civicrm_contact',47,5), + (44,'civicrm_contact',54,4), + (45,'civicrm_contact',54,5), + (34,'civicrm_contact',55,5), + (72,'civicrm_contact',57,4), + (73,'civicrm_contact',57,5), + (82,'civicrm_contact',58,4), + (85,'civicrm_contact',60,4), + (86,'civicrm_contact',60,5), + (16,'civicrm_contact',61,4), + (70,'civicrm_contact',63,4), + (71,'civicrm_contact',63,5), + (87,'civicrm_contact',65,5), + (65,'civicrm_contact',66,4), + (66,'civicrm_contact',66,5), + (100,'civicrm_contact',67,5), + (106,'civicrm_contact',69,4), + (107,'civicrm_contact',69,5), + (114,'civicrm_contact',71,4), + (24,'civicrm_contact',72,4), + (25,'civicrm_contact',72,5), + (102,'civicrm_contact',77,5), + (103,'civicrm_contact',79,5), + (91,'civicrm_contact',80,5), + (90,'civicrm_contact',82,4), + (21,'civicrm_contact',83,5), + (83,'civicrm_contact',84,4), + (84,'civicrm_contact',84,5), + (79,'civicrm_contact',85,4), + (62,'civicrm_contact',86,5), + (5,'civicrm_contact',89,3), + (75,'civicrm_contact',93,4), + (76,'civicrm_contact',93,5), + (33,'civicrm_contact',94,4), + (17,'civicrm_contact',98,5), + (88,'civicrm_contact',99,4), + (89,'civicrm_contact',99,5), + (81,'civicrm_contact',103,4), + (31,'civicrm_contact',106,5), + (7,'civicrm_contact',112,2), + (28,'civicrm_contact',114,4), + (29,'civicrm_contact',114,5), + (4,'civicrm_contact',118,3), + (39,'civicrm_contact',119,5), + (36,'civicrm_contact',120,4), + (37,'civicrm_contact',120,5), + (6,'civicrm_contact',121,3), + (2,'civicrm_contact',133,1), + (108,'civicrm_contact',134,5), + (47,'civicrm_contact',138,4), + (48,'civicrm_contact',138,5), + (35,'civicrm_contact',142,4), + (51,'civicrm_contact',143,5), + (97,'civicrm_contact',144,4), + (98,'civicrm_contact',144,5), + (112,'civicrm_contact',145,5), + (111,'civicrm_contact',151,4), + (14,'civicrm_contact',153,4), + (15,'civicrm_contact',153,5), + (80,'civicrm_contact',154,5), + (95,'civicrm_contact',157,4), + (30,'civicrm_contact',160,5), + (64,'civicrm_contact',163,4), + (46,'civicrm_contact',164,4), + (10,'civicrm_contact',166,1), + (54,'civicrm_contact',167,5), + (27,'civicrm_contact',169,5), + (104,'civicrm_contact',172,4), + (105,'civicrm_contact',173,4), + (3,'civicrm_contact',174,3), + (49,'civicrm_contact',177,4), + (50,'civicrm_contact',177,5), + (99,'civicrm_contact',178,4), + (20,'civicrm_contact',179,5), + (18,'civicrm_contact',180,4), + (19,'civicrm_contact',180,5), + (53,'civicrm_contact',181,5), + (26,'civicrm_contact',185,4), + (94,'civicrm_contact',187,4), + (42,'civicrm_contact',188,5), + (55,'civicrm_contact',189,4), + (56,'civicrm_contact',189,5), + (59,'civicrm_contact',192,4), + (60,'civicrm_contact',192,5), + (77,'civicrm_contact',194,5), + (52,'civicrm_contact',196,5), + (41,'civicrm_contact',199,4), + (12,'civicrm_contact',201,4), + (13,'civicrm_contact',201,5); /*!40000 ALTER TABLE `civicrm_entity_tag` ENABLE KEYS */; UNLOCK TABLES; @@ -3588,9 +3601,9 @@ UNLOCK TABLES; LOCK TABLES `civicrm_event` WRITE; /*!40000 ALTER TABLE `civicrm_event` DISABLE KEYS */; INSERT INTO `civicrm_event` (`id`, `title`, `summary`, `description`, `event_type_id`, `participant_listing_id`, `is_public`, `start_date`, `end_date`, `is_online_registration`, `registration_link_text`, `registration_start_date`, `registration_end_date`, `max_participants`, `event_full_text`, `is_monetary`, `financial_type_id`, `payment_processor`, `is_map`, `is_active`, `fee_label`, `is_show_location`, `loc_block_id`, `default_role_id`, `intro_text`, `footer_text`, `confirm_title`, `confirm_text`, `confirm_footer_text`, `is_email_confirm`, `confirm_email_text`, `confirm_from_name`, `confirm_from_email`, `cc_confirm`, `bcc_confirm`, `default_fee_id`, `default_discount_fee_id`, `thankyou_title`, `thankyou_text`, `thankyou_footer_text`, `is_pay_later`, `pay_later_text`, `pay_later_receipt`, `is_partial_payment`, `initial_amount_label`, `initial_amount_help_text`, `min_initial_amount`, `is_multiple_registrations`, `max_additional_participants`, `allow_same_participant_emails`, `has_waitlist`, `requires_approval`, `expiration_time`, `allow_selfcancelxfer`, `selfcancelxfer_time`, `waitlist_text`, `approval_req_text`, `is_template`, `template_title`, `created_id`, `created_date`, `currency`, `campaign_id`, `is_share`, `is_confirm_enabled`, `parent_event_id`, `slot_label_id`, `dedupe_rule_group_id`, `is_billing_required`) VALUES - (1,'Fall Fundraiser Dinner','Kick up your heels at our Fall Fundraiser Dinner/Dance at Glen Echo Park! Come by yourself or bring a partner, friend or the entire family!','This event benefits our teen programs. Admission includes a full 3 course meal and wine or soft drinks. Grab your dancing shoes, bring the kids and come join the party!',3,1,1,'2024-03-07 17:00:00','2024-03-09 17:00:00',1,'Register Now',NULL,NULL,100,'Sorry! The Fall Fundraiser Dinner is full. Please call Jane at 204 222-1000 ext 33 if you want to be added to the waiting list.',1,4,NULL,1,1,'Dinner Contribution',1,1,1,'Fill in the information below to join as at this wonderful dinner event.',NULL,'Confirm Your Registration Information','Review the information below carefully.',NULL,1,'Contact the Development Department if you need to make any changes to your registration.','Fundraising Dept.','development@example.org',NULL,NULL,NULL,NULL,'Thanks for Registering!','<p>Thank you for your support. Your contribution will help us build even better tools.</p><p>Please tell your friends and colleagues about this wonderful event.</p>','<p><a href=https://civicrm.org>Back to CiviCRM Home Page</a></p>',1,'I will send payment by check','Send a check payable to Our Organization within 3 business days to hold your reservation. Checks should be sent to: 100 Main St., Suite 3, San Francisco CA 94110',0,NULL,NULL,NULL,1,0,0,0,0,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,'USD',NULL,1,1,NULL,NULL,NULL,0), - (2,'Summer Solstice Festival Day Concert','Festival Day is coming! Join us and help support your parks.','We will gather at noon, learn a song all together, and then join in a joyous procession to the pavilion. We will be one of many groups performing at this wonderful concert which benefits our city parks.',5,1,1,'2023-09-06 12:00:00','2023-09-06 17:00:00',1,'Register Now',NULL,NULL,50,'We have all the singers we can handle. Come to the pavilion anyway and join in from the audience.',1,2,NULL,0,1,'Festival Fee',1,2,1,'Complete the form below and click Continue to register online for the festival. Or you can register by calling us at 204 222-1000 ext 22.','','Confirm Your Registration Information','','',1,'This email confirms your registration. If you have questions or need to change your registration - please do not hesitate to call us.','Event Dept.','events@example.org','',NULL,NULL,NULL,'Thanks for Your Joining In!','<p>Thank you for your support. Your participation will help build new parks.</p><p>Please tell your friends and colleagues about the concert.</p>','<p><a href=https://civicrm.org>Back to CiviCRM Home Page</a></p>',0,NULL,NULL,0,NULL,NULL,NULL,1,0,0,0,0,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,'USD',NULL,1,1,NULL,NULL,NULL,0), - (3,'Rain-forest Cup Youth Soccer Tournament','Sign up your team to participate in this fun tournament which benefits several Rain-forest protection groups in the Amazon basin.','This is a FYSA Sanctioned Tournament, which is open to all USSF/FIFA affiliated organizations for boys and girls in age groups: U9-U10 (6v6), U11-U12 (8v8), and U13-U17 (Full Sided).',3,1,1,'2024-04-07 07:00:00','2024-04-10 17:00:00',1,'Register Now',NULL,NULL,500,'Sorry! All available team slots for this tournament have been filled. Contact Jill Futbol for information about the waiting list and next years event.',1,4,NULL,0,1,'Tournament Fees',1,3,1,'Complete the form below to register your team for this year\'s tournament.','<em>A Soccer Youth Event</em>','Review and Confirm Your Registration Information','','<em>A Soccer Youth Event</em>',1,'Contact our Tournament Director for eligibility details.','Tournament Director','tournament@example.org','',NULL,NULL,NULL,'Thanks for Your Support!','<p>Thank you for your support. Your participation will help save thousands of acres of rainforest.</p>','<p><a href=https://civicrm.org>Back to CiviCRM Home Page</a></p>',0,NULL,NULL,0,NULL,NULL,NULL,0,0,0,0,0,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,'USD',NULL,1,1,NULL,NULL,NULL,0), + (1,'Fall Fundraiser Dinner','Kick up your heels at our Fall Fundraiser Dinner/Dance at Glen Echo Park! Come by yourself or bring a partner, friend or the entire family!','This event benefits our teen programs. Admission includes a full 3 course meal and wine or soft drinks. Grab your dancing shoes, bring the kids and come join the party!',3,1,1,'2024-04-07 17:00:00','2024-04-09 17:00:00',1,'Register Now',NULL,NULL,100,'Sorry! The Fall Fundraiser Dinner is full. Please call Jane at 204 222-1000 ext 33 if you want to be added to the waiting list.',1,4,NULL,1,1,'Dinner Contribution',1,1,1,'Fill in the information below to join as at this wonderful dinner event.',NULL,'Confirm Your Registration Information','Review the information below carefully.',NULL,1,'Contact the Development Department if you need to make any changes to your registration.','Fundraising Dept.','development@example.org',NULL,NULL,NULL,NULL,'Thanks for Registering!','<p>Thank you for your support. Your contribution will help us build even better tools.</p><p>Please tell your friends and colleagues about this wonderful event.</p>','<p><a href=https://civicrm.org>Back to CiviCRM Home Page</a></p>',1,'I will send payment by check','Send a check payable to Our Organization within 3 business days to hold your reservation. Checks should be sent to: 100 Main St., Suite 3, San Francisco CA 94110',0,NULL,NULL,NULL,1,0,0,0,0,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,'USD',NULL,1,1,NULL,NULL,NULL,0), + (2,'Summer Solstice Festival Day Concert','Festival Day is coming! Join us and help support your parks.','We will gather at noon, learn a song all together, and then join in a joyous procession to the pavilion. We will be one of many groups performing at this wonderful concert which benefits our city parks.',5,1,1,'2023-10-06 12:00:00','2023-10-06 17:00:00',1,'Register Now',NULL,NULL,50,'We have all the singers we can handle. Come to the pavilion anyway and join in from the audience.',1,2,NULL,0,1,'Festival Fee',1,2,1,'Complete the form below and click Continue to register online for the festival. Or you can register by calling us at 204 222-1000 ext 22.','','Confirm Your Registration Information','','',1,'This email confirms your registration. If you have questions or need to change your registration - please do not hesitate to call us.','Event Dept.','events@example.org','',NULL,NULL,NULL,'Thanks for Your Joining In!','<p>Thank you for your support. Your participation will help build new parks.</p><p>Please tell your friends and colleagues about the concert.</p>','<p><a href=https://civicrm.org>Back to CiviCRM Home Page</a></p>',0,NULL,NULL,0,NULL,NULL,NULL,1,0,0,0,0,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,'USD',NULL,1,1,NULL,NULL,NULL,0), + (3,'Rain-forest Cup Youth Soccer Tournament','Sign up your team to participate in this fun tournament which benefits several Rain-forest protection groups in the Amazon basin.','This is a FYSA Sanctioned Tournament, which is open to all USSF/FIFA affiliated organizations for boys and girls in age groups: U9-U10 (6v6), U11-U12 (8v8), and U13-U17 (Full Sided).',3,1,1,'2024-05-07 07:00:00','2024-05-10 17:00:00',1,'Register Now',NULL,NULL,500,'Sorry! All available team slots for this tournament have been filled. Contact Jill Futbol for information about the waiting list and next years event.',1,4,NULL,0,1,'Tournament Fees',1,3,1,'Complete the form below to register your team for this year\'s tournament.','<em>A Soccer Youth Event</em>','Review and Confirm Your Registration Information','','<em>A Soccer Youth Event</em>',1,'Contact our Tournament Director for eligibility details.','Tournament Director','tournament@example.org','',NULL,NULL,NULL,'Thanks for Your Support!','<p>Thank you for your support. Your participation will help save thousands of acres of rainforest.</p>','<p><a href=https://civicrm.org>Back to CiviCRM Home Page</a></p>',0,NULL,NULL,0,NULL,NULL,NULL,0,0,0,0,0,NULL,0,0,NULL,NULL,0,NULL,NULL,NULL,'USD',NULL,1,1,NULL,NULL,NULL,0), (4,NULL,NULL,NULL,4,1,1,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,1,NULL,1,NULL,1,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,1,0,0,0,0,NULL,0,0,NULL,NULL,1,'Free Meeting without Online Registration',NULL,NULL,'USD',NULL,1,1,NULL,NULL,NULL,0), (5,NULL,NULL,NULL,4,1,1,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,0,1,NULL,1,NULL,1,NULL,NULL,'Confirm Your Registration Information',NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Thanks for Registering!',NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,1,0,1,0,0,NULL,0,0,NULL,NULL,1,'Free Meeting with Online Registration',NULL,NULL,'USD',NULL,1,1,NULL,NULL,NULL,0), (6,NULL,NULL,NULL,1,1,1,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,1,4,NULL,0,1,'Conference Fee',1,NULL,1,NULL,NULL,'Confirm Your Registration Information',NULL,NULL,1,NULL,'Event Template Dept.','event_templates@example.org',NULL,NULL,NULL,NULL,'Thanks for Registering!',NULL,NULL,0,NULL,NULL,0,NULL,NULL,NULL,1,0,1,0,0,NULL,0,0,NULL,NULL,1,'Paid Conference with Online Registration',NULL,NULL,'USD',NULL,1,1,NULL,NULL,NULL,0); @@ -3624,18 +3637,16 @@ LOCK TABLES `civicrm_extension` WRITE; INSERT INTO `civicrm_extension` (`id`, `type`, `full_name`, `name`, `label`, `file`, `schema_version`, `is_active`) VALUES (1,'module','sequentialcreditnotes','Sequential credit notes','Sequential credit notes','sequentialcreditnotes',NULL,1), (2,'module','greenwich','Theme: Greenwich','Theme: Greenwich','greenwich',NULL,1), - (3,'module','eventcart','Event cart','Event cart','eventcart',NULL,1), - (4,'module','financialacls','Financial ACLs','Financial ACLs','financialacls',NULL,1), - (5,'module','recaptcha','reCAPTCHA','reCAPTCHA','recaptcha',NULL,1), - (6,'module','ckeditor4','CKEditor4','CKEditor4','ckeditor4',NULL,1), - (7,'module','legacycustomsearches','Custom search framework','Custom search framework','legacycustomsearches',NULL,1), - (8,'module','org.civicrm.flexmailer','FlexMailer','FlexMailer','flexmailer',NULL,1), - (9,'module','civi_contribute','CiviContribute','CiviContribute','civi_contribute',NULL,1), - (10,'module','civi_event','CiviEvent','CiviEvent','civi_event',NULL,1), - (11,'module','civi_mail','CiviMail','CiviMail','civi_mail',NULL,1), - (12,'module','civi_member','CiviMember','CiviMember','civi_member',NULL,1), - (13,'module','civi_pledge','CiviPledge','CiviPledge','civi_pledge',NULL,1), - (14,'module','civi_report','CiviReport','CiviReport','civi_report',NULL,1); + (3,'module','financialacls','Financial ACLs','Financial ACLs','financialacls',NULL,1), + (4,'module','recaptcha','reCAPTCHA','reCAPTCHA','recaptcha',NULL,1), + (5,'module','ckeditor4','CKEditor4','CKEditor4','ckeditor4',NULL,1), + (6,'module','org.civicrm.flexmailer','FlexMailer','FlexMailer','flexmailer',NULL,1), + (7,'module','civi_contribute','CiviContribute','CiviContribute','civi_contribute',NULL,1), + (8,'module','civi_event','CiviEvent','CiviEvent','civi_event',NULL,1), + (9,'module','civi_mail','CiviMail','CiviMail','civi_mail',NULL,1), + (10,'module','civi_member','CiviMember','CiviMember','civi_member',NULL,1), + (11,'module','civi_pledge','CiviPledge','CiviPledge','civi_pledge',NULL,1), + (12,'module','civi_report','CiviReport','CiviReport','civi_report',NULL,1); /*!40000 ALTER TABLE `civicrm_extension` ENABLE KEYS */; UNLOCK TABLES; @@ -3679,117 +3690,117 @@ UNLOCK TABLES; LOCK TABLES `civicrm_financial_item` WRITE; /*!40000 ALTER TABLE `civicrm_financial_item` DISABLE KEYS */; INSERT INTO `civicrm_financial_item` (`id`, `created_date`, `transaction_date`, `contact_id`, `description`, `amount`, `currency`, `financial_account_id`, `status_id`, `entity_table`, `entity_id`) VALUES - (1,'2023-09-06 22:52:20','2013-09-07 08:52:20',2,'Contribution Amount',125.00,'USD',1,1,'civicrm_line_item',1), - (2,'2023-09-06 22:52:20','2021-06-07 08:52:20',4,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',2), - (3,'2023-09-06 22:52:20','2017-08-12 19:52:20',6,'Contribution Amount',25.00,'GBP',1,1,'civicrm_line_item',3), - (4,'2023-09-06 22:52:20','2021-06-07 08:52:20',8,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',4), - (5,'2023-09-06 22:52:20','2021-06-07 08:52:20',4,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',5), - (6,'2023-09-06 22:52:20','2023-06-14 08:10:20',16,'Contribution Amount',500.00,'USD',1,1,'civicrm_line_item',6), - (7,'2023-09-06 22:52:20','2023-09-05 08:52:20',19,'Contribution Amount',1750.00,'USD',1,1,'civicrm_line_item',7), - (8,'2023-09-06 22:52:20','2023-01-13 17:03:20',82,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',8), - (9,'2023-09-06 22:52:20','2022-10-07 08:52:20',92,'Contribution Amount',10.00,'USD',1,1,'civicrm_line_item',9), - (10,'2023-09-06 22:52:20','2019-04-14 10:52:20',34,'Contribution Amount',250.00,'USD',1,1,'civicrm_line_item',10), - (11,'2023-09-06 22:52:20','2023-09-06 04:52:20',71,'Contribution Amount',500.00,'JPY',1,1,'civicrm_line_item',11), - (12,'2023-09-06 22:52:20','2022-06-06 22:19:00',43,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',12), - (13,'2023-09-06 22:52:20','2023-06-07 00:00:00',32,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',13), - (14,'2023-09-06 22:52:20','2023-07-07 00:00:00',32,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',14), - (15,'2023-09-06 22:52:20','2022-06-07 08:52:20',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',15), - (16,'2023-09-06 22:52:20','2022-07-07 08:52:20',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',16), - (17,'2023-09-06 22:52:20','2022-08-07 08:52:20',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',17), - (18,'2023-09-06 22:52:20','2022-09-07 08:52:20',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',18), - (19,'2023-09-06 22:52:20','2022-10-07 08:52:20',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',19), - (20,'2023-09-06 22:52:20','2022-11-07 08:52:20',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',20), - (21,'2023-09-06 22:52:20','2022-12-07 08:52:20',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',21), - (22,'2023-09-06 22:52:20','2023-01-07 08:52:20',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',22), - (23,'2023-09-06 22:52:20','2023-02-07 08:52:20',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',23), - (24,'2023-09-06 22:52:20','2023-03-07 08:52:20',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',24), - (25,'2023-09-06 22:52:20','2023-04-07 08:52:20',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',25), - (26,'2023-09-06 22:52:20','2023-01-07 08:52:20',99,'Contribution Amount',10.00,'CAD',1,1,'civicrm_line_item',26), - (27,'2023-09-06 22:52:20','2023-02-07 08:52:20',99,'Contribution Amount',10.00,'CAD',1,1,'civicrm_line_item',27), - (28,'2023-09-06 22:52:20','2023-03-07 08:52:20',99,'Contribution Amount',10.00,'CAD',1,1,'civicrm_line_item',28), - (29,'2023-09-06 22:52:20','2023-04-07 08:52:20',99,'Contribution Amount',10.00,'CAD',1,1,'civicrm_line_item',29), - (30,'2023-09-06 22:52:20','2023-05-07 08:52:20',99,'Contribution Amount',10.00,'CAD',1,1,'civicrm_line_item',30), - (31,'2023-09-06 22:52:20','2023-08-07 08:52:20',103,'Contribution Amount',5.00,'EUR',1,1,'civicrm_line_item',31), - (32,'2023-09-06 22:52:20','2023-09-07 08:52:20',11,'General',100.00,'USD',2,1,'civicrm_line_item',32), - (33,'2023-09-06 22:52:20','2023-09-07 08:52:20',75,'General',100.00,'USD',2,1,'civicrm_line_item',33), - (34,'2023-09-06 22:52:20','2023-09-07 08:52:20',107,'General',100.00,'USD',2,1,'civicrm_line_item',34), - (35,'2023-09-06 22:52:20','2023-09-07 08:52:20',50,'General',100.00,'USD',2,1,'civicrm_line_item',35), - (36,'2023-09-06 22:52:20','2023-09-07 08:52:20',154,'General',100.00,'USD',2,1,'civicrm_line_item',36), - (37,'2023-09-06 22:52:20','2023-09-07 08:52:20',44,'General',100.00,'USD',2,1,'civicrm_line_item',37), - (38,'2023-09-06 22:52:20','2023-09-07 08:52:20',197,'General',100.00,'USD',2,1,'civicrm_line_item',38), - (39,'2023-09-06 22:52:20','2023-09-07 08:52:20',15,'General',100.00,'USD',2,1,'civicrm_line_item',39), - (40,'2023-09-06 22:52:20','2023-09-07 08:52:20',26,'General',100.00,'USD',2,1,'civicrm_line_item',40), - (41,'2023-09-06 22:52:20','2023-09-07 08:52:20',196,'General',100.00,'USD',2,1,'civicrm_line_item',41), - (42,'2023-09-06 22:52:20','2023-09-07 08:52:20',42,'General',100.00,'USD',2,1,'civicrm_line_item',42), - (43,'2023-09-06 22:52:20','2023-09-07 08:52:20',7,'General',100.00,'USD',2,1,'civicrm_line_item',43), - (44,'2023-09-06 22:52:20','2023-09-07 08:52:20',163,'General',100.00,'USD',2,1,'civicrm_line_item',44), - (45,'2023-09-06 22:52:20','2023-09-07 08:52:20',162,'General',100.00,'USD',2,1,'civicrm_line_item',45), - (46,'2023-09-06 22:52:20','2023-09-07 08:52:20',33,'Student',50.00,'USD',2,1,'civicrm_line_item',46), - (47,'2023-09-06 22:52:20','2023-09-07 08:52:20',16,'Student',50.00,'USD',2,1,'civicrm_line_item',47), - (48,'2023-09-06 22:52:20','2023-09-07 08:52:20',141,'Student',50.00,'USD',2,1,'civicrm_line_item',48), - (49,'2023-09-06 22:52:20','2023-09-07 08:52:20',88,'Student',50.00,'USD',2,1,'civicrm_line_item',49), - (50,'2023-09-06 22:52:20','2023-09-07 08:52:20',174,'Student',50.00,'USD',2,1,'civicrm_line_item',50), - (51,'2023-09-06 22:52:20','2023-09-07 08:52:20',36,'Student',50.00,'USD',2,1,'civicrm_line_item',51), - (52,'2023-09-06 22:52:20','2023-09-07 08:52:20',37,'Student',50.00,'USD',2,1,'civicrm_line_item',52), - (53,'2023-09-06 22:52:20','2023-09-07 08:52:20',117,'Student',50.00,'USD',2,1,'civicrm_line_item',53), - (54,'2023-09-06 22:52:20','2023-09-07 08:52:20',69,'Student',50.00,'USD',2,1,'civicrm_line_item',54), - (55,'2023-09-06 22:52:20','2023-09-07 08:52:20',198,'Student',50.00,'USD',2,1,'civicrm_line_item',55), - (56,'2023-09-06 22:52:20','2023-09-07 08:52:20',186,'Student',50.00,'USD',2,1,'civicrm_line_item',56), - (57,'2023-09-06 22:52:20','2023-09-07 08:52:20',140,'Student',50.00,'USD',2,1,'civicrm_line_item',57), - (58,'2023-09-06 22:52:20','2023-09-07 08:52:20',121,'Student',50.00,'USD',2,1,'civicrm_line_item',58), - (59,'2023-09-06 22:52:20','2023-09-07 08:52:20',202,'Student',50.00,'USD',2,1,'civicrm_line_item',59), - (60,'2023-09-06 22:52:20','2023-09-07 08:52:20',8,'Lifetime',1200.00,'USD',2,1,'civicrm_line_item',60), - (61,'2023-09-06 22:52:20','2023-09-07 08:52:20',150,'Lifetime',1200.00,'USD',2,1,'civicrm_line_item',61), - (62,'2023-09-06 22:52:20','2023-09-07 08:52:20',181,'Soprano',50.00,'USD',2,1,'civicrm_line_item',97), - (63,'2023-09-06 22:52:20','2023-09-07 08:52:20',123,'Soprano',50.00,'USD',2,1,'civicrm_line_item',98), - (64,'2023-09-06 22:52:20','2023-09-07 08:52:20',137,'Soprano',50.00,'USD',2,1,'civicrm_line_item',99), - (65,'2023-09-06 22:52:20','2023-09-07 08:52:20',47,'Soprano',50.00,'USD',2,1,'civicrm_line_item',100), - (66,'2023-09-06 22:52:20','2023-09-07 08:52:20',43,'Soprano',50.00,'USD',2,1,'civicrm_line_item',101), - (67,'2023-09-06 22:52:20','2023-09-07 08:52:20',142,'Soprano',50.00,'USD',2,1,'civicrm_line_item',102), - (68,'2023-09-06 22:52:21','2023-09-07 08:52:20',91,'Soprano',50.00,'USD',2,1,'civicrm_line_item',103), - (69,'2023-09-06 22:52:21','2023-09-07 08:52:20',76,'Soprano',50.00,'USD',2,1,'civicrm_line_item',104), - (70,'2023-09-06 22:52:21','2023-09-07 08:52:20',170,'Soprano',50.00,'USD',2,1,'civicrm_line_item',105), - (71,'2023-09-06 22:52:21','2023-09-07 08:52:20',94,'Soprano',50.00,'USD',2,1,'civicrm_line_item',106), - (72,'2023-09-06 22:52:21','2023-09-07 08:52:20',127,'Soprano',50.00,'USD',2,1,'civicrm_line_item',107), - (73,'2023-09-06 22:52:21','2023-09-07 08:52:20',159,'Soprano',50.00,'USD',2,1,'civicrm_line_item',108), - (74,'2023-09-06 22:52:21','2023-09-07 08:52:20',131,'Soprano',50.00,'USD',2,1,'civicrm_line_item',109), - (75,'2023-09-06 22:52:21','2023-09-07 08:52:20',11,'Soprano',50.00,'USD',2,1,'civicrm_line_item',110), - (76,'2023-09-06 22:52:21','2023-09-07 08:52:20',199,'Soprano',50.00,'USD',2,1,'civicrm_line_item',111), - (77,'2023-09-06 22:52:21','2023-09-07 08:52:20',68,'Soprano',50.00,'USD',2,1,'civicrm_line_item',112), - (78,'2023-09-06 22:52:21','2023-09-07 08:52:20',184,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',63), - (79,'2023-09-06 22:52:21','2023-09-07 08:52:20',88,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',64), - (80,'2023-09-06 22:52:21','2023-09-07 08:52:20',56,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',65), - (81,'2023-09-06 22:52:21','2023-09-07 08:52:20',133,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',66), - (82,'2023-09-06 22:52:21','2023-09-07 08:52:20',145,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',67), - (83,'2023-09-06 22:52:21','2023-09-07 08:52:20',63,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',68), - (84,'2023-09-06 22:52:21','2023-09-07 08:52:20',132,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',69), - (85,'2023-09-06 22:52:21','2023-09-07 08:52:20',174,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',70), - (86,'2023-09-06 22:52:21','2023-09-07 08:52:20',3,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',71), - (87,'2023-09-06 22:52:21','2023-09-07 08:52:20',128,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',72), - (88,'2023-09-06 22:52:21','2023-09-07 08:52:20',186,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',73), - (89,'2023-09-06 22:52:21','2023-09-07 08:52:20',177,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',74), - (90,'2023-09-06 22:52:21','2023-09-07 08:52:20',195,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',75), - (91,'2023-09-06 22:52:21','2023-09-07 08:52:20',104,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',76), - (92,'2023-09-06 22:52:21','2023-09-07 08:52:20',115,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',77), - (93,'2023-09-06 22:52:21','2023-09-07 08:52:20',37,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',78), - (94,'2023-09-06 22:52:21','2023-09-07 08:52:20',2,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',79), - (95,'2023-09-06 22:52:21','2023-09-07 08:52:20',193,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',80), - (96,'2023-09-06 22:52:21','2023-09-07 08:52:20',102,'Single',50.00,'USD',4,1,'civicrm_line_item',81), - (97,'2023-09-06 22:52:21','2023-09-07 08:52:20',119,'Single',50.00,'USD',4,1,'civicrm_line_item',82), - (98,'2023-09-06 22:52:21','2023-09-07 08:52:20',149,'Single',50.00,'USD',4,1,'civicrm_line_item',83), - (99,'2023-09-06 22:52:21','2023-09-07 08:52:20',153,'Single',50.00,'USD',4,1,'civicrm_line_item',84), - (100,'2023-09-06 22:52:21','2023-09-07 08:52:20',29,'Single',50.00,'USD',4,1,'civicrm_line_item',85), - (101,'2023-09-06 22:52:21','2023-09-07 08:52:20',194,'Single',50.00,'USD',4,1,'civicrm_line_item',86), - (102,'2023-09-06 22:52:21','2023-09-07 08:52:20',92,'Single',50.00,'USD',4,1,'civicrm_line_item',87), - (103,'2023-09-06 22:52:21','2023-09-07 08:52:20',38,'Single',50.00,'USD',4,1,'civicrm_line_item',88), - (104,'2023-09-06 22:52:21','2023-09-07 08:52:20',167,'Single',50.00,'USD',4,1,'civicrm_line_item',89), - (105,'2023-09-06 22:52:21','2023-09-07 08:52:20',9,'Single',50.00,'USD',4,1,'civicrm_line_item',90), - (106,'2023-09-06 22:52:21','2023-09-07 08:52:20',178,'Single',50.00,'USD',4,1,'civicrm_line_item',91), - (107,'2023-09-06 22:52:21','2023-09-07 08:52:20',90,'Single',50.00,'USD',4,1,'civicrm_line_item',92), - (108,'2023-09-06 22:52:21','2023-09-07 08:52:20',151,'Single',50.00,'USD',4,1,'civicrm_line_item',93), - (109,'2023-09-06 22:52:21','2023-09-07 08:52:20',161,'Single',50.00,'USD',4,1,'civicrm_line_item',94), - (110,'2023-09-06 22:52:21','2023-09-07 08:52:20',50,'Single',50.00,'USD',4,1,'civicrm_line_item',95), - (111,'2023-09-06 22:52:21','2023-09-07 08:52:20',42,'Single',50.00,'USD',4,1,'civicrm_line_item',96); + (1,'2023-10-07 01:51:40','2013-10-07 01:51:39',2,'Contribution Amount',125.00,'USD',1,1,'civicrm_line_item',1), + (2,'2023-10-07 01:51:40','2021-07-07 01:51:39',4,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',2), + (3,'2023-10-07 01:51:40','2017-09-11 12:51:39',6,'Contribution Amount',25.00,'GBP',1,1,'civicrm_line_item',3), + (4,'2023-10-07 01:51:40','2021-07-07 01:51:39',8,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',4), + (5,'2023-10-07 01:51:40','2021-07-07 01:51:39',4,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',5), + (6,'2023-10-07 01:51:40','2023-07-14 01:09:39',16,'Contribution Amount',500.00,'USD',1,1,'civicrm_line_item',6), + (7,'2023-10-07 01:51:40','2023-10-05 01:51:39',19,'Contribution Amount',1750.00,'USD',1,1,'civicrm_line_item',7), + (8,'2023-10-07 01:51:40','2023-02-12 10:02:39',82,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',8), + (9,'2023-10-07 01:51:40','2022-11-07 01:51:39',92,'Contribution Amount',10.00,'USD',1,1,'civicrm_line_item',9), + (10,'2023-10-07 01:51:40','2019-05-15 03:51:39',34,'Contribution Amount',250.00,'USD',1,1,'civicrm_line_item',10), + (11,'2023-10-07 01:51:40','2023-10-05 21:51:39',71,'Contribution Amount',500.00,'JPY',1,1,'civicrm_line_item',11), + (12,'2023-10-07 01:51:40','2022-07-06 15:18:19',43,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',12), + (13,'2023-10-07 01:51:40','2023-07-07 00:00:00',32,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',13), + (14,'2023-10-07 01:51:40','2023-08-07 00:00:00',32,'Contribution Amount',50.00,'USD',1,1,'civicrm_line_item',14), + (15,'2023-10-07 01:51:40','2022-07-07 01:51:39',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',15), + (16,'2023-10-07 01:51:40','2022-08-07 01:51:39',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',16), + (17,'2023-10-07 01:51:40','2022-09-07 01:51:39',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',17), + (18,'2023-10-07 01:51:40','2022-10-07 01:51:39',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',18), + (19,'2023-10-07 01:51:40','2022-11-07 01:51:39',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',19), + (20,'2023-10-07 01:51:40','2022-12-07 01:51:39',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',20), + (21,'2023-10-07 01:51:40','2023-01-07 01:51:39',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',21), + (22,'2023-10-07 01:51:40','2023-02-07 01:51:39',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',22), + (23,'2023-10-07 01:51:40','2023-03-07 01:51:39',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',23), + (24,'2023-10-07 01:51:40','2023-04-07 01:51:39',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',24), + (25,'2023-10-07 01:51:40','2023-05-07 01:51:39',59,'Contribution Amount',25.00,'USD',1,1,'civicrm_line_item',25), + (26,'2023-10-07 01:51:40','2023-02-07 01:51:39',99,'Contribution Amount',10.00,'CAD',1,1,'civicrm_line_item',26), + (27,'2023-10-07 01:51:40','2023-03-07 01:51:39',99,'Contribution Amount',10.00,'CAD',1,1,'civicrm_line_item',27), + (28,'2023-10-07 01:51:40','2023-04-07 01:51:39',99,'Contribution Amount',10.00,'CAD',1,1,'civicrm_line_item',28), + (29,'2023-10-07 01:51:40','2023-05-07 01:51:39',99,'Contribution Amount',10.00,'CAD',1,1,'civicrm_line_item',29), + (30,'2023-10-07 01:51:40','2023-06-07 01:51:39',99,'Contribution Amount',10.00,'CAD',1,1,'civicrm_line_item',30), + (31,'2023-10-07 01:51:40','2023-09-07 01:51:39',103,'Contribution Amount',5.00,'EUR',1,1,'civicrm_line_item',31), + (32,'2023-10-07 01:51:40','2023-10-07 01:51:39',181,'General',100.00,'USD',2,1,'civicrm_line_item',32), + (33,'2023-10-07 01:51:40','2023-10-07 01:51:39',69,'General',100.00,'USD',2,1,'civicrm_line_item',33), + (34,'2023-10-07 01:51:40','2023-10-07 01:51:39',113,'General',100.00,'USD',2,1,'civicrm_line_item',34), + (35,'2023-10-07 01:51:40','2023-10-07 01:51:39',18,'General',100.00,'USD',2,1,'civicrm_line_item',35), + (36,'2023-10-07 01:51:40','2023-10-07 01:51:39',99,'General',100.00,'USD',2,1,'civicrm_line_item',36), + (37,'2023-10-07 01:51:40','2023-10-07 01:51:39',128,'General',100.00,'USD',2,1,'civicrm_line_item',37), + (38,'2023-10-07 01:51:40','2023-10-07 01:51:39',163,'General',100.00,'USD',2,1,'civicrm_line_item',38), + (39,'2023-10-07 01:51:40','2023-10-07 01:51:39',141,'General',100.00,'USD',2,1,'civicrm_line_item',39), + (40,'2023-10-07 01:51:40','2023-10-07 01:51:39',172,'General',100.00,'USD',2,1,'civicrm_line_item',40), + (41,'2023-10-07 01:51:40','2023-10-07 01:51:39',156,'General',100.00,'USD',2,1,'civicrm_line_item',41), + (42,'2023-10-07 01:51:40','2023-10-07 01:51:39',93,'General',100.00,'USD',2,1,'civicrm_line_item',42), + (43,'2023-10-07 01:51:40','2023-10-07 01:51:39',81,'General',100.00,'USD',2,1,'civicrm_line_item',43), + (44,'2023-10-07 01:51:40','2023-10-07 01:51:39',36,'General',100.00,'USD',2,1,'civicrm_line_item',44), + (45,'2023-10-07 01:51:40','2023-10-07 01:51:39',131,'General',100.00,'USD',2,1,'civicrm_line_item',45), + (46,'2023-10-07 01:51:40','2023-10-07 01:51:39',193,'General',100.00,'USD',2,1,'civicrm_line_item',46), + (47,'2023-10-07 01:51:40','2023-10-07 01:51:39',143,'Student',50.00,'USD',2,1,'civicrm_line_item',47), + (48,'2023-10-07 01:51:41','2023-10-07 01:51:39',140,'Student',50.00,'USD',2,1,'civicrm_line_item',48), + (49,'2023-10-07 01:51:41','2023-10-07 01:51:39',119,'Student',50.00,'USD',2,1,'civicrm_line_item',49), + (50,'2023-10-07 01:51:41','2023-10-07 01:51:39',32,'Student',50.00,'USD',2,1,'civicrm_line_item',50), + (51,'2023-10-07 01:51:41','2023-10-07 01:51:39',157,'Student',50.00,'USD',2,1,'civicrm_line_item',51), + (52,'2023-10-07 01:51:41','2023-10-07 01:51:39',115,'Student',50.00,'USD',2,1,'civicrm_line_item',52), + (53,'2023-10-07 01:51:41','2023-10-07 01:51:39',55,'Student',50.00,'USD',2,1,'civicrm_line_item',53), + (54,'2023-10-07 01:51:41','2023-10-07 01:51:39',126,'Student',50.00,'USD',2,1,'civicrm_line_item',54), + (55,'2023-10-07 01:51:41','2023-10-07 01:51:39',125,'Student',50.00,'USD',2,1,'civicrm_line_item',55), + (56,'2023-10-07 01:51:41','2023-10-07 01:51:39',122,'Student',50.00,'USD',2,1,'civicrm_line_item',56), + (57,'2023-10-07 01:51:41','2023-10-07 01:51:39',15,'Student',50.00,'USD',2,1,'civicrm_line_item',57), + (58,'2023-10-07 01:51:41','2023-10-07 01:51:39',158,'Student',50.00,'USD',2,1,'civicrm_line_item',58), + (59,'2023-10-07 01:51:41','2023-10-07 01:51:39',30,'Student',50.00,'USD',2,1,'civicrm_line_item',59), + (60,'2023-10-07 01:51:41','2023-10-07 01:51:39',23,'Lifetime',1200.00,'USD',2,1,'civicrm_line_item',60), + (61,'2023-10-07 01:51:41','2023-10-07 01:51:39',37,'Lifetime',1200.00,'USD',2,1,'civicrm_line_item',61), + (62,'2023-10-07 01:51:41','2023-10-07 01:51:40',85,'Soprano',50.00,'USD',2,1,'civicrm_line_item',97), + (63,'2023-10-07 01:51:41','2023-10-07 01:51:40',111,'Soprano',50.00,'USD',2,1,'civicrm_line_item',98), + (64,'2023-10-07 01:51:41','2023-10-07 01:51:40',160,'Soprano',50.00,'USD',2,1,'civicrm_line_item',99), + (65,'2023-10-07 01:51:41','2023-10-07 01:51:40',29,'Soprano',50.00,'USD',2,1,'civicrm_line_item',100), + (66,'2023-10-07 01:51:41','2023-10-07 01:51:40',152,'Soprano',50.00,'USD',2,1,'civicrm_line_item',101), + (67,'2023-10-07 01:51:41','2023-10-07 01:51:40',102,'Soprano',50.00,'USD',2,1,'civicrm_line_item',102), + (68,'2023-10-07 01:51:41','2023-10-07 01:51:40',64,'Soprano',50.00,'USD',2,1,'civicrm_line_item',103), + (69,'2023-10-07 01:51:41','2023-10-07 01:51:40',81,'Soprano',50.00,'USD',2,1,'civicrm_line_item',104), + (70,'2023-10-07 01:51:41','2023-10-07 01:51:40',168,'Soprano',50.00,'USD',2,1,'civicrm_line_item',105), + (71,'2023-10-07 01:51:41','2023-10-07 01:51:40',93,'Soprano',50.00,'USD',2,1,'civicrm_line_item',106), + (72,'2023-10-07 01:51:41','2023-10-07 01:51:40',89,'Soprano',50.00,'USD',2,1,'civicrm_line_item',107), + (73,'2023-10-07 01:51:41','2023-10-07 01:51:40',195,'Soprano',50.00,'USD',2,1,'civicrm_line_item',108), + (74,'2023-10-07 01:51:41','2023-10-07 01:51:40',114,'Soprano',50.00,'USD',2,1,'civicrm_line_item',109), + (75,'2023-10-07 01:51:41','2023-10-07 01:51:40',95,'Soprano',50.00,'USD',2,1,'civicrm_line_item',110), + (76,'2023-10-07 01:51:41','2023-10-07 01:51:40',14,'Soprano',50.00,'USD',2,1,'civicrm_line_item',111), + (77,'2023-10-07 01:51:41','2023-10-07 01:51:40',175,'Soprano',50.00,'USD',2,1,'civicrm_line_item',112), + (78,'2023-10-07 01:51:41','2023-10-07 01:51:40',37,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',63), + (79,'2023-10-07 01:51:41','2023-10-07 01:51:40',32,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',64), + (80,'2023-10-07 01:51:41','2023-10-07 01:51:40',134,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',65), + (81,'2023-10-07 01:51:41','2023-10-07 01:51:40',172,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',66), + (82,'2023-10-07 01:51:41','2023-10-07 01:51:40',54,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',67), + (83,'2023-10-07 01:51:41','2023-10-07 01:51:40',1,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',68), + (84,'2023-10-07 01:51:41','2023-10-07 01:51:40',61,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',69), + (85,'2023-10-07 01:51:41','2023-10-07 01:51:40',126,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',70), + (86,'2023-10-07 01:51:41','2023-10-07 01:51:40',150,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',71), + (87,'2023-10-07 01:51:41','2023-10-07 01:51:40',63,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',72), + (88,'2023-10-07 01:51:41','2023-10-07 01:51:40',50,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',73), + (89,'2023-10-07 01:51:41','2023-10-07 01:51:40',122,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',74), + (90,'2023-10-07 01:51:41','2023-10-07 01:51:40',112,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',75), + (91,'2023-10-07 01:51:41','2023-10-07 01:51:40',181,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',76), + (92,'2023-10-07 01:51:41','2023-10-07 01:51:40',169,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',77), + (93,'2023-10-07 01:51:41','2023-10-07 01:51:40',190,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',78), + (94,'2023-10-07 01:51:41','2023-10-07 01:51:40',78,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',79), + (95,'2023-10-07 01:51:41','2023-10-07 01:51:40',17,'Tiny-tots (ages 5-8)',800.00,'USD',4,1,'civicrm_line_item',80), + (96,'2023-10-07 01:51:41','2023-10-07 01:51:40',188,'Single',50.00,'USD',4,1,'civicrm_line_item',81), + (97,'2023-10-07 01:51:41','2023-10-07 01:51:40',101,'Single',50.00,'USD',4,1,'civicrm_line_item',82), + (98,'2023-10-07 01:51:41','2023-10-07 01:51:40',53,'Single',50.00,'USD',4,1,'civicrm_line_item',83), + (99,'2023-10-07 01:51:41','2023-10-07 01:51:40',118,'Single',50.00,'USD',4,1,'civicrm_line_item',84), + (100,'2023-10-07 01:51:41','2023-10-07 01:51:40',13,'Single',50.00,'USD',4,1,'civicrm_line_item',85), + (101,'2023-10-07 01:51:41','2023-10-07 01:51:40',79,'Single',50.00,'USD',4,1,'civicrm_line_item',86), + (102,'2023-10-07 01:51:41','2023-10-07 01:51:40',100,'Single',50.00,'USD',4,1,'civicrm_line_item',87), + (103,'2023-10-07 01:51:41','2023-10-07 01:51:40',121,'Single',50.00,'USD',4,1,'civicrm_line_item',88), + (104,'2023-10-07 01:51:41','2023-10-07 01:51:40',141,'Single',50.00,'USD',4,1,'civicrm_line_item',89), + (105,'2023-10-07 01:51:41','2023-10-07 01:51:40',165,'Single',50.00,'USD',4,1,'civicrm_line_item',90), + (106,'2023-10-07 01:51:41','2023-10-07 01:51:40',69,'Single',50.00,'USD',4,1,'civicrm_line_item',91), + (107,'2023-10-07 01:51:41','2023-10-07 01:51:40',10,'Single',50.00,'USD',4,1,'civicrm_line_item',92), + (108,'2023-10-07 01:51:41','2023-10-07 01:51:40',7,'Single',50.00,'USD',4,1,'civicrm_line_item',93), + (109,'2023-10-07 01:51:41','2023-10-07 01:51:40',200,'Single',50.00,'USD',4,1,'civicrm_line_item',94), + (110,'2023-10-07 01:51:41','2023-10-07 01:51:40',147,'Single',50.00,'USD',4,1,'civicrm_line_item',95), + (111,'2023-10-07 01:51:41','2023-10-07 01:51:40',27,'Single',50.00,'USD',4,1,'civicrm_line_item',96); /*!40000 ALTER TABLE `civicrm_financial_item` ENABLE KEYS */; UNLOCK TABLES; @@ -3800,117 +3811,117 @@ UNLOCK TABLES; LOCK TABLES `civicrm_financial_trxn` WRITE; /*!40000 ALTER TABLE `civicrm_financial_trxn` DISABLE KEYS */; INSERT INTO `civicrm_financial_trxn` (`id`, `from_financial_account_id`, `to_financial_account_id`, `trxn_date`, `total_amount`, `fee_amount`, `net_amount`, `currency`, `is_payment`, `trxn_id`, `trxn_result_code`, `status_id`, `payment_processor_id`, `payment_instrument_id`, `card_type_id`, `check_number`, `pan_truncation`, `order_reference`) VALUES - (1,NULL,6,'2013-09-07 08:52:20',125.00,NULL,NULL,'USD',1,NULL,NULL,1,NULL,4,NULL,'1041',NULL,NULL), - (2,NULL,6,'2021-06-07 08:52:20',50.00,NULL,NULL,'USD',1,'P20901X1',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (3,NULL,6,'2017-08-12 19:52:20',25.00,NULL,NULL,'GBP',1,'GBP12',NULL,1,NULL,4,NULL,'2095',NULL,NULL), - (4,NULL,6,'2021-06-07 08:52:20',50.00,NULL,NULL,'USD',1,NULL,NULL,1,NULL,4,NULL,'10552',NULL,NULL), - (5,NULL,6,'2021-06-07 08:52:20',50.00,NULL,NULL,'USD',1,'Q90901X1',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (6,NULL,6,'2023-06-14 08:10:20',500.00,NULL,NULL,'USD',1,NULL,NULL,1,NULL,4,NULL,'509',NULL,NULL), - (7,NULL,6,'2023-09-05 08:52:20',1750.00,NULL,NULL,'USD',1,NULL,NULL,1,NULL,1,NULL,'102',NULL,NULL), - (8,NULL,6,'2023-01-13 17:03:20',50.00,NULL,NULL,'USD',1,'P20193L2',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (9,NULL,6,'2022-10-07 08:52:20',10.00,NULL,NULL,'USD',1,'P40232Y3',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (10,NULL,6,'2019-04-14 10:52:20',250.00,NULL,NULL,'USD',1,'P20193L6',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (11,NULL,6,'2023-09-06 04:52:20',500.00,NULL,NULL,'JPY',1,'PL71',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (12,NULL,6,'2022-06-06 22:19:00',50.00,NULL,NULL,'USD',1,'P291X1',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (13,NULL,6,'2023-06-07 00:00:00',50.00,NULL,NULL,'USD',1,'PL32I',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (14,NULL,6,'2023-07-07 00:00:00',50.00,NULL,NULL,'USD',1,'PL32II',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (15,NULL,6,'2022-06-07 08:52:20',25.00,NULL,NULL,'USD',1,'PL32I591',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (16,NULL,6,'2022-07-07 08:52:20',25.00,NULL,NULL,'USD',1,'PL32I592',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (17,NULL,6,'2022-08-07 08:52:20',25.00,NULL,NULL,'USD',1,'PL32I593',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (18,NULL,6,'2022-09-07 08:52:20',25.00,NULL,NULL,'USD',1,'PL32I594',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (19,NULL,6,'2022-10-07 08:52:20',25.00,NULL,NULL,'USD',1,'PL32I595',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (20,NULL,6,'2022-11-07 08:52:20',25.00,NULL,NULL,'USD',1,'PL32I596',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (21,NULL,6,'2022-12-07 08:52:20',25.00,NULL,NULL,'USD',1,'PL32I597',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (22,NULL,6,'2023-01-07 08:52:20',25.00,NULL,NULL,'USD',1,'PL32I598',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (23,NULL,6,'2023-02-07 08:52:20',25.00,NULL,NULL,'USD',1,'PL32I599',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (24,NULL,6,'2023-03-07 08:52:20',25.00,NULL,NULL,'USD',1,'PL32I5910',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (25,NULL,6,'2023-04-07 08:52:20',25.00,NULL,NULL,'USD',1,'PL32I5911',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (26,NULL,6,'2023-01-07 08:52:20',10.00,NULL,NULL,'CAD',1,'PL32I991',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (27,NULL,6,'2023-02-07 08:52:20',10.00,NULL,NULL,'CAD',1,'PL32I992',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (28,NULL,6,'2023-03-07 08:52:20',10.00,NULL,NULL,'CAD',1,'PL32I993',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (29,NULL,6,'2023-04-07 08:52:20',10.00,NULL,NULL,'CAD',1,'PL32I994',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (30,NULL,6,'2023-05-07 08:52:20',10.00,NULL,NULL,'CAD',1,'PL32I995',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (31,NULL,6,'2023-08-07 08:52:20',5.00,NULL,NULL,'EUR',1,'PL32I1031',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (32,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'f35f748912345b9a',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (33,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'dd391b553f4f7037',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (34,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'2da4195398db1ae0',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (35,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'8cf4116bdebff877',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (36,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'20ab7ccf151901d9',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (37,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'298a429ada534815',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (38,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'192bd422f162a438',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (39,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'4a15317962a69a81',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (40,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'c549161b722ae0e2',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (41,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'b0b1c5a7c9f648ea',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (42,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'7702196e43a3e0bd',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (43,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'f694cbe423ce5eb1',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (44,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'d5148071d9a8be10',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (45,NULL,6,'2023-09-07 08:52:20',100.00,NULL,NULL,'USD',1,'6ca3e34d81c40b8c',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (46,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'738f047c3933ff17',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (47,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'b4662a764f39f413',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (48,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'147d7e7900ea9163',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (49,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'62009b8346478628',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (50,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'e13a915046d57644',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (51,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'94888675227342d8',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (52,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'c3a01540d471682a',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (53,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'2bcacb63fbdd6c7e',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (54,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'352e858c7b02b0db',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (55,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'78e6fd67eb8c1988',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (56,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'1d0c36f4ec1a8c97',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (57,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'d0736a30cccfd4d2',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (58,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'074c387c1b91896d',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (59,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'1aa0e1ab9c39369e',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (60,NULL,6,'2023-09-07 08:52:20',1200.00,NULL,NULL,'USD',1,'0892a3502e515853',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (61,NULL,6,'2023-09-07 08:52:20',1200.00,NULL,NULL,'USD',1,'67949dd99a2da188',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (62,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'4965afacf35fbeb7',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (63,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'e1b3816831d52eba',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (64,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'3932cb472bbe4923',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (65,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'39ca5190991329ec',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (66,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'fff2347b446d8133',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (67,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'84321fe483b3a002',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (68,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'287d120bec064cfc',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (69,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'1d5c72a7ba1ab008',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (70,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'b4da6cbb44ed18e2',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (71,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'96809d2b209570b6',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (72,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'74bac1d50ecee85d',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (73,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'3c7cd46f0bf3348b',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (74,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'87c4eb44a576dbbf',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (75,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'114039dd0b31e601',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (76,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'5ec3c525c53e3d83',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (77,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'7f5ef93011b78e2b',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (78,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'ae656e5ff51eebca',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (79,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'7815807a33652156',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (80,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'fc388eeb07a269da',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (81,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'f1f08848f07f7972',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (82,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'e15f7530fcfe0c49',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (83,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'f2d8d1ef5ab09c03',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (84,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'0798a94b9b3fcea8',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (85,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'c6dded079f482f42',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (86,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'8ab94d8353ac55f7',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (87,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'7937bcc6b55ee936',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (88,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'95b6f8aaf69ff40b',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (89,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'4dd65030b75bc608',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (90,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'03ed936885020f0d',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (91,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'5d9f0f0c6e602361',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (92,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'f6faa89eb9fc1e2e',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (93,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'868dc65a6102069e',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (94,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'5589f478beddc83c',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (95,NULL,6,'2023-09-07 08:52:20',800.00,NULL,NULL,'USD',1,'f9de548fc713fb79',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (96,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'79c783e5ae59fa0f',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (97,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'f5b612106db16c15',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (98,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'b701d89308b0dc75',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (99,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'d38d992b9d596f66',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (100,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'8c55cda559f74822',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (101,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'c1ab79895d394891',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (102,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'0b70d01281d94174',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (103,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'e41605930d1c3179',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (104,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'859374cc5860dd44',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (105,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'05e1df46874a0aa9',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (106,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'d0c30ff7377ab5de',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (107,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'a8bc4bbb21ddadbd',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (108,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'1a8ffab23ccff9f5',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (109,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'9fd3e5c674b24e6d',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (110,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'e1856457692f0c1e',NULL,1,NULL,1,NULL,NULL,NULL,NULL), - (111,NULL,6,'2023-09-07 08:52:20',50.00,NULL,NULL,'USD',1,'fe3e6113a8559c6c',NULL,1,NULL,1,NULL,NULL,NULL,NULL); + (1,NULL,6,'2013-10-07 01:51:39',125.00,NULL,NULL,'USD',1,NULL,NULL,1,NULL,4,NULL,'1041',NULL,NULL), + (2,NULL,6,'2021-07-07 01:51:39',50.00,NULL,NULL,'USD',1,'P20901X1',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (3,NULL,6,'2017-09-11 12:51:39',25.00,NULL,NULL,'GBP',1,'GBP12',NULL,1,NULL,4,NULL,'2095',NULL,NULL), + (4,NULL,6,'2021-07-07 01:51:39',50.00,NULL,NULL,'USD',1,NULL,NULL,1,NULL,4,NULL,'10552',NULL,NULL), + (5,NULL,6,'2021-07-07 01:51:39',50.00,NULL,NULL,'USD',1,'Q90901X1',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (6,NULL,6,'2023-07-14 01:09:39',500.00,NULL,NULL,'USD',1,NULL,NULL,1,NULL,4,NULL,'509',NULL,NULL), + (7,NULL,6,'2023-10-05 01:51:39',1750.00,NULL,NULL,'USD',1,NULL,NULL,1,NULL,1,NULL,'102',NULL,NULL), + (8,NULL,6,'2023-02-12 10:02:39',50.00,NULL,NULL,'USD',1,'P20193L2',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (9,NULL,6,'2022-11-07 01:51:39',10.00,NULL,NULL,'USD',1,'P40232Y3',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (10,NULL,6,'2019-05-15 03:51:39',250.00,NULL,NULL,'USD',1,'P20193L6',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (11,NULL,6,'2023-10-05 21:51:39',500.00,NULL,NULL,'JPY',1,'PL71',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (12,NULL,6,'2022-07-06 15:18:19',50.00,NULL,NULL,'USD',1,'P291X1',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (13,NULL,6,'2023-07-07 00:00:00',50.00,NULL,NULL,'USD',1,'PL32I',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (14,NULL,6,'2023-08-07 00:00:00',50.00,NULL,NULL,'USD',1,'PL32II',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (15,NULL,6,'2022-07-07 01:51:39',25.00,NULL,NULL,'USD',1,'PL32I591',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (16,NULL,6,'2022-08-07 01:51:39',25.00,NULL,NULL,'USD',1,'PL32I592',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (17,NULL,6,'2022-09-07 01:51:39',25.00,NULL,NULL,'USD',1,'PL32I593',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (18,NULL,6,'2022-10-07 01:51:39',25.00,NULL,NULL,'USD',1,'PL32I594',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (19,NULL,6,'2022-11-07 01:51:39',25.00,NULL,NULL,'USD',1,'PL32I595',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (20,NULL,6,'2022-12-07 01:51:39',25.00,NULL,NULL,'USD',1,'PL32I596',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (21,NULL,6,'2023-01-07 01:51:39',25.00,NULL,NULL,'USD',1,'PL32I597',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (22,NULL,6,'2023-02-07 01:51:39',25.00,NULL,NULL,'USD',1,'PL32I598',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (23,NULL,6,'2023-03-07 01:51:39',25.00,NULL,NULL,'USD',1,'PL32I599',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (24,NULL,6,'2023-04-07 01:51:39',25.00,NULL,NULL,'USD',1,'PL32I5910',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (25,NULL,6,'2023-05-07 01:51:39',25.00,NULL,NULL,'USD',1,'PL32I5911',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (26,NULL,6,'2023-02-07 01:51:39',10.00,NULL,NULL,'CAD',1,'PL32I991',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (27,NULL,6,'2023-03-07 01:51:39',10.00,NULL,NULL,'CAD',1,'PL32I992',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (28,NULL,6,'2023-04-07 01:51:39',10.00,NULL,NULL,'CAD',1,'PL32I993',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (29,NULL,6,'2023-05-07 01:51:39',10.00,NULL,NULL,'CAD',1,'PL32I994',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (30,NULL,6,'2023-06-07 01:51:39',10.00,NULL,NULL,'CAD',1,'PL32I995',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (31,NULL,6,'2023-09-07 01:51:39',5.00,NULL,NULL,'EUR',1,'PL32I1031',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (32,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'199fe91a3a34c8ce',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (33,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'b9a6747fd6568fc2',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (34,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'39c163eb3d4be45f',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (35,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'500ccd7fcc2abbba',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (36,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'182b1f7585ecd170',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (37,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'f011e469b75a2a36',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (38,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'da38a9b7b64f40ca',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (39,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'eb11e97806d830cb',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (40,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'5192d580921731bf',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (41,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'2950723f11f5e239',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (42,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'b7b728e2eaf732e1',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (43,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'94e3e06a9e9b53c1',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (44,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'fb0b2a2539f57eb6',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (45,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'0eaed8d79ce1b8e2',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (46,NULL,6,'2023-10-07 01:51:39',100.00,NULL,NULL,'USD',1,'377748d4cf02df93',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (47,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'92a30dc12bc6f89f',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (48,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'82e83517499bed14',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (49,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'db59f4a2b5c5e910',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (50,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'f4a649ade54561d2',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (51,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'247f664cf3df1315',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (52,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'335863057117965b',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (53,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'b6176b7b65ed72f1',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (54,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'9a4fc74545d39864',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (55,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'05a06f6a774b5ff6',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (56,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'53b4c84f1f6d87f4',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (57,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'7ba0d6192288fd47',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (58,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'4dd4ba301641ab44',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (59,NULL,6,'2023-10-07 01:51:39',50.00,NULL,NULL,'USD',1,'ce228497888c2378',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (60,NULL,6,'2023-10-07 01:51:39',1200.00,NULL,NULL,'USD',1,'b237ce5365d90585',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (61,NULL,6,'2023-10-07 01:51:39',1200.00,NULL,NULL,'USD',1,'6600cd795ed03a60',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (62,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'692f41d144ba99b2',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (63,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'27132cb320864779',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (64,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'1b101efdd36b05cf',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (65,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'0148e195bca51d81',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (66,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'ccb8e93eff3029fa',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (67,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'0840f3d87c6e85fb',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (68,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'3df236b8a47b5bb9',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (69,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'faa306e7256fce34',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (70,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'a7ff24e77623ff66',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (71,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'66e129a8d6e297fa',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (72,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'3e52e256b26e001d',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (73,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'58ce3d135fec464e',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (74,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'d0430a4a2d99e47f',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (75,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'45bb6ea0781be9f0',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (76,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'2bee5ffd2592ca3d',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (77,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'609e9f6ac922d912',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (78,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'5601aea891e87f0d',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (79,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'165967a21ea2b659',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (80,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'e9270c01cb7e7d87',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (81,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'7f1e20b2b28f8226',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (82,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'ed1ca23c1c2945c3',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (83,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'4959fbae7c7cc84c',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (84,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'89e19b42e174eb80',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (85,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'60f18e18ad36e0a8',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (86,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'7ab5e66da17e8d68',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (87,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'0be1bc2f90a806b7',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (88,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'7ed9ae13f33e76df',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (89,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'fe47d7e306522352',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (90,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'374e2f2ed959566e',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (91,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'b0f27fe74b6b4a8a',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (92,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'857dc2777c1a660c',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (93,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'d5dbc6b4bd2fac95',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (94,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'043190c33aa17fd2',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (95,NULL,6,'2023-10-07 01:51:40',800.00,NULL,NULL,'USD',1,'42a7294b9baf02d3',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (96,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'8e6e4153b0abab95',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (97,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'f5b11319837ef1e6',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (98,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'e532775a80589dd2',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (99,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'7d4564e1bdd09791',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (100,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'7b7e2bdd408bae45',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (101,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'c5ee4eb0b3d0c901',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (102,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'69be08504eee5355',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (103,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'03a4f5fe114a9c59',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (104,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'b0ec3e0cb2cb6aee',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (105,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'629d63496b32ec37',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (106,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'6884516bd1244063',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (107,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'a94fec7ebdce0620',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (108,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'aba6ff5d44f34e7f',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (109,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'e6502ad537f88d38',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (110,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'11002b1a386b49ad',NULL,1,NULL,1,NULL,NULL,NULL,NULL), + (111,NULL,6,'2023-10-07 01:51:40',50.00,NULL,NULL,'USD',1,'4132024b570ff06c',NULL,1,NULL,1,NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `civicrm_financial_trxn` ENABLE KEYS */; UNLOCK TABLES; @@ -3934,11 +3945,11 @@ UNLOCK TABLES; LOCK TABLES `civicrm_group` WRITE; /*!40000 ALTER TABLE `civicrm_group` DISABLE KEYS */; -INSERT INTO `civicrm_group` (`id`, `name`, `title`, `description`, `source`, `saved_search_id`, `is_active`, `visibility`, `where_clause`, `select_tables`, `where_tables`, `group_type`, `cache_date`, `refresh_date`, `parents`, `children`, `is_hidden`, `is_reserved`, `created_id`, `modified_id`, `frontend_title`, `frontend_description`) VALUES - (1,'Administrators','Administrators','Contacts in this group are assigned Administrator role permissions.',NULL,NULL,1,'User and User Admin Only',NULL,NULL,NULL,'1',NULL,NULL,NULL,NULL,0,0,NULL,NULL,'Administrators',''), - (2,'Newsletter Subscribers','Newsletter Subscribers',NULL,NULL,NULL,1,'Public Pages',NULL,NULL,NULL,'12',NULL,NULL,NULL,NULL,0,0,NULL,NULL,'Newsletter Subscribers',NULL), - (3,'Summer Program Volunteers','Summer Program Volunteers',NULL,NULL,NULL,1,'Public Pages',NULL,NULL,NULL,'12',NULL,NULL,NULL,NULL,0,0,NULL,NULL,'Summer Program Volunteers',NULL), - (4,'Advisory Board','Advisory Board',NULL,NULL,NULL,1,'Public Pages',NULL,NULL,NULL,'12',NULL,NULL,NULL,NULL,0,0,NULL,NULL,'Advisory Board',NULL); +INSERT INTO `civicrm_group` (`id`, `name`, `title`, `description`, `source`, `saved_search_id`, `is_active`, `visibility`, `where_clause`, `select_tables`, `where_tables`, `group_type`, `cache_date`, `cache_fill_took`, `refresh_date`, `parents`, `children`, `is_hidden`, `is_reserved`, `created_id`, `modified_id`, `frontend_title`, `frontend_description`) VALUES + (1,'Administrators','Administrators','Contacts in this group are assigned Administrator role permissions.',NULL,NULL,1,'User and User Admin Only',NULL,NULL,NULL,'1',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,'Administrators',''), + (2,'Newsletter Subscribers','Newsletter Subscribers',NULL,NULL,NULL,1,'Public Pages',NULL,NULL,NULL,'12',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,'Newsletter Subscribers',NULL), + (3,'Summer Program Volunteers','Summer Program Volunteers',NULL,NULL,NULL,1,'Public Pages',NULL,NULL,NULL,'12',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,'Summer Program Volunteers',NULL), + (4,'Advisory Board','Advisory Board',NULL,NULL,NULL,1,'Public Pages',NULL,NULL,NULL,'12',NULL,NULL,NULL,NULL,NULL,0,0,NULL,NULL,'Advisory Board',NULL); /*!40000 ALTER TABLE `civicrm_group` ENABLE KEYS */; UNLOCK TABLES; @@ -3949,89 +3960,89 @@ UNLOCK TABLES; LOCK TABLES `civicrm_group_contact` WRITE; /*!40000 ALTER TABLE `civicrm_group_contact` DISABLE KEYS */; INSERT INTO `civicrm_group_contact` (`id`, `group_id`, `contact_id`, `status`, `location_id`, `email_id`) VALUES - (1,2,55,'Added',NULL,NULL), - (2,2,41,'Added',NULL,NULL), - (3,2,34,'Added',NULL,NULL), - (4,2,171,'Added',NULL,NULL), - (5,2,123,'Added',NULL,NULL), - (6,2,64,'Added',NULL,NULL), - (7,2,178,'Added',NULL,NULL), - (8,2,24,'Added',NULL,NULL), - (9,2,146,'Added',NULL,NULL), - (10,2,4,'Added',NULL,NULL), - (11,2,37,'Added',NULL,NULL), - (12,2,181,'Added',NULL,NULL), - (13,2,98,'Added',NULL,NULL), - (14,2,33,'Added',NULL,NULL), - (15,2,160,'Added',NULL,NULL), - (16,2,148,'Added',NULL,NULL), - (17,2,79,'Added',NULL,NULL), - (18,2,158,'Added',NULL,NULL), - (19,2,145,'Added',NULL,NULL), - (20,2,82,'Added',NULL,NULL), - (21,2,175,'Added',NULL,NULL), - (22,2,102,'Added',NULL,NULL), - (23,2,117,'Added',NULL,NULL), - (24,2,124,'Added',NULL,NULL), - (25,2,28,'Added',NULL,NULL), - (26,2,40,'Added',NULL,NULL), - (27,2,66,'Added',NULL,NULL), - (28,2,32,'Added',NULL,NULL), - (29,2,162,'Added',NULL,NULL), - (30,2,199,'Added',NULL,NULL), - (31,2,26,'Added',NULL,NULL), - (32,2,180,'Added',NULL,NULL), - (33,2,192,'Added',NULL,NULL), - (34,2,141,'Added',NULL,NULL), - (35,2,59,'Added',NULL,NULL), - (36,2,100,'Added',NULL,NULL), - (37,2,11,'Added',NULL,NULL), - (38,2,144,'Added',NULL,NULL), - (39,2,200,'Added',NULL,NULL), - (40,2,47,'Added',NULL,NULL), - (41,2,22,'Added',NULL,NULL), - (42,2,75,'Added',NULL,NULL), - (43,2,112,'Added',NULL,NULL), - (44,2,182,'Added',NULL,NULL), - (45,2,165,'Added',NULL,NULL), - (46,2,132,'Added',NULL,NULL), - (47,2,136,'Added',NULL,NULL), - (48,2,172,'Added',NULL,NULL), - (49,2,186,'Added',NULL,NULL), - (50,2,90,'Added',NULL,NULL), - (51,2,83,'Added',NULL,NULL), - (52,2,120,'Added',NULL,NULL), - (53,2,174,'Added',NULL,NULL), - (54,2,109,'Added',NULL,NULL), - (55,2,69,'Added',NULL,NULL), - (56,2,155,'Added',NULL,NULL), - (57,2,167,'Added',NULL,NULL), - (58,2,96,'Added',NULL,NULL), - (59,2,159,'Added',NULL,NULL), - (60,2,108,'Added',NULL,NULL), - (61,3,78,'Added',NULL,NULL), - (62,3,70,'Added',NULL,NULL), - (63,3,103,'Added',NULL,NULL), - (64,3,107,'Added',NULL,NULL), - (65,3,44,'Added',NULL,NULL), - (66,3,21,'Added',NULL,NULL), - (67,3,84,'Added',NULL,NULL), - (68,3,71,'Added',NULL,NULL), - (69,3,115,'Added',NULL,NULL), - (70,3,56,'Added',NULL,NULL), - (71,3,196,'Added',NULL,NULL), - (72,3,183,'Added',NULL,NULL), - (73,3,62,'Added',NULL,NULL), - (74,3,121,'Added',NULL,NULL), - (75,3,166,'Added',NULL,NULL), - (76,4,55,'Added',NULL,NULL), - (77,4,24,'Added',NULL,NULL), - (78,4,160,'Added',NULL,NULL), - (79,4,102,'Added',NULL,NULL), - (80,4,162,'Added',NULL,NULL), - (81,4,100,'Added',NULL,NULL), - (82,4,112,'Added',NULL,NULL), - (83,4,90,'Added',NULL,NULL), + (1,2,26,'Added',NULL,NULL), + (2,2,35,'Added',NULL,NULL), + (3,2,201,'Added',NULL,NULL), + (4,2,113,'Added',NULL,NULL), + (5,2,153,'Added',NULL,NULL), + (6,2,81,'Added',NULL,NULL), + (7,2,61,'Added',NULL,NULL), + (8,2,5,'Added',NULL,NULL), + (9,2,98,'Added',NULL,NULL), + (10,2,78,'Added',NULL,NULL), + (11,2,180,'Added',NULL,NULL), + (12,2,182,'Added',NULL,NULL), + (13,2,179,'Added',NULL,NULL), + (14,2,109,'Added',NULL,NULL), + (15,2,83,'Added',NULL,NULL), + (16,2,125,'Added',NULL,NULL), + (17,2,33,'Added',NULL,NULL), + (18,2,90,'Added',NULL,NULL), + (19,2,72,'Added',NULL,NULL), + (20,2,129,'Added',NULL,NULL), + (21,2,185,'Added',NULL,NULL), + (22,2,44,'Added',NULL,NULL), + (23,2,169,'Added',NULL,NULL), + (24,2,96,'Added',NULL,NULL), + (25,2,114,'Added',NULL,NULL), + (26,2,110,'Added',NULL,NULL), + (27,2,160,'Added',NULL,NULL), + (28,2,95,'Added',NULL,NULL), + (29,2,106,'Added',NULL,NULL), + (30,2,100,'Added',NULL,NULL), + (31,2,20,'Added',NULL,NULL), + (32,2,155,'Added',NULL,NULL), + (33,2,94,'Added',NULL,NULL), + (34,2,197,'Added',NULL,NULL), + (35,2,55,'Added',NULL,NULL), + (36,2,104,'Added',NULL,NULL), + (37,2,142,'Added',NULL,NULL), + (38,2,97,'Added',NULL,NULL), + (39,2,120,'Added',NULL,NULL), + (40,2,105,'Added',NULL,NULL), + (41,2,43,'Added',NULL,NULL), + (42,2,70,'Added',NULL,NULL), + (43,2,119,'Added',NULL,NULL), + (44,2,16,'Added',NULL,NULL), + (45,2,47,'Added',NULL,NULL), + (46,2,15,'Added',NULL,NULL), + (47,2,199,'Added',NULL,NULL), + (48,2,165,'Added',NULL,NULL), + (49,2,188,'Added',NULL,NULL), + (50,2,146,'Added',NULL,NULL), + (51,2,2,'Added',NULL,NULL), + (52,2,91,'Added',NULL,NULL), + (53,2,54,'Added',NULL,NULL), + (54,2,30,'Added',NULL,NULL), + (55,2,164,'Added',NULL,NULL), + (56,2,170,'Added',NULL,NULL), + (57,2,138,'Added',NULL,NULL), + (58,2,156,'Added',NULL,NULL), + (59,2,177,'Added',NULL,NULL), + (60,2,7,'Added',NULL,NULL), + (61,3,143,'Added',NULL,NULL), + (62,3,122,'Added',NULL,NULL), + (63,3,196,'Added',NULL,NULL), + (64,3,198,'Added',NULL,NULL), + (65,3,181,'Added',NULL,NULL), + (66,3,102,'Added',NULL,NULL), + (67,3,167,'Added',NULL,NULL), + (68,3,68,'Added',NULL,NULL), + (69,3,189,'Added',NULL,NULL), + (70,3,115,'Added',NULL,NULL), + (71,3,12,'Added',NULL,NULL), + (72,3,195,'Added',NULL,NULL), + (73,3,192,'Added',NULL,NULL), + (74,3,36,'Added',NULL,NULL), + (75,3,32,'Added',NULL,NULL), + (76,4,26,'Added',NULL,NULL), + (77,4,5,'Added',NULL,NULL), + (78,4,83,'Added',NULL,NULL), + (79,4,44,'Added',NULL,NULL), + (80,4,106,'Added',NULL,NULL), + (81,4,104,'Added',NULL,NULL), + (82,4,119,'Added',NULL,NULL), + (83,4,146,'Added',NULL,NULL), (84,4,202,'Added',NULL,NULL); /*!40000 ALTER TABLE `civicrm_group_contact` ENABLE KEYS */; UNLOCK TABLES; @@ -4148,9 +4159,9 @@ INSERT INTO `civicrm_line_item` (`id`, `entity_table`, `entity_id`, `contributio (31,'civicrm_contribution',31,31,1,'Contribution Amount',1.00,5.00,5.00,0,1,1,0.00,0.00,NULL), (32,'civicrm_membership',1,32,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), (33,'civicrm_membership',3,34,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), - (34,'civicrm_membership',5,36,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), - (35,'civicrm_membership',7,38,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), - (36,'civicrm_membership',9,40,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), + (34,'civicrm_membership',7,38,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), + (35,'civicrm_membership',9,40,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), + (36,'civicrm_membership',10,41,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), (37,'civicrm_membership',13,44,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), (38,'civicrm_membership',15,46,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), (39,'civicrm_membership',17,48,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), @@ -4158,74 +4169,74 @@ INSERT INTO `civicrm_line_item` (`id`, `entity_table`, `entity_id`, `contributio (41,'civicrm_membership',20,51,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), (42,'civicrm_membership',21,52,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), (43,'civicrm_membership',23,54,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), - (44,'civicrm_membership',27,58,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), - (45,'civicrm_membership',29,60,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), - (46,'civicrm_membership',2,33,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), - (47,'civicrm_membership',4,35,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), - (48,'civicrm_membership',6,37,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), - (49,'civicrm_membership',8,39,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), - (50,'civicrm_membership',10,41,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), - (51,'civicrm_membership',12,43,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), - (52,'civicrm_membership',14,45,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), - (53,'civicrm_membership',16,47,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), - (54,'civicrm_membership',18,49,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), - (55,'civicrm_membership',24,55,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), - (56,'civicrm_membership',25,56,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), + (44,'civicrm_membership',25,56,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), + (45,'civicrm_membership',27,58,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), + (46,'civicrm_membership',29,60,4,'General',1.00,100.00,100.00,NULL,7,2,0.00,0.00,NULL), + (47,'civicrm_membership',2,33,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), + (48,'civicrm_membership',4,35,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), + (49,'civicrm_membership',5,36,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), + (50,'civicrm_membership',6,37,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), + (51,'civicrm_membership',8,39,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), + (52,'civicrm_membership',12,43,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), + (53,'civicrm_membership',14,45,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), + (54,'civicrm_membership',16,47,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), + (55,'civicrm_membership',18,49,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), + (56,'civicrm_membership',24,55,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), (57,'civicrm_membership',26,57,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), (58,'civicrm_membership',28,59,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), (59,'civicrm_membership',30,61,4,'Student',1.00,50.00,50.00,NULL,8,2,0.00,0.00,NULL), (60,'civicrm_membership',11,42,4,'Lifetime',1.00,1200.00,1200.00,NULL,9,2,0.00,0.00,NULL), (61,'civicrm_membership',22,53,4,'Lifetime',1.00,1200.00,1200.00,NULL,9,2,0.00,0.00,NULL), - (63,'civicrm_participant',3,65,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (64,'civicrm_participant',6,68,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (65,'civicrm_participant',9,71,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (66,'civicrm_participant',12,74,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (67,'civicrm_participant',15,77,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (68,'civicrm_participant',18,80,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (69,'civicrm_participant',21,83,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (70,'civicrm_participant',24,86,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (71,'civicrm_participant',25,87,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (72,'civicrm_participant',28,90,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (73,'civicrm_participant',31,93,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (74,'civicrm_participant',34,96,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (75,'civicrm_participant',37,99,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (76,'civicrm_participant',40,102,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (63,'civicrm_participant',3,72,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (64,'civicrm_participant',6,71,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (65,'civicrm_participant',9,97,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (66,'civicrm_participant',12,106,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (67,'civicrm_participant',15,75,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (68,'civicrm_participant',18,63,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (69,'civicrm_participant',21,76,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (70,'civicrm_participant',24,96,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (71,'civicrm_participant',25,100,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (72,'civicrm_participant',28,77,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (73,'civicrm_participant',31,73,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (74,'civicrm_participant',34,95,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (75,'civicrm_participant',37,91,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (76,'civicrm_participant',40,108,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), (77,'civicrm_participant',43,105,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (78,'civicrm_participant',46,108,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (79,'civicrm_participant',49,111,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (80,'civicrm_participant',50,112,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), - (81,'civicrm_participant',1,63,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (82,'civicrm_participant',4,66,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (83,'civicrm_participant',7,69,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (84,'civicrm_participant',10,72,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (85,'civicrm_participant',13,75,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (86,'civicrm_participant',16,78,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (87,'civicrm_participant',19,81,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (88,'civicrm_participant',22,84,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (89,'civicrm_participant',26,88,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (90,'civicrm_participant',29,91,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (91,'civicrm_participant',32,94,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (92,'civicrm_participant',35,97,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (93,'civicrm_participant',38,100,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (94,'civicrm_participant',41,103,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (95,'civicrm_participant',44,106,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (96,'civicrm_participant',47,109,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), - (97,'civicrm_participant',2,64,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (98,'civicrm_participant',5,67,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (99,'civicrm_participant',8,70,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (100,'civicrm_participant',11,73,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (101,'civicrm_participant',14,76,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (102,'civicrm_participant',17,79,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (103,'civicrm_participant',20,82,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (104,'civicrm_participant',23,85,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (105,'civicrm_participant',27,89,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (106,'civicrm_participant',30,92,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (107,'civicrm_participant',33,95,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (108,'civicrm_participant',36,98,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (109,'civicrm_participant',39,101,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (110,'civicrm_participant',42,104,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (111,'civicrm_participant',45,107,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), - (112,'civicrm_participant',48,110,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL); + (78,'civicrm_participant',46,110,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (79,'civicrm_participant',49,80,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (80,'civicrm_participant',50,68,7,'Tiny-tots (ages 5-8)',1.00,800.00,800.00,0,13,4,0.00,0.00,NULL), + (81,'civicrm_participant',1,109,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (82,'civicrm_participant',4,88,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (83,'civicrm_participant',7,74,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (84,'civicrm_participant',10,93,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (85,'civicrm_participant',13,66,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (86,'civicrm_participant',16,81,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (87,'civicrm_participant',19,87,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (88,'civicrm_participant',22,94,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (89,'civicrm_participant',26,98,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (90,'civicrm_participant',29,103,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (91,'civicrm_participant',32,79,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (92,'civicrm_participant',35,65,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (93,'civicrm_participant',38,64,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (94,'civicrm_participant',41,112,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (95,'civicrm_participant',44,99,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (96,'civicrm_participant',47,69,8,'Single',1.00,50.00,50.00,0,16,4,0.00,0.00,NULL), + (97,'civicrm_participant',2,83,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (98,'civicrm_participant',5,90,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (99,'civicrm_participant',8,102,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (100,'civicrm_participant',11,70,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (101,'civicrm_participant',14,101,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (102,'civicrm_participant',17,89,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (103,'civicrm_participant',20,78,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (104,'civicrm_participant',23,82,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (105,'civicrm_participant',27,104,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (106,'civicrm_participant',30,85,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (107,'civicrm_participant',33,84,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (108,'civicrm_participant',36,111,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (109,'civicrm_participant',39,92,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (110,'civicrm_participant',42,86,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (111,'civicrm_participant',45,67,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL), + (112,'civicrm_participant',48,107,9,'Soprano',1.00,50.00,50.00,0,21,2,0.00,0.00,NULL); /*!40000 ALTER TABLE `civicrm_line_item` ENABLE KEYS */; UNLOCK TABLES; @@ -4236,9 +4247,9 @@ UNLOCK TABLES; LOCK TABLES `civicrm_loc_block` WRITE; /*!40000 ALTER TABLE `civicrm_loc_block` DISABLE KEYS */; INSERT INTO `civicrm_loc_block` (`id`, `address_id`, `email_id`, `phone_id`, `im_id`, `address_2_id`, `email_2_id`, `phone_2_id`, `im_2_id`) VALUES - (1,180,191,162,NULL,NULL,NULL,NULL,NULL), - (2,181,192,163,NULL,NULL,NULL,NULL,NULL), - (3,182,193,164,NULL,NULL,NULL,NULL,NULL); + (1,185,200,173,NULL,NULL,NULL,NULL,NULL), + (2,186,201,174,NULL,NULL,NULL,NULL,NULL), + (3,187,202,175,NULL,NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `civicrm_loc_block` ENABLE KEYS */; UNLOCK TABLES; @@ -4264,7 +4275,7 @@ UNLOCK TABLES; LOCK TABLES `civicrm_log` WRITE; /*!40000 ALTER TABLE `civicrm_log` DISABLE KEYS */; INSERT INTO `civicrm_log` (`id`, `entity_table`, `entity_id`, `data`, `modified_id`, `modified_date`) VALUES - (1,'civicrm_contact',202,'civicrm_contact,202',202,'2023-09-07 08:52:18'); + (1,'civicrm_contact',202,'civicrm_contact,202',202,'2023-10-07 01:51:34'); /*!40000 ALTER TABLE `civicrm_log` ENABLE KEYS */; UNLOCK TABLES; @@ -4654,8 +4665,8 @@ LOCK TABLES `civicrm_managed` WRITE; /*!40000 ALTER TABLE `civicrm_managed` DISABLE KEYS */; INSERT INTO `civicrm_managed` (`id`, `module`, `name`, `entity_type`, `entity_id`, `cleanup`, `entity_modified_date`) VALUES (1,'civi_mail','SavedSearch_Email_Bounce_History','SavedSearch',1,'always',NULL), - (2,'legacycustomsearches','Custom Searches1','Navigation',250,'always',NULL), - (3,'legacycustomsearches','Manage Custom Searches1','Navigation',251,'always',NULL); + (2,'civicrm','SavedSearch_Contact_Summary_Notes','SavedSearch',2,'always',NULL), + (3,'civicrm','SavedSearch_Contact_Summary_Relationships','SavedSearch',3,'unused',NULL); /*!40000 ALTER TABLE `civicrm_managed` ENABLE KEYS */; UNLOCK TABLES; @@ -4684,36 +4695,36 @@ UNLOCK TABLES; LOCK TABLES `civicrm_membership` WRITE; /*!40000 ALTER TABLE `civicrm_membership` DISABLE KEYS */; INSERT INTO `civicrm_membership` (`id`, `contact_id`, `membership_type_id`, `join_date`, `start_date`, `end_date`, `source`, `status_id`, `is_override`, `status_override_end_date`, `owner_membership_id`, `max_related`, `is_test`, `is_pay_later`, `contribution_recur_id`, `campaign_id`) VALUES - (1,11,1,'2023-09-07','2023-09-07','2025-09-06','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (2,33,2,'2023-09-06','2023-09-06','2024-09-05','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (3,75,1,'2023-09-05','2023-09-05','2025-09-04','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (4,16,2,'2023-09-04','2023-09-04','2024-09-03','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (5,107,1,'2021-08-06','2021-08-06','2023-08-05','Donation',3,0,NULL,NULL,NULL,0,0,NULL,NULL), - (6,141,2,'2023-09-02','2023-09-02','2024-09-01','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (7,50,1,'2023-09-01','2023-09-01','2025-08-31','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (8,88,2,'2023-08-31','2023-08-31','2024-08-30','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (9,154,1,'2023-08-30','2023-08-30','2025-08-29','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (10,174,2,'2022-08-29','2022-08-29','2023-08-28','Payment',4,0,NULL,NULL,NULL,0,0,NULL,NULL), - (11,8,3,'2023-08-28','2023-08-28',NULL,'Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (12,36,2,'2023-08-27','2023-08-27','2024-08-26','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (13,44,1,'2023-08-26','2023-08-26','2025-08-25','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (14,37,2,'2023-08-25','2023-08-25','2024-08-24','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (15,197,1,'2021-05-18','2021-05-18','2023-05-17','Check',3,0,NULL,NULL,NULL,0,0,NULL,NULL), - (16,117,2,'2023-08-23','2023-08-23','2024-08-22','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (17,15,1,'2023-08-22','2023-08-22','2025-08-21','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (18,69,2,'2023-08-21','2023-08-21','2024-08-20','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (19,26,1,'2023-08-20','2023-08-20','2025-08-19','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (20,196,1,'2021-04-08','2021-04-08','2023-04-07','Payment',3,0,NULL,NULL,NULL,0,0,NULL,NULL), - (21,42,1,'2023-08-18','2023-08-18','2025-08-17','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (22,150,3,'2023-08-17','2023-08-17',NULL,'Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (23,7,1,'2023-08-16','2023-08-16','2025-08-15','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (24,198,2,'2023-08-15','2023-08-15','2024-08-14','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (25,186,2,'2022-08-14','2022-08-14','2023-08-13','Check',4,0,NULL,NULL,NULL,0,0,NULL,NULL), - (26,140,2,'2023-08-13','2023-08-13','2024-08-12','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (27,163,1,'2023-08-12','2023-08-12','2025-08-11','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (28,121,2,'2023-08-11','2023-08-11','2024-08-10','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (29,162,1,'2023-08-10','2023-08-10','2025-08-09','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), - (30,202,2,'2022-08-09','2022-08-09','2023-08-08','Check',4,0,NULL,NULL,NULL,0,0,NULL,NULL); + (1,181,1,'2023-10-07','2023-10-07','2025-10-06','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (2,143,2,'2023-10-06','2023-10-06','2024-10-05','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (3,69,1,'2023-10-05','2023-10-05','2025-10-04','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (4,140,2,'2023-10-04','2023-10-04','2024-10-03','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (5,119,2,'2022-10-03','2022-10-03','2023-10-02','Payment',4,0,NULL,NULL,NULL,0,0,NULL,NULL), + (6,32,2,'2023-10-02','2023-10-02','2024-10-01','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (7,113,1,'2023-10-01','2023-10-01','2025-09-30','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (8,157,2,'2023-09-30','2023-09-30','2024-09-29','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (9,18,1,'2023-09-29','2023-09-29','2025-09-28','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (10,99,1,'2021-07-27','2021-07-27','2023-07-26','Check',3,0,NULL,NULL,NULL,0,0,NULL,NULL), + (11,23,3,'2023-09-27','2023-09-27',NULL,'Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (12,115,2,'2023-09-26','2023-09-26','2024-09-25','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (13,128,1,'2023-09-25','2023-09-25','2025-09-24','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (14,55,2,'2023-09-24','2023-09-24','2024-09-23','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (15,163,1,'2021-06-17','2021-06-17','2023-06-16','Check',3,0,NULL,NULL,NULL,0,0,NULL,NULL), + (16,126,2,'2023-09-22','2023-09-22','2024-09-21','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (17,141,1,'2023-09-21','2023-09-21','2025-09-20','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (18,125,2,'2023-09-20','2023-09-20','2024-09-19','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (19,172,1,'2023-09-19','2023-09-19','2025-09-18','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (20,156,1,'2021-05-08','2021-05-08','2023-05-07','Payment',3,0,NULL,NULL,NULL,0,0,NULL,NULL), + (21,93,1,'2023-09-17','2023-09-17','2025-09-16','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (22,37,3,'2023-09-16','2023-09-16',NULL,'Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (23,81,1,'2023-09-15','2023-09-15','2025-09-14','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (24,122,2,'2023-09-14','2023-09-14','2024-09-13','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (25,36,1,'2021-03-29','2021-03-29','2023-03-28','Payment',3,0,NULL,NULL,NULL,0,0,NULL,NULL), + (26,15,2,'2023-09-12','2023-09-12','2024-09-11','Donation',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (27,131,1,'2023-09-11','2023-09-11','2025-09-10','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (28,158,2,'2023-09-10','2023-09-10','2024-09-09','Payment',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (29,193,1,'2023-09-09','2023-09-09','2025-09-08','Check',1,0,NULL,NULL,NULL,0,0,NULL,NULL), + (30,30,2,'2022-09-08','2022-09-08','2023-09-07','Donation',4,0,NULL,NULL,NULL,0,0,NULL,NULL); /*!40000 ALTER TABLE `civicrm_membership` ENABLE KEYS */; UNLOCK TABLES; @@ -4735,36 +4746,36 @@ UNLOCK TABLES; LOCK TABLES `civicrm_membership_log` WRITE; /*!40000 ALTER TABLE `civicrm_membership_log` DISABLE KEYS */; INSERT INTO `civicrm_membership_log` (`id`, `membership_id`, `status_id`, `start_date`, `end_date`, `modified_id`, `modified_date`, `membership_type_id`, `max_related`) VALUES - (1,23,1,'2023-08-16','2025-08-15',7,'2023-09-07',1,NULL), - (2,11,1,'2023-08-28',NULL,8,'2023-09-07',3,NULL), - (3,1,1,'2023-09-07','2025-09-06',11,'2023-09-07',1,NULL), - (4,17,1,'2023-08-22','2025-08-21',15,'2023-09-07',1,NULL), - (5,4,1,'2023-09-04','2024-09-03',16,'2023-09-07',2,NULL), - (6,19,1,'2023-08-20','2025-08-19',26,'2023-09-07',1,NULL), - (7,2,1,'2023-09-06','2024-09-05',33,'2023-09-07',2,NULL), - (8,12,1,'2023-08-27','2024-08-26',36,'2023-09-07',2,NULL), - (9,14,1,'2023-08-25','2024-08-24',37,'2023-09-07',2,NULL), - (10,21,1,'2023-08-18','2025-08-17',42,'2023-09-07',1,NULL), - (11,13,1,'2023-08-26','2025-08-25',44,'2023-09-07',1,NULL), - (12,7,1,'2023-09-01','2025-08-31',50,'2023-09-07',1,NULL), - (13,18,1,'2023-08-21','2024-08-20',69,'2023-09-07',2,NULL), - (14,3,1,'2023-09-05','2025-09-04',75,'2023-09-07',1,NULL), - (15,8,1,'2023-08-31','2024-08-30',88,'2023-09-07',2,NULL), - (16,5,3,'2021-08-06','2023-08-05',107,'2023-09-07',1,NULL), - (17,16,1,'2023-08-23','2024-08-22',117,'2023-09-07',2,NULL), - (18,28,1,'2023-08-11','2024-08-10',121,'2023-09-07',2,NULL), - (19,26,1,'2023-08-13','2024-08-12',140,'2023-09-07',2,NULL), - (20,6,1,'2023-09-02','2024-09-01',141,'2023-09-07',2,NULL), - (21,22,1,'2023-08-17',NULL,150,'2023-09-07',3,NULL), - (22,9,1,'2023-08-30','2025-08-29',154,'2023-09-07',1,NULL), - (23,29,1,'2023-08-10','2025-08-09',162,'2023-09-07',1,NULL), - (24,27,1,'2023-08-12','2025-08-11',163,'2023-09-07',1,NULL), - (25,10,4,'2022-08-29','2023-08-28',174,'2023-09-07',2,NULL), - (26,25,4,'2022-08-14','2023-08-13',186,'2023-09-07',2,NULL), - (27,20,3,'2021-04-08','2023-04-07',196,'2023-09-07',1,NULL), - (28,15,3,'2021-05-18','2023-05-17',197,'2023-09-07',1,NULL), - (29,24,1,'2023-08-15','2024-08-14',198,'2023-09-07',2,NULL), - (30,30,4,'2022-08-09','2023-08-08',202,'2023-09-07',2,NULL); + (1,26,1,'2023-09-12','2024-09-11',15,'2023-10-07',2,NULL), + (2,9,1,'2023-09-29','2025-09-28',18,'2023-10-07',1,NULL), + (3,11,1,'2023-09-27',NULL,23,'2023-10-07',3,NULL), + (4,30,4,'2022-09-08','2023-09-07',30,'2023-10-07',2,NULL), + (5,6,1,'2023-10-02','2024-10-01',32,'2023-10-07',2,NULL), + (6,25,3,'2021-03-29','2023-03-28',36,'2023-10-07',1,NULL), + (7,22,1,'2023-09-16',NULL,37,'2023-10-07',3,NULL), + (8,14,1,'2023-09-24','2024-09-23',55,'2023-10-07',2,NULL), + (9,3,1,'2023-10-05','2025-10-04',69,'2023-10-07',1,NULL), + (10,23,1,'2023-09-15','2025-09-14',81,'2023-10-07',1,NULL), + (11,21,1,'2023-09-17','2025-09-16',93,'2023-10-07',1,NULL), + (12,10,3,'2021-07-27','2023-07-26',99,'2023-10-07',1,NULL), + (13,7,1,'2023-10-01','2025-09-30',113,'2023-10-07',1,NULL), + (14,12,1,'2023-09-26','2024-09-25',115,'2023-10-07',2,NULL), + (15,5,4,'2022-10-03','2023-10-02',119,'2023-10-07',2,NULL), + (16,24,1,'2023-09-14','2024-09-13',122,'2023-10-07',2,NULL), + (17,18,1,'2023-09-20','2024-09-19',125,'2023-10-07',2,NULL), + (18,16,1,'2023-09-22','2024-09-21',126,'2023-10-07',2,NULL), + (19,13,1,'2023-09-25','2025-09-24',128,'2023-10-07',1,NULL), + (20,27,1,'2023-09-11','2025-09-10',131,'2023-10-07',1,NULL), + (21,4,1,'2023-10-04','2024-10-03',140,'2023-10-07',2,NULL), + (22,17,1,'2023-09-21','2025-09-20',141,'2023-10-07',1,NULL), + (23,2,1,'2023-10-06','2024-10-05',143,'2023-10-07',2,NULL), + (24,20,3,'2021-05-08','2023-05-07',156,'2023-10-07',1,NULL), + (25,8,1,'2023-09-30','2024-09-29',157,'2023-10-07',2,NULL), + (26,28,1,'2023-09-10','2024-09-09',158,'2023-10-07',2,NULL), + (27,15,3,'2021-06-17','2023-06-16',163,'2023-10-07',1,NULL), + (28,19,1,'2023-09-19','2025-09-18',172,'2023-10-07',1,NULL), + (29,1,1,'2023-10-07','2025-10-06',181,'2023-10-07',1,NULL), + (30,29,1,'2023-09-09','2025-09-08',193,'2023-10-07',1,NULL); /*!40000 ALTER TABLE `civicrm_membership_log` ENABLE KEYS */; UNLOCK TABLES; @@ -4775,36 +4786,36 @@ UNLOCK TABLES; LOCK TABLES `civicrm_membership_payment` WRITE; /*!40000 ALTER TABLE `civicrm_membership_payment` DISABLE KEYS */; INSERT INTO `civicrm_membership_payment` (`id`, `membership_id`, `contribution_id`) VALUES - (1,1,32), - (2,2,33), - (3,3,34), - (4,4,35), - (5,5,36), - (6,6,37), - (7,7,38), - (8,8,39), - (9,9,40), - (10,10,41), - (11,11,42), - (12,12,43), - (13,13,44), - (14,14,45), - (15,15,46), - (16,16,47), - (17,17,48), - (18,18,49), - (19,19,50), - (20,20,51), - (21,21,52), - (22,22,53), - (23,23,54), - (24,24,55), - (25,25,56), - (26,26,57), - (27,27,58), - (28,28,59), - (29,29,60), - (30,30,61); + (29,1,32), + (23,2,33), + (9,3,34), + (21,4,35), + (15,5,36), + (5,6,37), + (13,7,38), + (25,8,39), + (2,9,40), + (12,10,41), + (3,11,42), + (14,12,43), + (19,13,44), + (8,14,45), + (27,15,46), + (18,16,47), + (22,17,48), + (17,18,49), + (28,19,50), + (24,20,51), + (11,21,52), + (7,22,53), + (10,23,54), + (16,24,55), + (6,25,56), + (1,26,57), + (20,27,58), + (26,28,59), + (30,29,60), + (4,30,61); /*!40000 ALTER TABLE `civicrm_membership_payment` ENABLE KEYS */; UNLOCK TABLES; @@ -4845,362 +4856,362 @@ UNLOCK TABLES; LOCK TABLES `civicrm_menu` WRITE; /*!40000 ALTER TABLE `civicrm_menu` DISABLE KEYS */; INSERT INTO `civicrm_menu` (`id`, `domain_id`, `path`, `path_arguments`, `title`, `access_callback`, `access_arguments`, `page_callback`, `page_arguments`, `breadcrumb`, `return_url`, `return_url_args`, `component_id`, `is_active`, `is_public`, `is_exposed`, `is_ssl`, `weight`, `type`, `page_type`, `skipBreadcrumb`, `module_data`) VALUES - (1,1,'civicrm/profile',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_Profile_Page_Router\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,0,1,0,0,'a:0:{}'), - (2,1,'civicrm/profile/create',NULL,'CiviCRM Profile Create','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_Profile_Page_Router\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,0,1,0,0,'a:0:{}'), - (3,1,'civicrm/profile/view',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_Profile_Page_View\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (4,1,'civicrm/ajax/api4',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:18:\"CRM_Api4_Page_AJAX\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (5,1,'civicrm/api4',NULL,'CiviCRM','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Api4_Page_Api4Explorer\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (6,1,'civicrm/activity','action=add&context=standalone','New Activity','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Activity_Form_Activity\";','s:14:\"attachUpload=1\";','a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (7,1,'civicrm/activity/view',NULL,'View Activity','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Activity_Form_ActivityView\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (8,1,'civicrm/ajax/activity',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:15:\"getCaseActivity\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (9,1,'civicrm/ajax/globalrelationships',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:26:\"getCaseGlobalRelationships\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (10,1,'civicrm/ajax/clientrelationships',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:26:\"getCaseClientRelationships\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (11,1,'civicrm/ajax/caseroles',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:12:\"getCaseRoles\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (12,1,'civicrm/ajax/contactactivity',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:18:\"getContactActivity\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (13,1,'civicrm/ajax/activity/convert',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:21:\"convertToCaseActivity\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,3,0,'a:0:{}'), - (14,1,'civicrm/activity/search',NULL,'Find Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Activity_Controller_Search\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (15,1,'civicrm/pcp',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:16:\"CRM_PCP_Form_PCP\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (16,1,'civicrm/pcp/campaign',NULL,'Setup a Personal Campaign Page - Account Information','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:22:\"CRM_PCP_Controller_PCP\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,0,1,0,0,'a:0:{}'), - (17,1,'civicrm/pcp/info',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:20:\"CRM_PCP_Page_PCPInfo\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (18,1,'civicrm/admin/pcp','context=contribute','Personal Campaign Pages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:16:\"CRM_PCP_Page_PCP\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,362,1,0,0,'a:2:{s:4:\"desc\";s:49:\"View and manage existing personal campaign pages.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), - (19,1,'civicrm/upgrade',NULL,'Upgrade CiviCRM','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:24:\"CRM_Upgrade_Page_Upgrade\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (20,1,'civicrm/export',NULL,'Download Errors','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Export_BAO_Export\";i:1;s:6:\"invoke\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (21,1,'civicrm/export/contact',NULL,'Export Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Export_BAO_Export\";i:1;s:6:\"invoke\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Download Errors\";s:3:\"url\";s:23:\"/civicrm/export?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,0,1,0,0,'a:0:{}'), - (22,1,'civicrm/export/standalone',NULL,'Export','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Export_Controller_Standalone\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Download Errors\";s:3:\"url\";s:23:\"/civicrm/export?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (23,1,'civicrm/admin/options/acl_role',NULL,'ACL Roles','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (24,1,'civicrm/acl',NULL,'Manage ACLs','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:16:\"CRM_ACL_Page_ACL\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (25,1,'civicrm/acl/edit',NULL,'Manage ACLs','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:16:\"CRM_ACL_Form_ACL\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"Manage ACLs\";s:3:\"url\";s:20:\"/civicrm/acl?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (26,1,'civicrm/acl/delete',NULL,'Manage ACLs','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:16:\"CRM_ACL_Form_ACL\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"Manage ACLs\";s:3:\"url\";s:20:\"/civicrm/acl?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (27,1,'civicrm/acl/entityrole',NULL,'Assign Users to ACL Roles','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_ACL_Page_EntityRole\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"Manage ACLs\";s:3:\"url\";s:20:\"/civicrm/acl?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (28,1,'civicrm/acl/entityrole/edit',NULL,'Assign Users to ACL Roles','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_ACL_Form_EntityRole\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"Manage ACLs\";s:3:\"url\";s:20:\"/civicrm/acl?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Assign Users to ACL Roles\";s:3:\"url\";s:31:\"/civicrm/acl/entityrole?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (29,1,'civicrm/file',NULL,'Browse Uploaded files','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access uploaded files\";}i:1;s:3:\"and\";}','s:18:\"CRM_Core_Page_File\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (30,1,'civicrm/file/delete',NULL,'Delete File','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:17:\"CRM_Core_BAO_File\";i:1;s:16:\"deleteAttachment\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:21:\"Browse Uploaded files\";s:3:\"url\";s:21:\"/civicrm/file?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (31,1,'civicrm/friend',NULL,'Tell a Friend','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:15:\"CRM_Friend_Form\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (32,1,'civicrm/logout',NULL,'Log out','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:16:\"CRM_Utils_System\";i:1;s:6:\"logout\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,9999,1,1,0,'a:0:{}'), - (33,1,'civicrm/i18n',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:17:\"translate CiviCRM\";}i:1;s:3:\"and\";}','s:18:\"CRM_Core_I18n_Form\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (34,1,'civicrm/ajax/attachment',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"access AJAX API\";}i:1;s:2:\"or\";}','a:2:{i:0;s:29:\"CRM_Core_Page_AJAX_Attachment\";i:1;s:10:\"attachFile\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (35,1,'civicrm/api',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Core_Page_Redirect\";','s:16:\"url=civicrm/api3\";','a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (36,1,'civicrm/api3',NULL,'CiviCRM API v3','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Admin_Page_APIExplorer\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (37,1,'civicrm/ajax/apidoc',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:26:\"CRM_Admin_Page_APIExplorer\";i:1;s:6:\"getDoc\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (38,1,'civicrm/ajax/rest',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"access AJAX API\";}i:1;s:2:\"or\";}','a:2:{i:0;s:14:\"CRM_Utils_REST\";i:1;s:4:\"ajax\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (39,1,'civicrm/api/json',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:14:\"CRM_Utils_REST\";i:1;s:8:\"ajaxJson\";}','s:16:\"url=civicrm/api3\";','a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (40,1,'civicrm/inline',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:14:\"CRM_Utils_REST\";i:1;s:12:\"loadTemplate\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (41,1,'civicrm/ajax/chart',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Form_ContributionCharts\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (42,1,'civicrm/asset/builder',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"*always allow*\";}i:1;s:3:\"and\";}','a:2:{i:0;s:23:\"\\Civi\\Core\\AssetBuilder\";i:1;s:7:\"pageRun\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (43,1,'civicrm/contribute/ajax/tableview',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contribute_Page_DashBoard\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), - (44,1,'civicrm/payment/ipn',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','a:2:{i:0;s:16:\"CRM_Core_Payment\";i:1;s:9:\"handleIPN\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Payment\";s:3:\"url\";s:39:\"/civicrm/payment?reset=1&action=add\";}}',NULL,NULL,2,1,1,1,0,1,1,0,0,'a:0:{}'), - (45,1,'civicrm/batch',NULL,'Batch Data Entry','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:20:\"CRM_Batch_Page_Batch\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (46,1,'civicrm/batch/add',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:20:\"CRM_Batch_Form_Batch\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:16:\"Batch Data Entry\";s:3:\"url\";s:22:\"/civicrm/batch?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (47,1,'civicrm/batch/entry',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:20:\"CRM_Batch_Form_Entry\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:16:\"Batch Data Entry\";s:3:\"url\";s:22:\"/civicrm/batch?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (48,1,'civicrm/ajax/batch',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Batch_Page_AJAX\";i:1;s:9:\"batchSave\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (49,1,'civicrm/ajax/batchlist',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Batch_Page_AJAX\";i:1;s:12:\"getBatchList\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (50,1,'civicrm/ajax/inline',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:18:\"CRM_Core_Page_AJAX\";i:1;s:3:\"run\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (51,1,'civicrm/dev/qunit',NULL,'QUnit','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:19:\"CRM_Core_Page_QUnit\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (52,1,'civicrm/dev/fake-error',NULL,'Fake Error','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"*always allow*\";}i:1;s:3:\"and\";}','s:23:\"CRM_Core_Page_FakeError\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (53,1,'civicrm/profile-editor/schema',NULL,'ProfileEditor','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:25:\"CRM_UF_Page_ProfileEditor\";i:1;s:13:\"getSchemaJSON\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (54,1,'civicrm/a',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"\\Civi\\Angular\\Page\\Main\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (55,1,'civicrm/ajax/angular-modules',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"*always allow*\";}i:1;s:3:\"and\";}','s:26:\"\\Civi\\Angular\\Page\\Modules\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (56,1,'civicrm/ajax/recurringentity/update-mode',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:34:\"CRM_Core_Page_AJAX_RecurringEntity\";i:1;s:10:\"updateMode\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (57,1,'civicrm/recurringentity/preview',NULL,'Confirm dates','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:36:\"CRM_Core_Page_RecurringEntityPreview\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (58,1,'civicrm/shortcode',NULL,'Insert CiviCRM Content','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_Core_Form_ShortCode\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (59,1,'civicrm/task/add-to-group',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Contact_Form_Task_AddToGroup\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (60,1,'civicrm/task/remove-from-group',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:37:\"CRM_Contact_Form_Task_RemoveFromGroup\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (61,1,'civicrm/task/add-to-tag',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Contact_Form_Task_AddToTag\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (62,1,'civicrm/task/remove-from-tag',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Contact_Form_Task_RemoveFromTag\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (63,1,'civicrm/task/send-email',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Contact_Form_Task_Email\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (64,1,'civicrm/task/make-mailing-label',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Contact_Form_Task_Label\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (65,1,'civicrm/task/pick-profile',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:33:\"CRM_Contact_Form_Task_PickProfile\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (66,1,'civicrm/task/print-document',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Contact_Form_Task_PDF\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (67,1,'civicrm/task/unhold-email',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:28:\"CRM_Contact_Form_Task_Unhold\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (68,1,'civicrm/task/alter-contact-preference',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contact_Form_Task_AlterPreferences\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (69,1,'civicrm/task/delete-contact',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:28:\"CRM_Contact_Form_Task_Delete\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (70,1,'civicrm/task/add-activity',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Activity_Form_Activity\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (71,1,'civicrm/payment/form',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:26:\"CRM_Financial_Form_Payment\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Payment\";s:3:\"url\";s:39:\"/civicrm/payment?reset=1&action=add\";}}',NULL,NULL,2,1,1,1,0,0,1,0,0,'a:0:{}'), - (72,1,'civicrm/payment/edit',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:30:\"CRM_Financial_Form_PaymentEdit\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Payment\";s:3:\"url\";s:39:\"/civicrm/payment?reset=1&action=add\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), - (73,1,'civicrm/import',NULL,'Import','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:15:\"import contacts\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Import_Controller\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,400,1,1,0,'a:0:{}'), - (74,1,'civicrm/import/contact',NULL,'Import Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:15:\"import contacts\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Import_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,410,1,1,0,'a:0:{}'), - (75,1,'civicrm/import/contact/summary',NULL,'Import Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Contact_Import_Form_Summary\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}i:2;a:2:{s:5:\"title\";s:15:\"Import Contacts\";s:3:\"url\";s:31:\"/civicrm/import/contact?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,410,1,1,0,'a:0:{}'), - (76,1,'civicrm/import/outcome',NULL,'Import results','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:16:\"CRM_Import_Forms\";i:1;s:9:\"outputCSV\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (77,1,'civicrm/import/activity',NULL,'Import Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:15:\"import contacts\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Activity_Import_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,420,1,1,0,'a:0:{}'), - (78,1,'civicrm/import/contribution',NULL,'Import Contributions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:21:\"access CiviContribute\";i:1;s:18:\"edit contributions\";}i:1;s:3:\"and\";}','s:32:\"CRM_Contribute_Import_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,520,1,1,0,'a:0:{}'), - (79,1,'civicrm/import/custom','id=%%id%%','Import Multi-value Custom Data','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:28:\"CRM_Custom_Import_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,420,1,1,0,'a:0:{}'), - (80,1,'civicrm/ajax/status',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:15:\"import contacts\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:28:\"CRM_Contact_Import_Page_AJAX\";i:1;s:6:\"status\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (81,1,'civicrm/import/datasource',NULL,'Import','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Import_Form_DataSourceConfig\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,450,1,1,0,'a:0:{}'), - (82,1,'civicrm/custom/add',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Custom_Form_CustomData\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (83,1,'civicrm/ajax/optionlist',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:20:\"CRM_Custom_Page_AJAX\";i:1;s:13:\"getOptionList\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (84,1,'civicrm/ajax/reorder',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:20:\"CRM_Custom_Page_AJAX\";i:1;s:11:\"fixOrdering\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (85,1,'civicrm/ajax/multirecordfieldlist',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:20:\"CRM_Custom_Page_AJAX\";i:1;s:23:\"getMultiRecordFieldList\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (86,1,'civicrm/admin/custom/group',NULL,'Custom Data','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:21:\"CRM_Custom_Page_Group\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:2:{s:4:\"desc\";s:109:\"Configure custom fields to collect and store custom data which is not included in the standard CiviCRM forms.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (87,1,'civicrm/admin/custom/group/edit',NULL,'Configure Custom Set','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:21:\"CRM_Custom_Form_Group\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (88,1,'civicrm/admin/custom/group/preview',NULL,'Custom Field Preview','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:23:\"CRM_Custom_Form_Preview\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (89,1,'civicrm/admin/custom/group/delete',NULL,'Delete Custom Set','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:27:\"CRM_Custom_Form_DeleteGroup\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (90,1,'civicrm/admin/custom/group/field',NULL,'Custom Data Fields','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:21:\"CRM_Custom_Page_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,11,1,0,0,'a:0:{}'), - (91,1,'civicrm/admin/custom/group/field/delete',NULL,'Delete Custom Field','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:27:\"CRM_Custom_Form_DeleteField\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (92,1,'civicrm/admin/custom/group/field/option',NULL,'Custom Field - Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:22:\"CRM_Custom_Page_Option\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (93,1,'civicrm/admin/custom/group/field/add',NULL,'Custom Field - Add','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:21:\"CRM_Custom_Form_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (94,1,'civicrm/admin/custom/group/field/update',NULL,'Custom Field - Edit','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:21:\"CRM_Custom_Form_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (95,1,'civicrm/admin/custom/group/field/move',NULL,'Custom Field - Move','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:25:\"CRM_Custom_Form_MoveField\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (96,1,'civicrm/admin/uf/group',NULL,'Profiles','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Page_Group\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,20,1,0,0,'a:2:{s:4:\"desc\";s:151:\"Profiles allow you to aggregate groups of fields and include them in your site as input forms, contact display pages, and search and listings features.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (97,1,'civicrm/admin/uf/group/preview',NULL,'Preview','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:19:\"CRM_UF_Form_Preview\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (98,1,'civicrm/admin/uf/group/field',NULL,'CiviCRM Profile Fields','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Page_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,21,1,0,0,'a:0:{}'), - (99,1,'civicrm/admin/uf/group/field/add',NULL,'Add Field','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Form_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,22,1,0,0,'a:0:{}'), - (100,1,'civicrm/admin/uf/group/field/update',NULL,'Edit Field','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Form_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,23,1,0,0,'a:0:{}'), - (101,1,'civicrm/admin/uf/group/add',NULL,'New CiviCRM Profile','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Form_Group\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,24,1,0,0,'a:0:{}'), - (102,1,'civicrm/admin/uf/group/update',NULL,'Profile Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Form_Group\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,25,1,0,0,'a:0:{}'), - (103,1,'civicrm/admin/uf/group/setting',NULL,'AdditionalInfo Form','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_UF_Form_AdvanceSetting\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,0,1,0,0,'a:0:{}'), - (104,1,'civicrm/admin/options/activity_type',NULL,'Activity Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,30,1,0,0,'a:2:{s:4:\"desc\";s:155:\"CiviCRM has several built-in activity types (meetings, phone calls, emails sent). Track other types of interactions by creating custom activity types here.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (105,1,'civicrm/admin/reltype',NULL,'Relationship Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Admin_Page_RelationshipType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,35,1,0,0,'a:2:{s:4:\"desc\";s:148:\"Contacts can be linked to each other through Relationships (e.g. Spouse, Employer, etc.). Define the types of relationships you want to record here.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (106,1,'civicrm/admin/reltype/edit',NULL,'Edit Relationship Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Admin_Form_RelationshipType\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:18:\"Relationship Types\";s:3:\"url\";s:30:\"/civicrm/admin/reltype?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (107,1,'civicrm/admin/options/subtype',NULL,'Contact Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Admin_Page_ContactType\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,40,1,0,0,'a:1:{s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (108,1,'civicrm/admin/options/subtype/edit',NULL,'Edit Contact Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Admin_Form_ContactType\";',NULL,'a:4:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}i:3;a:2:{s:5:\"title\";s:13:\"Contact Types\";s:3:\"url\";s:38:\"/civicrm/admin/options/subtype?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (109,1,'civicrm/admin/options/gender',NULL,'Gender Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,45,1,0,0,'a:2:{s:4:\"desc\";s:79:\"Options for assigning gender to individual contacts (e.g. Male, Female, Other).\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (110,1,'civicrm/admin/options/individual_prefix',NULL,'Individual Prefixes (Ms, Mr...)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,50,1,0,0,'a:2:{s:4:\"desc\";s:66:\"Options for individual contact prefixes (e.g. Ms., Mr., Dr. etc.).\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (111,1,'civicrm/admin/options/individual_suffix',NULL,'Individual Suffixes (Jr, Sr...)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,55,1,0,0,'a:2:{s:4:\"desc\";s:61:\"Options for individual contact suffixes (e.g. Jr., Sr. etc.).\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (112,1,'civicrm/admin/locationType',NULL,'Location Types (Home, Work...)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Page_LocationType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,60,1,0,0,'a:2:{s:4:\"desc\";s:94:\"Options for categorizing contact addresses and phone numbers (e.g. Home, Work, Billing, etc.).\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (113,1,'civicrm/admin/locationType/edit',NULL,'Edit Location Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Form_LocationType\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:30:\"Location Types (Home, Work...)\";s:3:\"url\";s:35:\"/civicrm/admin/locationType?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (114,1,'civicrm/admin/options/website_type',NULL,'Website Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,65,1,0,0,'a:2:{s:4:\"desc\";s:48:\"Options for assigning website types to contacts.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (115,1,'civicrm/admin/options/instant_messenger_service',NULL,'Instant Messenger Services','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,70,1,0,0,'a:2:{s:4:\"desc\";s:79:\"List of IM services which can be used when recording screen-names for contacts.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (116,1,'civicrm/admin/options/mobile_provider',NULL,'Mobile Phone Providers','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,75,1,0,0,'a:2:{s:4:\"desc\";s:90:\"List of mobile phone providers which can be assigned when recording contact phone numbers.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (117,1,'civicrm/admin/options/phone_type',NULL,'Phone Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,80,1,0,0,'a:2:{s:4:\"desc\";s:80:\"Options for assigning phone type to contacts (e.g Phone,\n Mobile, Fax, Pager)\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (118,1,'civicrm/admin/setting/preferences/display',NULL,'Display Preferences','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:34:\"CRM_Admin_Form_Preferences_Display\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,90,1,0,0,'a:1:{s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (119,1,'civicrm/admin/setting/search',NULL,'Search Preferences','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Admin_Form_Setting_Search\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,95,1,0,0,'a:1:{s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (120,1,'civicrm/admin/setting/preferences/date',NULL,'View Date Preferences','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Admin_Page_PreferencesDate\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (121,1,'civicrm/admin/menu',NULL,'Navigation Menu','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Admin_Page_Navigation\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,100,1,0,0,'a:2:{s:4:\"desc\";s:79:\"Add or remove menu items, and modify the order of items on the navigation menu.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (122,1,'civicrm/admin/options/wordreplacements',NULL,'Word Replacements','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Admin_Form_WordReplacements\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,105,1,0,0,'a:2:{s:4:\"desc\";s:18:\"Word Replacements.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (123,1,'civicrm/admin/options/custom_search',NULL,'Manage Custom Searches','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,110,1,0,0,'a:2:{s:4:\"desc\";s:225:\"Developers and accidental techies with a bit of PHP and SQL knowledge can create new search forms to handle specific search and reporting needs which aren\'t covered by the built-in Advanced Search and Search Builder features.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (124,1,'civicrm/admin/domain','action=update','Organization Address and Contact Info','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_Contact_Form_Domain\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:2:{s:4:\"desc\";s:150:\"Configure primary contact name, email, return-path and address information. This information is used by CiviMail to identify the sending organization.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), - (125,1,'civicrm/admin/options/from_email_address',NULL,'From Email Addresses','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,20,1,0,0,'a:2:{s:4:\"desc\";s:74:\"List of Email Addresses which can be used when sending emails to contacts.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), - (126,1,'civicrm/admin/messageTemplates',NULL,'Message Templates','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:22:\"edit message templates\";i:1;s:34:\"edit user-driven message templates\";i:2;s:38:\"edit system workflow message templates\";}i:1;s:2:\"or\";}','s:31:\"CRM_Admin_Page_MessageTemplates\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,30,1,0,0,'a:2:{s:4:\"desc\";s:130:\"Message templates allow you to save and re-use messages with layouts which you can use when sending email to one or more contacts.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), - (127,1,'civicrm/admin/messageTemplates/add',NULL,'Message Templates','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:22:\"edit message templates\";i:1;s:34:\"edit user-driven message templates\";i:2;s:38:\"edit system workflow message templates\";}i:1;s:2:\"or\";}','s:31:\"CRM_Admin_Form_MessageTemplates\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:17:\"Message Templates\";s:3:\"url\";s:39:\"/civicrm/admin/messageTemplates?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,262,1,0,0,'a:1:{s:4:\"desc\";s:26:\"Add/Edit Message Templates\";}'), - (128,1,'civicrm/admin/scheduleReminders',NULL,'Schedule Reminders','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:32:\"CRM_Admin_Page_ScheduleReminders\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,40,1,0,0,'a:2:{s:4:\"desc\";s:19:\"Schedule Reminders.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), - (129,1,'civicrm/admin/scheduleReminders/edit',NULL,'Schedule Reminders','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCRM data\";i:1;s:15:\"edit all events\";}i:1;s:2:\"or\";}','s:32:\"CRM_Admin_Form_ScheduleReminders\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:18:\"Schedule Reminders\";s:3:\"url\";s:40:\"/civicrm/admin/scheduleReminders?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (130,1,'civicrm/admin/weight',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:16:\"CRM_Utils_Weight\";i:1;s:8:\"fixOrder\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (131,1,'civicrm/admin/options/preferred_communication_method',NULL,'Preferred Communication Methods','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,50,1,0,0,'a:2:{s:4:\"desc\";s:117:\"One or more preferred methods of communication can be assigned to each contact. Customize the available options here.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), - (132,1,'civicrm/admin/labelFormats',NULL,'Label Page Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Page_LabelFormats\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,60,1,0,0,'a:2:{s:4:\"desc\";s:82:\"Configure label sizes and page layouts that are used when printing mailing labels.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), - (133,1,'civicrm/admin/pdfFormats',NULL,'Print Page (PDF) Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Admin_Page_PdfFormats\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,70,1,0,0,'a:2:{s:4:\"desc\";s:95:\"Configure PDF Page Formats that can be assigned to Message Templates when creating PDF letters.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), - (134,1,'civicrm/admin/options/communication_style',NULL,'Communication Style Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,75,1,0,0,'a:2:{s:4:\"desc\";s:42:\"Options for Communication Style selection.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), - (135,1,'civicrm/admin/options/email_greeting',NULL,'Email Greeting Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,80,1,0,0,'a:2:{s:4:\"desc\";s:75:\"Options for assigning email greetings to individual and household contacts.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), - (136,1,'civicrm/admin/options/postal_greeting',NULL,'Postal Greeting Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,90,1,0,0,'a:2:{s:4:\"desc\";s:76:\"Options for assigning postal greetings to individual and household contacts.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), - (137,1,'civicrm/admin/options/addressee',NULL,'Addressee Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,100,1,0,0,'a:2:{s:4:\"desc\";s:83:\"Options for assigning addressee to individual, household and organization contacts.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), - (138,1,'civicrm/admin/setting/localization',NULL,'Languages, Currency, Locations','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Admin_Form_Setting_Localization\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:1:{s:10:\"adminGroup\";s:12:\"Localization\";}'), - (139,1,'civicrm/admin/setting/preferences/address',NULL,'Address Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:34:\"CRM_Admin_Form_Preferences_Address\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,20,1,0,0,'a:1:{s:10:\"adminGroup\";s:12:\"Localization\";}'), - (140,1,'civicrm/admin/setting/date',NULL,'Date Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Form_Setting_Date\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,30,1,0,0,'a:1:{s:10:\"adminGroup\";s:12:\"Localization\";}'), - (141,1,'civicrm/admin/options/languages',NULL,'Preferred Languages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,40,1,0,0,'a:2:{s:4:\"desc\";s:30:\"Options for contact languages.\";s:10:\"adminGroup\";s:12:\"Localization\";}'), - (142,1,'civicrm/admin/access',NULL,'Access Control','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_Admin_Page_Access\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:2:{s:4:\"desc\";s:73:\"Grant or deny access to actions (view, edit...), features and components.\";s:10:\"adminGroup\";s:21:\"Users and Permissions\";}'), - (143,1,'civicrm/admin/access/wp-permissions',NULL,'WordPress Access Control','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:34:\"CRM_ACL_Form_WordPress_Permissions\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:14:\"Access Control\";s:3:\"url\";s:29:\"/civicrm/admin/access?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:1:{s:4:\"desc\";s:65:\"Grant access to CiviCRM components and other CiviCRM permissions.\";}'), - (144,1,'civicrm/admin/synchUser',NULL,'Synchronize Users to Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Form_CMSUser\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,20,1,0,0,'a:2:{s:4:\"desc\";s:71:\"Automatically create a CiviCRM contact record for each CMS user record.\";s:10:\"adminGroup\";s:21:\"Users and Permissions\";}'), - (145,1,'civicrm/admin/configtask',NULL,'Configuration Checklist','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Admin_Page_ConfigTaskList\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}','civicrm/admin/configtask',NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:4:\"desc\";s:55:\"List of configuration tasks with links to each setting.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (146,1,'civicrm/admin/setting/component',NULL,'Enable CiviCRM Components','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Admin_Form_Setting_Component\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:2:{s:4:\"desc\";s:269:\"Enable or disable components (e.g. CiviEvent, CiviMember, etc.) for your site based on the features you need. We recommend disabling any components not being used in order to simplify the user interface. You can easily re-enable components at any time from this screen.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (147,1,'civicrm/admin/extensions',NULL,'Manage Extensions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:25:\"CRM_Admin_Page_Extensions\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,120,1,0,0,'a:2:{s:4:\"desc\";s:0:\"\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (148,1,'civicrm/admin/extensions/upgrade',NULL,'Database Upgrades','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:32:\"CRM_Admin_Page_ExtensionsUpgrade\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:17:\"Manage Extensions\";s:3:\"url\";s:33:\"/civicrm/admin/extensions?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (149,1,'civicrm/admin/setting/smtp',NULL,'Outbound Email Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Form_Setting_Smtp\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,20,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (150,1,'civicrm/admin/paymentProcessor',NULL,'Settings - Payment Processor','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:29:\"administer payment processors\";}i:1;s:3:\"and\";}','s:31:\"CRM_Admin_Page_PaymentProcessor\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,30,1,0,0,'a:2:{s:4:\"desc\";s:48:\"Payment Processor setup for CiviCRM transactions\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (151,1,'civicrm/admin/paymentProcessor/edit',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:29:\"administer payment processors\";}i:1;s:3:\"and\";}','s:31:\"CRM_Admin_Form_PaymentProcessor\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:28:\"Settings - Payment Processor\";s:3:\"url\";s:39:\"/civicrm/admin/paymentProcessor?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (152,1,'civicrm/admin/setting/mapping',NULL,'Mapping and Geocoding','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Admin_Form_Setting_Mapping\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,40,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (153,1,'civicrm/admin/setting/misc',NULL,'Misc (Undelete, PDFs, Limits, Logging, etc.)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:36:\"CRM_Admin_Form_Setting_Miscellaneous\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,50,1,0,0,'a:2:{s:4:\"desc\";s:63:\"Enable undelete/move to trash feature, detailed change logging.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (154,1,'civicrm/admin/setting/path',NULL,'Directories','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Form_Setting_Path\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,60,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (155,1,'civicrm/admin/setting/url',NULL,'Resource URLs','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Admin_Form_Setting_Url\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,70,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (156,1,'civicrm/admin/setting/updateConfigBackend',NULL,'Cleanup Caches and Update Paths','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:42:\"CRM_Admin_Form_Setting_UpdateConfigBackend\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,80,1,0,0,'a:2:{s:4:\"desc\";s:157:\"Reset the Base Directory Path and Base URL settings - generally when a CiviCRM site is moved to another location in the file system and/or to another domain.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (157,1,'civicrm/admin/setting/uf',NULL,'CMS Database Integration','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Admin_Form_Setting_UF\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,90,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (158,1,'civicrm/admin/options/safe_file_extension',NULL,'Safe File Extension Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,100,1,0,0,'a:2:{s:4:\"desc\";s:44:\"File Extensions that can be considered safe.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (159,1,'civicrm/admin/options',NULL,'Option Groups','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,105,1,0,0,'a:2:{s:4:\"desc\";s:35:\"Access all meta-data option groups.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (160,1,'civicrm/admin/mapping',NULL,'Import/Export Mappings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Mapping\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,110,1,0,0,'a:2:{s:4:\"desc\";s:141:\"Import and Export mappings allow you to easily run the same job multiple times. This option allows you to rename or delete existing mappings.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (161,1,'civicrm/admin/setting/debug',NULL,'Debugging','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Admin_Form_Setting_Debugging\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,120,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (162,1,'civicrm/admin/setting/preferences/multisite',NULL,'Multi Site Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Form_Generic\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,130,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (163,1,'civicrm/admin/setting/preferences/campaign',NULL,'CiviCampaign Component Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Form_Generic\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:3:{s:4:\"desc\";s:40:\"Configure global CiviCampaign behaviors.\";s:10:\"adminGroup\";s:12:\"CiviCampaign\";s:9:\"component\";s:12:\"CiviCampaign\";}'), - (164,1,'civicrm/admin/setting/preferences/event',NULL,'CiviEvent Component Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:16:\"access CiviEvent\";i:1;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Form_Generic\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,420,1,0,0,'a:2:{s:4:\"desc\";s:37:\"Configure global CiviEvent behaviors.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), - (165,1,'civicrm/admin/setting/preferences/mailing',NULL,'CiviMail Component Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:15:\"access CiviMail\";i:1;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:34:\"CRM_Admin_Form_Preferences_Mailing\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,430,1,0,0,'a:2:{s:4:\"desc\";s:36:\"Configure global CiviMail behaviors.\";s:10:\"adminGroup\";s:8:\"CiviMail\";}'), - (166,1,'civicrm/admin/setting/preferences/member',NULL,'CiviMember Component Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:17:\"access CiviMember\";i:1;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:33:\"CRM_Admin_Form_Preferences_Member\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,390,1,0,0,'a:2:{s:4:\"desc\";s:38:\"Configure global CiviMember behaviors.\";s:10:\"adminGroup\";s:10:\"CiviMember\";}'), - (167,1,'civicrm/admin/runjobs',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','a:2:{i:0;s:16:\"CRM_Utils_System\";i:1;s:20:\"executeScheduledJobs\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:1:{s:4:\"desc\";s:36:\"URL used for running scheduled jobs.\";}'), - (168,1,'civicrm/admin/job',NULL,'Scheduled Jobs','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:18:\"CRM_Admin_Page_Job\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1370,1,0,0,'a:2:{s:4:\"desc\";s:35:\"Managing periodially running tasks.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (169,1,'civicrm/admin/job/add',NULL,'Add Scheduled Job','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:18:\"CRM_Admin_Form_Job\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:14:\"Scheduled Jobs\";s:3:\"url\";s:26:\"/civicrm/admin/job?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:1:{s:4:\"desc\";s:31:\"Add a periodially running task.\";}'), - (170,1,'civicrm/admin/job/edit',NULL,'Edit Scheduled Job','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:18:\"CRM_Admin_Page_Job\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:14:\"Scheduled Jobs\";s:3:\"url\";s:26:\"/civicrm/admin/job?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1372,1,0,0,'a:2:{s:4:\"desc\";s:32:\"Edit a periodially running task.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (171,1,'civicrm/admin/joblog',NULL,'Scheduled Jobs Log','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:21:\"CRM_Admin_Page_JobLog\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1380,1,0,0,'a:2:{s:4:\"desc\";s:46:\"Browsing the log of periodially running tasks.\";s:10:\"adminGroup\";s:6:\"Manage\";}'), - (172,1,'civicrm/admin/options/grant_type',NULL,'Grant Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,385,1,0,0,'a:2:{s:4:\"desc\";s:148:\"List of types which can be assigned to Grants. (Enable CiviGrant from Administer > System Settings > Enable Components if you want to track grants.)\";s:10:\"adminGroup\";s:12:\"Option Lists\";}'), - (173,1,'civicrm/admin/paymentProcessorType',NULL,'Payment Processor Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Admin_Page_PaymentProcessorType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,390,1,0,0,'a:1:{s:4:\"desc\";s:34:\"Payment Processor type information\";}'), - (174,1,'civicrm/admin',NULL,'Administer','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:20:\"CRM_Admin_Page_Admin\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,9000,1,1,0,'a:0:{}'), - (175,1,'civicrm/ajax/navmenu',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Admin_Page_AJAX\";i:1;s:7:\"navMenu\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (176,1,'civicrm/ajax/menutree',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Admin_Page_AJAX\";i:1;s:8:\"menuTree\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,3,0,'a:0:{}'), - (177,1,'civicrm/ajax/statusmsg',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Admin_Page_AJAX\";i:1;s:12:\"getStatusMsg\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (178,1,'civicrm/admin/price',NULL,'Price Sets','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_Price_Page_Set\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,380,1,0,0,'a:2:{s:4:\"desc\";s:205:\"Price sets allow you to offer multiple options with associated fees (e.g. pre-conference workshops, additional meals, etc.). Configure Price Sets for events which need more than a single set of fee levels.\";s:10:\"adminGroup\";s:9:\"Customize\";}'), - (179,1,'civicrm/admin/price/add','action=add','New Price Set','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_Price_Page_Set\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:1:{s:4:\"desc\";s:205:\"Price sets allow you to offer multiple options with associated fees (e.g. pre-conference workshops, additional meals, etc.). Configure Price Sets for events which need more than a single set of fee levels.\";}'), - (180,1,'civicrm/admin/price/edit',NULL,'Price Sets','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_Price_Page_Set\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (181,1,'civicrm/admin/price/field',NULL,'Price Fields','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:20:\"CRM_Price_Page_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (182,1,'civicrm/admin/price/field/edit',NULL,'Price Fields','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:20:\"CRM_Price_Page_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (183,1,'civicrm/admin/price/field/option',NULL,'Price Field Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:21:\"CRM_Price_Page_Option\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (184,1,'civicrm/admin/price/field/option/edit',NULL,'Price Field Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:21:\"CRM_Price_Page_Option\";',NULL,'a:4:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}i:3;a:2:{s:5:\"title\";s:19:\"Price Field Options\";s:3:\"url\";s:41:\"/civicrm/admin/price/field/option?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (185,1,'civicrm/admin/sms/provider',NULL,'Sms Providers','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_SMS_Page_Provider\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,500,1,0,0,'a:2:{s:4:\"desc\";s:27:\"To configure a sms provider\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (186,1,'civicrm/sms/send',NULL,'New Mass SMS','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:8:\"send SMS\";}i:1;s:3:\"and\";}','s:23:\"CRM_SMS_Controller_Send\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,610,1,1,0,'a:0:{}'), - (187,1,'civicrm/sms/callback',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_SMS_Page_Callback\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (188,1,'civicrm/admin/badgelayout','action=browse','Event Name Badge Layouts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_Badge_Page_Layout\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,399,1,0,0,'a:2:{s:4:\"desc\";s:107:\"Configure name badge layouts for event participants, including logos and what data to include on the badge.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), - (189,1,'civicrm/admin/badgelayout/add',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_Badge_Form_Layout\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:24:\"Event Name Badge Layouts\";s:3:\"url\";s:52:\"/civicrm/admin/badgelayout?reset=1&action=browse\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (190,1,'civicrm',NULL,'CiviCRM','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Contact_Page_DashBoard\";',NULL,'a:0:{}',NULL,NULL,NULL,1,0,1,0,0,1,0,0,'a:0:{}'), - (191,1,'civicrm/dashboard',NULL,'CiviCRM Home','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Contact_Page_DashBoard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,0,1,1,0,'a:0:{}'), - (192,1,'civicrm/contact/search',NULL,'Find Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Controller_Search\";','s:8:\"mode=256\";','a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,10,1,1,0,'a:0:{}'), - (193,1,'civicrm/contact/image',NULL,'Process Uploaded Images','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access uploaded files\";}i:1;s:3:\"and\";}','a:2:{i:0;s:23:\"CRM_Contact_BAO_Contact\";i:1;s:12:\"processImage\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (194,1,'civicrm/contact/imagefile',NULL,'Get Image File','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"*always allow*\";}i:1;s:3:\"and\";}','s:26:\"CRM_Contact_Page_ImageFile\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (195,1,'civicrm/contact/search/basic',NULL,'Find Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Controller_Search\";','s:8:\"mode=256\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Find Contacts\";s:3:\"url\";s:31:\"/civicrm/contact/search?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (196,1,'civicrm/contact/search/advanced',NULL,'Advanced Search','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Controller_Search\";','s:8:\"mode=512\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Find Contacts\";s:3:\"url\";s:31:\"/civicrm/contact/search?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,12,1,1,0,'a:0:{}'), - (197,1,'civicrm/contact/search/builder',NULL,'Search Builder','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Controller_Search\";','s:9:\"mode=8192\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Find Contacts\";s:3:\"url\";s:31:\"/civicrm/contact/search?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,14,1,1,0,'a:0:{}'), - (198,1,'civicrm/contact/add',NULL,'New Contact','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:24:\"CRM_Contact_Form_Contact\";','s:13:\"addSequence=1\";','a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (199,1,'civicrm/contact/add/individual','ct=Individual','New Individual','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:12:\"add contacts\";}i:1;s:3:\"and\";}','s:24:\"CRM_Contact_Form_Contact\";','s:13:\"addSequence=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Contact\";s:3:\"url\";s:28:\"/civicrm/contact/add?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (200,1,'civicrm/contact/add/household','ct=Household','New Household','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:12:\"add contacts\";}i:1;s:3:\"and\";}','s:24:\"CRM_Contact_Form_Contact\";','s:13:\"addSequence=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Contact\";s:3:\"url\";s:28:\"/civicrm/contact/add?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (201,1,'civicrm/contact/add/organization','ct=Organization','New Organization','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:12:\"add contacts\";}i:1;s:3:\"and\";}','s:24:\"CRM_Contact_Form_Contact\";','s:13:\"addSequence=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Contact\";s:3:\"url\";s:28:\"/civicrm/contact/add?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (202,1,'civicrm/contact/relatedcontact',NULL,'Edit Related Contact','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"access Contact Dashboard\";}i:1;s:3:\"and\";}','s:31:\"CRM_Contact_Form_RelatedContact\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (203,1,'civicrm/contact/merge',NULL,'Merge Contact','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','s:22:\"CRM_Contact_Form_Merge\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (204,1,'civicrm/contact/email',NULL,'Email a Contact','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Contact_Form_Task_Email\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (205,1,'civicrm/contact/map',NULL,'Map Location(s)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Contact_Form_Task_Map\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (206,1,'civicrm/contact/map/event',NULL,'Map Event Location','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Contact_Form_Task_Map_Event\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Map Location(s)\";s:3:\"url\";s:28:\"/civicrm/contact/map?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (207,1,'civicrm/contact/view','cid=%%cid%%','Contact Summary','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:29:\"CRM_Contact_Page_View_Summary\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (208,1,'civicrm/contact/view/delete',NULL,'Delete Contact','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:28:\"CRM_Contact_Form_Task_Delete\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (209,1,'civicrm/contact/view/activity','show=1,cid=%%cid%%','Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:21:\"CRM_Activity_Page_Tab\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (210,1,'civicrm/activity/add','action=add','Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Activity_Form_Activity\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (211,1,'civicrm/activity/email/add','action=add','Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Contact_Form_Task_Email\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (212,1,'civicrm/activity/pdf/add','action=add','Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Contact_Form_Task_PDF\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (213,1,'civicrm/contact/view/rel','cid=%%cid%%','Relationships','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:34:\"CRM_Contact_Page_View_Relationship\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (214,1,'civicrm/contact/view/group','cid=%%cid%%','Groups','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:34:\"CRM_Contact_Page_View_GroupContact\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (215,1,'civicrm/contact/view/smartgroup','cid=%%cid%%','Smart Groups','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:39:\"CRM_Contact_Page_View_ContactSmartGroup\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (216,1,'civicrm/contact/view/note','cid=%%cid%%','Notes','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:26:\"CRM_Contact_Page_View_Note\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (217,1,'civicrm/contact/view/tag','cid=%%cid%%','Tags','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:25:\"CRM_Contact_Page_View_Tag\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (218,1,'civicrm/contact/view/cd',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:32:\"CRM_Contact_Page_View_CustomData\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (219,1,'civicrm/contact/view/cd/edit',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:27:\"CRM_Contact_Form_CustomData\";','s:13:\"addSequence=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (220,1,'civicrm/contact/view/vcard',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:27:\"CRM_Contact_Page_View_Vcard\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (221,1,'civicrm/contact/view/print',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:27:\"CRM_Contact_Page_View_Print\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (222,1,'civicrm/contact/view/log',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:25:\"CRM_Contact_Page_View_Log\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (223,1,'civicrm/user',NULL,'Contact Dashboard','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"access Contact Dashboard\";}i:1;s:3:\"and\";}','s:35:\"CRM_Contact_Page_View_UserDashBoard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,0,1,0,0,'a:0:{}'), - (224,1,'civicrm/dashlet/activity',NULL,'Activity Dashlet','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Dashlet_Page_Activity\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (225,1,'civicrm/dashlet/blog',NULL,'CiviCRM Blog','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_Dashlet_Page_Blog\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (226,1,'civicrm/dashlet/getting-started',NULL,'CiviCRM Resources','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Dashlet_Page_GettingStarted\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (227,1,'civicrm/ajax/relation',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:12:\"relationship\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,3,0,'a:0:{}'), - (228,1,'civicrm/ajax/groupTree',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:9:\"groupTree\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (229,1,'civicrm/ajax/custom',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:11:\"customField\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (230,1,'civicrm/ajax/customvalue',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:17:\"deleteCustomValue\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,3,0,'a:0:{}'), - (231,1,'civicrm/ajax/cmsuser',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:13:\"checkUserName\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (232,1,'civicrm/ajax/checkemail',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:15:\"getContactEmail\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (233,1,'civicrm/ajax/checkphone',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:15:\"getContactPhone\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (234,1,'civicrm/ajax/subtype',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:13:\"buildSubTypes\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (235,1,'civicrm/ajax/signature',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:12:\"getSignature\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (236,1,'civicrm/ajax/pdfFormat',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:9:\"pdfFormat\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (237,1,'civicrm/ajax/paperSize',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:9:\"paperSize\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (238,1,'civicrm/ajax/contactref',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:31:\"access contact reference fields\";i:1;s:15:\" access CiviCRM\";}i:1;s:2:\"or\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:16:\"contactReference\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (239,1,'civicrm/dashlet/myCases',NULL,'Case Dashlet','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:24:\"CRM_Dashlet_Page_MyCases\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (240,1,'civicrm/dashlet/allCases',NULL,'All Cases Dashlet','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:31:\"access all cases and activities\";}i:1;s:3:\"and\";}','s:25:\"CRM_Dashlet_Page_AllCases\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (241,1,'civicrm/dashlet/casedashboard',NULL,'Case Dashboard Dashlet','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Dashlet_Page_CaseDashboard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (242,1,'civicrm/contact/deduperules',NULL,'Find and Merge Duplicate Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer dedupe rules\";i:1;s:24:\"merge duplicate contacts\";}i:1;s:2:\"or\";}','s:28:\"CRM_Contact_Page_DedupeRules\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,105,1,0,0,'a:2:{s:4:\"desc\";s:158:\"Manage the rules used to identify potentially duplicate contact records. Scan for duplicates using a selected rule and merge duplicate contact data as needed.\";s:10:\"adminGroup\";s:6:\"Manage\";}'), - (243,1,'civicrm/contact/dedupefind',NULL,'Find and Merge Duplicate Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','s:27:\"CRM_Contact_Page_DedupeFind\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (244,1,'civicrm/ajax/dedupefind',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:10:\"getDedupes\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (245,1,'civicrm/contact/dedupemerge',NULL,'Batch Merge Duplicate Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','s:28:\"CRM_Contact_Page_DedupeMerge\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (246,1,'civicrm/dedupe/exception',NULL,'Dedupe Exceptions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Contact_Page_DedupeException\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,110,1,0,0,'a:1:{s:10:\"adminGroup\";s:6:\"Manage\";}'), - (247,1,'civicrm/ajax/dedupeRules',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:16:\"buildDedupeRules\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (248,1,'civicrm/contact/view/useradd','cid=%%cid%%','Add User','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:29:\"CRM_Contact_Page_View_Useradd\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (249,1,'civicrm/ajax/markSelection',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:22:\"selectUnselectContacts\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (250,1,'civicrm/ajax/toggleDedupeSelect',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:18:\"toggleDedupeSelect\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (251,1,'civicrm/ajax/flipDupePairs',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:13:\"flipDupePairs\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (252,1,'civicrm/activity/sms/add','action=add','Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:8:\"send SMS\";}i:1;s:3:\"and\";}','s:25:\"CRM_Contact_Form_Task_SMS\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (253,1,'civicrm/ajax/contactrelationships',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"view my contact\";}i:1;s:2:\"or\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:23:\"getContactRelationships\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (254,1,'civicrm/ajax/jqState',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:27:\"CRM_Core_Page_AJAX_Location\";i:1;s:7:\"jqState\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (255,1,'civicrm/ajax/jqCounty',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:27:\"CRM_Core_Page_AJAX_Location\";i:1;s:8:\"jqCounty\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (256,1,'civicrm/group',NULL,'Manage Groups','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:20:\"CRM_Group_Page_Group\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,30,1,1,0,'a:0:{}'), - (257,1,'civicrm/group/search',NULL,'Group Members','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Controller_Search\";','s:8:\"mode=256\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Manage Groups\";s:3:\"url\";s:22:\"/civicrm/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:1:{s:7:\"comment\";s:164:\"Note: group search already respect ACL, so a strict permission at url level is not required. A simple/basic permission like \'access CiviCRM\' could be used. CRM-5417\";}'), - (258,1,'civicrm/group/add',NULL,'New Group','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:11:\"edit groups\";}i:1;s:3:\"and\";}','s:20:\"CRM_Group_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Manage Groups\";s:3:\"url\";s:22:\"/civicrm/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (259,1,'civicrm/group/edit',NULL,'Edit Group','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:11:\"edit groups\";}i:1;s:3:\"and\";}','s:19:\"CRM_Group_Form_Edit\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Manage Groups\";s:3:\"url\";s:22:\"/civicrm/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (260,1,'civicrm/ajax/grouplist',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Group_Page_AJAX\";i:1;s:12:\"getGroupList\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (261,1,'civicrm/tag',NULL,'Tags','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:11:\"manage tags\";}i:1;s:2:\"or\";}','s:16:\"CRM_Tag_Page_Tag\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,25,1,0,0,'a:2:{s:4:\"desc\";s:158:\"Tags are useful for segmenting the contacts in your database into categories (e.g. Staff Member, Donor, Volunteer, etc.). Create and edit available tags here.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), - (262,1,'civicrm/tag/edit','action=add','New Tag','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:11:\"manage tags\";}i:1;s:2:\"or\";}','s:17:\"CRM_Tag_Form_Edit\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:4:\"Tags\";s:3:\"url\";s:20:\"/civicrm/tag?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (263,1,'civicrm/tag/merge',NULL,'Merge Tags','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:11:\"manage tags\";}i:1;s:2:\"or\";}','s:18:\"CRM_Tag_Form_Merge\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:4:\"Tags\";s:3:\"url\";s:20:\"/civicrm/tag?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (264,1,'civicrm/ajax/tagTree',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:11:\"manage tags\";}i:1;s:2:\"or\";}','a:2:{i:0;s:19:\"CRM_Admin_Page_AJAX\";i:1;s:10:\"getTagTree\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (265,1,'civicrm/custom',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Custom_Form_CustomDataByType\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (266,1,'civicrm/event/manage/pcp',NULL,'Personal Campaign Pages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_PCP_Form_Event\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,540,1,1,0,'a:0:{}'), - (267,1,'civicrm/event/pcp',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:16:\"CRM_PCP_Form_PCP\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,1,1,0,0,'a:0:{}'), - (268,1,'civicrm/event/campaign',NULL,'Setup a Personal Campaign Page - Account Information','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:22:\"CRM_PCP_Controller_PCP\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,0,1,0,0,'a:0:{}'), - (269,1,'civicrm/event',NULL,'CiviEvent Dashboard','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:24:\"CRM_Event_Page_DashBoard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,1,1,0,1,0,800,1,1,0,'a:1:{s:9:\"component\";s:9:\"CiviEvent\";}'), - (270,1,'civicrm/participant/add','action=add','Register New Participant','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_Event_Page_Tab\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:9:\"CiviEvent\";}'), - (271,1,'civicrm/event/info',NULL,'Event Information','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:24:\"CRM_Event_Page_EventInfo\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,1,1,0,0,'a:0:{}'), - (272,1,'civicrm/event/register',NULL,'Event Registration','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:33:\"CRM_Event_Controller_Registration\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,1,1,1,0,0,'a:0:{}'), - (273,1,'civicrm/event/confirm',NULL,'Confirm Event Registration','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:46:\"CRM_Event_Form_Registration_ParticipantConfirm\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,1,1,1,0,0,'a:0:{}'), - (274,1,'civicrm/event/ical',NULL,'Current and Upcoming Events','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:15:\"view event info\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Event_ICalendar\";i:1;s:3:\"run\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,0,1,0,0,'a:0:{}'), - (275,1,'civicrm/event/list',NULL,'Current and Upcoming Events','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:15:\"view event info\";}i:1;s:3:\"and\";}','s:19:\"CRM_Event_Page_List\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,0,1,0,0,'a:0:{}'), - (276,1,'civicrm/event/participant',NULL,'Event Participants List','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"view event participants\";}i:1;s:3:\"and\";}','s:33:\"CRM_Event_Page_ParticipantListing\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,0,1,0,0,'a:0:{}'), - (277,1,'civicrm/admin/event',NULL,'Manage Events','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:26:\"CRM_Event_Page_ManageEvent\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,370,1,0,0,'a:2:{s:4:\"desc\";s:136:\"Create and edit event configuration including times, locations, online registration forms, and fees. Links for iCal and RSS syndication.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), - (278,1,'civicrm/admin/eventTemplate',NULL,'Event Templates','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:28:\"CRM_Admin_Page_EventTemplate\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,375,1,0,0,'a:2:{s:4:\"desc\";s:115:\"Administrators can create Event Templates - which are basically master event records pre-filled with default values\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), - (279,1,'civicrm/admin/options/event_type',NULL,'Event Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,385,1,0,0,'a:2:{s:4:\"desc\";s:143:\"Use Event Types to categorize your events. Event feeds can be filtered by Event Type and participant searches can use Event Type as a criteria.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), - (280,1,'civicrm/admin/participant_status',NULL,'Participant Status','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:36:\"CRM_Admin_Page_ParticipantStatusType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,390,1,0,0,'a:2:{s:4:\"desc\";s:154:\"Define statuses for event participants here (e.g. Registered, Attended, Cancelled...). You can then assign statuses and search for participants by status.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), - (281,1,'civicrm/admin/options/participant_role',NULL,'Participant Role','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,395,1,0,0,'a:2:{s:4:\"desc\";s:138:\"Define participant roles for events here (e.g. Attendee, Host, Speaker...). You can then assign roles and search for participants by role.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), - (282,1,'civicrm/admin/options/participant_listing',NULL,'Participant Listing Templates','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,398,1,0,0,'a:2:{s:4:\"desc\";s:48:\"Template to control participant listing display.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), - (283,1,'civicrm/admin/options/conference_slot',NULL,'Conference Slot Labels','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,415,1,0,0,'a:2:{s:4:\"desc\";s:35:\"Define conference slots and labels.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), - (284,1,'civicrm/event/search',NULL,'Find Participants','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:27:\"CRM_Event_Controller_Search\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,0,810,1,1,0,'a:0:{}'), - (285,1,'civicrm/event/manage',NULL,'Manage Events','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:26:\"CRM_Event_Page_ManageEvent\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,1,820,1,1,0,'a:0:{}'), - (286,1,'civicrm/event/badge',NULL,'Print Event Name Badge','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:25:\"CRM_Event_Form_Task_Badge\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,0,1,1,0,0,'a:0:{}'), - (287,1,'civicrm/event/manage/settings',NULL,'Event Info and Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:36:\"CRM_Event_Form_ManageEvent_EventInfo\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,910,1,0,0,'a:0:{}'), - (288,1,'civicrm/event/manage/location',NULL,'Event Location','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:35:\"CRM_Event_Form_ManageEvent_Location\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,930,1,0,0,'a:0:{}'), - (289,1,'civicrm/event/manage/fee',NULL,'Event Fees','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:30:\"CRM_Event_Form_ManageEvent_Fee\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,920,1,0,0,'a:0:{}'), - (290,1,'civicrm/event/manage/registration',NULL,'Event Online Registration','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:39:\"CRM_Event_Form_ManageEvent_Registration\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,930,1,0,0,'a:0:{}'), - (291,1,'civicrm/event/manage/friend',NULL,'Tell a Friend','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:21:\"CRM_Friend_Form_Event\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,940,1,0,0,'a:0:{}'), - (292,1,'civicrm/event/manage/reminder',NULL,'Schedule Reminders','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:44:\"CRM_Event_Form_ManageEvent_ScheduleReminders\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,950,1,0,0,'a:0:{}'), - (293,1,'civicrm/event/manage/repeat',NULL,'Repeat Event','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:33:\"CRM_Event_Form_ManageEvent_Repeat\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,960,1,0,0,'a:0:{}'), - (294,1,'civicrm/event/manage/conference',NULL,'Conference Slots','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:37:\"CRM_Event_Form_ManageEvent_Conference\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,950,1,0,0,'a:0:{}'), - (295,1,'civicrm/event/add','action=add','New Event','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:36:\"CRM_Event_Form_ManageEvent_EventInfo\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,0,830,1,0,0,'a:0:{}'), - (296,1,'civicrm/event/import',NULL,'Import Participants','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:16:\"access CiviEvent\";i:1;s:23:\"edit event participants\";}i:1;s:3:\"and\";}','s:27:\"CRM_Event_Import_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,0,840,1,1,0,'a:0:{}'), - (297,1,'civicrm/event/price',NULL,'Manage Price Sets','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_Price_Page_Set\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,0,850,1,1,0,'a:0:{}'), - (298,1,'civicrm/event/selfsvcupdate',NULL,'Self-service Registration Update','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:28:\"CRM_Event_Form_SelfSvcUpdate\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,880,1,1,0,'a:0:{}'), - (299,1,'civicrm/event/selfsvctransfer',NULL,'Self-service Registration Transfer','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:30:\"CRM_Event_Form_SelfSvcTransfer\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,890,1,1,0,'a:0:{}'), - (300,1,'civicrm/contact/view/participant',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:18:\"CRM_Event_Page_Tab\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,4,1,0,0,'a:0:{}'), - (301,1,'civicrm/ajax/eventFee',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Event_Page_AJAX\";i:1;s:8:\"eventFee\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (302,1,'civicrm/ajax/locBlock',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','a:2:{i:0;s:27:\"CRM_Core_Page_AJAX_Location\";i:1;s:11:\"getLocBlock\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (303,1,'civicrm/event/participant/feeselection',NULL,'Change Registration Selections','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:38:\"CRM_Event_Form_ParticipantFeeSelection\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:23:\"Event Participants List\";s:3:\"url\";s:34:\"/civicrm/event/participant?reset=1\";}}',NULL,NULL,1,1,0,1,0,1,1,0,0,'a:0:{}'), - (304,1,'civicrm/admin/contribute/pcp',NULL,'Personal Campaign Pages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_PCP_Form_Contribute\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,450,1,0,0,'a:0:{}'), - (305,1,'civicrm/contribute/campaign',NULL,'Setup a Personal Campaign Page - Account Information','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:22:\"CRM_PCP_Controller_PCP\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,1,1,0,0,1,0,0,'a:0:{}'), - (306,1,'civicrm/contribute',NULL,'CiviContribute Dashboard','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contribute_Page_DashBoard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,2,1,0,1,0,500,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), - (307,1,'civicrm/contribute/add','action=add','New Contribution','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:23:\"CRM_Contribute_Page_Tab\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), - (308,1,'civicrm/contribute/chart',NULL,'Contribution Summary - Chart View','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Form_ContributionCharts\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), - (309,1,'civicrm/contribute/transact',NULL,'CiviContribute','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Controller_Contribution\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,1,1,1,0,1,0,0,'a:0:{}'), - (310,1,'civicrm/admin/contribute',NULL,'Manage Contribution Pages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:36:\"CRM_Contribute_Page_ContributionPage\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,360,1,0,0,'a:2:{s:4:\"desc\";s:242:\"CiviContribute allows you to create and maintain any number of Online Contribution Pages. You can create different pages for different programs or campaigns - and customize text, amounts, types of information collected from contributors, etc.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), - (311,1,'civicrm/admin/contribute/settings',NULL,'Title and Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:45:\"CRM_Contribute_Form_ContributionPage_Settings\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,400,1,0,0,'a:0:{}'), - (312,1,'civicrm/admin/contribute/amount',NULL,'Contribution Amounts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:43:\"CRM_Contribute_Form_ContributionPage_Amount\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,410,1,0,0,'a:0:{}'), - (313,1,'civicrm/admin/contribute/membership',NULL,'Membership Section','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Member_Form_MembershipBlock\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,420,1,0,0,'a:0:{}'), - (314,1,'civicrm/admin/contribute/custom',NULL,'Include Profiles','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:43:\"CRM_Contribute_Form_ContributionPage_Custom\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,430,1,0,0,'a:0:{}'), - (315,1,'civicrm/admin/contribute/thankyou',NULL,'Thank-you and Receipting','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:45:\"CRM_Contribute_Form_ContributionPage_ThankYou\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,430,1,0,0,'a:0:{}'), - (316,1,'civicrm/admin/contribute/friend',NULL,'Tell a Friend','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Friend_Form_Contribute\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,440,1,0,0,'a:0:{}'), - (317,1,'civicrm/admin/contribute/widget',NULL,'Configure Widget','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:43:\"CRM_Contribute_Form_ContributionPage_Widget\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,460,1,0,0,'a:0:{}'), - (318,1,'civicrm/admin/contribute/premium',NULL,'Premiums','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:44:\"CRM_Contribute_Form_ContributionPage_Premium\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,470,1,0,0,'a:0:{}'), - (319,1,'civicrm/admin/contribute/addProductToPage',NULL,'Add Products to This Page','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:47:\"CRM_Contribute_Form_ContributionPage_AddProduct\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,480,1,0,0,'a:0:{}'), - (320,1,'civicrm/admin/contribute/add','action=add','New Contribution Page','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:42:\"CRM_Contribute_Controller_ContributionPage\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (321,1,'civicrm/admin/contribute/managePremiums',NULL,'Manage Premiums','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:34:\"CRM_Contribute_Page_ManagePremiums\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,365,1,0,0,'a:2:{s:4:\"desc\";s:175:\"CiviContribute allows you to configure any number of Premiums which can be offered to contributors as incentives / thank-you gifts. Define the premiums you want to offer here.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), - (322,1,'civicrm/admin/financial/financialType',NULL,'Financial Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Financial_Page_FinancialType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,580,1,0,0,'a:2:{s:4:\"desc\";s:64:\"Formerly civicrm_contribution_type merged into this table in 4.1\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), - (323,1,'civicrm/admin/financial/financialType/edit',NULL,'Edit Financial Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Financial_Form_FinancialType\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:15:\"Financial Types\";s:3:\"url\";s:46:\"/civicrm/admin/financial/financialType?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (324,1,'civicrm/payment','action=add','New Payment','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:37:\"CRM_Contribute_Form_AdditionalPayment\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), - (325,1,'civicrm/admin/financial/financialAccount',NULL,'Financial Accounts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Financial_Page_FinancialAccount\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,370,1,0,0,'a:2:{s:4:\"desc\";s:128:\"Financial types are used to categorize contributions for reporting and accounting purposes. These are also referred to as Funds.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), - (326,1,'civicrm/admin/financial/financialAccount/edit',NULL,'Edit Financial Accounts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Financial_Form_FinancialAccount\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:18:\"Financial Accounts\";s:3:\"url\";s:49:\"/civicrm/admin/financial/financialAccount?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (327,1,'civicrm/admin/options/payment_instrument',NULL,'Payment Methods','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,380,1,0,0,'a:2:{s:4:\"desc\";s:224:\"You may choose to record the payment instrument used for each contribution. Common payment methods are installed by default (e.g. Check, Cash, Credit Card...). If your site requires additional payment methods, add them here.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), - (328,1,'civicrm/admin/options/accept_creditcard',NULL,'Accepted Credit Cards','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,395,1,0,0,'a:2:{s:4:\"desc\";s:94:\"Credit card options that will be offered to contributors using your Online Contribution pages.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), - (329,1,'civicrm/admin/options/soft_credit_type',NULL,'Soft Credit Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:4:\"desc\";s:86:\"Soft Credit Types that will be offered to contributors during soft credit contribution\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), - (330,1,'civicrm/contact/view/contribution',NULL,'Contributions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:23:\"CRM_Contribute_Page_Tab\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (331,1,'civicrm/contact/view/contributionrecur',NULL,'Recurring Contributions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:37:\"CRM_Contribute_Page_ContributionRecur\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (332,1,'civicrm/contact/view/contribution/additionalinfo',NULL,'Additional Info','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:34:\"CRM_Contribute_Form_AdditionalInfo\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}i:2;a:2:{s:5:\"title\";s:13:\"Contributions\";s:3:\"url\";s:42:\"/civicrm/contact/view/contribution?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (333,1,'civicrm/contribute/search',NULL,'Find Contributions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:32:\"CRM_Contribute_Controller_Search\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,510,1,1,0,'a:0:{}'), - (334,1,'civicrm/contribute/searchBatch',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:37:\"CRM_Contribute_Controller_SearchBatch\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,588,1,1,0,'a:0:{}'), - (335,1,'civicrm/contribute/manage',NULL,'Manage Contribution Pages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:36:\"CRM_Contribute_Page_ContributionPage\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,530,1,1,0,'a:0:{}'), - (336,1,'civicrm/contribute/additionalinfo',NULL,'AdditionalInfo Form','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:34:\"CRM_Contribute_Form_AdditionalInfo\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,0,1,0,0,'a:0:{}'), - (337,1,'civicrm/ajax/permlocation',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','a:2:{i:0;s:27:\"CRM_Core_Page_AJAX_Location\";i:1;s:23:\"getPermissionedLocation\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (338,1,'civicrm/contribute/unsubscribe',NULL,'Cancel Subscription','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Form_CancelSubscription\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), - (339,1,'civicrm/contribute/onbehalf',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:43:\"CRM_Contribute_Form_Contribution_OnBehalfOf\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), - (340,1,'civicrm/contribute/updatebilling',NULL,'Update Billing Details','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:33:\"CRM_Contribute_Form_UpdateBilling\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), - (341,1,'civicrm/contribute/updaterecur',NULL,'Update Subscription','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Form_UpdateSubscription\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), - (342,1,'civicrm/contribute/subscriptionstatus',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Page_SubscriptionStatus\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), - (343,1,'civicrm/admin/financial/financialType/accounts',NULL,'Financial Type Accounts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:39:\"CRM_Financial_Page_FinancialTypeAccount\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:15:\"Financial Types\";s:3:\"url\";s:46:\"/civicrm/admin/financial/financialType?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,581,1,0,0,'a:0:{}'), - (344,1,'civicrm/financial/batch',NULL,'Accounting Batch','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:19:\"create manual batch\";}i:1;s:3:\"and\";}','s:33:\"CRM_Financial_Page_FinancialBatch\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,585,1,0,0,'a:0:{}'), - (345,1,'civicrm/financial/financialbatches',NULL,'Accounting Batches','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:24:\"CRM_Financial_Page_Batch\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,586,1,0,0,'a:0:{}'), - (346,1,'civicrm/batchtransaction',NULL,'Accounting Batch','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Financial_Page_BatchTransaction\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,600,1,0,0,'a:0:{}'), - (347,1,'civicrm/financial/batch/export',NULL,'Accounting Batch Export','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:19:\"create manual batch\";}i:1;s:3:\"and\";}','s:25:\"CRM_Financial_Form_Export\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:16:\"Accounting Batch\";s:3:\"url\";s:32:\"/civicrm/financial/batch?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,610,1,0,0,'a:0:{}'), - (348,1,'civicrm/payment/view','action=view','View Payment','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:31:\"CRM_Contribute_Page_PaymentInfo\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Payment\";s:3:\"url\";s:39:\"/civicrm/payment?reset=1&action=add\";}}',NULL,NULL,2,1,0,1,0,1,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), - (349,1,'civicrm/admin/setting/preferences/contribute',NULL,'CiviContribute Component Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:21:\"access CiviContribute\";i:1;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:37:\"CRM_Admin_Form_Preferences_Contribute\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:4:\"desc\";s:42:\"Configure global CiviContribute behaviors.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), - (350,1,'civicrm/contribute/invoice',NULL,'PDF Invoice','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:20:\"checkDownloadInvoice\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','a:2:{i:0;s:32:\"CRM_Contribute_Form_Task_Invoice\";i:1;s:11:\"getPrintPDF\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,620,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), - (351,1,'civicrm/contribute/invoice/email',NULL,'Email Invoice','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:20:\"checkDownloadInvoice\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:32:\"CRM_Contribute_Form_Task_Invoice\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"PDF Invoice\";s:3:\"url\";s:35:\"/civicrm/contribute/invoice?reset=1\";}}',NULL,NULL,2,1,0,1,0,630,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), - (352,1,'civicrm/ajax/softcontributionlist',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:24:\"CRM_Contribute_Page_AJAX\";i:1;s:23:\"getSoftContributionRows\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (353,1,'civicrm/contribute/contributionrecur-payments',NULL,'Recurring Contribution\'s Payments','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:45:\"CRM_Contribute_Page_ContributionRecurPayments\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), - (354,1,'civicrm/membership/recurring-contributions',NULL,'Membership Recurring Contributions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:38:\"CRM_Member_Page_RecurringContributions\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (355,1,'civicrm/contribute/widget',NULL,'CiviContribute','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:26:\"CRM_Contribute_Page_Widget\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,1,1,0,0,1,0,0,'a:0:{}'), - (356,1,'civicrm/contribute/task',NULL,'Contribution Task','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:30:\"CRM_Contribute_Controller_Task\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), + (1,1,'civicrm/group',NULL,'Manage Groups','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:20:\"CRM_Group_Page_Group\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,30,1,1,0,'a:0:{}'), + (2,1,'civicrm/group/search',NULL,'Group Members','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Controller_Search\";','s:8:\"mode=256\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Manage Groups\";s:3:\"url\";s:22:\"/civicrm/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:1:{s:7:\"comment\";s:164:\"Note: group search already respect ACL, so a strict permission at url level is not required. A simple/basic permission like \'access CiviCRM\' could be used. CRM-5417\";}'), + (3,1,'civicrm/group/add',NULL,'New Group','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:11:\"edit groups\";}i:1;s:3:\"and\";}','s:20:\"CRM_Group_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Manage Groups\";s:3:\"url\";s:22:\"/civicrm/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (4,1,'civicrm/group/edit',NULL,'Edit Group','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:11:\"edit groups\";}i:1;s:3:\"and\";}','s:19:\"CRM_Group_Form_Edit\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Manage Groups\";s:3:\"url\";s:22:\"/civicrm/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (5,1,'civicrm/ajax/grouplist',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Group_Page_AJAX\";i:1;s:12:\"getGroupList\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (6,1,'civicrm/import',NULL,'Import','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:15:\"import contacts\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Import_Controller\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,400,1,1,0,'a:0:{}'), + (7,1,'civicrm/import/contact',NULL,'Import Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:15:\"import contacts\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Import_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,410,1,1,0,'a:0:{}'), + (8,1,'civicrm/import/contact/summary',NULL,'Import Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Contact_Import_Form_Summary\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}i:2;a:2:{s:5:\"title\";s:15:\"Import Contacts\";s:3:\"url\";s:31:\"/civicrm/import/contact?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,410,1,1,0,'a:0:{}'), + (9,1,'civicrm/import/outcome',NULL,'Import results','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:16:\"CRM_Import_Forms\";i:1;s:9:\"outputCSV\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (10,1,'civicrm/import/activity',NULL,'Import Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:15:\"import contacts\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Activity_Import_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,420,1,1,0,'a:0:{}'), + (11,1,'civicrm/import/contribution',NULL,'Import Contributions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:21:\"access CiviContribute\";i:1;s:18:\"edit contributions\";}i:1;s:3:\"and\";}','s:32:\"CRM_Contribute_Import_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,520,1,1,0,'a:0:{}'), + (12,1,'civicrm/import/custom','id=%%id%%','Import Multi-value Custom Data','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:28:\"CRM_Custom_Import_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,420,1,1,0,'a:0:{}'), + (13,1,'civicrm/ajax/status',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:15:\"import contacts\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:28:\"CRM_Contact_Import_Page_AJAX\";i:1;s:6:\"status\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (14,1,'civicrm/import/datasource',NULL,'Import','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Import_Form_DataSourceConfig\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:6:\"Import\";s:3:\"url\";s:23:\"/civicrm/import?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,450,1,1,0,'a:0:{}'), + (15,1,'civicrm/admin/custom/group',NULL,'Custom Data','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:21:\"CRM_Custom_Page_Group\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:2:{s:4:\"desc\";s:109:\"Configure custom fields to collect and store custom data which is not included in the standard CiviCRM forms.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (16,1,'civicrm/admin/custom/group/edit',NULL,'Configure Custom Set','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:21:\"CRM_Custom_Form_Group\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (17,1,'civicrm/admin/custom/group/preview',NULL,'Custom Field Preview','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:23:\"CRM_Custom_Form_Preview\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (18,1,'civicrm/admin/custom/group/delete',NULL,'Delete Custom Set','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:27:\"CRM_Custom_Form_DeleteGroup\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (19,1,'civicrm/admin/custom/group/field',NULL,'Custom Data Fields','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:21:\"CRM_Custom_Page_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,11,1,0,0,'a:0:{}'), + (20,1,'civicrm/admin/custom/group/field/delete',NULL,'Delete Custom Field','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:27:\"CRM_Custom_Form_DeleteField\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (21,1,'civicrm/admin/custom/group/field/option',NULL,'Custom Field - Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:22:\"CRM_Custom_Page_Option\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (22,1,'civicrm/admin/custom/group/field/add',NULL,'Custom Field - Add','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:21:\"CRM_Custom_Form_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (23,1,'civicrm/admin/custom/group/field/update',NULL,'Custom Field - Edit','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:21:\"CRM_Custom_Form_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (24,1,'civicrm/admin/custom/group/field/move',NULL,'Custom Field - Move','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:25:\"CRM_Custom_Form_MoveField\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"Custom Data\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (25,1,'civicrm/admin/uf/group',NULL,'Profiles','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Page_Group\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,20,1,0,0,'a:2:{s:4:\"desc\";s:151:\"Profiles allow you to aggregate groups of fields and include them in your site as input forms, contact display pages, and search and listings features.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (26,1,'civicrm/admin/uf/group/preview',NULL,'Preview','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:19:\"CRM_UF_Form_Preview\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (27,1,'civicrm/admin/uf/group/field',NULL,'CiviCRM Profile Fields','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Page_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,21,1,0,0,'a:0:{}'), + (28,1,'civicrm/admin/uf/group/field/add',NULL,'Add Field','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Form_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,22,1,0,0,'a:0:{}'), + (29,1,'civicrm/admin/uf/group/field/update',NULL,'Edit Field','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Form_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,23,1,0,0,'a:0:{}'), + (30,1,'civicrm/admin/uf/group/add',NULL,'New CiviCRM Profile','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Form_Group\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,24,1,0,0,'a:0:{}'), + (31,1,'civicrm/admin/uf/group/update',NULL,'Profile Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Form_Group\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,25,1,0,0,'a:0:{}'), + (32,1,'civicrm/admin/uf/group/copy',NULL,'Profile Copy','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:17:\"CRM_UF_Page_Group\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,26,1,0,0,'a:0:{}'), + (33,1,'civicrm/admin/uf/group/setting',NULL,'AdditionalInfo Form','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_UF_Form_AdvanceSetting\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,0,1,0,0,'a:0:{}'), + (34,1,'civicrm/admin/options/activity_type',NULL,'Activity Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,30,1,0,0,'a:2:{s:4:\"desc\";s:155:\"CiviCRM has several built-in activity types (meetings, phone calls, emails sent). Track other types of interactions by creating custom activity types here.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (35,1,'civicrm/admin/reltype',NULL,'Relationship Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Admin_Page_RelationshipType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,35,1,0,0,'a:2:{s:4:\"desc\";s:148:\"Contacts can be linked to each other through Relationships (e.g. Spouse, Employer, etc.). Define the types of relationships you want to record here.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (36,1,'civicrm/admin/reltype/edit',NULL,'Edit Relationship Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Admin_Form_RelationshipType\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:18:\"Relationship Types\";s:3:\"url\";s:30:\"/civicrm/admin/reltype?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (37,1,'civicrm/admin/options/subtype',NULL,'Contact Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Admin_Page_ContactType\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,40,1,0,0,'a:1:{s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (38,1,'civicrm/admin/options/subtype/edit',NULL,'Edit Contact Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Admin_Form_ContactType\";',NULL,'a:4:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}i:3;a:2:{s:5:\"title\";s:13:\"Contact Types\";s:3:\"url\";s:38:\"/civicrm/admin/options/subtype?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (39,1,'civicrm/admin/options/gender',NULL,'Gender Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,45,1,0,0,'a:2:{s:4:\"desc\";s:79:\"Options for assigning gender to individual contacts (e.g. Male, Female, Other).\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (40,1,'civicrm/admin/options/individual_prefix',NULL,'Individual Prefixes (Ms, Mr...)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,50,1,0,0,'a:2:{s:4:\"desc\";s:66:\"Options for individual contact prefixes (e.g. Ms., Mr., Dr. etc.).\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (41,1,'civicrm/admin/options/individual_suffix',NULL,'Individual Suffixes (Jr, Sr...)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,55,1,0,0,'a:2:{s:4:\"desc\";s:61:\"Options for individual contact suffixes (e.g. Jr., Sr. etc.).\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (42,1,'civicrm/admin/locationType',NULL,'Location Types (Home, Work...)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Page_LocationType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,60,1,0,0,'a:2:{s:4:\"desc\";s:94:\"Options for categorizing contact addresses and phone numbers (e.g. Home, Work, Billing, etc.).\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (43,1,'civicrm/admin/locationType/edit',NULL,'Edit Location Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Form_LocationType\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:30:\"Location Types (Home, Work...)\";s:3:\"url\";s:35:\"/civicrm/admin/locationType?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (44,1,'civicrm/admin/options/website_type',NULL,'Website Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,65,1,0,0,'a:2:{s:4:\"desc\";s:48:\"Options for assigning website types to contacts.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (45,1,'civicrm/admin/options/instant_messenger_service',NULL,'Instant Messenger Services','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,70,1,0,0,'a:2:{s:4:\"desc\";s:79:\"List of IM services which can be used when recording screen-names for contacts.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (46,1,'civicrm/admin/options/mobile_provider',NULL,'Mobile Phone Providers','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,75,1,0,0,'a:2:{s:4:\"desc\";s:90:\"List of mobile phone providers which can be assigned when recording contact phone numbers.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (47,1,'civicrm/admin/options/phone_type',NULL,'Phone Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,80,1,0,0,'a:2:{s:4:\"desc\";s:80:\"Options for assigning phone type to contacts (e.g Phone,\n Mobile, Fax, Pager)\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (48,1,'civicrm/admin/setting/preferences/display',NULL,'Display Preferences','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:34:\"CRM_Admin_Form_Preferences_Display\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,90,1,0,0,'a:1:{s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (49,1,'civicrm/admin/setting/search',NULL,'Search Preferences','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Admin_Form_Setting_Search\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,95,1,0,0,'a:1:{s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (50,1,'civicrm/admin/setting/preferences/date',NULL,'View Date Preferences','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Admin_Page_PreferencesDate\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (51,1,'civicrm/admin/menu',NULL,'Navigation Menu','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Admin_Page_Navigation\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,100,1,0,0,'a:2:{s:4:\"desc\";s:79:\"Add or remove menu items, and modify the order of items on the navigation menu.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (52,1,'civicrm/admin/options/wordreplacements',NULL,'Word Replacements','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Admin_Form_WordReplacements\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,105,1,0,0,'a:2:{s:4:\"desc\";s:18:\"Word Replacements.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (53,1,'civicrm/admin/options/custom_search',NULL,'Manage Custom Searches','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,110,1,0,0,'a:2:{s:4:\"desc\";s:225:\"Developers and accidental techies with a bit of PHP and SQL knowledge can create new search forms to handle specific search and reporting needs which aren\'t covered by the built-in Advanced Search and Search Builder features.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (54,1,'civicrm/admin/domain','action=update','Organization Address and Contact Info','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_Contact_Form_Domain\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:2:{s:4:\"desc\";s:150:\"Configure primary contact name, email, return-path and address information. This information is used by CiviMail to identify the sending organization.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), + (55,1,'civicrm/admin/options/from_email_address',NULL,'From Email Addresses','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,20,1,0,0,'a:2:{s:4:\"desc\";s:74:\"List of Email Addresses which can be used when sending emails to contacts.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), + (56,1,'civicrm/admin/messageTemplates',NULL,'Message Templates','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:22:\"edit message templates\";i:1;s:34:\"edit user-driven message templates\";i:2;s:38:\"edit system workflow message templates\";}i:1;s:2:\"or\";}','s:31:\"CRM_Admin_Page_MessageTemplates\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,30,1,0,0,'a:2:{s:4:\"desc\";s:130:\"Message templates allow you to save and re-use messages with layouts which you can use when sending email to one or more contacts.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), + (57,1,'civicrm/admin/messageTemplates/add',NULL,'Message Templates','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:22:\"edit message templates\";i:1;s:34:\"edit user-driven message templates\";i:2;s:38:\"edit system workflow message templates\";}i:1;s:2:\"or\";}','s:31:\"CRM_Admin_Form_MessageTemplates\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:17:\"Message Templates\";s:3:\"url\";s:39:\"/civicrm/admin/messageTemplates?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,262,1,0,0,'a:1:{s:4:\"desc\";s:26:\"Add/Edit Message Templates\";}'), + (58,1,'civicrm/admin/scheduleReminders',NULL,'Schedule Reminders','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCRM data\";}i:1;s:3:\"and\";}','s:32:\"CRM_Admin_Page_ScheduleReminders\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,40,1,0,0,'a:2:{s:4:\"desc\";s:19:\"Schedule Reminders.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), + (59,1,'civicrm/admin/scheduleReminders/edit',NULL,'Schedule Reminders','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCRM data\";i:1;s:15:\"edit all events\";}i:1;s:2:\"or\";}','s:32:\"CRM_Admin_Form_ScheduleReminders\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:18:\"Schedule Reminders\";s:3:\"url\";s:40:\"/civicrm/admin/scheduleReminders?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (60,1,'civicrm/admin/weight',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:16:\"CRM_Utils_Weight\";i:1;s:8:\"fixOrder\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (61,1,'civicrm/admin/options/preferred_communication_method',NULL,'Preferred Communication Methods','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,50,1,0,0,'a:2:{s:4:\"desc\";s:117:\"One or more preferred methods of communication can be assigned to each contact. Customize the available options here.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), + (62,1,'civicrm/admin/labelFormats',NULL,'Label Page Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Page_LabelFormats\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,60,1,0,0,'a:2:{s:4:\"desc\";s:82:\"Configure label sizes and page layouts that are used when printing mailing labels.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), + (63,1,'civicrm/admin/pdfFormats',NULL,'Print Page (PDF) Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Admin_Page_PdfFormats\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,70,1,0,0,'a:2:{s:4:\"desc\";s:95:\"Configure PDF Page Formats that can be assigned to Message Templates when creating PDF letters.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), + (64,1,'civicrm/admin/options/communication_style',NULL,'Communication Style Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,75,1,0,0,'a:2:{s:4:\"desc\";s:42:\"Options for Communication Style selection.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), + (65,1,'civicrm/admin/options/email_greeting',NULL,'Email Greeting Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,80,1,0,0,'a:2:{s:4:\"desc\";s:75:\"Options for assigning email greetings to individual and household contacts.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), + (66,1,'civicrm/admin/options/postal_greeting',NULL,'Postal Greeting Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,90,1,0,0,'a:2:{s:4:\"desc\";s:76:\"Options for assigning postal greetings to individual and household contacts.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), + (67,1,'civicrm/admin/options/addressee',NULL,'Addressee Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,100,1,0,0,'a:2:{s:4:\"desc\";s:83:\"Options for assigning addressee to individual, household and organization contacts.\";s:10:\"adminGroup\";s:14:\"Communications\";}'), + (68,1,'civicrm/admin/setting/localization',NULL,'Languages, Currency, Locations','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Admin_Form_Setting_Localization\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:1:{s:10:\"adminGroup\";s:12:\"Localization\";}'), + (69,1,'civicrm/admin/setting/preferences/address',NULL,'Address Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:34:\"CRM_Admin_Form_Preferences_Address\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,20,1,0,0,'a:1:{s:10:\"adminGroup\";s:12:\"Localization\";}'), + (70,1,'civicrm/admin/setting/date',NULL,'Date Formats','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Form_Setting_Date\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,30,1,0,0,'a:1:{s:10:\"adminGroup\";s:12:\"Localization\";}'), + (71,1,'civicrm/admin/options/languages',NULL,'Preferred Languages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,40,1,0,0,'a:2:{s:4:\"desc\";s:30:\"Options for contact languages.\";s:10:\"adminGroup\";s:12:\"Localization\";}'), + (72,1,'civicrm/admin/access',NULL,'Access Control','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_Admin_Page_Access\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:2:{s:4:\"desc\";s:73:\"Grant or deny access to actions (view, edit...), features and components.\";s:10:\"adminGroup\";s:21:\"Users and Permissions\";}'), + (73,1,'civicrm/admin/access/wp-permissions',NULL,'WordPress Access Control','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:34:\"CRM_ACL_Form_WordPress_Permissions\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:14:\"Access Control\";s:3:\"url\";s:29:\"/civicrm/admin/access?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:1:{s:4:\"desc\";s:65:\"Grant access to CiviCRM components and other CiviCRM permissions.\";}'), + (74,1,'civicrm/admin/synchUser',NULL,'Synchronize Users to Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Form_CMSUser\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,20,1,0,0,'a:2:{s:4:\"desc\";s:71:\"Automatically create a CiviCRM contact record for each CMS user record.\";s:10:\"adminGroup\";s:21:\"Users and Permissions\";}'), + (75,1,'civicrm/admin/configtask',NULL,'Configuration Checklist','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Admin_Page_ConfigTaskList\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}','civicrm/admin/configtask',NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:4:\"desc\";s:55:\"List of configuration tasks with links to each setting.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (76,1,'civicrm/admin/setting/component',NULL,'Enable CiviCRM Components','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Admin_Form_Setting_Component\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:2:{s:4:\"desc\";s:269:\"Enable or disable components (e.g. CiviEvent, CiviMember, etc.) for your site based on the features you need. We recommend disabling any components not being used in order to simplify the user interface. You can easily re-enable components at any time from this screen.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (77,1,'civicrm/admin/extensions',NULL,'Manage Extensions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:25:\"CRM_Admin_Page_Extensions\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,120,1,0,0,'a:2:{s:4:\"desc\";s:0:\"\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (78,1,'civicrm/admin/extensions/upgrade',NULL,'Database Upgrades','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:32:\"CRM_Admin_Page_ExtensionsUpgrade\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:17:\"Manage Extensions\";s:3:\"url\";s:33:\"/civicrm/admin/extensions?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (79,1,'civicrm/admin/setting/smtp',NULL,'Outbound Email Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Form_Setting_Smtp\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,20,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (80,1,'civicrm/admin/paymentProcessor',NULL,'Settings - Payment Processor','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:29:\"administer payment processors\";}i:1;s:3:\"and\";}','s:31:\"CRM_Admin_Page_PaymentProcessor\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,30,1,0,0,'a:2:{s:4:\"desc\";s:48:\"Payment Processor setup for CiviCRM transactions\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (81,1,'civicrm/admin/paymentProcessor/edit',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:29:\"administer payment processors\";}i:1;s:3:\"and\";}','s:31:\"CRM_Admin_Form_PaymentProcessor\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:28:\"Settings - Payment Processor\";s:3:\"url\";s:39:\"/civicrm/admin/paymentProcessor?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (82,1,'civicrm/admin/setting/mapping',NULL,'Mapping and Geocoding','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Admin_Form_Setting_Mapping\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,40,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (83,1,'civicrm/admin/setting/misc',NULL,'Misc (Undelete, PDFs, Limits, Logging, etc.)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:36:\"CRM_Admin_Form_Setting_Miscellaneous\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,50,1,0,0,'a:2:{s:4:\"desc\";s:63:\"Enable undelete/move to trash feature, detailed change logging.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (84,1,'civicrm/admin/setting/path',NULL,'Directories','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Admin_Form_Setting_Path\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,60,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (85,1,'civicrm/admin/setting/url',NULL,'Resource URLs','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Admin_Form_Setting_Url\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,70,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (86,1,'civicrm/admin/setting/updateConfigBackend',NULL,'Cleanup Caches and Update Paths','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:42:\"CRM_Admin_Form_Setting_UpdateConfigBackend\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,80,1,0,0,'a:2:{s:4:\"desc\";s:157:\"Reset the Base Directory Path and Base URL settings - generally when a CiviCRM site is moved to another location in the file system and/or to another domain.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (87,1,'civicrm/admin/setting/uf',NULL,'CMS Database Integration','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Admin_Form_Setting_UF\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,90,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (88,1,'civicrm/admin/options/safe_file_extension',NULL,'Safe File Extension Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,100,1,0,0,'a:2:{s:4:\"desc\";s:44:\"File Extensions that can be considered safe.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (89,1,'civicrm/admin/options',NULL,'Option Groups','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,105,1,0,0,'a:2:{s:4:\"desc\";s:35:\"Access all meta-data option groups.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (90,1,'civicrm/admin/mapping',NULL,'Import/Export Mappings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Mapping\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,110,1,0,0,'a:2:{s:4:\"desc\";s:141:\"Import and Export mappings allow you to easily run the same job multiple times. This option allows you to rename or delete existing mappings.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (91,1,'civicrm/admin/setting/debug',NULL,'Debugging','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Admin_Form_Setting_Debugging\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,120,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (92,1,'civicrm/admin/setting/preferences/multisite',NULL,'Multi Site Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Form_Generic\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,130,1,0,0,'a:1:{s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (93,1,'civicrm/admin/setting/preferences/campaign',NULL,'CiviCampaign Component Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Form_Generic\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,10,1,0,0,'a:3:{s:4:\"desc\";s:40:\"Configure global CiviCampaign behaviors.\";s:10:\"adminGroup\";s:12:\"CiviCampaign\";s:9:\"component\";s:12:\"CiviCampaign\";}'), + (94,1,'civicrm/admin/setting/preferences/event',NULL,'CiviEvent Component Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:16:\"access CiviEvent\";i:1;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Form_Generic\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,420,1,0,0,'a:2:{s:4:\"desc\";s:37:\"Configure global CiviEvent behaviors.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), + (95,1,'civicrm/admin/setting/preferences/mailing',NULL,'CiviMail Component Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:15:\"access CiviMail\";i:1;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:34:\"CRM_Admin_Form_Preferences_Mailing\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,430,1,0,0,'a:2:{s:4:\"desc\";s:36:\"Configure global CiviMail behaviors.\";s:10:\"adminGroup\";s:8:\"CiviMail\";}'), + (96,1,'civicrm/admin/setting/preferences/member',NULL,'CiviMember Component Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:17:\"access CiviMember\";i:1;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:33:\"CRM_Admin_Form_Preferences_Member\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,390,1,0,0,'a:2:{s:4:\"desc\";s:38:\"Configure global CiviMember behaviors.\";s:10:\"adminGroup\";s:10:\"CiviMember\";}'), + (97,1,'civicrm/admin/runjobs',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','a:2:{i:0;s:16:\"CRM_Utils_System\";i:1;s:20:\"executeScheduledJobs\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:1:{s:4:\"desc\";s:36:\"URL used for running scheduled jobs.\";}'), + (98,1,'civicrm/admin/job',NULL,'Scheduled Jobs','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:18:\"CRM_Admin_Page_Job\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1370,1,0,0,'a:2:{s:4:\"desc\";s:35:\"Managing periodially running tasks.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (99,1,'civicrm/admin/job/add',NULL,'Add Scheduled Job','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:18:\"CRM_Admin_Form_Job\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:14:\"Scheduled Jobs\";s:3:\"url\";s:26:\"/civicrm/admin/job?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:1:{s:4:\"desc\";s:31:\"Add a periodially running task.\";}'), + (100,1,'civicrm/admin/job/edit',NULL,'Edit Scheduled Job','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:18:\"CRM_Admin_Page_Job\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:14:\"Scheduled Jobs\";s:3:\"url\";s:26:\"/civicrm/admin/job?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1372,1,0,0,'a:2:{s:4:\"desc\";s:32:\"Edit a periodially running task.\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (101,1,'civicrm/admin/joblog',NULL,'Scheduled Jobs Log','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:25:\"administer CiviCRM system\";}i:1;s:3:\"and\";}','s:21:\"CRM_Admin_Page_JobLog\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1380,1,0,0,'a:2:{s:4:\"desc\";s:46:\"Browsing the log of periodially running tasks.\";s:10:\"adminGroup\";s:6:\"Manage\";}'), + (102,1,'civicrm/admin/options/grant_type',NULL,'Grant Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,385,1,0,0,'a:2:{s:4:\"desc\";s:148:\"List of types which can be assigned to Grants. (Enable CiviGrant from Administer > System Settings > Enable Components if you want to track grants.)\";s:10:\"adminGroup\";s:12:\"Option Lists\";}'), + (103,1,'civicrm/admin/paymentProcessorType',NULL,'Payment Processor Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Admin_Page_PaymentProcessorType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,390,1,0,0,'a:1:{s:4:\"desc\";s:34:\"Payment Processor type information\";}'), + (104,1,'civicrm/admin',NULL,'Administer','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:20:\"CRM_Admin_Page_Admin\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,9000,1,1,0,'a:0:{}'), + (105,1,'civicrm/ajax/navmenu',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Admin_Page_AJAX\";i:1;s:7:\"navMenu\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (106,1,'civicrm/ajax/menutree',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Admin_Page_AJAX\";i:1;s:8:\"menuTree\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,3,0,'a:0:{}'), + (107,1,'civicrm/ajax/statusmsg',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Admin_Page_AJAX\";i:1;s:12:\"getStatusMsg\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (108,1,'civicrm/admin/price',NULL,'Price Sets','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_Price_Page_Set\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,380,1,0,0,'a:2:{s:4:\"desc\";s:205:\"Price sets allow you to offer multiple options with associated fees (e.g. pre-conference workshops, additional meals, etc.). Configure Price Sets for events which need more than a single set of fee levels.\";s:10:\"adminGroup\";s:9:\"Customize\";}'), + (109,1,'civicrm/admin/price/add','action=add','New Price Set','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_Price_Page_Set\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:1:{s:4:\"desc\";s:205:\"Price sets allow you to offer multiple options with associated fees (e.g. pre-conference workshops, additional meals, etc.). Configure Price Sets for events which need more than a single set of fee levels.\";}'), + (110,1,'civicrm/admin/price/edit',NULL,'Price Sets','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_Price_Page_Set\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (111,1,'civicrm/admin/price/field',NULL,'Price Fields','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:20:\"CRM_Price_Page_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (112,1,'civicrm/admin/price/field/edit',NULL,'Price Fields','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:20:\"CRM_Price_Page_Field\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (113,1,'civicrm/admin/price/field/option',NULL,'Price Field Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:21:\"CRM_Price_Page_Option\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (114,1,'civicrm/admin/price/field/option/edit',NULL,'Price Field Options','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:21:\"CRM_Price_Page_Option\";',NULL,'a:4:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:10:\"Price Sets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";}i:3;a:2:{s:5:\"title\";s:19:\"Price Field Options\";s:3:\"url\";s:41:\"/civicrm/admin/price/field/option?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (115,1,'civicrm/admin/sms/provider',NULL,'Sms Providers','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_SMS_Page_Provider\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,500,1,0,0,'a:2:{s:4:\"desc\";s:27:\"To configure a sms provider\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (116,1,'civicrm/sms/send',NULL,'New Mass SMS','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:8:\"send SMS\";}i:1;s:3:\"and\";}','s:23:\"CRM_SMS_Controller_Send\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,610,1,1,0,'a:0:{}'), + (117,1,'civicrm/sms/callback',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_SMS_Page_Callback\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (118,1,'civicrm/admin/badgelayout','action=browse','Event Name Badge Layouts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_Badge_Page_Layout\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,399,1,0,0,'a:2:{s:4:\"desc\";s:107:\"Configure name badge layouts for event participants, including logos and what data to include on the badge.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), + (119,1,'civicrm/admin/badgelayout/add',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_Badge_Form_Layout\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:24:\"Event Name Badge Layouts\";s:3:\"url\";s:52:\"/civicrm/admin/badgelayout?reset=1&action=browse\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (120,1,'civicrm/ajax/jqState',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:27:\"CRM_Core_Page_AJAX_Location\";i:1;s:7:\"jqState\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (121,1,'civicrm/ajax/jqCounty',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:27:\"CRM_Core_Page_AJAX_Location\";i:1;s:8:\"jqCounty\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (122,1,'civicrm/profile',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_Profile_Page_Router\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,0,1,0,0,'a:0:{}'), + (123,1,'civicrm/profile/create',NULL,'CiviCRM Profile Create','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_Profile_Page_Router\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,0,1,0,0,'a:0:{}'), + (124,1,'civicrm/profile/view',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_Profile_Page_View\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (125,1,'civicrm/custom/add',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Custom_Form_CustomData\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (126,1,'civicrm/ajax/optionlist',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:20:\"CRM_Custom_Page_AJAX\";i:1;s:13:\"getOptionList\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (127,1,'civicrm/ajax/reorder',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:20:\"CRM_Custom_Page_AJAX\";i:1;s:11:\"fixOrdering\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (128,1,'civicrm/ajax/multirecordfieldlist',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:20:\"CRM_Custom_Page_AJAX\";i:1;s:23:\"getMultiRecordFieldList\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (129,1,'civicrm/upgrade',NULL,'Upgrade CiviCRM','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:24:\"CRM_Upgrade_Page_Upgrade\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (130,1,'civicrm/export',NULL,'Download Errors','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Export_BAO_Export\";i:1;s:6:\"invoke\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (131,1,'civicrm/export/contact',NULL,'Export Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Export_BAO_Export\";i:1;s:6:\"invoke\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Download Errors\";s:3:\"url\";s:23:\"/civicrm/export?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,0,1,0,0,'a:0:{}'), + (132,1,'civicrm/export/standalone',NULL,'Export','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Export_Controller_Standalone\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Download Errors\";s:3:\"url\";s:23:\"/civicrm/export?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (133,1,'civicrm/admin/options/acl_role',NULL,'ACL Roles','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (134,1,'civicrm/acl',NULL,'Manage ACLs','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:16:\"CRM_ACL_Page_ACL\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (135,1,'civicrm/acl/edit',NULL,'Manage ACLs','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:16:\"CRM_ACL_Form_ACL\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"Manage ACLs\";s:3:\"url\";s:20:\"/civicrm/acl?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (136,1,'civicrm/acl/delete',NULL,'Manage ACLs','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:16:\"CRM_ACL_Form_ACL\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"Manage ACLs\";s:3:\"url\";s:20:\"/civicrm/acl?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (137,1,'civicrm/acl/entityrole',NULL,'Assign Users to ACL Roles','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_ACL_Page_EntityRole\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"Manage ACLs\";s:3:\"url\";s:20:\"/civicrm/acl?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (138,1,'civicrm/acl/entityrole/edit',NULL,'Assign Users to ACL Roles','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_ACL_Form_EntityRole\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"Manage ACLs\";s:3:\"url\";s:20:\"/civicrm/acl?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Assign Users to ACL Roles\";s:3:\"url\";s:31:\"/civicrm/acl/entityrole?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (139,1,'civicrm/file',NULL,'Browse Uploaded files','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access uploaded files\";}i:1;s:3:\"and\";}','s:18:\"CRM_Core_Page_File\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (140,1,'civicrm/file/delete',NULL,'Delete File','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:17:\"CRM_Core_BAO_File\";i:1;s:16:\"deleteAttachment\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:21:\"Browse Uploaded files\";s:3:\"url\";s:21:\"/civicrm/file?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (141,1,'civicrm/friend',NULL,'Tell a Friend','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:15:\"CRM_Friend_Form\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (142,1,'civicrm/logout',NULL,'Log out','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:16:\"CRM_Utils_System\";i:1;s:6:\"logout\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,9999,1,1,0,'a:0:{}'), + (143,1,'civicrm/i18n',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:17:\"translate CiviCRM\";}i:1;s:3:\"and\";}','s:18:\"CRM_Core_I18n_Form\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (144,1,'civicrm/ajax/attachment',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"access AJAX API\";}i:1;s:2:\"or\";}','a:2:{i:0;s:29:\"CRM_Core_Page_AJAX_Attachment\";i:1;s:10:\"attachFile\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (145,1,'civicrm/api',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Core_Page_Redirect\";','s:16:\"url=civicrm/api3\";','a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (146,1,'civicrm/api3',NULL,'CiviCRM API v3','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Admin_Page_APIExplorer\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (147,1,'civicrm/ajax/apidoc',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:26:\"CRM_Admin_Page_APIExplorer\";i:1;s:6:\"getDoc\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (148,1,'civicrm/ajax/rest',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"access AJAX API\";}i:1;s:2:\"or\";}','a:2:{i:0;s:14:\"CRM_Utils_REST\";i:1;s:4:\"ajax\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (149,1,'civicrm/api/json',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:14:\"CRM_Utils_REST\";i:1;s:8:\"ajaxJson\";}','s:16:\"url=civicrm/api3\";','a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (150,1,'civicrm/inline',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:14:\"CRM_Utils_REST\";i:1;s:12:\"loadTemplate\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (151,1,'civicrm/ajax/chart',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Form_ContributionCharts\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (152,1,'civicrm/asset/builder',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"*always allow*\";}i:1;s:3:\"and\";}','a:2:{i:0;s:23:\"\\Civi\\Core\\AssetBuilder\";i:1;s:7:\"pageRun\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (153,1,'civicrm/contribute/ajax/tableview',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contribute_Page_DashBoard\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), + (154,1,'civicrm/payment/ipn',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','a:2:{i:0;s:16:\"CRM_Core_Payment\";i:1;s:9:\"handleIPN\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Payment\";s:3:\"url\";s:39:\"/civicrm/payment?reset=1&action=add\";}}',NULL,NULL,2,1,1,1,0,1,1,0,0,'a:0:{}'), + (155,1,'civicrm/batch',NULL,'Batch Data Entry','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:20:\"CRM_Batch_Page_Batch\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (156,1,'civicrm/batch/add',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:20:\"CRM_Batch_Form_Batch\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:16:\"Batch Data Entry\";s:3:\"url\";s:22:\"/civicrm/batch?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (157,1,'civicrm/batch/entry',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:20:\"CRM_Batch_Form_Entry\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:16:\"Batch Data Entry\";s:3:\"url\";s:22:\"/civicrm/batch?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (158,1,'civicrm/ajax/batch',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Batch_Page_AJAX\";i:1;s:9:\"batchSave\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (159,1,'civicrm/ajax/batchlist',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Batch_Page_AJAX\";i:1;s:12:\"getBatchList\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (160,1,'civicrm/ajax/inline',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:18:\"CRM_Core_Page_AJAX\";i:1;s:3:\"run\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (161,1,'civicrm/dev/qunit',NULL,'QUnit','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:19:\"CRM_Core_Page_QUnit\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (162,1,'civicrm/dev/fake-error',NULL,'Fake Error','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"*always allow*\";}i:1;s:3:\"and\";}','s:23:\"CRM_Core_Page_FakeError\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (163,1,'civicrm/profile-editor/schema',NULL,'ProfileEditor','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:25:\"CRM_UF_Page_ProfileEditor\";i:1;s:13:\"getSchemaJSON\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (164,1,'civicrm/a',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"\\Civi\\Angular\\Page\\Main\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (165,1,'civicrm/ajax/angular-modules',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"*always allow*\";}i:1;s:3:\"and\";}','s:26:\"\\Civi\\Angular\\Page\\Modules\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (166,1,'civicrm/ajax/recurringentity/update-mode',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:34:\"CRM_Core_Page_AJAX_RecurringEntity\";i:1;s:10:\"updateMode\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (167,1,'civicrm/recurringentity/preview',NULL,'Confirm dates','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:36:\"CRM_Core_Page_RecurringEntityPreview\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (168,1,'civicrm/shortcode',NULL,'Insert CiviCRM Content','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_Core_Form_ShortCode\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (169,1,'civicrm/task/add-to-group',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Contact_Form_Task_AddToGroup\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (170,1,'civicrm/task/remove-from-group',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:37:\"CRM_Contact_Form_Task_RemoveFromGroup\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (171,1,'civicrm/task/add-to-tag',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Contact_Form_Task_AddToTag\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (172,1,'civicrm/task/remove-from-tag',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Contact_Form_Task_RemoveFromTag\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (173,1,'civicrm/task/send-email',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Contact_Form_Task_Email\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (174,1,'civicrm/task/make-mailing-label',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Contact_Form_Task_Label\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (175,1,'civicrm/task/pick-profile',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:33:\"CRM_Contact_Form_Task_PickProfile\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (176,1,'civicrm/task/print-document',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Contact_Form_Task_PDF\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (177,1,'civicrm/task/unhold-email',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:28:\"CRM_Contact_Form_Task_Unhold\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (178,1,'civicrm/task/alter-contact-preference',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contact_Form_Task_AlterPreferences\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (179,1,'civicrm/task/delete-contact',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:28:\"CRM_Contact_Form_Task_Delete\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (180,1,'civicrm/task/add-activity',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Activity_Form_Activity\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (181,1,'civicrm/note',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:18:\"CRM_Note_Form_Note\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (182,1,'civicrm',NULL,'CiviCRM','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Contact_Page_DashBoard\";',NULL,'a:0:{}',NULL,NULL,NULL,1,0,1,0,0,1,0,0,'a:0:{}'), + (183,1,'civicrm/dashboard',NULL,'CiviCRM Home','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Contact_Page_DashBoard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,0,1,1,0,'a:0:{}'), + (184,1,'civicrm/contact/search',NULL,'Find Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Controller_Search\";','s:8:\"mode=256\";','a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,10,1,1,0,'a:0:{}'), + (185,1,'civicrm/contact/image',NULL,'Process Uploaded Images','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access uploaded files\";}i:1;s:3:\"and\";}','a:2:{i:0;s:23:\"CRM_Contact_BAO_Contact\";i:1;s:12:\"processImage\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (186,1,'civicrm/contact/imagefile',NULL,'Get Image File','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"*always allow*\";}i:1;s:3:\"and\";}','s:26:\"CRM_Contact_Page_ImageFile\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (187,1,'civicrm/contact/search/basic',NULL,'Find Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Controller_Search\";','s:8:\"mode=256\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Find Contacts\";s:3:\"url\";s:31:\"/civicrm/contact/search?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (188,1,'civicrm/contact/search/advanced',NULL,'Advanced Search','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Controller_Search\";','s:8:\"mode=512\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Find Contacts\";s:3:\"url\";s:31:\"/civicrm/contact/search?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,12,1,1,0,'a:0:{}'), + (189,1,'civicrm/contact/search/builder',NULL,'Search Builder','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Controller_Search\";','s:9:\"mode=8192\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Find Contacts\";s:3:\"url\";s:31:\"/civicrm/contact/search?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,14,1,1,0,'a:0:{}'), + (190,1,'civicrm/contact/add',NULL,'New Contact','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:24:\"CRM_Contact_Form_Contact\";','s:13:\"addSequence=1\";','a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (191,1,'civicrm/contact/add/individual','ct=Individual','New Individual','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:12:\"add contacts\";}i:1;s:3:\"and\";}','s:24:\"CRM_Contact_Form_Contact\";','s:13:\"addSequence=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Contact\";s:3:\"url\";s:28:\"/civicrm/contact/add?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (192,1,'civicrm/contact/add/household','ct=Household','New Household','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:12:\"add contacts\";}i:1;s:3:\"and\";}','s:24:\"CRM_Contact_Form_Contact\";','s:13:\"addSequence=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Contact\";s:3:\"url\";s:28:\"/civicrm/contact/add?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (193,1,'civicrm/contact/add/organization','ct=Organization','New Organization','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:12:\"add contacts\";}i:1;s:3:\"and\";}','s:24:\"CRM_Contact_Form_Contact\";','s:13:\"addSequence=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Contact\";s:3:\"url\";s:28:\"/civicrm/contact/add?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (194,1,'civicrm/contact/relatedcontact',NULL,'Edit Related Contact','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"access Contact Dashboard\";}i:1;s:3:\"and\";}','s:31:\"CRM_Contact_Form_RelatedContact\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (195,1,'civicrm/contact/merge',NULL,'Merge Contact','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','s:22:\"CRM_Contact_Form_Merge\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (196,1,'civicrm/contact/email',NULL,'Email a Contact','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Contact_Form_Task_Email\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (197,1,'civicrm/contact/map',NULL,'Map Location(s)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Contact_Form_Task_Map\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (198,1,'civicrm/contact/map/event',NULL,'Map Event Location','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Contact_Form_Task_Map_Event\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Map Location(s)\";s:3:\"url\";s:28:\"/civicrm/contact/map?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (199,1,'civicrm/contact/view','cid=%%cid%%','Contact Summary','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:29:\"CRM_Contact_Page_View_Summary\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (200,1,'civicrm/contact/view/delete',NULL,'Delete Contact','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:28:\"CRM_Contact_Form_Task_Delete\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (201,1,'civicrm/contact/view/activity','show=1,cid=%%cid%%','Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:21:\"CRM_Activity_Page_Tab\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (202,1,'civicrm/activity/add','action=add','Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Activity_Form_Activity\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (203,1,'civicrm/activity/email/add','action=add','Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:27:\"CRM_Contact_Form_Task_Email\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (204,1,'civicrm/activity/pdf/add','action=add','Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Contact_Form_Task_PDF\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (205,1,'civicrm/contact/view/rel','cid=%%cid%%','Relationships','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:34:\"CRM_Contact_Page_View_Relationship\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (206,1,'civicrm/contact/view/group','cid=%%cid%%','Groups','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:34:\"CRM_Contact_Page_View_GroupContact\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (207,1,'civicrm/contact/view/smartgroup','cid=%%cid%%','Smart Groups','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:39:\"CRM_Contact_Page_View_ContactSmartGroup\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (208,1,'civicrm/contact/view/tag','cid=%%cid%%','Tags','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:25:\"CRM_Contact_Page_View_Tag\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (209,1,'civicrm/contact/view/cd',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:32:\"CRM_Contact_Page_View_CustomData\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (210,1,'civicrm/contact/view/cd/edit',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:27:\"CRM_Contact_Form_CustomData\";','s:13:\"addSequence=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (211,1,'civicrm/contact/view/vcard',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:27:\"CRM_Contact_Page_View_Vcard\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (212,1,'civicrm/contact/view/print',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:27:\"CRM_Contact_Page_View_Print\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (213,1,'civicrm/contact/view/log',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:25:\"CRM_Contact_Page_View_Log\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (214,1,'civicrm/user',NULL,'Contact Dashboard','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"access Contact Dashboard\";}i:1;s:3:\"and\";}','s:35:\"CRM_Contact_Page_View_UserDashBoard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,0,1,0,0,'a:0:{}'), + (215,1,'civicrm/dashlet/activity',NULL,'Activity Dashlet','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:25:\"CRM_Dashlet_Page_Activity\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (216,1,'civicrm/dashlet/blog',NULL,'CiviCRM Blog','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:21:\"CRM_Dashlet_Page_Blog\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (217,1,'civicrm/dashlet/getting-started',NULL,'CiviCRM Resources','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Dashlet_Page_GettingStarted\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (218,1,'civicrm/ajax/relation',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:12:\"relationship\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,3,0,'a:0:{}'), + (219,1,'civicrm/ajax/groupTree',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:9:\"groupTree\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (220,1,'civicrm/ajax/custom',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:11:\"customField\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (221,1,'civicrm/ajax/customvalue',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:17:\"deleteCustomValue\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,3,0,'a:0:{}'), + (222,1,'civicrm/ajax/cmsuser',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:13:\"checkUserName\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (223,1,'civicrm/ajax/checkemail',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:15:\"getContactEmail\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (224,1,'civicrm/ajax/checkphone',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:15:\"getContactPhone\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (225,1,'civicrm/ajax/subtype',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:13:\"buildSubTypes\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (226,1,'civicrm/ajax/signature',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:12:\"getSignature\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (227,1,'civicrm/ajax/pdfFormat',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:9:\"pdfFormat\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (228,1,'civicrm/ajax/paperSize',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:9:\"paperSize\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (229,1,'civicrm/ajax/contactref',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:31:\"access contact reference fields\";i:1;s:15:\" access CiviCRM\";}i:1;s:2:\"or\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:16:\"contactReference\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (230,1,'civicrm/dashlet/myCases',NULL,'Case Dashlet','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:24:\"CRM_Dashlet_Page_MyCases\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (231,1,'civicrm/dashlet/allCases',NULL,'All Cases Dashlet','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:31:\"access all cases and activities\";}i:1;s:3:\"and\";}','s:25:\"CRM_Dashlet_Page_AllCases\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (232,1,'civicrm/dashlet/casedashboard',NULL,'Case Dashboard Dashlet','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Dashlet_Page_CaseDashboard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (233,1,'civicrm/contact/deduperules',NULL,'Find and Merge Duplicate Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer dedupe rules\";i:1;s:24:\"merge duplicate contacts\";}i:1;s:2:\"or\";}','s:28:\"CRM_Contact_Page_DedupeRules\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,105,1,0,0,'a:2:{s:4:\"desc\";s:158:\"Manage the rules used to identify potentially duplicate contact records. Scan for duplicates using a selected rule and merge duplicate contact data as needed.\";s:10:\"adminGroup\";s:6:\"Manage\";}'), + (234,1,'civicrm/contact/dedupefind',NULL,'Find and Merge Duplicate Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','s:27:\"CRM_Contact_Page_DedupeFind\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (235,1,'civicrm/ajax/dedupefind',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:10:\"getDedupes\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (236,1,'civicrm/contact/dedupemerge',NULL,'Batch Merge Duplicate Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','s:28:\"CRM_Contact_Page_DedupeMerge\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (237,1,'civicrm/dedupe/exception',NULL,'Dedupe Exceptions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Contact_Page_DedupeException\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,110,1,0,0,'a:1:{s:10:\"adminGroup\";s:6:\"Manage\";}'), + (238,1,'civicrm/ajax/dedupeRules',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:16:\"buildDedupeRules\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (239,1,'civicrm/contact/view/useradd','cid=%%cid%%','Add User','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:29:\"CRM_Contact_Page_View_Useradd\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (240,1,'civicrm/ajax/markSelection',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:22:\"selectUnselectContacts\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (241,1,'civicrm/ajax/toggleDedupeSelect',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:18:\"toggleDedupeSelect\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (242,1,'civicrm/ajax/flipDupePairs',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:24:\"merge duplicate contacts\";}i:1;s:3:\"and\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:13:\"flipDupePairs\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (243,1,'civicrm/activity/sms/add','action=add','Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:8:\"send SMS\";}i:1;s:3:\"and\";}','s:25:\"CRM_Contact_Form_Task_SMS\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (244,1,'civicrm/ajax/contactrelationships',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"view my contact\";}i:1;s:2:\"or\";}','a:2:{i:0;s:21:\"CRM_Contact_Page_AJAX\";i:1;s:23:\"getContactRelationships\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (245,1,'civicrm/ajax/api4',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:18:\"CRM_Api4_Page_AJAX\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (246,1,'civicrm/api4',NULL,'CiviCRM','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Api4_Page_Api4Explorer\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (247,1,'civicrm/activity','action=add&context=standalone','New Activity','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Activity_Form_Activity\";','s:14:\"attachUpload=1\";','a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (248,1,'civicrm/activity/view',NULL,'View Activity','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Activity_Form_ActivityView\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (249,1,'civicrm/ajax/activity',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:15:\"getCaseActivity\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (250,1,'civicrm/ajax/globalrelationships',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:26:\"getCaseGlobalRelationships\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (251,1,'civicrm/ajax/clientrelationships',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:26:\"getCaseClientRelationships\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (252,1,'civicrm/ajax/caseroles',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:12:\"getCaseRoles\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (253,1,'civicrm/ajax/contactactivity',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:18:\"getContactActivity\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (254,1,'civicrm/ajax/activity/convert',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:22:\"CRM_Activity_Page_AJAX\";i:1;s:21:\"convertToCaseActivity\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,3,0,'a:0:{}'), + (255,1,'civicrm/activity/search',NULL,'Find Activities','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Activity_Controller_Search\";','s:14:\"attachUpload=1\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:12:\"New Activity\";s:3:\"url\";s:63:\"/civicrm/activity?reset=1&action=add&context=standalone\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (256,1,'civicrm/tag',NULL,'Tags','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:11:\"manage tags\";}i:1;s:2:\"or\";}','s:16:\"CRM_Tag_Page_Tag\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,25,1,0,0,'a:2:{s:4:\"desc\";s:158:\"Tags are useful for segmenting the contacts in your database into categories (e.g. Staff Member, Donor, Volunteer, etc.). Create and edit available tags here.\";s:10:\"adminGroup\";s:26:\"Customize Data and Screens\";}'), + (257,1,'civicrm/tag/edit','action=add','New Tag','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:11:\"manage tags\";}i:1;s:2:\"or\";}','s:17:\"CRM_Tag_Form_Edit\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:4:\"Tags\";s:3:\"url\";s:20:\"/civicrm/tag?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (258,1,'civicrm/tag/merge',NULL,'Merge Tags','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:11:\"manage tags\";}i:1;s:2:\"or\";}','s:18:\"CRM_Tag_Form_Merge\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:4:\"Tags\";s:3:\"url\";s:20:\"/civicrm/tag?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (259,1,'civicrm/ajax/tagTree',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:11:\"manage tags\";}i:1;s:2:\"or\";}','a:2:{i:0;s:19:\"CRM_Admin_Page_AJAX\";i:1;s:10:\"getTagTree\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (260,1,'civicrm/pcp',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:16:\"CRM_PCP_Form_PCP\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (261,1,'civicrm/pcp/campaign',NULL,'Setup a Personal Campaign Page - Account Information','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:22:\"CRM_PCP_Controller_PCP\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,0,1,0,0,'a:0:{}'), + (262,1,'civicrm/pcp/info',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:20:\"CRM_PCP_Page_PCPInfo\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (263,1,'civicrm/admin/pcp','context=contribute','Personal Campaign Pages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:16:\"CRM_PCP_Page_PCP\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,362,1,0,0,'a:2:{s:4:\"desc\";s:49:\"View and manage existing personal campaign pages.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), + (264,1,'civicrm/payment/form',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:26:\"CRM_Financial_Form_Payment\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Payment\";s:3:\"url\";s:39:\"/civicrm/payment?reset=1&action=add\";}}',NULL,NULL,2,1,1,1,0,0,1,0,0,'a:0:{}'), + (265,1,'civicrm/payment/edit',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:30:\"CRM_Financial_Form_PaymentEdit\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Payment\";s:3:\"url\";s:39:\"/civicrm/payment?reset=1&action=add\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), + (266,1,'civicrm/custom',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Custom_Form_CustomDataByType\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (267,1,'civicrm/event',NULL,'CiviEvent Dashboard','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:24:\"CRM_Event_Page_DashBoard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,1,1,0,1,0,800,1,1,0,'a:1:{s:9:\"component\";s:9:\"CiviEvent\";}'), + (268,1,'civicrm/participant/add','action=add','Register New Participant','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_Event_Page_Tab\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:9:\"CiviEvent\";}'), + (269,1,'civicrm/event/info',NULL,'Event Information','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:24:\"CRM_Event_Page_EventInfo\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,1,1,0,0,'a:0:{}'), + (270,1,'civicrm/event/register',NULL,'Event Registration','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:33:\"CRM_Event_Controller_Registration\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,1,1,1,0,0,'a:0:{}'), + (271,1,'civicrm/event/confirm',NULL,'Confirm Event Registration','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:46:\"CRM_Event_Form_Registration_ParticipantConfirm\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,1,1,1,0,0,'a:0:{}'), + (272,1,'civicrm/event/ical',NULL,'Current and Upcoming Events','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:15:\"view event info\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Event_ICalendar\";i:1;s:3:\"run\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,0,1,0,0,'a:0:{}'), + (273,1,'civicrm/event/list',NULL,'Current and Upcoming Events','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:15:\"view event info\";}i:1;s:3:\"and\";}','s:19:\"CRM_Event_Page_List\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,0,1,0,0,'a:0:{}'), + (274,1,'civicrm/event/participant',NULL,'Event Participants List','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"view event participants\";}i:1;s:3:\"and\";}','s:33:\"CRM_Event_Page_ParticipantListing\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,0,1,0,0,'a:0:{}'), + (275,1,'civicrm/admin/event',NULL,'Manage Events','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:26:\"CRM_Event_Page_ManageEvent\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,370,1,0,0,'a:2:{s:4:\"desc\";s:136:\"Create and edit event configuration including times, locations, online registration forms, and fees. Links for iCal and RSS syndication.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), + (276,1,'civicrm/admin/eventTemplate',NULL,'Event Templates','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:28:\"CRM_Admin_Page_EventTemplate\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,375,1,0,0,'a:2:{s:4:\"desc\";s:115:\"Administrators can create Event Templates - which are basically master event records pre-filled with default values\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), + (277,1,'civicrm/admin/options/event_type',NULL,'Event Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,385,1,0,0,'a:2:{s:4:\"desc\";s:143:\"Use Event Types to categorize your events. Event feeds can be filtered by Event Type and participant searches can use Event Type as a criteria.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), + (278,1,'civicrm/admin/participant_status',NULL,'Participant Status','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:36:\"CRM_Admin_Page_ParticipantStatusType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,390,1,0,0,'a:2:{s:4:\"desc\";s:154:\"Define statuses for event participants here (e.g. Registered, Attended, Cancelled...). You can then assign statuses and search for participants by status.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), + (279,1,'civicrm/admin/options/participant_role',NULL,'Participant Role','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,395,1,0,0,'a:2:{s:4:\"desc\";s:138:\"Define participant roles for events here (e.g. Attendee, Host, Speaker...). You can then assign roles and search for participants by role.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), + (280,1,'civicrm/admin/options/participant_listing',NULL,'Participant Listing Templates','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,398,1,0,0,'a:2:{s:4:\"desc\";s:48:\"Template to control participant listing display.\";s:10:\"adminGroup\";s:9:\"CiviEvent\";}'), + (281,1,'civicrm/event/search',NULL,'Find Participants','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:27:\"CRM_Event_Controller_Search\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,0,810,1,1,0,'a:0:{}'), + (282,1,'civicrm/event/manage',NULL,'Manage Events','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:26:\"CRM_Event_Page_ManageEvent\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,1,820,1,1,0,'a:0:{}'), + (283,1,'civicrm/event/badge',NULL,'Print Event Name Badge','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:25:\"CRM_Event_Form_Task_Badge\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,0,1,1,0,0,'a:0:{}'), + (284,1,'civicrm/event/manage/settings',NULL,'Event Info and Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:36:\"CRM_Event_Form_ManageEvent_EventInfo\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,910,1,0,0,'a:0:{}'), + (285,1,'civicrm/event/manage/location',NULL,'Event Location','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:35:\"CRM_Event_Form_ManageEvent_Location\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,930,1,0,0,'a:0:{}'), + (286,1,'civicrm/event/manage/fee',NULL,'Event Fees','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:30:\"CRM_Event_Form_ManageEvent_Fee\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,920,1,0,0,'a:0:{}'), + (287,1,'civicrm/event/manage/registration',NULL,'Event Online Registration','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:39:\"CRM_Event_Form_ManageEvent_Registration\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,930,1,0,0,'a:0:{}'), + (288,1,'civicrm/event/manage/friend',NULL,'Tell a Friend','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:21:\"CRM_Friend_Form_Event\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,940,1,0,0,'a:0:{}'), + (289,1,'civicrm/event/manage/reminder',NULL,'Schedule Reminders','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:44:\"CRM_Event_Form_ManageEvent_ScheduleReminders\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,950,1,0,0,'a:0:{}'), + (290,1,'civicrm/event/manage/repeat',NULL,'Repeat Event','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:33:\"CRM_Event_Form_ManageEvent_Repeat\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,960,1,0,0,'a:0:{}'), + (291,1,'civicrm/event/add','action=add','New Event','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:36:\"CRM_Event_Form_ManageEvent_EventInfo\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,0,830,1,0,0,'a:0:{}'), + (292,1,'civicrm/event/import',NULL,'Import Participants','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:16:\"access CiviEvent\";i:1;s:23:\"edit event participants\";}i:1;s:3:\"and\";}','s:27:\"CRM_Event_Import_Controller\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,0,840,1,1,0,'a:0:{}'), + (293,1,'civicrm/event/price',NULL,'Manage Price Sets','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_Price_Page_Set\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,0,1,0,850,1,1,0,'a:0:{}'), + (294,1,'civicrm/event/selfsvcupdate',NULL,'Self-service Registration Update','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:28:\"CRM_Event_Form_SelfSvcUpdate\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,880,1,1,0,'a:0:{}'), + (295,1,'civicrm/event/selfsvctransfer',NULL,'Self-service Registration Transfer','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:30:\"CRM_Event_Form_SelfSvcTransfer\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,890,1,1,0,'a:0:{}'), + (296,1,'civicrm/contact/view/participant',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:18:\"CRM_Event_Page_Tab\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,4,1,0,0,'a:0:{}'), + (297,1,'civicrm/participant/delete',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:19:\"delete in CiviEvent\";}i:1;s:3:\"and\";}','s:33:\"CRM_Event_Form_Participant_Delete\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,4,1,0,0,'a:0:{}'), + (298,1,'civicrm/ajax/eventFee',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','a:2:{i:0;s:19:\"CRM_Event_Page_AJAX\";i:1;s:8:\"eventFee\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (299,1,'civicrm/ajax/locBlock',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','a:2:{i:0;s:27:\"CRM_Core_Page_AJAX_Location\";i:1;s:11:\"getLocBlock\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (300,1,'civicrm/event/participant/feeselection',NULL,'Change Registration Selections','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:38:\"CRM_Event_Form_ParticipantFeeSelection\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:23:\"Event Participants List\";s:3:\"url\";s:34:\"/civicrm/event/participant?reset=1\";}}',NULL,NULL,1,1,0,1,0,1,1,0,0,'a:0:{}'), + (301,1,'civicrm/event/manage/pcp',NULL,'Personal Campaign Pages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:18:\"CRM_PCP_Form_Event\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Manage Events\";s:3:\"url\";s:29:\"/civicrm/event/manage?reset=1\";}}',NULL,NULL,1,1,0,1,1,540,1,1,0,'a:0:{}'), + (302,1,'civicrm/event/pcp',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:16:\"CRM_PCP_Form_PCP\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,1,1,0,0,'a:0:{}'), + (303,1,'civicrm/event/campaign',NULL,'Setup a Personal Campaign Page - Account Information','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:22:\"CRM_PCP_Controller_PCP\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,0,1,0,0,'a:0:{}'), + (304,1,'civicrm/contribute',NULL,'CiviContribute Dashboard','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contribute_Page_DashBoard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,2,1,0,1,0,500,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), + (305,1,'civicrm/contribute/add','action=add','New Contribution','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:23:\"CRM_Contribute_Page_Tab\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), + (306,1,'civicrm/contribute/chart',NULL,'Contribution Summary - Chart View','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Form_ContributionCharts\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), + (307,1,'civicrm/contribute/transact',NULL,'CiviContribute','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Controller_Contribution\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,1,1,1,0,1,0,0,'a:0:{}'), + (308,1,'civicrm/admin/contribute',NULL,'Manage Contribution Pages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:36:\"CRM_Contribute_Page_ContributionPage\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,360,1,0,0,'a:2:{s:4:\"desc\";s:242:\"CiviContribute allows you to create and maintain any number of Online Contribution Pages. You can create different pages for different programs or campaigns - and customize text, amounts, types of information collected from contributors, etc.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), + (309,1,'civicrm/admin/contribute/settings',NULL,'Title and Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:45:\"CRM_Contribute_Form_ContributionPage_Settings\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,400,1,0,0,'a:0:{}'), + (310,1,'civicrm/admin/contribute/amount',NULL,'Contribution Amounts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:43:\"CRM_Contribute_Form_ContributionPage_Amount\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,410,1,0,0,'a:0:{}'), + (311,1,'civicrm/admin/contribute/membership',NULL,'Membership Section','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:31:\"CRM_Member_Form_MembershipBlock\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,420,1,0,0,'a:0:{}'), + (312,1,'civicrm/admin/contribute/custom',NULL,'Include Profiles','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:43:\"CRM_Contribute_Form_ContributionPage_Custom\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,430,1,0,0,'a:0:{}'), + (313,1,'civicrm/admin/contribute/thankyou',NULL,'Thank-you and Receipting','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:45:\"CRM_Contribute_Form_ContributionPage_ThankYou\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,430,1,0,0,'a:0:{}'), + (314,1,'civicrm/admin/contribute/friend',NULL,'Tell a Friend','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Friend_Form_Contribute\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,440,1,0,0,'a:0:{}'), + (315,1,'civicrm/admin/contribute/widget',NULL,'Configure Widget','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:43:\"CRM_Contribute_Form_ContributionPage_Widget\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,460,1,0,0,'a:0:{}'), + (316,1,'civicrm/admin/contribute/premium',NULL,'Premiums','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:44:\"CRM_Contribute_Form_ContributionPage_Premium\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,470,1,0,0,'a:0:{}'), + (317,1,'civicrm/admin/contribute/addProductToPage',NULL,'Add Products to This Page','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:47:\"CRM_Contribute_Form_ContributionPage_AddProduct\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,480,1,0,0,'a:0:{}'), + (318,1,'civicrm/admin/contribute/add','action=add','New Contribution Page','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:42:\"CRM_Contribute_Controller_ContributionPage\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (319,1,'civicrm/admin/contribute/managePremiums',NULL,'Manage Premiums','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:34:\"CRM_Contribute_Page_ManagePremiums\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,365,1,0,0,'a:2:{s:4:\"desc\";s:175:\"CiviContribute allows you to configure any number of Premiums which can be offered to contributors as incentives / thank-you gifts. Define the premiums you want to offer here.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), + (320,1,'civicrm/admin/financial/financialType',NULL,'Financial Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Financial_Page_FinancialType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,580,1,0,0,'a:2:{s:4:\"desc\";s:64:\"Formerly civicrm_contribution_type merged into this table in 4.1\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), + (321,1,'civicrm/admin/financial/financialType/edit',NULL,'Edit Financial Type','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:32:\"CRM_Financial_Form_FinancialType\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:15:\"Financial Types\";s:3:\"url\";s:46:\"/civicrm/admin/financial/financialType?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (322,1,'civicrm/payment','action=add','New Payment','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:37:\"CRM_Contribute_Form_AdditionalPayment\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), + (323,1,'civicrm/admin/financial/financialAccount',NULL,'Financial Accounts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Financial_Page_FinancialAccount\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,370,1,0,0,'a:2:{s:4:\"desc\";s:128:\"Financial types are used to categorize contributions for reporting and accounting purposes. These are also referred to as Funds.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), + (324,1,'civicrm/admin/financial/financialAccount/edit',NULL,'Edit Financial Accounts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Financial_Form_FinancialAccount\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:18:\"Financial Accounts\";s:3:\"url\";s:49:\"/civicrm/admin/financial/financialAccount?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (325,1,'civicrm/admin/options/payment_instrument',NULL,'Payment Methods','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,380,1,0,0,'a:2:{s:4:\"desc\";s:224:\"You may choose to record the payment instrument used for each contribution. Common payment methods are installed by default (e.g. Check, Cash, Credit Card...). If your site requires additional payment methods, add them here.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), + (326,1,'civicrm/admin/options/accept_creditcard',NULL,'Accepted Credit Cards','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,395,1,0,0,'a:2:{s:4:\"desc\";s:94:\"Credit card options that will be offered to contributors using your Online Contribution pages.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), + (327,1,'civicrm/admin/options/soft_credit_type',NULL,'Soft Credit Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:4:\"desc\";s:86:\"Soft Credit Types that will be offered to contributors during soft credit contribution\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), + (328,1,'civicrm/contact/view/contribution',NULL,'Contributions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:23:\"CRM_Contribute_Page_Tab\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (329,1,'civicrm/contact/view/contributionrecur',NULL,'Recurring Contributions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:37:\"CRM_Contribute_Page_ContributionRecur\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (330,1,'civicrm/contact/view/contribution/additionalinfo',NULL,'Additional Info','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:14:\"access CiviCRM\";i:1;s:15:\"edit my contact\";i:2;s:15:\"view my contact\";}i:1;s:2:\"or\";}','s:34:\"CRM_Contribute_Form_AdditionalInfo\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:15:\"Contact Summary\";s:3:\"url\";s:45:\"/civicrm/contact/view?reset=1&cid=%%cid%%\";}i:2;a:2:{s:5:\"title\";s:13:\"Contributions\";s:3:\"url\";s:42:\"/civicrm/contact/view/contribution?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (331,1,'civicrm/contribute/search',NULL,'Find Contributions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:32:\"CRM_Contribute_Controller_Search\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,510,1,1,0,'a:0:{}'), + (332,1,'civicrm/contribute/searchBatch',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:37:\"CRM_Contribute_Controller_SearchBatch\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,588,1,1,0,'a:0:{}'), + (333,1,'civicrm/contribute/manage',NULL,'Manage Contribution Pages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:18:\"administer CiviCRM\";i:1;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:36:\"CRM_Contribute_Page_ContributionPage\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,530,1,1,0,'a:0:{}'), + (334,1,'civicrm/contribute/additionalinfo',NULL,'AdditionalInfo Form','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:34:\"CRM_Contribute_Form_AdditionalInfo\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,0,1,0,0,'a:0:{}'), + (335,1,'civicrm/ajax/permlocation',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','a:2:{i:0;s:27:\"CRM_Core_Page_AJAX_Location\";i:1;s:23:\"getPermissionedLocation\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (336,1,'civicrm/contribute/unsubscribe',NULL,'Cancel Subscription','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Form_CancelSubscription\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), + (337,1,'civicrm/contribute/onbehalf',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:43:\"CRM_Contribute_Form_Contribution_OnBehalfOf\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), + (338,1,'civicrm/contribute/updatebilling',NULL,'Update Billing Details','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:33:\"CRM_Contribute_Form_UpdateBilling\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), + (339,1,'civicrm/contribute/updaterecur',NULL,'Update Subscription','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Form_UpdateSubscription\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), + (340,1,'civicrm/contribute/subscriptionstatus',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:38:\"CRM_Contribute_Page_SubscriptionStatus\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), + (341,1,'civicrm/admin/financial/financialType/accounts',NULL,'Financial Type Accounts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:39:\"CRM_Financial_Page_FinancialTypeAccount\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:15:\"Financial Types\";s:3:\"url\";s:46:\"/civicrm/admin/financial/financialType?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,581,1,0,0,'a:0:{}'), + (342,1,'civicrm/financial/batch',NULL,'Accounting Batch','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:19:\"create manual batch\";}i:1;s:3:\"and\";}','s:33:\"CRM_Financial_Page_FinancialBatch\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,585,1,0,0,'a:0:{}'), + (343,1,'civicrm/financial/financialbatches',NULL,'Accounting Batches','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:24:\"CRM_Financial_Page_Batch\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,586,1,0,0,'a:0:{}'), + (344,1,'civicrm/batchtransaction',NULL,'Accounting Batch','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:35:\"CRM_Financial_Page_BatchTransaction\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,600,1,0,0,'a:0:{}'), + (345,1,'civicrm/financial/batch/export',NULL,'Accounting Batch Export','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:19:\"create manual batch\";}i:1;s:3:\"and\";}','s:25:\"CRM_Financial_Form_Export\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:16:\"Accounting Batch\";s:3:\"url\";s:32:\"/civicrm/financial/batch?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,610,1,0,0,'a:0:{}'), + (346,1,'civicrm/payment/view','action=view','View Payment','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:31:\"CRM_Contribute_Page_PaymentInfo\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:11:\"New Payment\";s:3:\"url\";s:39:\"/civicrm/payment?reset=1&action=add\";}}',NULL,NULL,2,1,0,1,0,1,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), + (347,1,'civicrm/admin/setting/preferences/contribute',NULL,'CiviContribute Component Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:21:\"access CiviContribute\";i:1;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:37:\"CRM_Admin_Form_Preferences_Contribute\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:4:\"desc\";s:42:\"Configure global CiviContribute behaviors.\";s:10:\"adminGroup\";s:14:\"CiviContribute\";}'), + (348,1,'civicrm/contribute/invoice',NULL,'PDF Invoice','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:20:\"checkDownloadInvoice\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','a:2:{i:0;s:32:\"CRM_Contribute_Form_Task_Invoice\";i:1;s:11:\"getPrintPDF\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,620,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), + (349,1,'civicrm/contribute/invoice/email',NULL,'Email Invoice','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:20:\"checkDownloadInvoice\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:32:\"CRM_Contribute_Form_Task_Invoice\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}i:2;a:2:{s:5:\"title\";s:11:\"PDF Invoice\";s:3:\"url\";s:35:\"/civicrm/contribute/invoice?reset=1\";}}',NULL,NULL,2,1,0,1,0,630,1,1,0,'a:1:{s:9:\"component\";s:14:\"CiviContribute\";}'), + (350,1,'civicrm/ajax/softcontributionlist',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:24:\"CRM_Contribute_Page_AJAX\";i:1;s:23:\"getSoftContributionRows\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (351,1,'civicrm/contribute/contributionrecur-payments',NULL,'Recurring Contribution\'s Payments','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:45:\"CRM_Contribute_Page_ContributionRecurPayments\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), + (352,1,'civicrm/membership/recurring-contributions',NULL,'Membership Recurring Contributions','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:38:\"CRM_Member_Page_RecurringContributions\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (353,1,'civicrm/contribute/widget',NULL,'CiviContribute','s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:26:\"CRM_Contribute_Page_Widget\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,1,1,0,0,1,0,0,'a:0:{}'), + (354,1,'civicrm/contribute/task',NULL,'Contribution Task','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"access CiviContribute\";}i:1;s:3:\"and\";}','s:30:\"CRM_Contribute_Controller_Task\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,0,1,0,1,1,0,0,'a:0:{}'), + (355,1,'civicrm/admin/contribute/pcp',NULL,'Personal Campaign Pages','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:23:\"CRM_PCP_Form_Contribute\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,450,1,0,0,'a:0:{}'), + (356,1,'civicrm/contribute/campaign',NULL,'Setup a Personal Campaign Page - Account Information','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:25:\"make online contributions\";}i:1;s:3:\"and\";}','s:22:\"CRM_PCP_Controller_PCP\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:24:\"CiviContribute Dashboard\";s:3:\"url\";s:27:\"/civicrm/contribute?reset=1\";}}',NULL,NULL,2,1,1,1,0,0,1,0,0,'a:0:{}'), (357,1,'civicrm/member',NULL,'CiviMember Dashboard','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:17:\"access CiviMember\";}i:1;s:3:\"and\";}','s:25:\"CRM_Member_Page_DashBoard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,3,1,0,1,0,700,1,1,0,'a:1:{s:9:\"component\";s:10:\"CiviMember\";}'), (358,1,'civicrm/member/add','action=add','New Membership','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:17:\"access CiviMember\";}i:1;s:3:\"and\";}','s:19:\"CRM_Member_Page_Tab\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:20:\"CiviMember Dashboard\";s:3:\"url\";s:23:\"/civicrm/member?reset=1\";}}',NULL,NULL,3,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:10:\"CiviMember\";}'), (359,1,'civicrm/admin/member/membershipType',NULL,'Membership Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:30:\"CRM_Member_Page_MembershipType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,370,1,0,0,'a:2:{s:4:\"desc\";s:174:\"Define the types of memberships you want to offer. For each type, you can specify a \'name\' (Gold Member, Honor Society Member...), a description, duration, and a minimum fee.\";s:10:\"adminGroup\";s:10:\"CiviMember\";}'), @@ -5277,37 +5288,28 @@ INSERT INTO `civicrm_menu` (`id`, `domain_id`, `path`, `path_arguments`, `title` (430,1,'civicrm/admin/report/template/list',NULL,'Create New Report from Template','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:17:\"access CiviReport\";}i:1;s:3:\"and\";}','s:28:\"CRM_Report_Page_TemplateList\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:4:\"desc\";s:49:\"Component wise listing of all available templates\";s:10:\"adminGroup\";s:10:\"CiviReport\";}'), (431,1,'civicrm/admin/report/options/report_template',NULL,'Manage Templates','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:17:\"access CiviReport\";}i:1;s:3:\"and\";}','s:23:\"CRM_Report_Page_Options\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:4:\"desc\";s:45:\"Browse, Edit and Delete the Report templates.\";s:10:\"adminGroup\";s:10:\"CiviReport\";}'), (432,1,'civicrm/admin/report/list',NULL,'Reports Listing','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:28:\"CRM_Report_Page_InstanceList\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:4:\"desc\";s:60:\"Browse existing report, change report criteria and settings.\";s:10:\"adminGroup\";s:10:\"CiviReport\";}'), - (433,1,'civicrm/campaign',NULL,'Campaign Dashboard','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:27:\"CRM_Campaign_Page_DashBoard\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,9,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:12:\"CiviCampaign\";}'), - (434,1,'civicrm/campaign/add',NULL,'New Campaign','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:26:\"CRM_Campaign_Form_Campaign\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:18:\"Campaign Dashboard\";s:3:\"url\";s:25:\"/civicrm/campaign?reset=1\";}}',NULL,NULL,9,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:12:\"CiviCampaign\";}'), - (435,1,'civicrm/survey/add',NULL,'New Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:29:\"CRM_Campaign_Form_Survey_Main\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:12:\"CiviCampaign\";}'), - (436,1,'civicrm/campaign/vote',NULL,'Conduct Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:4:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";i:2;s:25:\"reserve campaign contacts\";i:3;s:27:\"interview campaign contacts\";}i:1;s:2:\"or\";}','s:22:\"CRM_Campaign_Page_Vote\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:18:\"Campaign Dashboard\";s:3:\"url\";s:25:\"/civicrm/campaign?reset=1\";}}',NULL,NULL,9,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:12:\"CiviCampaign\";}'), - (437,1,'civicrm/admin/campaign/surveyType',NULL,'Survey Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCampaign\";}i:1;s:3:\"and\";}','s:28:\"CRM_Campaign_Page_SurveyType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:10:\"adminGroup\";s:12:\"CiviCampaign\";s:9:\"component\";s:12:\"CiviCampaign\";}'), - (438,1,'civicrm/admin/options/campaign_type',NULL,'Campaign Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,2,1,0,0,'a:3:{s:4:\"desc\";s:47:\"categorize your campaigns using campaign types.\";s:10:\"adminGroup\";s:12:\"CiviCampaign\";s:9:\"component\";s:12:\"CiviCampaign\";}'), - (439,1,'civicrm/admin/options/campaign_status',NULL,'Campaign Status','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,3,1,0,0,'a:3:{s:4:\"desc\";s:34:\"Define statuses for campaign here.\";s:10:\"adminGroup\";s:12:\"CiviCampaign\";s:9:\"component\";s:12:\"CiviCampaign\";}'), - (440,1,'civicrm/admin/options/engagement_index',NULL,'Engagement Index','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,4,1,0,0,'a:3:{s:4:\"desc\";s:18:\"Engagement levels.\";s:10:\"adminGroup\";s:12:\"CiviCampaign\";s:9:\"component\";s:12:\"CiviCampaign\";}'), - (441,1,'civicrm/survey/search','op=interview','Record Respondents Interview','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";i:2;s:27:\"interview campaign contacts\";}i:1;s:2:\"or\";}','s:30:\"CRM_Campaign_Controller_Search\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:12:\"CiviCampaign\";}'), - (442,1,'civicrm/campaign/gotv',NULL,'GOTV (Track Voters)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:4:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";i:2;s:25:\"release campaign contacts\";i:3;s:22:\"gotv campaign contacts\";}i:1;s:2:\"or\";}','s:22:\"CRM_Campaign_Form_Gotv\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:18:\"Campaign Dashboard\";s:3:\"url\";s:25:\"/civicrm/campaign?reset=1\";}}',NULL,NULL,9,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:12:\"CiviCampaign\";}'), - (443,1,'civicrm/petition/add',NULL,'New Petition','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:26:\"CRM_Campaign_Form_Petition\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (444,1,'civicrm/petition/sign',NULL,'Sign Petition','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"sign CiviCRM Petition\";}i:1;s:3:\"and\";}','s:36:\"CRM_Campaign_Form_Petition_Signature\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (445,1,'civicrm/petition/browse',NULL,'View Petition Signatures','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Campaign_Page_Petition\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (446,1,'civicrm/petition/confirm',NULL,'Email address verified','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"sign CiviCRM Petition\";}i:1;s:3:\"and\";}','s:34:\"CRM_Campaign_Page_Petition_Confirm\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (447,1,'civicrm/petition/thankyou',NULL,'Thank You','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"sign CiviCRM Petition\";}i:1;s:3:\"and\";}','s:35:\"CRM_Campaign_Page_Petition_ThankYou\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (448,1,'civicrm/campaign/registerInterview',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";i:2;s:27:\"interview campaign contacts\";}i:1;s:2:\"or\";}','a:2:{i:0;s:22:\"CRM_Campaign_Page_AJAX\";i:1;s:17:\"registerInterview\";}',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:18:\"Campaign Dashboard\";s:3:\"url\";s:25:\"/civicrm/campaign?reset=1\";}}',NULL,NULL,9,1,0,1,0,1,1,0,0,'a:0:{}'), - (449,1,'civicrm/survey/configure/main',NULL,'Configure Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:29:\"CRM_Campaign_Form_Survey_Main\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (450,1,'civicrm/survey/configure/questions',NULL,'Configure Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:34:\"CRM_Campaign_Form_Survey_Questions\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (451,1,'civicrm/survey/configure/results',NULL,'Configure Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:32:\"CRM_Campaign_Form_Survey_Results\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (452,1,'civicrm/survey/delete',NULL,'Delete Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:31:\"CRM_Campaign_Form_Survey_Delete\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), - (453,1,'civicrm/admin/ckeditor',NULL,'Configure CKEditor 4','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:33:\"CRM_Ckeditor4_Form_CKEditorConfig\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), - (454,1,'civicrm/ajax/event/add_participant_to_cart',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:32:\"CRM_Event_Cart_Page_CheckoutAJAX\";i:1;s:23:\"add_participant_to_cart\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (455,1,'civicrm/ajax/event/remove_participant_from_cart',NULL,NULL,'s:1:\"1\";','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','a:2:{i:0;s:32:\"CRM_Event_Cart_Page_CheckoutAJAX\";i:1;s:28:\"remove_participant_from_cart\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), - (456,1,'civicrm/event/add_to_cart',NULL,'Add Event To Cart','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:29:\"CRM_Event_Cart_Page_AddToCart\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,1,1,0,0,'a:0:{}'), - (457,1,'civicrm/event/cart_checkout',NULL,'Cart Checkout','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:34:\"CRM_Event_Cart_Controller_Checkout\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,1,1,1,0,0,'a:0:{}'), - (458,1,'civicrm/event/remove_from_cart',NULL,'Remove From Cart','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:34:\"CRM_Event_Cart_Page_RemoveFromCart\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,1,1,0,0,'a:0:{}'), - (459,1,'civicrm/event/view_cart',NULL,'View Cart','s:1:\"1\";','a:2:{i:0;a:2:{i:0;s:14:\"access CiviCRM\";i:1;s:16:\"access CiviEvent\";}i:1;s:3:\"and\";}','s:28:\"CRM_Event_Cart_Page_ViewCart\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:19:\"CiviEvent Dashboard\";s:3:\"url\";s:22:\"/civicrm/event?reset=1\";}}',NULL,NULL,1,1,1,1,0,1,1,0,0,'a:0:{}'), - (460,1,'civicrm/contact/search/custom',NULL,'Find Contacts','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:42:\"CRM_Legacycustomsearches_Controller_Search\";','s:10:\"mode=16384\";','a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Find Contacts\";s:3:\"url\";s:31:\"/civicrm/contact/search?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,10,1,1,0,'a:0:{}'), - (461,1,'civicrm/contact/search/custom/list',NULL,'Custom Searches','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:29:\"CRM_Contact_Page_CustomSearch\";','s:10:\"mode=16384\";','a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:13:\"Find Contacts\";s:3:\"url\";s:31:\"/civicrm/contact/search?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Find Contacts\";s:3:\"url\";s:38:\"/civicrm/contact/search/custom?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,16,1,1,0,'a:0:{}'), - (462,1,'civicrm/admin/setting/recaptcha',NULL,'reCAPTCHA Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Form_Generic\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:4:\"desc\";s:43:\"Configure anti-abuse/bot-prevention service\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), - (463,1,'admin',NULL,NULL,NULL,NULL,NULL,NULL,'a:15:{s:14:\"CiviContribute\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:9:{s:32:\"{weight}.Personal Campaign Pages\";a:6:{s:5:\"title\";s:23:\"Personal Campaign Pages\";s:4:\"desc\";s:49:\"View and manage existing personal campaign pages.\";s:2:\"id\";s:21:\"PersonalCampaignPages\";s:3:\"url\";s:49:\"/civicrm/admin/pcp?context=contribute&reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:34:\"{weight}.Manage Contribution Pages\";a:6:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:4:\"desc\";s:242:\"CiviContribute allows you to create and maintain any number of Online Contribution Pages. You can create different pages for different programs or campaigns - and customize text, amounts, types of information collected from contributors, etc.\";s:2:\"id\";s:23:\"ManageContributionPages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Manage Premiums\";a:6:{s:5:\"title\";s:15:\"Manage Premiums\";s:4:\"desc\";s:175:\"CiviContribute allows you to configure any number of Premiums which can be offered to contributors as incentives / thank-you gifts. Define the premiums you want to offer here.\";s:2:\"id\";s:14:\"ManagePremiums\";s:3:\"url\";s:48:\"/civicrm/admin/contribute/managePremiums?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Financial Types\";a:6:{s:5:\"title\";s:15:\"Financial Types\";s:4:\"desc\";s:64:\"Formerly civicrm_contribution_type merged into this table in 4.1\";s:2:\"id\";s:14:\"FinancialTypes\";s:3:\"url\";s:46:\"/civicrm/admin/financial/financialType?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Financial Accounts\";a:6:{s:5:\"title\";s:18:\"Financial Accounts\";s:4:\"desc\";s:128:\"Financial types are used to categorize contributions for reporting and accounting purposes. These are also referred to as Funds.\";s:2:\"id\";s:17:\"FinancialAccounts\";s:3:\"url\";s:49:\"/civicrm/admin/financial/financialAccount?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Payment Methods\";a:6:{s:5:\"title\";s:15:\"Payment Methods\";s:4:\"desc\";s:224:\"You may choose to record the payment instrument used for each contribution. Common payment methods are installed by default (e.g. Check, Cash, Credit Card...). If your site requires additional payment methods, add them here.\";s:2:\"id\";s:14:\"PaymentMethods\";s:3:\"url\";s:49:\"/civicrm/admin/options/payment_instrument?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:30:\"{weight}.Accepted Credit Cards\";a:6:{s:5:\"title\";s:21:\"Accepted Credit Cards\";s:4:\"desc\";s:94:\"Credit card options that will be offered to contributors using your Online Contribution pages.\";s:2:\"id\";s:19:\"AcceptedCreditCards\";s:3:\"url\";s:48:\"/civicrm/admin/options/accept_creditcard?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Soft Credit Types\";a:6:{s:5:\"title\";s:17:\"Soft Credit Types\";s:4:\"desc\";s:86:\"Soft Credit Types that will be offered to contributors during soft credit contribution\";s:2:\"id\";s:15:\"SoftCreditTypes\";s:3:\"url\";s:47:\"/civicrm/admin/options/soft_credit_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:42:\"{weight}.CiviContribute Component Settings\";a:6:{s:5:\"title\";s:33:\"CiviContribute Component Settings\";s:4:\"desc\";s:42:\"Configure global CiviContribute behaviors.\";s:2:\"id\";s:31:\"CiviContributeComponentSettings\";s:3:\"url\";s:53:\"/civicrm/admin/setting/preferences/contribute?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:26:\"Customize Data and Screens\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:19:{s:20:\"{weight}.Custom Data\";a:6:{s:5:\"title\";s:11:\"Custom Data\";s:4:\"desc\";s:109:\"Configure custom fields to collect and store custom data which is not included in the standard CiviCRM forms.\";s:2:\"id\";s:10:\"CustomData\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:17:\"{weight}.Profiles\";a:6:{s:5:\"title\";s:8:\"Profiles\";s:4:\"desc\";s:151:\"Profiles allow you to aggregate groups of fields and include them in your site as input forms, contact display pages, and search and listings features.\";s:2:\"id\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:23:\"{weight}.Activity Types\";a:6:{s:5:\"title\";s:14:\"Activity Types\";s:4:\"desc\";s:155:\"CiviCRM has several built-in activity types (meetings, phone calls, emails sent). Track other types of interactions by creating custom activity types here.\";s:2:\"id\";s:13:\"ActivityTypes\";s:3:\"url\";s:44:\"/civicrm/admin/options/activity_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Relationship Types\";a:6:{s:5:\"title\";s:18:\"Relationship Types\";s:4:\"desc\";s:148:\"Contacts can be linked to each other through Relationships (e.g. Spouse, Employer, etc.). Define the types of relationships you want to record here.\";s:2:\"id\";s:17:\"RelationshipTypes\";s:3:\"url\";s:30:\"/civicrm/admin/reltype?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Contact Types\";a:6:{s:5:\"title\";s:13:\"Contact Types\";s:4:\"desc\";N;s:2:\"id\";s:12:\"ContactTypes\";s:3:\"url\";s:38:\"/civicrm/admin/options/subtype?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:23:\"{weight}.Gender Options\";a:6:{s:5:\"title\";s:14:\"Gender Options\";s:4:\"desc\";s:79:\"Options for assigning gender to individual contacts (e.g. Male, Female, Other).\";s:2:\"id\";s:13:\"GenderOptions\";s:3:\"url\";s:37:\"/civicrm/admin/options/gender?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:40:\"{weight}.Individual Prefixes (Ms, Mr...)\";a:6:{s:5:\"title\";s:31:\"Individual Prefixes (Ms, Mr...)\";s:4:\"desc\";s:66:\"Options for individual contact prefixes (e.g. Ms., Mr., Dr. etc.).\";s:2:\"id\";s:27:\"IndividualPrefixes_Ms_Mr...\";s:3:\"url\";s:48:\"/civicrm/admin/options/individual_prefix?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:40:\"{weight}.Individual Suffixes (Jr, Sr...)\";a:6:{s:5:\"title\";s:31:\"Individual Suffixes (Jr, Sr...)\";s:4:\"desc\";s:61:\"Options for individual contact suffixes (e.g. Jr., Sr. etc.).\";s:2:\"id\";s:27:\"IndividualSuffixes_Jr_Sr...\";s:3:\"url\";s:48:\"/civicrm/admin/options/individual_suffix?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:39:\"{weight}.Location Types (Home, Work...)\";a:6:{s:5:\"title\";s:30:\"Location Types (Home, Work...)\";s:4:\"desc\";s:94:\"Options for categorizing contact addresses and phone numbers (e.g. Home, Work, Billing, etc.).\";s:2:\"id\";s:26:\"LocationTypes_Home_Work...\";s:3:\"url\";s:35:\"/civicrm/admin/locationType?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Website Types\";a:6:{s:5:\"title\";s:13:\"Website Types\";s:4:\"desc\";s:48:\"Options for assigning website types to contacts.\";s:2:\"id\";s:12:\"WebsiteTypes\";s:3:\"url\";s:43:\"/civicrm/admin/options/website_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:35:\"{weight}.Instant Messenger Services\";a:6:{s:5:\"title\";s:26:\"Instant Messenger Services\";s:4:\"desc\";s:79:\"List of IM services which can be used when recording screen-names for contacts.\";s:2:\"id\";s:24:\"InstantMessengerServices\";s:3:\"url\";s:56:\"/civicrm/admin/options/instant_messenger_service?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:31:\"{weight}.Mobile Phone Providers\";a:6:{s:5:\"title\";s:22:\"Mobile Phone Providers\";s:4:\"desc\";s:90:\"List of mobile phone providers which can be assigned when recording contact phone numbers.\";s:2:\"id\";s:20:\"MobilePhoneProviders\";s:3:\"url\";s:46:\"/civicrm/admin/options/mobile_provider?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:19:\"{weight}.Phone Type\";a:6:{s:5:\"title\";s:10:\"Phone Type\";s:4:\"desc\";s:80:\"Options for assigning phone type to contacts (e.g Phone,\n Mobile, Fax, Pager)\";s:2:\"id\";s:9:\"PhoneType\";s:3:\"url\";s:41:\"/civicrm/admin/options/phone_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:28:\"{weight}.Display Preferences\";a:6:{s:5:\"title\";s:19:\"Display Preferences\";s:4:\"desc\";N;s:2:\"id\";s:18:\"DisplayPreferences\";s:3:\"url\";s:50:\"/civicrm/admin/setting/preferences/display?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Search Preferences\";a:6:{s:5:\"title\";s:18:\"Search Preferences\";s:4:\"desc\";N;s:2:\"id\";s:17:\"SearchPreferences\";s:3:\"url\";s:37:\"/civicrm/admin/setting/search?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Navigation Menu\";a:6:{s:5:\"title\";s:15:\"Navigation Menu\";s:4:\"desc\";s:79:\"Add or remove menu items, and modify the order of items on the navigation menu.\";s:2:\"id\";s:14:\"NavigationMenu\";s:3:\"url\";s:27:\"/civicrm/admin/menu?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Word Replacements\";a:6:{s:5:\"title\";s:17:\"Word Replacements\";s:4:\"desc\";s:18:\"Word Replacements.\";s:2:\"id\";s:16:\"WordReplacements\";s:3:\"url\";s:47:\"/civicrm/admin/options/wordreplacements?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:31:\"{weight}.Manage Custom Searches\";a:6:{s:5:\"title\";s:22:\"Manage Custom Searches\";s:4:\"desc\";s:225:\"Developers and accidental techies with a bit of PHP and SQL knowledge can create new search forms to handle specific search and reporting needs which aren\'t covered by the built-in Advanced Search and Search Builder features.\";s:2:\"id\";s:20:\"ManageCustomSearches\";s:3:\"url\";s:44:\"/civicrm/admin/options/custom_search?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:13:\"{weight}.Tags\";a:6:{s:5:\"title\";s:4:\"Tags\";s:4:\"desc\";s:158:\"Tags are useful for segmenting the contacts in your database into categories (e.g. Staff Member, Donor, Volunteer, etc.). Create and edit available tags here.\";s:2:\"id\";s:4:\"Tags\";s:3:\"url\";s:20:\"/civicrm/tag?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:14:\"Communications\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:11:{s:46:\"{weight}.Organization Address and Contact Info\";a:6:{s:5:\"title\";s:37:\"Organization Address and Contact Info\";s:4:\"desc\";s:150:\"Configure primary contact name, email, return-path and address information. This information is used by CiviMail to identify the sending organization.\";s:2:\"id\";s:33:\"OrganizationAddressandContactInfo\";s:3:\"url\";s:47:\"/civicrm/admin/domain?action=update&reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:29:\"{weight}.From Email Addresses\";a:6:{s:5:\"title\";s:20:\"From Email Addresses\";s:4:\"desc\";s:74:\"List of Email Addresses which can be used when sending emails to contacts.\";s:2:\"id\";s:18:\"FromEmailAddresses\";s:3:\"url\";s:49:\"/civicrm/admin/options/from_email_address?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Message Templates\";a:6:{s:5:\"title\";s:17:\"Message Templates\";s:4:\"desc\";s:130:\"Message templates allow you to save and re-use messages with layouts which you can use when sending email to one or more contacts.\";s:2:\"id\";s:16:\"MessageTemplates\";s:3:\"url\";s:39:\"/civicrm/admin/messageTemplates?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Schedule Reminders\";a:6:{s:5:\"title\";s:18:\"Schedule Reminders\";s:4:\"desc\";s:19:\"Schedule Reminders.\";s:2:\"id\";s:17:\"ScheduleReminders\";s:3:\"url\";s:40:\"/civicrm/admin/scheduleReminders?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:40:\"{weight}.Preferred Communication Methods\";a:6:{s:5:\"title\";s:31:\"Preferred Communication Methods\";s:4:\"desc\";s:117:\"One or more preferred methods of communication can be assigned to each contact. Customize the available options here.\";s:2:\"id\";s:29:\"PreferredCommunicationMethods\";s:3:\"url\";s:61:\"/civicrm/admin/options/preferred_communication_method?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Label Page Formats\";a:6:{s:5:\"title\";s:18:\"Label Page Formats\";s:4:\"desc\";s:82:\"Configure label sizes and page layouts that are used when printing mailing labels.\";s:2:\"id\";s:16:\"LabelPageFormats\";s:3:\"url\";s:35:\"/civicrm/admin/labelFormats?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:33:\"{weight}.Print Page (PDF) Formats\";a:6:{s:5:\"title\";s:24:\"Print Page (PDF) Formats\";s:4:\"desc\";s:95:\"Configure PDF Page Formats that can be assigned to Message Templates when creating PDF letters.\";s:2:\"id\";s:20:\"PrintPage_PDFFormats\";s:3:\"url\";s:33:\"/civicrm/admin/pdfFormats?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:36:\"{weight}.Communication Style Options\";a:6:{s:5:\"title\";s:27:\"Communication Style Options\";s:4:\"desc\";s:42:\"Options for Communication Style selection.\";s:2:\"id\";s:25:\"CommunicationStyleOptions\";s:3:\"url\";s:50:\"/civicrm/admin/options/communication_style?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:31:\"{weight}.Email Greeting Formats\";a:6:{s:5:\"title\";s:22:\"Email Greeting Formats\";s:4:\"desc\";s:75:\"Options for assigning email greetings to individual and household contacts.\";s:2:\"id\";s:20:\"EmailGreetingFormats\";s:3:\"url\";s:45:\"/civicrm/admin/options/email_greeting?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:32:\"{weight}.Postal Greeting Formats\";a:6:{s:5:\"title\";s:23:\"Postal Greeting Formats\";s:4:\"desc\";s:76:\"Options for assigning postal greetings to individual and household contacts.\";s:2:\"id\";s:21:\"PostalGreetingFormats\";s:3:\"url\";s:46:\"/civicrm/admin/options/postal_greeting?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Addressee Formats\";a:6:{s:5:\"title\";s:17:\"Addressee Formats\";s:4:\"desc\";s:83:\"Options for assigning addressee to individual, household and organization contacts.\";s:2:\"id\";s:16:\"AddresseeFormats\";s:3:\"url\";s:40:\"/civicrm/admin/options/addressee?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:12:\"Localization\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:4:{s:39:\"{weight}.Languages, Currency, Locations\";a:6:{s:5:\"title\";s:30:\"Languages, Currency, Locations\";s:4:\"desc\";N;s:2:\"id\";s:28:\"Languages_Currency_Locations\";s:3:\"url\";s:43:\"/civicrm/admin/setting/localization?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:25:\"{weight}.Address Settings\";a:6:{s:5:\"title\";s:16:\"Address Settings\";s:4:\"desc\";N;s:2:\"id\";s:15:\"AddressSettings\";s:3:\"url\";s:50:\"/civicrm/admin/setting/preferences/address?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:21:\"{weight}.Date Formats\";a:6:{s:5:\"title\";s:12:\"Date Formats\";s:4:\"desc\";N;s:2:\"id\";s:11:\"DateFormats\";s:3:\"url\";s:35:\"/civicrm/admin/setting/date?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:28:\"{weight}.Preferred Languages\";a:6:{s:5:\"title\";s:19:\"Preferred Languages\";s:4:\"desc\";s:30:\"Options for contact languages.\";s:2:\"id\";s:18:\"PreferredLanguages\";s:3:\"url\";s:40:\"/civicrm/admin/options/languages?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:21:\"Users and Permissions\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:2:{s:23:\"{weight}.Access Control\";a:6:{s:5:\"title\";s:14:\"Access Control\";s:4:\"desc\";s:73:\"Grant or deny access to actions (view, edit...), features and components.\";s:2:\"id\";s:13:\"AccessControl\";s:3:\"url\";s:29:\"/civicrm/admin/access?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:38:\"{weight}.Synchronize Users to Contacts\";a:6:{s:5:\"title\";s:29:\"Synchronize Users to Contacts\";s:4:\"desc\";s:71:\"Automatically create a CiviCRM contact record for each CMS user record.\";s:2:\"id\";s:26:\"SynchronizeUserstoContacts\";s:3:\"url\";s:32:\"/civicrm/admin/synchUser?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:15:\"System Settings\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:20:{s:32:\"{weight}.Configuration Checklist\";a:6:{s:5:\"title\";s:23:\"Configuration Checklist\";s:4:\"desc\";s:55:\"List of configuration tasks with links to each setting.\";s:2:\"id\";s:22:\"ConfigurationChecklist\";s:3:\"url\";s:33:\"/civicrm/admin/configtask?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:34:\"{weight}.Enable CiviCRM Components\";a:6:{s:5:\"title\";s:25:\"Enable CiviCRM Components\";s:4:\"desc\";s:269:\"Enable or disable components (e.g. CiviEvent, CiviMember, etc.) for your site based on the features you need. We recommend disabling any components not being used in order to simplify the user interface. You can easily re-enable components at any time from this screen.\";s:2:\"id\";s:23:\"EnableCiviCRMComponents\";s:3:\"url\";s:40:\"/civicrm/admin/setting/component?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Manage Extensions\";a:6:{s:5:\"title\";s:17:\"Manage Extensions\";s:4:\"desc\";s:0:\"\";s:2:\"id\";s:16:\"ManageExtensions\";s:3:\"url\";s:33:\"/civicrm/admin/extensions?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:32:\"{weight}.Outbound Email Settings\";a:6:{s:5:\"title\";s:23:\"Outbound Email Settings\";s:4:\"desc\";N;s:2:\"id\";s:21:\"OutboundEmailSettings\";s:3:\"url\";s:35:\"/civicrm/admin/setting/smtp?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:37:\"{weight}.Settings - Payment Processor\";a:6:{s:5:\"title\";s:28:\"Settings - Payment Processor\";s:4:\"desc\";s:48:\"Payment Processor setup for CiviCRM transactions\";s:2:\"id\";s:25:\"Settings-PaymentProcessor\";s:3:\"url\";s:39:\"/civicrm/admin/paymentProcessor?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:30:\"{weight}.Mapping and Geocoding\";a:6:{s:5:\"title\";s:21:\"Mapping and Geocoding\";s:4:\"desc\";N;s:2:\"id\";s:19:\"MappingandGeocoding\";s:3:\"url\";s:38:\"/civicrm/admin/setting/mapping?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:53:\"{weight}.Misc (Undelete, PDFs, Limits, Logging, etc.)\";a:6:{s:5:\"title\";s:44:\"Misc (Undelete, PDFs, Limits, Logging, etc.)\";s:4:\"desc\";s:63:\"Enable undelete/move to trash feature, detailed change logging.\";s:2:\"id\";s:38:\"Misc_Undelete_PDFs_Limits_Logging_etc.\";s:3:\"url\";s:35:\"/civicrm/admin/setting/misc?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:20:\"{weight}.Directories\";a:6:{s:5:\"title\";s:11:\"Directories\";s:4:\"desc\";N;s:2:\"id\";s:11:\"Directories\";s:3:\"url\";s:35:\"/civicrm/admin/setting/path?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Resource URLs\";a:6:{s:5:\"title\";s:13:\"Resource URLs\";s:4:\"desc\";N;s:2:\"id\";s:12:\"ResourceURLs\";s:3:\"url\";s:34:\"/civicrm/admin/setting/url?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:40:\"{weight}.Cleanup Caches and Update Paths\";a:6:{s:5:\"title\";s:31:\"Cleanup Caches and Update Paths\";s:4:\"desc\";s:157:\"Reset the Base Directory Path and Base URL settings - generally when a CiviCRM site is moved to another location in the file system and/or to another domain.\";s:2:\"id\";s:27:\"CleanupCachesandUpdatePaths\";s:3:\"url\";s:50:\"/civicrm/admin/setting/updateConfigBackend?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:33:\"{weight}.CMS Database Integration\";a:6:{s:5:\"title\";s:24:\"CMS Database Integration\";s:4:\"desc\";N;s:2:\"id\";s:22:\"CMSDatabaseIntegration\";s:3:\"url\";s:33:\"/civicrm/admin/setting/uf?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:36:\"{weight}.Safe File Extension Options\";a:6:{s:5:\"title\";s:27:\"Safe File Extension Options\";s:4:\"desc\";s:44:\"File Extensions that can be considered safe.\";s:2:\"id\";s:24:\"SafeFileExtensionOptions\";s:3:\"url\";s:50:\"/civicrm/admin/options/safe_file_extension?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Option Groups\";a:6:{s:5:\"title\";s:13:\"Option Groups\";s:4:\"desc\";s:35:\"Access all meta-data option groups.\";s:2:\"id\";s:12:\"OptionGroups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:31:\"{weight}.Import/Export Mappings\";a:6:{s:5:\"title\";s:22:\"Import/Export Mappings\";s:4:\"desc\";s:141:\"Import and Export mappings allow you to easily run the same job multiple times. This option allows you to rename or delete existing mappings.\";s:2:\"id\";s:21:\"Import_ExportMappings\";s:3:\"url\";s:30:\"/civicrm/admin/mapping?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:18:\"{weight}.Debugging\";a:6:{s:5:\"title\";s:9:\"Debugging\";s:4:\"desc\";N;s:2:\"id\";s:9:\"Debugging\";s:3:\"url\";s:36:\"/civicrm/admin/setting/debug?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:28:\"{weight}.Multi Site Settings\";a:6:{s:5:\"title\";s:19:\"Multi Site Settings\";s:4:\"desc\";N;s:2:\"id\";s:17:\"MultiSiteSettings\";s:3:\"url\";s:52:\"/civicrm/admin/setting/preferences/multisite?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:23:\"{weight}.Scheduled Jobs\";a:6:{s:5:\"title\";s:14:\"Scheduled Jobs\";s:4:\"desc\";s:35:\"Managing periodially running tasks.\";s:2:\"id\";s:13:\"ScheduledJobs\";s:3:\"url\";s:26:\"/civicrm/admin/job?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Edit Scheduled Job\";a:6:{s:5:\"title\";s:18:\"Edit Scheduled Job\";s:4:\"desc\";s:32:\"Edit a periodially running task.\";s:2:\"id\";s:16:\"EditScheduledJob\";s:3:\"url\";s:31:\"/civicrm/admin/job/edit?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Sms Providers\";a:6:{s:5:\"title\";s:13:\"Sms Providers\";s:4:\"desc\";s:27:\"To configure a sms provider\";s:2:\"id\";s:12:\"SmsProviders\";s:3:\"url\";s:35:\"/civicrm/admin/sms/provider?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.reCAPTCHA Settings\";a:6:{s:5:\"title\";s:18:\"reCAPTCHA Settings\";s:4:\"desc\";s:43:\"Configure anti-abuse/bot-prevention service\";s:2:\"id\";s:17:\"reCAPTCHASettings\";s:3:\"url\";s:40:\"/civicrm/admin/setting/recaptcha?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:12:\"CiviCampaign\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:5:{s:40:\"{weight}.CiviCampaign Component Settings\";a:6:{s:5:\"title\";s:31:\"CiviCampaign Component Settings\";s:4:\"desc\";s:40:\"Configure global CiviCampaign behaviors.\";s:2:\"id\";s:29:\"CiviCampaignComponentSettings\";s:3:\"url\";s:51:\"/civicrm/admin/setting/preferences/campaign?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:21:\"{weight}.Survey Types\";a:6:{s:5:\"title\";s:12:\"Survey Types\";s:4:\"desc\";N;s:2:\"id\";s:11:\"SurveyTypes\";s:3:\"url\";s:42:\"/civicrm/admin/campaign/surveyType?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:23:\"{weight}.Campaign Types\";a:6:{s:5:\"title\";s:14:\"Campaign Types\";s:4:\"desc\";s:47:\"categorize your campaigns using campaign types.\";s:2:\"id\";s:13:\"CampaignTypes\";s:3:\"url\";s:44:\"/civicrm/admin/options/campaign_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Campaign Status\";a:6:{s:5:\"title\";s:15:\"Campaign Status\";s:4:\"desc\";s:34:\"Define statuses for campaign here.\";s:2:\"id\";s:14:\"CampaignStatus\";s:3:\"url\";s:46:\"/civicrm/admin/options/campaign_status?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:25:\"{weight}.Engagement Index\";a:6:{s:5:\"title\";s:16:\"Engagement Index\";s:4:\"desc\";s:18:\"Engagement levels.\";s:2:\"id\";s:15:\"EngagementIndex\";s:3:\"url\";s:47:\"/civicrm/admin/options/engagement_index?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:9:\"CiviEvent\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:9:{s:37:\"{weight}.CiviEvent Component Settings\";a:6:{s:5:\"title\";s:28:\"CiviEvent Component Settings\";s:4:\"desc\";s:37:\"Configure global CiviEvent behaviors.\";s:2:\"id\";s:26:\"CiviEventComponentSettings\";s:3:\"url\";s:48:\"/civicrm/admin/setting/preferences/event?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:33:\"{weight}.Event Name Badge Layouts\";a:6:{s:5:\"title\";s:24:\"Event Name Badge Layouts\";s:4:\"desc\";s:107:\"Configure name badge layouts for event participants, including logos and what data to include on the badge.\";s:2:\"id\";s:21:\"EventNameBadgeLayouts\";s:3:\"url\";s:52:\"/civicrm/admin/badgelayout?action=browse&reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Manage Events\";a:6:{s:5:\"title\";s:13:\"Manage Events\";s:4:\"desc\";s:136:\"Create and edit event configuration including times, locations, online registration forms, and fees. Links for iCal and RSS syndication.\";s:2:\"id\";s:12:\"ManageEvents\";s:3:\"url\";s:28:\"/civicrm/admin/event?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Event Templates\";a:6:{s:5:\"title\";s:15:\"Event Templates\";s:4:\"desc\";s:115:\"Administrators can create Event Templates - which are basically master event records pre-filled with default values\";s:2:\"id\";s:14:\"EventTemplates\";s:3:\"url\";s:36:\"/civicrm/admin/eventTemplate?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:20:\"{weight}.Event Types\";a:6:{s:5:\"title\";s:11:\"Event Types\";s:4:\"desc\";s:143:\"Use Event Types to categorize your events. Event feeds can be filtered by Event Type and participant searches can use Event Type as a criteria.\";s:2:\"id\";s:10:\"EventTypes\";s:3:\"url\";s:41:\"/civicrm/admin/options/event_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Participant Status\";a:6:{s:5:\"title\";s:18:\"Participant Status\";s:4:\"desc\";s:154:\"Define statuses for event participants here (e.g. Registered, Attended, Cancelled...). You can then assign statuses and search for participants by status.\";s:2:\"id\";s:17:\"ParticipantStatus\";s:3:\"url\";s:41:\"/civicrm/admin/participant_status?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:25:\"{weight}.Participant Role\";a:6:{s:5:\"title\";s:16:\"Participant Role\";s:4:\"desc\";s:138:\"Define participant roles for events here (e.g. Attendee, Host, Speaker...). You can then assign roles and search for participants by role.\";s:2:\"id\";s:15:\"ParticipantRole\";s:3:\"url\";s:47:\"/civicrm/admin/options/participant_role?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:38:\"{weight}.Participant Listing Templates\";a:6:{s:5:\"title\";s:29:\"Participant Listing Templates\";s:4:\"desc\";s:48:\"Template to control participant listing display.\";s:2:\"id\";s:27:\"ParticipantListingTemplates\";s:3:\"url\";s:50:\"/civicrm/admin/options/participant_listing?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:31:\"{weight}.Conference Slot Labels\";a:6:{s:5:\"title\";s:22:\"Conference Slot Labels\";s:4:\"desc\";s:35:\"Define conference slots and labels.\";s:2:\"id\";s:20:\"ConferenceSlotLabels\";s:3:\"url\";s:46:\"/civicrm/admin/options/conference_slot?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:8:\"CiviMail\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:5:{s:36:\"{weight}.CiviMail Component Settings\";a:6:{s:5:\"title\";s:27:\"CiviMail Component Settings\";s:4:\"desc\";s:36:\"Configure global CiviMail behaviors.\";s:2:\"id\";s:25:\"CiviMailComponentSettings\";s:3:\"url\";s:50:\"/civicrm/admin/setting/preferences/mailing?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Mailer Settings\";a:6:{s:5:\"title\";s:15:\"Mailer Settings\";s:4:\"desc\";s:61:\"Configure spool period, throttling and other mailer settings.\";s:2:\"id\";s:14:\"MailerSettings\";s:3:\"url\";s:27:\"/civicrm/admin/mail?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:49:\"{weight}.Headers, Footers, and Automated Messages\";a:6:{s:5:\"title\";s:40:\"Headers, Footers, and Automated Messages\";s:4:\"desc\";s:143:\"Configure the header and footer used for mailings. Customize the content of automated Subscribe, Unsubscribe, Resubscribe and Opt-out messages.\";s:2:\"id\";s:36:\"Headers_Footers_andAutomatedMessages\";s:3:\"url\";s:32:\"/civicrm/admin/component?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:29:\"{weight}.From Email Addresses\";a:6:{s:5:\"title\";s:20:\"From Email Addresses\";s:4:\"desc\";s:74:\"List of Email Addresses which can be used when sending emails to contacts.\";s:2:\"id\";s:18:\"FromEmailAddresses\";s:3:\"url\";s:58:\"/civicrm/admin/options/from_email_address/civimail?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Mail Accounts\";a:6:{s:5:\"title\";s:13:\"Mail Accounts\";s:4:\"desc\";s:20:\"List email accounts.\";s:2:\"id\";s:12:\"MailAccounts\";s:3:\"url\";s:35:\"/civicrm/admin/mailSettings?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:10:\"CiviMember\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:3:{s:38:\"{weight}.CiviMember Component Settings\";a:6:{s:5:\"title\";s:29:\"CiviMember Component Settings\";s:4:\"desc\";s:38:\"Configure global CiviMember behaviors.\";s:2:\"id\";s:27:\"CiviMemberComponentSettings\";s:3:\"url\";s:49:\"/civicrm/admin/setting/preferences/member?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:25:\"{weight}.Membership Types\";a:6:{s:5:\"title\";s:16:\"Membership Types\";s:4:\"desc\";s:174:\"Define the types of memberships you want to offer. For each type, you can specify a \'name\' (Gold Member, Honor Society Member...), a description, duration, and a minimum fee.\";s:2:\"id\";s:15:\"MembershipTypes\";s:3:\"url\";s:44:\"/civicrm/admin/member/membershipType?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:32:\"{weight}.Membership Status Rules\";a:6:{s:5:\"title\";s:23:\"Membership Status Rules\";s:4:\"desc\";s:187:\"Status \'rules\' define the current status for a membership based on that membership\'s start and end dates. You can adjust the default status options and rules as needed to meet your needs.\";s:2:\"id\";s:21:\"MembershipStatusRules\";s:3:\"url\";s:46:\"/civicrm/admin/member/membershipStatus?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:6:\"Manage\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:3:{s:27:\"{weight}.Scheduled Jobs Log\";a:6:{s:5:\"title\";s:18:\"Scheduled Jobs Log\";s:4:\"desc\";s:46:\"Browsing the log of periodially running tasks.\";s:2:\"id\";s:16:\"ScheduledJobsLog\";s:3:\"url\";s:29:\"/civicrm/admin/joblog?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:42:\"{weight}.Find and Merge Duplicate Contacts\";a:6:{s:5:\"title\";s:33:\"Find and Merge Duplicate Contacts\";s:4:\"desc\";s:158:\"Manage the rules used to identify potentially duplicate contact records. Scan for duplicates using a selected rule and merge duplicate contact data as needed.\";s:2:\"id\";s:29:\"FindandMergeDuplicateContacts\";s:3:\"url\";s:36:\"/civicrm/contact/deduperules?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Dedupe Exceptions\";a:6:{s:5:\"title\";s:17:\"Dedupe Exceptions\";s:4:\"desc\";N;s:2:\"id\";s:16:\"DedupeExceptions\";s:3:\"url\";s:33:\"/civicrm/dedupe/exception?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:12:\"Option Lists\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:1:{s:20:\"{weight}.Grant Types\";a:6:{s:5:\"title\";s:11:\"Grant Types\";s:4:\"desc\";s:148:\"List of types which can be assigned to Grants. (Enable CiviGrant from Administer > System Settings > Enable Components if you want to track grants.)\";s:2:\"id\";s:10:\"GrantTypes\";s:3:\"url\";s:41:\"/civicrm/admin/options/grant_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:9:\"Customize\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:1:{s:19:\"{weight}.Price Sets\";a:6:{s:5:\"title\";s:10:\"Price Sets\";s:4:\"desc\";s:205:\"Price sets allow you to offer multiple options with associated fees (e.g. pre-conference workshops, additional meals, etc.). Configure Price Sets for events which need more than a single set of fee levels.\";s:2:\"id\";s:9:\"PriceSets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:8:\"CiviCase\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:5:{s:26:\"{weight}.CiviCase Settings\";a:6:{s:5:\"title\";s:17:\"CiviCase Settings\";s:4:\"desc\";N;s:2:\"id\";s:16:\"CiviCaseSettings\";s:3:\"url\";s:35:\"/civicrm/admin/setting/case?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:19:\"{weight}.Case Types\";a:6:{s:5:\"title\";s:10:\"Case Types\";s:4:\"desc\";s:137:\"List of types which can be assigned to Cases. (Enable the Cases tab from System Settings - Enable Components if you want to track cases.)\";s:2:\"id\";s:9:\"CaseTypes\";s:3:\"url\";s:40:\"/civicrm/admin/options/case_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Redaction Rules\";a:6:{s:5:\"title\";s:15:\"Redaction Rules\";s:4:\"desc\";s:223:\"List of rules which can be applied to user input strings so that the redacted output can be recognized as repeated instances of the same string or can be identified as a \"semantic type of the data element\" within case data.\";s:2:\"id\";s:14:\"RedactionRules\";s:3:\"url\";s:45:\"/civicrm/admin/options/redaction_rule?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Case Statuses\";a:6:{s:5:\"title\";s:13:\"Case Statuses\";s:4:\"desc\";s:48:\"List of statuses that can be assigned to a case.\";s:2:\"id\";s:12:\"CaseStatuses\";s:3:\"url\";s:42:\"/civicrm/admin/options/case_status?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Encounter Mediums\";a:6:{s:5:\"title\";s:17:\"Encounter Mediums\";s:4:\"desc\";s:26:\"List of encounter mediums.\";s:2:\"id\";s:16:\"EncounterMediums\";s:3:\"url\";s:47:\"/civicrm/admin/options/encounter_medium?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:10:\"CiviReport\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:3:{s:40:\"{weight}.Create New Report from Template\";a:6:{s:5:\"title\";s:31:\"Create New Report from Template\";s:4:\"desc\";s:49:\"Component wise listing of all available templates\";s:2:\"id\";s:27:\"CreateNewReportfromTemplate\";s:3:\"url\";s:43:\"/civicrm/admin/report/template/list?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:25:\"{weight}.Manage Templates\";a:6:{s:5:\"title\";s:16:\"Manage Templates\";s:4:\"desc\";s:45:\"Browse, Edit and Delete the Report templates.\";s:2:\"id\";s:15:\"ManageTemplates\";s:3:\"url\";s:53:\"/civicrm/admin/report/options/report_template?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Reports Listing\";a:6:{s:5:\"title\";s:15:\"Reports Listing\";s:4:\"desc\";s:60:\"Browse existing report, change report criteria and settings.\";s:2:\"id\";s:14:\"ReportsListing\";s:3:\"url\";s:34:\"/civicrm/admin/report/list?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}}',NULL,NULL,NULL,1,0,1,1,1,1,1,0,'a:0:{}'); + (433,1,'civicrm/campaign/add',NULL,'New Campaign','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:26:\"CRM_Campaign_Form_Campaign\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:12:\"CiviCampaign\";}'), + (434,1,'civicrm/survey/add',NULL,'New Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:29:\"CRM_Campaign_Form_Survey_Main\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:12:\"CiviCampaign\";}'), + (435,1,'civicrm/campaign/vote',NULL,'Conduct Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:4:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";i:2;s:25:\"reserve campaign contacts\";i:3;s:27:\"interview campaign contacts\";}i:1;s:2:\"or\";}','s:22:\"CRM_Campaign_Page_Vote\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:12:\"CiviCampaign\";}'), + (436,1,'civicrm/admin/campaign/surveyType',NULL,'Survey Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:23:\"administer CiviCampaign\";}i:1;s:3:\"and\";}','s:28:\"CRM_Campaign_Page_SurveyType\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:10:\"adminGroup\";s:12:\"CiviCampaign\";s:9:\"component\";s:12:\"CiviCampaign\";}'), + (437,1,'civicrm/admin/options/campaign_type',NULL,'Campaign Types','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,2,1,0,0,'a:3:{s:4:\"desc\";s:47:\"categorize your campaigns using campaign types.\";s:10:\"adminGroup\";s:12:\"CiviCampaign\";s:9:\"component\";s:12:\"CiviCampaign\";}'), + (438,1,'civicrm/admin/options/campaign_status',NULL,'Campaign Status','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,3,1,0,0,'a:3:{s:4:\"desc\";s:34:\"Define statuses for campaign here.\";s:10:\"adminGroup\";s:12:\"CiviCampaign\";s:9:\"component\";s:12:\"CiviCampaign\";}'), + (439,1,'civicrm/admin/options/engagement_index',NULL,'Engagement Index','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:25:\"administer CiviCRM system\";i:1;s:23:\"administer CiviCRM data\";i:2;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Page_Options\";',NULL,'a:3:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}i:2;a:2:{s:5:\"title\";s:13:\"Option Groups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,4,1,0,0,'a:3:{s:4:\"desc\";s:18:\"Engagement levels.\";s:10:\"adminGroup\";s:12:\"CiviCampaign\";s:9:\"component\";s:12:\"CiviCampaign\";}'), + (440,1,'civicrm/survey/search','op=interview','Record Respondents Interview','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";i:2;s:27:\"interview campaign contacts\";}i:1;s:2:\"or\";}','s:30:\"CRM_Campaign_Controller_Search\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:12:\"CiviCampaign\";}'), + (441,1,'civicrm/campaign/gotv',NULL,'GOTV (Track Voters)','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:4:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";i:2;s:25:\"release campaign contacts\";i:3;s:22:\"gotv campaign contacts\";}i:1;s:2:\"or\";}','s:22:\"CRM_Campaign_Form_Gotv\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:1:{s:9:\"component\";s:12:\"CiviCampaign\";}'), + (442,1,'civicrm/petition/add',NULL,'New Petition','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:26:\"CRM_Campaign_Form_Petition\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (443,1,'civicrm/petition/sign',NULL,'Sign Petition','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"sign CiviCRM Petition\";}i:1;s:3:\"and\";}','s:36:\"CRM_Campaign_Form_Petition_Signature\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (444,1,'civicrm/petition/browse',NULL,'View Petition Signatures','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:14:\"access CiviCRM\";}i:1;s:3:\"and\";}','s:26:\"CRM_Campaign_Page_Petition\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (445,1,'civicrm/petition/confirm',NULL,'Email address verified','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"sign CiviCRM Petition\";}i:1;s:3:\"and\";}','s:34:\"CRM_Campaign_Page_Petition_Confirm\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (446,1,'civicrm/petition/thankyou',NULL,'Thank You','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:21:\"sign CiviCRM Petition\";}i:1;s:3:\"and\";}','s:35:\"CRM_Campaign_Page_Petition_ThankYou\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,1,1,0,1,1,0,0,'a:0:{}'), + (447,1,'civicrm/campaign/registerInterview',NULL,NULL,'a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:3:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";i:2;s:27:\"interview campaign contacts\";}i:1;s:2:\"or\";}','a:2:{i:0;s:22:\"CRM_Campaign_Page_AJAX\";i:1;s:17:\"registerInterview\";}',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (448,1,'civicrm/survey/configure/main',NULL,'Configure Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:29:\"CRM_Campaign_Form_Survey_Main\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (449,1,'civicrm/survey/configure/questions',NULL,'Configure Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:34:\"CRM_Campaign_Form_Survey_Questions\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (450,1,'civicrm/survey/configure/results',NULL,'Configure Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:32:\"CRM_Campaign_Form_Survey_Results\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (451,1,'civicrm/survey/delete',NULL,'Delete Survey','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:2:{i:0;s:23:\"administer CiviCampaign\";i:1;s:15:\"manage campaign\";}i:1;s:2:\"or\";}','s:31:\"CRM_Campaign_Form_Survey_Delete\";',NULL,'a:1:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}}',NULL,NULL,NULL,1,0,1,0,1,1,0,0,'a:0:{}'), + (452,1,'civicrm/admin/ckeditor',NULL,'Configure CKEditor 4','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:33:\"CRM_Ckeditor4_Form_CKEditorConfig\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:0:{}'), + (453,1,'civicrm/admin/setting/recaptcha',NULL,'reCAPTCHA Settings','a:2:{i:0;s:19:\"CRM_Core_Permission\";i:1;s:9:\"checkMenu\";}','a:2:{i:0;a:1:{i:0;s:18:\"administer CiviCRM\";}i:1;s:3:\"and\";}','s:22:\"CRM_Admin_Form_Generic\";',NULL,'a:2:{i:0;a:2:{s:5:\"title\";s:7:\"CiviCRM\";s:3:\"url\";s:16:\"/civicrm?reset=1\";}i:1;a:2:{s:5:\"title\";s:10:\"Administer\";s:3:\"url\";s:22:\"/civicrm/admin?reset=1\";}}',NULL,NULL,NULL,1,0,1,1,1,1,0,0,'a:2:{s:4:\"desc\";s:43:\"Configure anti-abuse/bot-prevention service\";s:10:\"adminGroup\";s:15:\"System Settings\";}'), + (454,1,'admin',NULL,NULL,NULL,NULL,NULL,NULL,'a:15:{s:26:\"Customize Data and Screens\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:19:{s:20:\"{weight}.Custom Data\";a:6:{s:5:\"title\";s:11:\"Custom Data\";s:4:\"desc\";s:109:\"Configure custom fields to collect and store custom data which is not included in the standard CiviCRM forms.\";s:2:\"id\";s:10:\"CustomData\";s:3:\"url\";s:35:\"/civicrm/admin/custom/group?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:17:\"{weight}.Profiles\";a:6:{s:5:\"title\";s:8:\"Profiles\";s:4:\"desc\";s:151:\"Profiles allow you to aggregate groups of fields and include them in your site as input forms, contact display pages, and search and listings features.\";s:2:\"id\";s:8:\"Profiles\";s:3:\"url\";s:31:\"/civicrm/admin/uf/group?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:23:\"{weight}.Activity Types\";a:6:{s:5:\"title\";s:14:\"Activity Types\";s:4:\"desc\";s:155:\"CiviCRM has several built-in activity types (meetings, phone calls, emails sent). Track other types of interactions by creating custom activity types here.\";s:2:\"id\";s:13:\"ActivityTypes\";s:3:\"url\";s:44:\"/civicrm/admin/options/activity_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Relationship Types\";a:6:{s:5:\"title\";s:18:\"Relationship Types\";s:4:\"desc\";s:148:\"Contacts can be linked to each other through Relationships (e.g. Spouse, Employer, etc.). Define the types of relationships you want to record here.\";s:2:\"id\";s:17:\"RelationshipTypes\";s:3:\"url\";s:30:\"/civicrm/admin/reltype?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Contact Types\";a:6:{s:5:\"title\";s:13:\"Contact Types\";s:4:\"desc\";N;s:2:\"id\";s:12:\"ContactTypes\";s:3:\"url\";s:38:\"/civicrm/admin/options/subtype?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:23:\"{weight}.Gender Options\";a:6:{s:5:\"title\";s:14:\"Gender Options\";s:4:\"desc\";s:79:\"Options for assigning gender to individual contacts (e.g. Male, Female, Other).\";s:2:\"id\";s:13:\"GenderOptions\";s:3:\"url\";s:37:\"/civicrm/admin/options/gender?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:40:\"{weight}.Individual Prefixes (Ms, Mr...)\";a:6:{s:5:\"title\";s:31:\"Individual Prefixes (Ms, Mr...)\";s:4:\"desc\";s:66:\"Options for individual contact prefixes (e.g. Ms., Mr., Dr. etc.).\";s:2:\"id\";s:27:\"IndividualPrefixes_Ms_Mr...\";s:3:\"url\";s:48:\"/civicrm/admin/options/individual_prefix?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:40:\"{weight}.Individual Suffixes (Jr, Sr...)\";a:6:{s:5:\"title\";s:31:\"Individual Suffixes (Jr, Sr...)\";s:4:\"desc\";s:61:\"Options for individual contact suffixes (e.g. Jr., Sr. etc.).\";s:2:\"id\";s:27:\"IndividualSuffixes_Jr_Sr...\";s:3:\"url\";s:48:\"/civicrm/admin/options/individual_suffix?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:39:\"{weight}.Location Types (Home, Work...)\";a:6:{s:5:\"title\";s:30:\"Location Types (Home, Work...)\";s:4:\"desc\";s:94:\"Options for categorizing contact addresses and phone numbers (e.g. Home, Work, Billing, etc.).\";s:2:\"id\";s:26:\"LocationTypes_Home_Work...\";s:3:\"url\";s:35:\"/civicrm/admin/locationType?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Website Types\";a:6:{s:5:\"title\";s:13:\"Website Types\";s:4:\"desc\";s:48:\"Options for assigning website types to contacts.\";s:2:\"id\";s:12:\"WebsiteTypes\";s:3:\"url\";s:43:\"/civicrm/admin/options/website_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:35:\"{weight}.Instant Messenger Services\";a:6:{s:5:\"title\";s:26:\"Instant Messenger Services\";s:4:\"desc\";s:79:\"List of IM services which can be used when recording screen-names for contacts.\";s:2:\"id\";s:24:\"InstantMessengerServices\";s:3:\"url\";s:56:\"/civicrm/admin/options/instant_messenger_service?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:31:\"{weight}.Mobile Phone Providers\";a:6:{s:5:\"title\";s:22:\"Mobile Phone Providers\";s:4:\"desc\";s:90:\"List of mobile phone providers which can be assigned when recording contact phone numbers.\";s:2:\"id\";s:20:\"MobilePhoneProviders\";s:3:\"url\";s:46:\"/civicrm/admin/options/mobile_provider?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:19:\"{weight}.Phone Type\";a:6:{s:5:\"title\";s:10:\"Phone Type\";s:4:\"desc\";s:80:\"Options for assigning phone type to contacts (e.g Phone,\n Mobile, Fax, Pager)\";s:2:\"id\";s:9:\"PhoneType\";s:3:\"url\";s:41:\"/civicrm/admin/options/phone_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:28:\"{weight}.Display Preferences\";a:6:{s:5:\"title\";s:19:\"Display Preferences\";s:4:\"desc\";N;s:2:\"id\";s:18:\"DisplayPreferences\";s:3:\"url\";s:50:\"/civicrm/admin/setting/preferences/display?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Search Preferences\";a:6:{s:5:\"title\";s:18:\"Search Preferences\";s:4:\"desc\";N;s:2:\"id\";s:17:\"SearchPreferences\";s:3:\"url\";s:37:\"/civicrm/admin/setting/search?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Navigation Menu\";a:6:{s:5:\"title\";s:15:\"Navigation Menu\";s:4:\"desc\";s:79:\"Add or remove menu items, and modify the order of items on the navigation menu.\";s:2:\"id\";s:14:\"NavigationMenu\";s:3:\"url\";s:27:\"/civicrm/admin/menu?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Word Replacements\";a:6:{s:5:\"title\";s:17:\"Word Replacements\";s:4:\"desc\";s:18:\"Word Replacements.\";s:2:\"id\";s:16:\"WordReplacements\";s:3:\"url\";s:47:\"/civicrm/admin/options/wordreplacements?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:31:\"{weight}.Manage Custom Searches\";a:6:{s:5:\"title\";s:22:\"Manage Custom Searches\";s:4:\"desc\";s:225:\"Developers and accidental techies with a bit of PHP and SQL knowledge can create new search forms to handle specific search and reporting needs which aren\'t covered by the built-in Advanced Search and Search Builder features.\";s:2:\"id\";s:20:\"ManageCustomSearches\";s:3:\"url\";s:44:\"/civicrm/admin/options/custom_search?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:13:\"{weight}.Tags\";a:6:{s:5:\"title\";s:4:\"Tags\";s:4:\"desc\";s:158:\"Tags are useful for segmenting the contacts in your database into categories (e.g. Staff Member, Donor, Volunteer, etc.). Create and edit available tags here.\";s:2:\"id\";s:4:\"Tags\";s:3:\"url\";s:20:\"/civicrm/tag?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:14:\"Communications\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:11:{s:46:\"{weight}.Organization Address and Contact Info\";a:6:{s:5:\"title\";s:37:\"Organization Address and Contact Info\";s:4:\"desc\";s:150:\"Configure primary contact name, email, return-path and address information. This information is used by CiviMail to identify the sending organization.\";s:2:\"id\";s:33:\"OrganizationAddressandContactInfo\";s:3:\"url\";s:47:\"/civicrm/admin/domain?action=update&reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:29:\"{weight}.From Email Addresses\";a:6:{s:5:\"title\";s:20:\"From Email Addresses\";s:4:\"desc\";s:74:\"List of Email Addresses which can be used when sending emails to contacts.\";s:2:\"id\";s:18:\"FromEmailAddresses\";s:3:\"url\";s:49:\"/civicrm/admin/options/from_email_address?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Message Templates\";a:6:{s:5:\"title\";s:17:\"Message Templates\";s:4:\"desc\";s:130:\"Message templates allow you to save and re-use messages with layouts which you can use when sending email to one or more contacts.\";s:2:\"id\";s:16:\"MessageTemplates\";s:3:\"url\";s:39:\"/civicrm/admin/messageTemplates?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Schedule Reminders\";a:6:{s:5:\"title\";s:18:\"Schedule Reminders\";s:4:\"desc\";s:19:\"Schedule Reminders.\";s:2:\"id\";s:17:\"ScheduleReminders\";s:3:\"url\";s:40:\"/civicrm/admin/scheduleReminders?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:40:\"{weight}.Preferred Communication Methods\";a:6:{s:5:\"title\";s:31:\"Preferred Communication Methods\";s:4:\"desc\";s:117:\"One or more preferred methods of communication can be assigned to each contact. Customize the available options here.\";s:2:\"id\";s:29:\"PreferredCommunicationMethods\";s:3:\"url\";s:61:\"/civicrm/admin/options/preferred_communication_method?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Label Page Formats\";a:6:{s:5:\"title\";s:18:\"Label Page Formats\";s:4:\"desc\";s:82:\"Configure label sizes and page layouts that are used when printing mailing labels.\";s:2:\"id\";s:16:\"LabelPageFormats\";s:3:\"url\";s:35:\"/civicrm/admin/labelFormats?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:33:\"{weight}.Print Page (PDF) Formats\";a:6:{s:5:\"title\";s:24:\"Print Page (PDF) Formats\";s:4:\"desc\";s:95:\"Configure PDF Page Formats that can be assigned to Message Templates when creating PDF letters.\";s:2:\"id\";s:20:\"PrintPage_PDFFormats\";s:3:\"url\";s:33:\"/civicrm/admin/pdfFormats?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:36:\"{weight}.Communication Style Options\";a:6:{s:5:\"title\";s:27:\"Communication Style Options\";s:4:\"desc\";s:42:\"Options for Communication Style selection.\";s:2:\"id\";s:25:\"CommunicationStyleOptions\";s:3:\"url\";s:50:\"/civicrm/admin/options/communication_style?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:31:\"{weight}.Email Greeting Formats\";a:6:{s:5:\"title\";s:22:\"Email Greeting Formats\";s:4:\"desc\";s:75:\"Options for assigning email greetings to individual and household contacts.\";s:2:\"id\";s:20:\"EmailGreetingFormats\";s:3:\"url\";s:45:\"/civicrm/admin/options/email_greeting?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:32:\"{weight}.Postal Greeting Formats\";a:6:{s:5:\"title\";s:23:\"Postal Greeting Formats\";s:4:\"desc\";s:76:\"Options for assigning postal greetings to individual and household contacts.\";s:2:\"id\";s:21:\"PostalGreetingFormats\";s:3:\"url\";s:46:\"/civicrm/admin/options/postal_greeting?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Addressee Formats\";a:6:{s:5:\"title\";s:17:\"Addressee Formats\";s:4:\"desc\";s:83:\"Options for assigning addressee to individual, household and organization contacts.\";s:2:\"id\";s:16:\"AddresseeFormats\";s:3:\"url\";s:40:\"/civicrm/admin/options/addressee?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:12:\"Localization\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:4:{s:39:\"{weight}.Languages, Currency, Locations\";a:6:{s:5:\"title\";s:30:\"Languages, Currency, Locations\";s:4:\"desc\";N;s:2:\"id\";s:28:\"Languages_Currency_Locations\";s:3:\"url\";s:43:\"/civicrm/admin/setting/localization?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:25:\"{weight}.Address Settings\";a:6:{s:5:\"title\";s:16:\"Address Settings\";s:4:\"desc\";N;s:2:\"id\";s:15:\"AddressSettings\";s:3:\"url\";s:50:\"/civicrm/admin/setting/preferences/address?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:21:\"{weight}.Date Formats\";a:6:{s:5:\"title\";s:12:\"Date Formats\";s:4:\"desc\";N;s:2:\"id\";s:11:\"DateFormats\";s:3:\"url\";s:35:\"/civicrm/admin/setting/date?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:28:\"{weight}.Preferred Languages\";a:6:{s:5:\"title\";s:19:\"Preferred Languages\";s:4:\"desc\";s:30:\"Options for contact languages.\";s:2:\"id\";s:18:\"PreferredLanguages\";s:3:\"url\";s:40:\"/civicrm/admin/options/languages?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:21:\"Users and Permissions\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:2:{s:23:\"{weight}.Access Control\";a:6:{s:5:\"title\";s:14:\"Access Control\";s:4:\"desc\";s:73:\"Grant or deny access to actions (view, edit...), features and components.\";s:2:\"id\";s:13:\"AccessControl\";s:3:\"url\";s:29:\"/civicrm/admin/access?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:38:\"{weight}.Synchronize Users to Contacts\";a:6:{s:5:\"title\";s:29:\"Synchronize Users to Contacts\";s:4:\"desc\";s:71:\"Automatically create a CiviCRM contact record for each CMS user record.\";s:2:\"id\";s:26:\"SynchronizeUserstoContacts\";s:3:\"url\";s:32:\"/civicrm/admin/synchUser?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:15:\"System Settings\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:20:{s:32:\"{weight}.Configuration Checklist\";a:6:{s:5:\"title\";s:23:\"Configuration Checklist\";s:4:\"desc\";s:55:\"List of configuration tasks with links to each setting.\";s:2:\"id\";s:22:\"ConfigurationChecklist\";s:3:\"url\";s:33:\"/civicrm/admin/configtask?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:34:\"{weight}.Enable CiviCRM Components\";a:6:{s:5:\"title\";s:25:\"Enable CiviCRM Components\";s:4:\"desc\";s:269:\"Enable or disable components (e.g. CiviEvent, CiviMember, etc.) for your site based on the features you need. We recommend disabling any components not being used in order to simplify the user interface. You can easily re-enable components at any time from this screen.\";s:2:\"id\";s:23:\"EnableCiviCRMComponents\";s:3:\"url\";s:40:\"/civicrm/admin/setting/component?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Manage Extensions\";a:6:{s:5:\"title\";s:17:\"Manage Extensions\";s:4:\"desc\";s:0:\"\";s:2:\"id\";s:16:\"ManageExtensions\";s:3:\"url\";s:33:\"/civicrm/admin/extensions?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:32:\"{weight}.Outbound Email Settings\";a:6:{s:5:\"title\";s:23:\"Outbound Email Settings\";s:4:\"desc\";N;s:2:\"id\";s:21:\"OutboundEmailSettings\";s:3:\"url\";s:35:\"/civicrm/admin/setting/smtp?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:37:\"{weight}.Settings - Payment Processor\";a:6:{s:5:\"title\";s:28:\"Settings - Payment Processor\";s:4:\"desc\";s:48:\"Payment Processor setup for CiviCRM transactions\";s:2:\"id\";s:25:\"Settings-PaymentProcessor\";s:3:\"url\";s:39:\"/civicrm/admin/paymentProcessor?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:30:\"{weight}.Mapping and Geocoding\";a:6:{s:5:\"title\";s:21:\"Mapping and Geocoding\";s:4:\"desc\";N;s:2:\"id\";s:19:\"MappingandGeocoding\";s:3:\"url\";s:38:\"/civicrm/admin/setting/mapping?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:53:\"{weight}.Misc (Undelete, PDFs, Limits, Logging, etc.)\";a:6:{s:5:\"title\";s:44:\"Misc (Undelete, PDFs, Limits, Logging, etc.)\";s:4:\"desc\";s:63:\"Enable undelete/move to trash feature, detailed change logging.\";s:2:\"id\";s:38:\"Misc_Undelete_PDFs_Limits_Logging_etc.\";s:3:\"url\";s:35:\"/civicrm/admin/setting/misc?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:20:\"{weight}.Directories\";a:6:{s:5:\"title\";s:11:\"Directories\";s:4:\"desc\";N;s:2:\"id\";s:11:\"Directories\";s:3:\"url\";s:35:\"/civicrm/admin/setting/path?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Resource URLs\";a:6:{s:5:\"title\";s:13:\"Resource URLs\";s:4:\"desc\";N;s:2:\"id\";s:12:\"ResourceURLs\";s:3:\"url\";s:34:\"/civicrm/admin/setting/url?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:40:\"{weight}.Cleanup Caches and Update Paths\";a:6:{s:5:\"title\";s:31:\"Cleanup Caches and Update Paths\";s:4:\"desc\";s:157:\"Reset the Base Directory Path and Base URL settings - generally when a CiviCRM site is moved to another location in the file system and/or to another domain.\";s:2:\"id\";s:27:\"CleanupCachesandUpdatePaths\";s:3:\"url\";s:50:\"/civicrm/admin/setting/updateConfigBackend?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:33:\"{weight}.CMS Database Integration\";a:6:{s:5:\"title\";s:24:\"CMS Database Integration\";s:4:\"desc\";N;s:2:\"id\";s:22:\"CMSDatabaseIntegration\";s:3:\"url\";s:33:\"/civicrm/admin/setting/uf?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:36:\"{weight}.Safe File Extension Options\";a:6:{s:5:\"title\";s:27:\"Safe File Extension Options\";s:4:\"desc\";s:44:\"File Extensions that can be considered safe.\";s:2:\"id\";s:24:\"SafeFileExtensionOptions\";s:3:\"url\";s:50:\"/civicrm/admin/options/safe_file_extension?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Option Groups\";a:6:{s:5:\"title\";s:13:\"Option Groups\";s:4:\"desc\";s:35:\"Access all meta-data option groups.\";s:2:\"id\";s:12:\"OptionGroups\";s:3:\"url\";s:30:\"/civicrm/admin/options?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:31:\"{weight}.Import/Export Mappings\";a:6:{s:5:\"title\";s:22:\"Import/Export Mappings\";s:4:\"desc\";s:141:\"Import and Export mappings allow you to easily run the same job multiple times. This option allows you to rename or delete existing mappings.\";s:2:\"id\";s:21:\"Import_ExportMappings\";s:3:\"url\";s:30:\"/civicrm/admin/mapping?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:18:\"{weight}.Debugging\";a:6:{s:5:\"title\";s:9:\"Debugging\";s:4:\"desc\";N;s:2:\"id\";s:9:\"Debugging\";s:3:\"url\";s:36:\"/civicrm/admin/setting/debug?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:28:\"{weight}.Multi Site Settings\";a:6:{s:5:\"title\";s:19:\"Multi Site Settings\";s:4:\"desc\";N;s:2:\"id\";s:17:\"MultiSiteSettings\";s:3:\"url\";s:52:\"/civicrm/admin/setting/preferences/multisite?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:23:\"{weight}.Scheduled Jobs\";a:6:{s:5:\"title\";s:14:\"Scheduled Jobs\";s:4:\"desc\";s:35:\"Managing periodially running tasks.\";s:2:\"id\";s:13:\"ScheduledJobs\";s:3:\"url\";s:26:\"/civicrm/admin/job?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Edit Scheduled Job\";a:6:{s:5:\"title\";s:18:\"Edit Scheduled Job\";s:4:\"desc\";s:32:\"Edit a periodially running task.\";s:2:\"id\";s:16:\"EditScheduledJob\";s:3:\"url\";s:31:\"/civicrm/admin/job/edit?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Sms Providers\";a:6:{s:5:\"title\";s:13:\"Sms Providers\";s:4:\"desc\";s:27:\"To configure a sms provider\";s:2:\"id\";s:12:\"SmsProviders\";s:3:\"url\";s:35:\"/civicrm/admin/sms/provider?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.reCAPTCHA Settings\";a:6:{s:5:\"title\";s:18:\"reCAPTCHA Settings\";s:4:\"desc\";s:43:\"Configure anti-abuse/bot-prevention service\";s:2:\"id\";s:17:\"reCAPTCHASettings\";s:3:\"url\";s:40:\"/civicrm/admin/setting/recaptcha?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:12:\"CiviCampaign\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:5:{s:40:\"{weight}.CiviCampaign Component Settings\";a:6:{s:5:\"title\";s:31:\"CiviCampaign Component Settings\";s:4:\"desc\";s:40:\"Configure global CiviCampaign behaviors.\";s:2:\"id\";s:29:\"CiviCampaignComponentSettings\";s:3:\"url\";s:51:\"/civicrm/admin/setting/preferences/campaign?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:21:\"{weight}.Survey Types\";a:6:{s:5:\"title\";s:12:\"Survey Types\";s:4:\"desc\";N;s:2:\"id\";s:11:\"SurveyTypes\";s:3:\"url\";s:42:\"/civicrm/admin/campaign/surveyType?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:23:\"{weight}.Campaign Types\";a:6:{s:5:\"title\";s:14:\"Campaign Types\";s:4:\"desc\";s:47:\"categorize your campaigns using campaign types.\";s:2:\"id\";s:13:\"CampaignTypes\";s:3:\"url\";s:44:\"/civicrm/admin/options/campaign_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Campaign Status\";a:6:{s:5:\"title\";s:15:\"Campaign Status\";s:4:\"desc\";s:34:\"Define statuses for campaign here.\";s:2:\"id\";s:14:\"CampaignStatus\";s:3:\"url\";s:46:\"/civicrm/admin/options/campaign_status?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:25:\"{weight}.Engagement Index\";a:6:{s:5:\"title\";s:16:\"Engagement Index\";s:4:\"desc\";s:18:\"Engagement levels.\";s:2:\"id\";s:15:\"EngagementIndex\";s:3:\"url\";s:47:\"/civicrm/admin/options/engagement_index?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:9:\"CiviEvent\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:8:{s:37:\"{weight}.CiviEvent Component Settings\";a:6:{s:5:\"title\";s:28:\"CiviEvent Component Settings\";s:4:\"desc\";s:37:\"Configure global CiviEvent behaviors.\";s:2:\"id\";s:26:\"CiviEventComponentSettings\";s:3:\"url\";s:48:\"/civicrm/admin/setting/preferences/event?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:33:\"{weight}.Event Name Badge Layouts\";a:6:{s:5:\"title\";s:24:\"Event Name Badge Layouts\";s:4:\"desc\";s:107:\"Configure name badge layouts for event participants, including logos and what data to include on the badge.\";s:2:\"id\";s:21:\"EventNameBadgeLayouts\";s:3:\"url\";s:52:\"/civicrm/admin/badgelayout?action=browse&reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Manage Events\";a:6:{s:5:\"title\";s:13:\"Manage Events\";s:4:\"desc\";s:136:\"Create and edit event configuration including times, locations, online registration forms, and fees. Links for iCal and RSS syndication.\";s:2:\"id\";s:12:\"ManageEvents\";s:3:\"url\";s:28:\"/civicrm/admin/event?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Event Templates\";a:6:{s:5:\"title\";s:15:\"Event Templates\";s:4:\"desc\";s:115:\"Administrators can create Event Templates - which are basically master event records pre-filled with default values\";s:2:\"id\";s:14:\"EventTemplates\";s:3:\"url\";s:36:\"/civicrm/admin/eventTemplate?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:20:\"{weight}.Event Types\";a:6:{s:5:\"title\";s:11:\"Event Types\";s:4:\"desc\";s:143:\"Use Event Types to categorize your events. Event feeds can be filtered by Event Type and participant searches can use Event Type as a criteria.\";s:2:\"id\";s:10:\"EventTypes\";s:3:\"url\";s:41:\"/civicrm/admin/options/event_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Participant Status\";a:6:{s:5:\"title\";s:18:\"Participant Status\";s:4:\"desc\";s:154:\"Define statuses for event participants here (e.g. Registered, Attended, Cancelled...). You can then assign statuses and search for participants by status.\";s:2:\"id\";s:17:\"ParticipantStatus\";s:3:\"url\";s:41:\"/civicrm/admin/participant_status?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:25:\"{weight}.Participant Role\";a:6:{s:5:\"title\";s:16:\"Participant Role\";s:4:\"desc\";s:138:\"Define participant roles for events here (e.g. Attendee, Host, Speaker...). You can then assign roles and search for participants by role.\";s:2:\"id\";s:15:\"ParticipantRole\";s:3:\"url\";s:47:\"/civicrm/admin/options/participant_role?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:38:\"{weight}.Participant Listing Templates\";a:6:{s:5:\"title\";s:29:\"Participant Listing Templates\";s:4:\"desc\";s:48:\"Template to control participant listing display.\";s:2:\"id\";s:27:\"ParticipantListingTemplates\";s:3:\"url\";s:50:\"/civicrm/admin/options/participant_listing?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:8:\"CiviMail\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:5:{s:36:\"{weight}.CiviMail Component Settings\";a:6:{s:5:\"title\";s:27:\"CiviMail Component Settings\";s:4:\"desc\";s:36:\"Configure global CiviMail behaviors.\";s:2:\"id\";s:25:\"CiviMailComponentSettings\";s:3:\"url\";s:50:\"/civicrm/admin/setting/preferences/mailing?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Mailer Settings\";a:6:{s:5:\"title\";s:15:\"Mailer Settings\";s:4:\"desc\";s:61:\"Configure spool period, throttling and other mailer settings.\";s:2:\"id\";s:14:\"MailerSettings\";s:3:\"url\";s:27:\"/civicrm/admin/mail?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:49:\"{weight}.Headers, Footers, and Automated Messages\";a:6:{s:5:\"title\";s:40:\"Headers, Footers, and Automated Messages\";s:4:\"desc\";s:143:\"Configure the header and footer used for mailings. Customize the content of automated Subscribe, Unsubscribe, Resubscribe and Opt-out messages.\";s:2:\"id\";s:36:\"Headers_Footers_andAutomatedMessages\";s:3:\"url\";s:32:\"/civicrm/admin/component?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:29:\"{weight}.From Email Addresses\";a:6:{s:5:\"title\";s:20:\"From Email Addresses\";s:4:\"desc\";s:74:\"List of Email Addresses which can be used when sending emails to contacts.\";s:2:\"id\";s:18:\"FromEmailAddresses\";s:3:\"url\";s:58:\"/civicrm/admin/options/from_email_address/civimail?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Mail Accounts\";a:6:{s:5:\"title\";s:13:\"Mail Accounts\";s:4:\"desc\";s:20:\"List email accounts.\";s:2:\"id\";s:12:\"MailAccounts\";s:3:\"url\";s:35:\"/civicrm/admin/mailSettings?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:10:\"CiviMember\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:3:{s:38:\"{weight}.CiviMember Component Settings\";a:6:{s:5:\"title\";s:29:\"CiviMember Component Settings\";s:4:\"desc\";s:38:\"Configure global CiviMember behaviors.\";s:2:\"id\";s:27:\"CiviMemberComponentSettings\";s:3:\"url\";s:49:\"/civicrm/admin/setting/preferences/member?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:25:\"{weight}.Membership Types\";a:6:{s:5:\"title\";s:16:\"Membership Types\";s:4:\"desc\";s:174:\"Define the types of memberships you want to offer. For each type, you can specify a \'name\' (Gold Member, Honor Society Member...), a description, duration, and a minimum fee.\";s:2:\"id\";s:15:\"MembershipTypes\";s:3:\"url\";s:44:\"/civicrm/admin/member/membershipType?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:32:\"{weight}.Membership Status Rules\";a:6:{s:5:\"title\";s:23:\"Membership Status Rules\";s:4:\"desc\";s:187:\"Status \'rules\' define the current status for a membership based on that membership\'s start and end dates. You can adjust the default status options and rules as needed to meet your needs.\";s:2:\"id\";s:21:\"MembershipStatusRules\";s:3:\"url\";s:46:\"/civicrm/admin/member/membershipStatus?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:6:\"Manage\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:3:{s:27:\"{weight}.Scheduled Jobs Log\";a:6:{s:5:\"title\";s:18:\"Scheduled Jobs Log\";s:4:\"desc\";s:46:\"Browsing the log of periodially running tasks.\";s:2:\"id\";s:16:\"ScheduledJobsLog\";s:3:\"url\";s:29:\"/civicrm/admin/joblog?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:42:\"{weight}.Find and Merge Duplicate Contacts\";a:6:{s:5:\"title\";s:33:\"Find and Merge Duplicate Contacts\";s:4:\"desc\";s:158:\"Manage the rules used to identify potentially duplicate contact records. Scan for duplicates using a selected rule and merge duplicate contact data as needed.\";s:2:\"id\";s:29:\"FindandMergeDuplicateContacts\";s:3:\"url\";s:36:\"/civicrm/contact/deduperules?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Dedupe Exceptions\";a:6:{s:5:\"title\";s:17:\"Dedupe Exceptions\";s:4:\"desc\";N;s:2:\"id\";s:16:\"DedupeExceptions\";s:3:\"url\";s:33:\"/civicrm/dedupe/exception?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:12:\"Option Lists\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:1:{s:20:\"{weight}.Grant Types\";a:6:{s:5:\"title\";s:11:\"Grant Types\";s:4:\"desc\";s:148:\"List of types which can be assigned to Grants. (Enable CiviGrant from Administer > System Settings > Enable Components if you want to track grants.)\";s:2:\"id\";s:10:\"GrantTypes\";s:3:\"url\";s:41:\"/civicrm/admin/options/grant_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:9:\"Customize\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:1:{s:19:\"{weight}.Price Sets\";a:6:{s:5:\"title\";s:10:\"Price Sets\";s:4:\"desc\";s:205:\"Price sets allow you to offer multiple options with associated fees (e.g. pre-conference workshops, additional meals, etc.). Configure Price Sets for events which need more than a single set of fee levels.\";s:2:\"id\";s:9:\"PriceSets\";s:3:\"url\";s:28:\"/civicrm/admin/price?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:14:\"CiviContribute\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:9:{s:32:\"{weight}.Personal Campaign Pages\";a:6:{s:5:\"title\";s:23:\"Personal Campaign Pages\";s:4:\"desc\";s:49:\"View and manage existing personal campaign pages.\";s:2:\"id\";s:21:\"PersonalCampaignPages\";s:3:\"url\";s:49:\"/civicrm/admin/pcp?context=contribute&reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:34:\"{weight}.Manage Contribution Pages\";a:6:{s:5:\"title\";s:25:\"Manage Contribution Pages\";s:4:\"desc\";s:242:\"CiviContribute allows you to create and maintain any number of Online Contribution Pages. You can create different pages for different programs or campaigns - and customize text, amounts, types of information collected from contributors, etc.\";s:2:\"id\";s:23:\"ManageContributionPages\";s:3:\"url\";s:33:\"/civicrm/admin/contribute?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Manage Premiums\";a:6:{s:5:\"title\";s:15:\"Manage Premiums\";s:4:\"desc\";s:175:\"CiviContribute allows you to configure any number of Premiums which can be offered to contributors as incentives / thank-you gifts. Define the premiums you want to offer here.\";s:2:\"id\";s:14:\"ManagePremiums\";s:3:\"url\";s:48:\"/civicrm/admin/contribute/managePremiums?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Financial Types\";a:6:{s:5:\"title\";s:15:\"Financial Types\";s:4:\"desc\";s:64:\"Formerly civicrm_contribution_type merged into this table in 4.1\";s:2:\"id\";s:14:\"FinancialTypes\";s:3:\"url\";s:46:\"/civicrm/admin/financial/financialType?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:27:\"{weight}.Financial Accounts\";a:6:{s:5:\"title\";s:18:\"Financial Accounts\";s:4:\"desc\";s:128:\"Financial types are used to categorize contributions for reporting and accounting purposes. These are also referred to as Funds.\";s:2:\"id\";s:17:\"FinancialAccounts\";s:3:\"url\";s:49:\"/civicrm/admin/financial/financialAccount?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Payment Methods\";a:6:{s:5:\"title\";s:15:\"Payment Methods\";s:4:\"desc\";s:224:\"You may choose to record the payment instrument used for each contribution. Common payment methods are installed by default (e.g. Check, Cash, Credit Card...). If your site requires additional payment methods, add them here.\";s:2:\"id\";s:14:\"PaymentMethods\";s:3:\"url\";s:49:\"/civicrm/admin/options/payment_instrument?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:30:\"{weight}.Accepted Credit Cards\";a:6:{s:5:\"title\";s:21:\"Accepted Credit Cards\";s:4:\"desc\";s:94:\"Credit card options that will be offered to contributors using your Online Contribution pages.\";s:2:\"id\";s:19:\"AcceptedCreditCards\";s:3:\"url\";s:48:\"/civicrm/admin/options/accept_creditcard?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Soft Credit Types\";a:6:{s:5:\"title\";s:17:\"Soft Credit Types\";s:4:\"desc\";s:86:\"Soft Credit Types that will be offered to contributors during soft credit contribution\";s:2:\"id\";s:15:\"SoftCreditTypes\";s:3:\"url\";s:47:\"/civicrm/admin/options/soft_credit_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:42:\"{weight}.CiviContribute Component Settings\";a:6:{s:5:\"title\";s:33:\"CiviContribute Component Settings\";s:4:\"desc\";s:42:\"Configure global CiviContribute behaviors.\";s:2:\"id\";s:31:\"CiviContributeComponentSettings\";s:3:\"url\";s:53:\"/civicrm/admin/setting/preferences/contribute?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:8:\"CiviCase\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:5:{s:26:\"{weight}.CiviCase Settings\";a:6:{s:5:\"title\";s:17:\"CiviCase Settings\";s:4:\"desc\";N;s:2:\"id\";s:16:\"CiviCaseSettings\";s:3:\"url\";s:35:\"/civicrm/admin/setting/case?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:19:\"{weight}.Case Types\";a:6:{s:5:\"title\";s:10:\"Case Types\";s:4:\"desc\";s:137:\"List of types which can be assigned to Cases. (Enable the Cases tab from System Settings - Enable Components if you want to track cases.)\";s:2:\"id\";s:9:\"CaseTypes\";s:3:\"url\";s:40:\"/civicrm/admin/options/case_type?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Redaction Rules\";a:6:{s:5:\"title\";s:15:\"Redaction Rules\";s:4:\"desc\";s:223:\"List of rules which can be applied to user input strings so that the redacted output can be recognized as repeated instances of the same string or can be identified as a \"semantic type of the data element\" within case data.\";s:2:\"id\";s:14:\"RedactionRules\";s:3:\"url\";s:45:\"/civicrm/admin/options/redaction_rule?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:22:\"{weight}.Case Statuses\";a:6:{s:5:\"title\";s:13:\"Case Statuses\";s:4:\"desc\";s:48:\"List of statuses that can be assigned to a case.\";s:2:\"id\";s:12:\"CaseStatuses\";s:3:\"url\";s:42:\"/civicrm/admin/options/case_status?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:26:\"{weight}.Encounter Mediums\";a:6:{s:5:\"title\";s:17:\"Encounter Mediums\";s:4:\"desc\";s:26:\"List of encounter mediums.\";s:2:\"id\";s:16:\"EncounterMediums\";s:3:\"url\";s:47:\"/civicrm/admin/options/encounter_medium?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}s:10:\"CiviReport\";a:2:{s:12:\"component_id\";N;s:6:\"fields\";a:3:{s:40:\"{weight}.Create New Report from Template\";a:6:{s:5:\"title\";s:31:\"Create New Report from Template\";s:4:\"desc\";s:49:\"Component wise listing of all available templates\";s:2:\"id\";s:27:\"CreateNewReportfromTemplate\";s:3:\"url\";s:43:\"/civicrm/admin/report/template/list?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:25:\"{weight}.Manage Templates\";a:6:{s:5:\"title\";s:16:\"Manage Templates\";s:4:\"desc\";s:45:\"Browse, Edit and Delete the Report templates.\";s:2:\"id\";s:15:\"ManageTemplates\";s:3:\"url\";s:53:\"/civicrm/admin/report/options/report_template?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}s:24:\"{weight}.Reports Listing\";a:6:{s:5:\"title\";s:15:\"Reports Listing\";s:4:\"desc\";s:60:\"Browse existing report, change report criteria and settings.\";s:2:\"id\";s:14:\"ReportsListing\";s:3:\"url\";s:34:\"/civicrm/admin/report/list?reset=1\";s:4:\"icon\";N;s:5:\"extra\";N;}}}}',NULL,NULL,NULL,1,0,1,1,1,1,1,0,'a:0:{}'); /*!40000 ALTER TABLE `civicrm_menu` ENABLE KEYS */; UNLOCK TABLES; @@ -5318,70 +5320,70 @@ UNLOCK TABLES; LOCK TABLES `civicrm_msg_template` WRITE; /*!40000 ALTER TABLE `civicrm_msg_template` DISABLE KEYS */; INSERT INTO `civicrm_msg_template` (`id`, `msg_title`, `msg_subject`, `msg_text`, `msg_html`, `is_active`, `workflow_id`, `workflow_name`, `is_default`, `is_reserved`, `is_sms`, `pdf_format_id`) VALUES - (1,'Cases - Send Copy of an Activity','{if !empty($idHash)}[case #{$idHash}]{/if} {$activitySubject}\n','===========================================================\n{ts}Activity Summary{/ts} - {$activityTypeName}\n===========================================================\n{if !empty($isCaseActivity)}\n{ts}Your Case Role(s){/ts} : {$contact.role|default:\'\'}\n{if !empty($manageCaseURL)}\n{ts}Manage Case{/ts} : {$manageCaseURL}\n{/if}\n{/if}\n\n{if !empty($editActURL)}\n{ts}Edit activity{/ts} : {$editActURL}\n{/if}\n{if !empty($viewActURL)}\n{ts}View activity{/ts} : {$viewActURL}\n{/if}\n\n{foreach from=$activity.fields item=field}\n{if $field.type eq \'Date\'}\n{$field.label} : {$field.value|crmDate:$config->dateformatDatetime}\n{else}\n{$field.label} : {$field.value}\n{/if}\n{/foreach}\n\n{if !empty($activity.customGroups)}\n{foreach from=$activity.customGroups key=customGroupName item=customGroup}\n==========================================================\n{$customGroupName}\n==========================================================\n{foreach from=$customGroup item=field}\n{if $field.type eq \'Date\'}\n{$field.label} : {$field.value|crmDate:$config->dateformatDatetime}\n{else}\n{$field.label} : {$field.value}\n{/if}\n{/foreach}\n\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n {capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n {capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n {capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Activity Summary{/ts} - {$activityTypeName}\n </th>\n </tr>\n {if !empty($isCaseActivity)}\n <tr>\n <td {$labelStyle}>\n {ts}Your Case Role(s){/ts}\n </td>\n <td {$valueStyle}>\n {$contact.role|default:\'\'}\n </td>\n </tr>\n {if !empty($manageCaseURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$manageCaseURL}\" title=\"{ts}Manage Case{/ts}\">{ts}Manage Case{/ts}</a>\n </td>\n </tr>\n {/if}\n {/if}\n {if !empty($editActURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$editActURL}\" title=\"{ts}Edit activity{/ts}\">{ts}Edit activity{/ts}</a>\n </td>\n </tr>\n {/if}\n {if !empty($viewActURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$viewActURL}\" title=\"{ts}View activity{/ts}\">{ts}View activity{/ts}</a>\n </td>\n </tr>\n {/if}\n {foreach from=$activity.fields item=field}\n <tr>\n <td {$labelStyle}>\n {$field.label}\n </td>\n <td {$valueStyle}>\n {if $field.type eq \'Date\'}\n {$field.value|crmDate:$config->dateformatDatetime}\n {else}\n {$field.value}\n {/if}\n </td>\n </tr>\n {/foreach}\n\n {if !empty($activity.customGroups)}\n {foreach from=$activity.customGroups key=customGroupName item=customGroup}\n <tr>\n <th {$headerStyle}>\n {$customGroupName}\n </th>\n </tr>\n {foreach from=$customGroup item=field}\n <tr>\n <td {$labelStyle}>\n {$field.label}\n </td>\n <td {$valueStyle}>\n {if $field.type eq \'Date\'}\n {$field.value|crmDate:$config->dateformatDatetime}\n {else}\n {$field.value}\n {/if}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n </table>\n </td>\n </tr>\n </table>\n</body>\n</html>\n',1,813,'case_activity',1,0,0,NULL), - (2,'Cases - Send Copy of an Activity','{if !empty($idHash)}[case #{$idHash}]{/if} {$activitySubject}\n','===========================================================\n{ts}Activity Summary{/ts} - {$activityTypeName}\n===========================================================\n{if !empty($isCaseActivity)}\n{ts}Your Case Role(s){/ts} : {$contact.role|default:\'\'}\n{if !empty($manageCaseURL)}\n{ts}Manage Case{/ts} : {$manageCaseURL}\n{/if}\n{/if}\n\n{if !empty($editActURL)}\n{ts}Edit activity{/ts} : {$editActURL}\n{/if}\n{if !empty($viewActURL)}\n{ts}View activity{/ts} : {$viewActURL}\n{/if}\n\n{foreach from=$activity.fields item=field}\n{if $field.type eq \'Date\'}\n{$field.label} : {$field.value|crmDate:$config->dateformatDatetime}\n{else}\n{$field.label} : {$field.value}\n{/if}\n{/foreach}\n\n{if !empty($activity.customGroups)}\n{foreach from=$activity.customGroups key=customGroupName item=customGroup}\n==========================================================\n{$customGroupName}\n==========================================================\n{foreach from=$customGroup item=field}\n{if $field.type eq \'Date\'}\n{$field.label} : {$field.value|crmDate:$config->dateformatDatetime}\n{else}\n{$field.label} : {$field.value}\n{/if}\n{/foreach}\n\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n {capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n {capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n {capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Activity Summary{/ts} - {$activityTypeName}\n </th>\n </tr>\n {if !empty($isCaseActivity)}\n <tr>\n <td {$labelStyle}>\n {ts}Your Case Role(s){/ts}\n </td>\n <td {$valueStyle}>\n {$contact.role|default:\'\'}\n </td>\n </tr>\n {if !empty($manageCaseURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$manageCaseURL}\" title=\"{ts}Manage Case{/ts}\">{ts}Manage Case{/ts}</a>\n </td>\n </tr>\n {/if}\n {/if}\n {if !empty($editActURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$editActURL}\" title=\"{ts}Edit activity{/ts}\">{ts}Edit activity{/ts}</a>\n </td>\n </tr>\n {/if}\n {if !empty($viewActURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$viewActURL}\" title=\"{ts}View activity{/ts}\">{ts}View activity{/ts}</a>\n </td>\n </tr>\n {/if}\n {foreach from=$activity.fields item=field}\n <tr>\n <td {$labelStyle}>\n {$field.label}\n </td>\n <td {$valueStyle}>\n {if $field.type eq \'Date\'}\n {$field.value|crmDate:$config->dateformatDatetime}\n {else}\n {$field.value}\n {/if}\n </td>\n </tr>\n {/foreach}\n\n {if !empty($activity.customGroups)}\n {foreach from=$activity.customGroups key=customGroupName item=customGroup}\n <tr>\n <th {$headerStyle}>\n {$customGroupName}\n </th>\n </tr>\n {foreach from=$customGroup item=field}\n <tr>\n <td {$labelStyle}>\n {$field.label}\n </td>\n <td {$valueStyle}>\n {if $field.type eq \'Date\'}\n {$field.value|crmDate:$config->dateformatDatetime}\n {else}\n {$field.value}\n {/if}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n </table>\n </td>\n </tr>\n </table>\n</body>\n</html>\n',1,813,'case_activity',0,1,0,NULL), - (3,'Contributions - Duplicate Organization Alert','{ts}CiviContribute Alert: Possible Duplicate Contact Record{/ts} - {contact.display_name}\n','{ts}A contribution / membership signup was made on behalf of the organization listed below.{/ts}\n{ts}The information provided matched multiple existing database records based on the configured Duplicate Matching Rules for your site.{/ts}\n\n{ts}Organization Name{/ts}: {$onBehalfName}\n{ts}Organization Email{/ts}: {$onBehalfEmail}\n{ts}Organization Contact ID{/ts}: {$onBehalfID}\n\n{ts}If you think this may be a duplicate contact which should be merged with an existing record - Go to \"Contacts >> Find and Merge Duplicate Contacts\". Use the strict rule for Organizations to find the potential duplicates and merge them if appropriate.{/ts}\n\n{if $receiptMessage}\n###########################################################\n{ts}Copy of Contribution Receipt{/ts}\n\n###########################################################\n{$receiptMessage}\n\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <p>{ts}A contribution / membership signup was made on behalf of the organization listed below.{/ts}</p>\n <p>{ts}The information provided matched multiple existing database records based on the configured Duplicate Matching Rules for your site.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <td {$labelStyle}>\n {ts}Organization Name{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfName}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Organization Email{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfEmail}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Organization Contact ID{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfID}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <p>{ts}If you think this may be a duplicate contact which should be merged with an existing record - Go to \"Contacts >> Find and Merge Duplicate Contacts\". Use the strict rule for Organizations to find the potential duplicates and merge them if appropriate.{/ts}</p>\n </td>\n </tr>\n {if $receiptMessage}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Copy of Contribution Receipt{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {* FIXME: the below is most probably not HTML-ised *}\n {$receiptMessage}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n {/if}\n </table>\n</body>\n</html>\n',1,814,'contribution_dupalert',1,0,0,NULL), - (4,'Contributions - Duplicate Organization Alert','{ts}CiviContribute Alert: Possible Duplicate Contact Record{/ts} - {contact.display_name}\n','{ts}A contribution / membership signup was made on behalf of the organization listed below.{/ts}\n{ts}The information provided matched multiple existing database records based on the configured Duplicate Matching Rules for your site.{/ts}\n\n{ts}Organization Name{/ts}: {$onBehalfName}\n{ts}Organization Email{/ts}: {$onBehalfEmail}\n{ts}Organization Contact ID{/ts}: {$onBehalfID}\n\n{ts}If you think this may be a duplicate contact which should be merged with an existing record - Go to \"Contacts >> Find and Merge Duplicate Contacts\". Use the strict rule for Organizations to find the potential duplicates and merge them if appropriate.{/ts}\n\n{if $receiptMessage}\n###########################################################\n{ts}Copy of Contribution Receipt{/ts}\n\n###########################################################\n{$receiptMessage}\n\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <p>{ts}A contribution / membership signup was made on behalf of the organization listed below.{/ts}</p>\n <p>{ts}The information provided matched multiple existing database records based on the configured Duplicate Matching Rules for your site.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <td {$labelStyle}>\n {ts}Organization Name{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfName}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Organization Email{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfEmail}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Organization Contact ID{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfID}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <p>{ts}If you think this may be a duplicate contact which should be merged with an existing record - Go to \"Contacts >> Find and Merge Duplicate Contacts\". Use the strict rule for Organizations to find the potential duplicates and merge them if appropriate.{/ts}</p>\n </td>\n </tr>\n {if $receiptMessage}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Copy of Contribution Receipt{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {* FIXME: the below is most probably not HTML-ised *}\n {$receiptMessage}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n {/if}\n </table>\n</body>\n</html>\n',1,814,'contribution_dupalert',0,1,0,NULL), - (5,'Contributions - Receipt (off-line)','{ts}Contribution Receipt{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if {contribution.contribution_page_id.receipt_text|boolean}}\n{contribution.contribution_page_id.receipt_text}\n{else}{ts}Below you will find a receipt for this contribution.{/ts}\n{/if}\n\n===========================================================\n{ts}Contribution Information{/ts}\n\n===========================================================\n{ts}Contributor{/ts}: {contact.display_name}\n{if \'{contribution.financial_type_id}\'}\n{ts}Financial Type{/ts}: {contribution.financial_type_id:label}\n{/if}\n{if $isShowLineItems}\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$lineItems item=line}\n{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"}\n{/foreach}\n{/if}\n\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax{/ts} : {contribution.tax_exclusive_amount}\n{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} : {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n\n{if $isShowTax}\n{ts}Total Tax Amount{/ts} : {contribution.tax_amount}\n{/if}\n{ts}Total Amount{/ts} : {contribution.total_amount}\n{if \'{contribution.receive_date}\'}\n{ts}Contribution Date{/ts}: {contribution.receive_date|crmDate:\"shortdate\"}\n{/if}\n{if \'{contribution.receipt_date}\'}\n{ts}Receipt Date{/ts}: {contribution.receipt_date|crmDate:\"shortdate\"}\n{/if}\n{if {contribution.payment_instrument_id|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{if \'{contribution.check_number}\'}\n{ts}Check Number{/ts}: {contribution.check_number}\n{/if}\n{/if}\n{if \'{contribution.trxn_id}\'}\n{ts}Transaction ID{/ts}: {contribution.trxn_id}\n{/if}\n\n{if !empty($ccContribution)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{if !empty($customGroup)}\n{foreach from=$customGroup item=value key=customName}\n===========================================================\n{$customName}\n===========================================================\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($softCreditTypes) and !empty($softCredits)}\n{foreach from=$softCreditTypes item=softCreditType key=n}\n===========================================================\n{$softCreditType}\n===========================================================\n{foreach from=$softCredits.$n item=value key=label}\n{$label}: {$value}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($formValues.product_name)}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$formValues.product_name}\n{if $formValues.product_option}\n{ts}Option{/ts}: {$formValues.product_option}\n{/if}\n{if $formValues.product_sku}\n{ts}SKU{/ts}: {$formValues.product_sku}\n{/if}\n{if !empty($fulfilled_date)}\n{ts}Sent{/ts}: {$fulfilled_date|crmDate}\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>\n {if {contribution.contribution_page_id.receipt_text|boolean}}{contribution.contribution_page_id.receipt_text}\n {else}{ts}Below you will find a receipt for this contribution.{/ts}{/if}\n </p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Contribution Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Contributor Name{/ts}\n </td>\n <td {$valueStyle}>\n {contact.display_name}\n </td>\n </tr>\n <tr>\n {if \'{contribution.financial_type_id}\'}\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.financial_type_id:label}\n </td>\n {/if}\n </tr>\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>\n {$line.title}\n </td>\n <td>\n {$line.qty}\n </td>\n <td>\n {$line.unit_price|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>\n {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts} Amount before Tax : {/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_exclusive_amount}\n </td>\n </tr>\n\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n\n {if $isShowTax}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n\n {if \'{contribution.receive_date}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receive_date|crmDate:\"shortdate\"}\n </td>\n </tr>\n {/if}\n\n {if \'{contribution.receipt_date}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Receipt Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receipt_date|crmDate:\"shortdate\"}\n </td>\n </tr>\n {/if}\n\n {if {contribution.payment_instrument_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {if \'{contribution.check_number}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.check_number}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if \'{contribution.trxn_id}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction ID{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($ccContribution)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($softCreditTypes) and !empty($softCredits)}\n {foreach from=$softCreditTypes item=softCreditType key=n}\n <tr>\n <th {$headerStyle}>\n {$softCreditType}\n </th>\n </tr>\n {foreach from=$softCredits.$n item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($customGroup)}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($formValues.product_name)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$formValues.product_name}\n </td>\n </tr>\n {if $formValues.product_option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$formValues.product_option}\n </td>\n </tr>\n {/if}\n {if $formValues.product_sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$formValues.product_sku}\n </td>\n </tr>\n {/if}\n {if !empty($fulfilled_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Sent{/ts}\n </td>\n <td {$valueStyle}>\n {$fulfilled_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,815,'contribution_offline_receipt',1,0,0,NULL), - (6,'Contributions - Receipt (off-line)','{ts}Contribution Receipt{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if {contribution.contribution_page_id.receipt_text|boolean}}\n{contribution.contribution_page_id.receipt_text}\n{else}{ts}Below you will find a receipt for this contribution.{/ts}\n{/if}\n\n===========================================================\n{ts}Contribution Information{/ts}\n\n===========================================================\n{ts}Contributor{/ts}: {contact.display_name}\n{if \'{contribution.financial_type_id}\'}\n{ts}Financial Type{/ts}: {contribution.financial_type_id:label}\n{/if}\n{if $isShowLineItems}\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$lineItems item=line}\n{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"}\n{/foreach}\n{/if}\n\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax{/ts} : {contribution.tax_exclusive_amount}\n{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} : {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n\n{if $isShowTax}\n{ts}Total Tax Amount{/ts} : {contribution.tax_amount}\n{/if}\n{ts}Total Amount{/ts} : {contribution.total_amount}\n{if \'{contribution.receive_date}\'}\n{ts}Contribution Date{/ts}: {contribution.receive_date|crmDate:\"shortdate\"}\n{/if}\n{if \'{contribution.receipt_date}\'}\n{ts}Receipt Date{/ts}: {contribution.receipt_date|crmDate:\"shortdate\"}\n{/if}\n{if {contribution.payment_instrument_id|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{if \'{contribution.check_number}\'}\n{ts}Check Number{/ts}: {contribution.check_number}\n{/if}\n{/if}\n{if \'{contribution.trxn_id}\'}\n{ts}Transaction ID{/ts}: {contribution.trxn_id}\n{/if}\n\n{if !empty($ccContribution)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{if !empty($customGroup)}\n{foreach from=$customGroup item=value key=customName}\n===========================================================\n{$customName}\n===========================================================\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($softCreditTypes) and !empty($softCredits)}\n{foreach from=$softCreditTypes item=softCreditType key=n}\n===========================================================\n{$softCreditType}\n===========================================================\n{foreach from=$softCredits.$n item=value key=label}\n{$label}: {$value}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($formValues.product_name)}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$formValues.product_name}\n{if $formValues.product_option}\n{ts}Option{/ts}: {$formValues.product_option}\n{/if}\n{if $formValues.product_sku}\n{ts}SKU{/ts}: {$formValues.product_sku}\n{/if}\n{if !empty($fulfilled_date)}\n{ts}Sent{/ts}: {$fulfilled_date|crmDate}\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>\n {if {contribution.contribution_page_id.receipt_text|boolean}}{contribution.contribution_page_id.receipt_text}\n {else}{ts}Below you will find a receipt for this contribution.{/ts}{/if}\n </p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Contribution Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Contributor Name{/ts}\n </td>\n <td {$valueStyle}>\n {contact.display_name}\n </td>\n </tr>\n <tr>\n {if \'{contribution.financial_type_id}\'}\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.financial_type_id:label}\n </td>\n {/if}\n </tr>\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>\n {$line.title}\n </td>\n <td>\n {$line.qty}\n </td>\n <td>\n {$line.unit_price|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>\n {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts} Amount before Tax : {/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_exclusive_amount}\n </td>\n </tr>\n\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n\n {if $isShowTax}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n\n {if \'{contribution.receive_date}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receive_date|crmDate:\"shortdate\"}\n </td>\n </tr>\n {/if}\n\n {if \'{contribution.receipt_date}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Receipt Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receipt_date|crmDate:\"shortdate\"}\n </td>\n </tr>\n {/if}\n\n {if {contribution.payment_instrument_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {if \'{contribution.check_number}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.check_number}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if \'{contribution.trxn_id}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction ID{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($ccContribution)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($softCreditTypes) and !empty($softCredits)}\n {foreach from=$softCreditTypes item=softCreditType key=n}\n <tr>\n <th {$headerStyle}>\n {$softCreditType}\n </th>\n </tr>\n {foreach from=$softCredits.$n item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($customGroup)}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($formValues.product_name)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$formValues.product_name}\n </td>\n </tr>\n {if $formValues.product_option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$formValues.product_option}\n </td>\n </tr>\n {/if}\n {if $formValues.product_sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$formValues.product_sku}\n </td>\n </tr>\n {/if}\n {if !empty($fulfilled_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Sent{/ts}\n </td>\n <td {$valueStyle}>\n {$fulfilled_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,815,'contribution_offline_receipt',0,1,0,NULL), - (7,'Contributions - Receipt (on-line)','{if \'{contribution.contribution_status_id:name}\' === \'Pending\'}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($receipt_text)}\n{$receipt_text}\n{/if}\n{if $is_pay_later}\n\n===========================================================\n{$pay_later_receipt}\n===========================================================\n{/if}\n\n{if {contribution.total_amount|boolean}}\n===========================================================\n{ts}Contribution Information{/ts}\n\n===========================================================\n{if $isShowLineItems}\n\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$lineItems item=line}\n{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"}\n{/foreach}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {$amount-$totalTaxAmount|crmMoney:$currency}\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} : {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n {/foreach}\n{/if}\n\n{if $isShowTax}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount|crmMoney}\n{/if}\n\n{ts}Total Amount{/ts}: {contribution.total_amount}\n{else}\n{ts}Amount{/ts}: {contribution.total_amount} {if \'{contribution.amount_level}\'} - {contribution.amount_level}{/if}\n{/if}\n{/if}\n{if !empty($receive_date)}\n\n{ts}Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if {contribution.trxn_id|boolean}}\n{ts}Transaction #{/ts}: {contribution.trxn_id}\n{/if}\n\n{if !empty($is_recur)}\n{ts}This is a recurring contribution.{/ts}\n\n{if $cancelSubscriptionUrl}\n{ts}You can cancel future contributions at:{/ts}\n\n{$cancelSubscriptionUrl}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts}You can update billing details for this recurring contribution at:{/ts}\n\n{$updateSubscriptionBillingUrl}\n\n{/if}\n\n{if $updateSubscriptionUrl}\n{ts}You can update recurring contribution amount or change the number of installments for this recurring contribution at:{/ts}\n\n{$updateSubscriptionUrl}\n\n{/if}\n{/if}\n\n{if $honor_block_is_active}\n===========================================================\n{$soft_credit_type}\n===========================================================\n{foreach from=$honoreeProfile item=value key=label}\n{$label}: {$value}\n{/foreach}\n{elseif !empty($softCreditTypes) and !empty($softCredits)}\n{foreach from=$softCreditTypes item=softCreditType key=n}\n===========================================================\n{$softCreditType}\n===========================================================\n{foreach from=$softCredits.$n item=value key=label}\n{$label}: {$value}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($pcpBlock)}\n===========================================================\n{ts}Personal Campaign Page{/ts}\n\n===========================================================\n{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n\n{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}\n\n{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}\n\n{/if}\n{if !empty($onBehalfProfile)}\n===========================================================\n{ts}On Behalf Of{/ts}\n\n===========================================================\n{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n{$onBehalfName}: {$onBehalfValue}\n{/foreach}\n{/if}\n\n{if !empty($billingName)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n{elseif !empty($email)}\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{$email}\n{/if} {* End billingName or Email*}\n{if !empty($credit_card_type)}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n\n{if !empty($selectPremium )}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$product_name}\n{if $option}\n{ts}Option{/ts}: {$option}\n{/if}\n{if $sku}\n{ts}SKU{/ts}: {$sku}\n{/if}\n{if $start_date}\n{ts}Start Date{/ts}: {$start_date|crmDate}\n{/if}\n{if $end_date}\n{ts}End Date{/ts}: {$end_date|crmDate}\n{/if}\n{if !empty($contact_email) OR !empty($contact_phone)}\n\n{ts}For information about this premium, contact:{/ts}\n\n{if !empty($contact_email)}\n {$contact_email}\n{/if}\n{if !empty($contact_phone)}\n {$contact_phone}\n{/if}\n{/if}\n{if $is_deductible AND !empty($price)}\n\n{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}\n{/if}\n\n{if !empty($customPre)}\n===========================================================\n{$customPre_grouptitle}\n\n===========================================================\n{foreach from=$customPre item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n\n\n{if !empty($customPost)}\n===========================================================\n{$customPost_grouptitle}\n\n===========================================================\n{foreach from=$customPost item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if !empty($receipt_text)}\n <p>{$receipt_text|htmlize}</p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n</table>\n<table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n {if {contribution.total_amount|boolean}}\n <tr>\n <th {$headerStyle}>\n {ts}Contribution Information{/ts}\n </th>\n </tr>\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>{$line.title}</td>\n <td>{$line.qty}</td>\n <td>{$line.unit_price|crmMoney:$currency}</td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>{$line.unit_price*$line.qty|crmMoney:$currency}</td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n <td>{$line.tax_amount|crmMoney:$currency}</td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney:$currency}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts} Amount before Tax : {/ts}\n </td>\n <td {$valueStyle}>\n {$amount-$totalTaxAmount|crmMoney:$currency}\n </td>\n </tr>\n\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n\n {/if}\n {if $isShowTax}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n {else}\n {if {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount} {if \'{contribution.amount_level}\'} - {contribution.amount_level}{/if}\n </td>\n </tr>\n\n {/if}\n\n {/if}\n\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if {contribution.trxn_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($is_recur)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}This is a recurring contribution.{/ts}\n {if $cancelSubscriptionUrl}\n {ts 1=$cancelSubscriptionUrl}You can cancel future contributions by <a href=\"%1\">visiting this web page</a>.{/ts}\n {/if}\n </td>\n </tr>\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if $honor_block_is_active}\n <tr>\n <th {$headerStyle}>\n {$soft_credit_type}\n </th>\n </tr>\n {foreach from=$honoreeProfile item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {elseif !empty($softCreditTypes) and !empty($softCredits)}\n {foreach from=$softCreditTypes item=softCreditType key=n}\n <tr>\n <th {$headerStyle}>\n {$softCreditType}\n </th>\n </tr>\n {foreach from=$softCredits.$n item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($pcpBlock)}\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Display In Honor Roll{/ts}\n </td>\n <td {$valueStyle}>\n {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n </td>\n </tr>\n {if $pcp_roll_nickname}\n <tr>\n <td {$labelStyle}>\n {ts}Nickname{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_roll_nickname}\n </td>\n </tr>\n {/if}\n {if $pcp_personal_note}\n <tr>\n <td {$labelStyle}>\n {ts}Personal Note{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_personal_note}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($onBehalfProfile)}\n <tr>\n <th {$headerStyle}>\n {$onBehalfProfile_grouptitle}\n </th>\n </tr>\n {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n <tr>\n <td {$labelStyle}>\n {$onBehalfName}\n </td>\n <td {$valueStyle}>\n {$onBehalfValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($isShare)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id=`$contributionPageId`\" a=true fe=1 h=1}{/capture}\n {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n {elseif !empty($email)}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$email}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n {/if}\n\n {if !empty($selectPremium)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$product_name}\n </td>\n </tr>\n {if $option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$option}\n </td>\n </tr>\n {/if}\n {if $sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$sku}\n </td>\n </tr>\n {/if}\n {if $start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $end_date}\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$end_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($contact_email) OR !empty($contact_phone)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}For information about this premium, contact:{/ts}</p>\n {if !empty($contact_email)}\n <p>{$contact_email}</p>\n {/if}\n {if !empty($contact_phone)}\n <p>{$contact_phone}</p>\n {/if}\n </td>\n </tr>\n {/if}\n {if $is_deductible AND !empty($price)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($customPre)}\n <tr>\n <th {$headerStyle}>\n {$customPre_grouptitle}\n </th>\n </tr>\n {foreach from=$customPre item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($customPost)}\n <tr>\n <th {$headerStyle}>\n {$customPost_grouptitle}\n </th>\n </tr>\n {foreach from=$customPost item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,816,'contribution_online_receipt',1,0,0,NULL), - (8,'Contributions - Receipt (on-line)','{if \'{contribution.contribution_status_id:name}\' === \'Pending\'}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($receipt_text)}\n{$receipt_text}\n{/if}\n{if $is_pay_later}\n\n===========================================================\n{$pay_later_receipt}\n===========================================================\n{/if}\n\n{if {contribution.total_amount|boolean}}\n===========================================================\n{ts}Contribution Information{/ts}\n\n===========================================================\n{if $isShowLineItems}\n\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$lineItems item=line}\n{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"}\n{/foreach}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {$amount-$totalTaxAmount|crmMoney:$currency}\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} : {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n {/foreach}\n{/if}\n\n{if $isShowTax}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount|crmMoney}\n{/if}\n\n{ts}Total Amount{/ts}: {contribution.total_amount}\n{else}\n{ts}Amount{/ts}: {contribution.total_amount} {if \'{contribution.amount_level}\'} - {contribution.amount_level}{/if}\n{/if}\n{/if}\n{if !empty($receive_date)}\n\n{ts}Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if {contribution.trxn_id|boolean}}\n{ts}Transaction #{/ts}: {contribution.trxn_id}\n{/if}\n\n{if !empty($is_recur)}\n{ts}This is a recurring contribution.{/ts}\n\n{if $cancelSubscriptionUrl}\n{ts}You can cancel future contributions at:{/ts}\n\n{$cancelSubscriptionUrl}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts}You can update billing details for this recurring contribution at:{/ts}\n\n{$updateSubscriptionBillingUrl}\n\n{/if}\n\n{if $updateSubscriptionUrl}\n{ts}You can update recurring contribution amount or change the number of installments for this recurring contribution at:{/ts}\n\n{$updateSubscriptionUrl}\n\n{/if}\n{/if}\n\n{if $honor_block_is_active}\n===========================================================\n{$soft_credit_type}\n===========================================================\n{foreach from=$honoreeProfile item=value key=label}\n{$label}: {$value}\n{/foreach}\n{elseif !empty($softCreditTypes) and !empty($softCredits)}\n{foreach from=$softCreditTypes item=softCreditType key=n}\n===========================================================\n{$softCreditType}\n===========================================================\n{foreach from=$softCredits.$n item=value key=label}\n{$label}: {$value}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($pcpBlock)}\n===========================================================\n{ts}Personal Campaign Page{/ts}\n\n===========================================================\n{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n\n{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}\n\n{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}\n\n{/if}\n{if !empty($onBehalfProfile)}\n===========================================================\n{ts}On Behalf Of{/ts}\n\n===========================================================\n{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n{$onBehalfName}: {$onBehalfValue}\n{/foreach}\n{/if}\n\n{if !empty($billingName)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n{elseif !empty($email)}\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{$email}\n{/if} {* End billingName or Email*}\n{if !empty($credit_card_type)}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n\n{if !empty($selectPremium )}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$product_name}\n{if $option}\n{ts}Option{/ts}: {$option}\n{/if}\n{if $sku}\n{ts}SKU{/ts}: {$sku}\n{/if}\n{if $start_date}\n{ts}Start Date{/ts}: {$start_date|crmDate}\n{/if}\n{if $end_date}\n{ts}End Date{/ts}: {$end_date|crmDate}\n{/if}\n{if !empty($contact_email) OR !empty($contact_phone)}\n\n{ts}For information about this premium, contact:{/ts}\n\n{if !empty($contact_email)}\n {$contact_email}\n{/if}\n{if !empty($contact_phone)}\n {$contact_phone}\n{/if}\n{/if}\n{if $is_deductible AND !empty($price)}\n\n{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}\n{/if}\n\n{if !empty($customPre)}\n===========================================================\n{$customPre_grouptitle}\n\n===========================================================\n{foreach from=$customPre item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n\n\n{if !empty($customPost)}\n===========================================================\n{$customPost_grouptitle}\n\n===========================================================\n{foreach from=$customPost item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if !empty($receipt_text)}\n <p>{$receipt_text|htmlize}</p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n</table>\n<table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n {if {contribution.total_amount|boolean}}\n <tr>\n <th {$headerStyle}>\n {ts}Contribution Information{/ts}\n </th>\n </tr>\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>{$line.title}</td>\n <td>{$line.qty}</td>\n <td>{$line.unit_price|crmMoney:$currency}</td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>{$line.unit_price*$line.qty|crmMoney:$currency}</td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n <td>{$line.tax_amount|crmMoney:$currency}</td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney:$currency}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts} Amount before Tax : {/ts}\n </td>\n <td {$valueStyle}>\n {$amount-$totalTaxAmount|crmMoney:$currency}\n </td>\n </tr>\n\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n\n {/if}\n {if $isShowTax}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n {else}\n {if {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount} {if \'{contribution.amount_level}\'} - {contribution.amount_level}{/if}\n </td>\n </tr>\n\n {/if}\n\n {/if}\n\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if {contribution.trxn_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($is_recur)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}This is a recurring contribution.{/ts}\n {if $cancelSubscriptionUrl}\n {ts 1=$cancelSubscriptionUrl}You can cancel future contributions by <a href=\"%1\">visiting this web page</a>.{/ts}\n {/if}\n </td>\n </tr>\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if $honor_block_is_active}\n <tr>\n <th {$headerStyle}>\n {$soft_credit_type}\n </th>\n </tr>\n {foreach from=$honoreeProfile item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {elseif !empty($softCreditTypes) and !empty($softCredits)}\n {foreach from=$softCreditTypes item=softCreditType key=n}\n <tr>\n <th {$headerStyle}>\n {$softCreditType}\n </th>\n </tr>\n {foreach from=$softCredits.$n item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($pcpBlock)}\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Display In Honor Roll{/ts}\n </td>\n <td {$valueStyle}>\n {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n </td>\n </tr>\n {if $pcp_roll_nickname}\n <tr>\n <td {$labelStyle}>\n {ts}Nickname{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_roll_nickname}\n </td>\n </tr>\n {/if}\n {if $pcp_personal_note}\n <tr>\n <td {$labelStyle}>\n {ts}Personal Note{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_personal_note}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($onBehalfProfile)}\n <tr>\n <th {$headerStyle}>\n {$onBehalfProfile_grouptitle}\n </th>\n </tr>\n {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n <tr>\n <td {$labelStyle}>\n {$onBehalfName}\n </td>\n <td {$valueStyle}>\n {$onBehalfValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($isShare)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id=`$contributionPageId`\" a=true fe=1 h=1}{/capture}\n {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n {elseif !empty($email)}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$email}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n {/if}\n\n {if !empty($selectPremium)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$product_name}\n </td>\n </tr>\n {if $option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$option}\n </td>\n </tr>\n {/if}\n {if $sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$sku}\n </td>\n </tr>\n {/if}\n {if $start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $end_date}\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$end_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($contact_email) OR !empty($contact_phone)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}For information about this premium, contact:{/ts}</p>\n {if !empty($contact_email)}\n <p>{$contact_email}</p>\n {/if}\n {if !empty($contact_phone)}\n <p>{$contact_phone}</p>\n {/if}\n </td>\n </tr>\n {/if}\n {if $is_deductible AND !empty($price)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($customPre)}\n <tr>\n <th {$headerStyle}>\n {$customPre_grouptitle}\n </th>\n </tr>\n {foreach from=$customPre item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($customPost)}\n <tr>\n <th {$headerStyle}>\n {$customPost_grouptitle}\n </th>\n </tr>\n {foreach from=$customPost item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,816,'contribution_online_receipt',0,1,0,NULL), - (9,'Contributions - Invoice','{if $title}\n {if $component}\n {if $component == \'event\'}\n {ts 1=$title}Event Registration Invoice: %1{/ts}\n {else}\n {ts 1=$title}Contribution Invoice: %1{/ts}\n {/if}\n {/if}\n{else}\n {ts}Invoice{/ts}\n{/if}\n - {contact.display_name}\n','{ts}Contribution Invoice{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n </head>\n <body>\n <div style=\"padding-top:100px;margin-right:50px;border-style: none;\">\n {if $config->empoweredBy}\n <table style=\"margin-top:5px;padding-bottom:50px;\" cellpadding=\"5\" cellspacing=\"0\">\n <tr>\n <td><img src=\"{domain.empowered_by_civicrm_image_url}\" height=\"34px\" width=\"99px\"></td>\n </tr>\n </table>\n {/if}\n <table style=\"font-family: Arial, Verdana, sans-serif;\" width=\"100%\" height=\"100\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n {if $email_comment}\n <tr>\n <td><font size=\"1\" colspan=\"3\">{$email_comment}</font></td>\n </tr>\n {/if}\n <tr>\n <td width=\"30%\"><b><font size=\"4\" align=\"center\">{ts}INVOICE{/ts}</font></b></td>\n <td width=\"50%\" valign=\"bottom\"><b><font size=\"1\" align=\"center\">{ts}Invoice Date:{/ts}</font></b></td>\n <td valign=\"bottom\" style=\"white-space: nowrap\"><b><font size=\"1\" align=\"right\">{domain.name}</font></b></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{contact.display_name}{if \'{contact.current_employer}\'} ({contact.current_employer}){/if}</font></td>\n <td><font size=\"1\" align=\"right\">{$invoice_date}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">\n {domain.street_address}\n {domain.supplemental_address_1}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{$street_address} {$supplemental_address_1}</font></td>\n <td><b><font size=\"1\" align=\"right\">{ts}Invoice Number:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.supplemental_address_2}\n {domain.state_province_id:label}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.invoice_number}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">\n {domain.city}\n {domain.postal_code}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\">{$city} {$postal_code}</font></td>\n <td height=\"10\"><b><font size=\"1\" align=\"right\">{ts}Reference:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">{domain.country_id:label}</font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\"> {$country}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.source}</font></td>\n <td valign=\"top\" style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">{domain.email}</font> </td>\n </tr>\n <tr>\n <td></td>\n <td></td>\n <td valign=\"top\"><font size=\"1\" align=\"right\">{domain.phone}</font> </td>\n </tr>\n </table>\n\n <table style=\"padding-top:75px;font-family: Arial, Verdana, sans-serif;\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n <tr>\n <th style=\"text-align:left;font-weight:bold;width:100%\"><font size=\"1\">{ts}Description{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts}Quantity{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts}Unit Price{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{domain.tax_term}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts 1=$currency}Amount %1{/ts}</font></th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td style=\"text-align:left;nowrap\"><font size=\"1\">\n {$line.title}\n </font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$line.qty}</font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$line.unit_price|crmMoney:$currency}</font></td>\n {if $line.tax_amount != \'\'}\n <td style=\"text-align:right;\"><font size=\"1\">{if $line.tax_rate}{$line.tax_rate|crmNumberFormat}%{/if}</font></td>\n {else}\n <td style=\"text-align:right;\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\'}-{/ts}{/if}</font></td>\n {/if}\n <td style=\"text-align:right;\"><font size=\"1\">{$line.line_total|crmMoney:\'{contribution.currency}\'}</font></td>\n </tr>\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;\"><font size=\"1\">{ts}Sub Total{/ts}</font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$subTotal|crmMoney:$currency}</font></td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate != 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\' 2=$taxRate|crmNumberFormat}TOTAL %1 %2%{/ts}{/if}</font></td>\n <td style=\"text-align:right\"><font size=\"1\" align=\"right\">{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</font> </td>\n </tr>\n {/if}\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><b><font size=\"1\">{ts 1=$currency}TOTAL %1{/ts}</font></b></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><font size=\"1\">\n {if \'{contribution.contribution_status_id:name}\' == \'Refunded\'}\n {ts}Amount Credited{/ts}\n {else}\n {ts}Amount Paid{/ts}\n {/if}\n </font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$amountPaid|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\" ><b><font size=\"1\">{ts}AMOUNT DUE:{/ts}</font></b></td>\n <td style=\"text-align:right;\"><b><font size=\"1\">{$amountDue|crmMoney:$currency}</font></b></td>\n </tr>\n <tr>\n <td colspan=\"5\"></td>\n </tr>\n {if \'{contribution.contribution_status_id:name}\' == \'Pending\' && \'{contribution.is_pay_later}\' == 1}\n <tr>\n <td colspan=\"3\"><b><font size=\"1\" align=\"center\">{ts 1=$dueDate}DUE DATE: %1{/ts}</font></b></td>\n <td colspan=\"2\"></td>\n </tr>\n {/if}\n </table>\n\n {if \'{contribution.contribution_status_id:name}\' == \'Pending\' && \'{contribution.is_pay_later}\' == 1}\n <table style=\"margin-top:5px;\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td><img src=\"{$resourceBase}/i/contribute/cut_line.png\" height=\"15\"></td>\n </tr>\n </table>\n\n <table style=\"margin-top:5px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\" id=\"desc\">\n <tr>\n <td width=\"60%\"><b><font size=\"4\" align=\"right\">{ts}PAYMENT ADVICE{/ts}</font></b><br/><br/>\n <font size=\"1\" align=\"left\"><b>{ts}To:{/ts}</b><div style=\"width:24em;word-wrap:break-word;\">\n {domain.name}<br />\n {domain.street_address} {domain.supplemental_address_1}<br />\n {domain.supplemental_address_2} {domain.state_province_id:label}<br />\n {domain.city} {domain.postal_code}<br />\n {domain.country_id:label}<br />\n {domain.email}</div>\n {domain.phone}<br />\n </font>\n <br/><br/><font size=\"1\" align=\"left\">{$notes}</font>\n </td>\n <td width=\"40%\">\n <table cellpadding=\"5\" cellspacing=\"0\" width=\"100%\" border=\"0\">\n <tr>\n <td width=\"100%\"><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Customer:{/ts}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">{contact.display_name}</font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Invoice Number:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.invoice_number}</font></td>\n </tr>\n <tr><td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></td></tr>\n {if $is_pay_later == 1}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Amount Due:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n {else}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Amount Due:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amountDue|crmMoney:$currency}</font></td>\n </tr>\n {/if}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Due Date:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{$dueDate}</font></td>\n </tr>\n <tr>\n <td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n {/if}\n\n {if \'{contribution.contribution_status_id:name}\' === \'Refunded\' || \'{contribution.contribution_status_id:name}\' === \'Cancelled\'}\n {if $config->empoweredBy}\n <table style=\"margin-top:2px;padding-left:7px;page-break-before: always;\">\n <tr>\n <td><img src=\"{$resourceBase}/i/civi99.png\" height=\"34px\" width=\"99px\"></td>\n </tr>\n </table>\n {/if}\n\n <table style=\"font-family: Arial, Verdana, sans-serif\" width=\"100%\" height=\"100\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\">\n <tr>\n <td style=\"padding-left:15px;\"><b><font size=\"4\" align=\"center\">{ts}CREDIT NOTE{/ts}</font></b></td>\n <td style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Date:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">{domain.name}</font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{contact.display_name}{if \'{contact.current_employer}\'} ({contact.current_employer}){/if}</font></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{$invoice_date}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.street_address}\n {domain.supplemental_address_1}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{$street_address} {$supplemental_address_1}</font></td>\n <td style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Credit Note Number:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.supplemental_address_2}\n {domain.state_province_id:label}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{contribution.creditnote_id}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.city}\n {domain.postal_code}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"right\">{$city} {$postal_code}</font></td>\n <td height=\"10\" style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Reference:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.country_id:label}\n </font></td>\n </tr>\n <tr>\n <td></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{contribution.source}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.email}\n </font></td>\n </tr>\n <tr>\n <td></td>\n <td></td>\n <td><font size=\"1\" align=\"right\">\n {domain.phone}\n </font></td>\n </tr>\n </table>\n\n <table style=\"margin-top:75px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\" id=\"desc\">\n <tr>\n <td colspan=\"2\">\n <table>\n <tr>\n <th style=\"padding-right:28px;text-align:left;font-weight:bold;width:200px;\"><font size=\"1\">{ts}Description{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts}Quantity{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts}Unit Price{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{domain.tax_term}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts 1=$currency}Amount %1{/ts}</font></th>\n </tr>\n {foreach from=$lineItems item=line key=index}\n <tr><td colspan=\"5\"><hr {if $index == 0}size=\"3\" style=\"color:#000;\"{else}style=\"color:#F5F5F5;\"{/if}></hr></td></tr>\n <tr>\n <td style =\"text-align:left;\" ><font size=\"1\">\n {$line.title}\n </font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.qty}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.unit_price|crmMoney:$currency}</font></td>\n {if $line.tax_amount != \'\'}\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{if $line.tax_rate}{$line.tax_rate|crmNumberFormat}%{/if}</font></td>\n {else}\n <td style=\"padding-left:28px;text-align:right\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\'}No %1{/ts}{/if}</font></td>\n {/if}\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.line_total|crmMoney:\'{contribution.currency}\'}</font></td>\n </tr>\n {/foreach}\n <tr><td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></hr></td></tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{ts}Sub Total{/ts}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$subTotal|crmMoney:$currency}</font></td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate != 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\' 2=$taxRate|crmNumberFormat}TOTAL %1 %2%{/ts}{/if}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\" align=\"right\">{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</font> </td>\n </tr>\n {/if}\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{ts 1=$currency}TOTAL %1{/ts}</font></b></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n {if \'{contribution.is_pay_later}\' == 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{ts}LESS Credit to invoice(s){/ts}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{ts}REMAINING CREDIT{/ts}</font></b></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{$amountDue|crmMoney:$currency}</font></b></td>\n <td style=\"padding-left:28px;\"><font size=\"1\" align=\"right\"></font></td>\n </tr>\n {/if}\n <br/><br/><br/>\n <tr>\n <td colspan=\"3\"></td>\n </tr>\n <tr>\n <td></td>\n <td colspan=\"3\"></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n <table width=\"100%\" style=\"margin-top:5px;padding-right:45px;\">\n <tr>\n <td><img src=\"{$resourceBase}/i/contribute/cut_line.png\" height=\"15\" width=\"100%\"></td>\n </tr>\n </table>\n\n <table style=\"margin-top:6px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\" id=\"desc\">\n <tr>\n <td width=\"60%\"><font size=\"4\" align=\"right\"><b>{ts}CREDIT ADVICE{/ts}</b><br/><br /><div style=\"font-size:10px;max-width:300px;\">{ts}Please do not pay on this advice. Deduct the amount of this Credit Note from your next payment to us{/ts}</div><br/></font></td>\n <td width=\"40%\">\n <table align=\"right\">\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Customer:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contact.display_name}</font></td>\n </tr>\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Credit Note#:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.creditnote_id}</font></td>\n </tr>\n <tr><td colspan=\"5\"style=\"color:#F5F5F5;\"><hr></hr></td></tr>\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Credit Amount:{/ts}</font></td>\n <td width=\'50px\'><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n {/if}\n\n </div>\n </body>\n</html>\n',1,817,'contribution_invoice_receipt',1,0,0,NULL), - (10,'Contributions - Invoice','{if $title}\n {if $component}\n {if $component == \'event\'}\n {ts 1=$title}Event Registration Invoice: %1{/ts}\n {else}\n {ts 1=$title}Contribution Invoice: %1{/ts}\n {/if}\n {/if}\n{else}\n {ts}Invoice{/ts}\n{/if}\n - {contact.display_name}\n','{ts}Contribution Invoice{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n </head>\n <body>\n <div style=\"padding-top:100px;margin-right:50px;border-style: none;\">\n {if $config->empoweredBy}\n <table style=\"margin-top:5px;padding-bottom:50px;\" cellpadding=\"5\" cellspacing=\"0\">\n <tr>\n <td><img src=\"{domain.empowered_by_civicrm_image_url}\" height=\"34px\" width=\"99px\"></td>\n </tr>\n </table>\n {/if}\n <table style=\"font-family: Arial, Verdana, sans-serif;\" width=\"100%\" height=\"100\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n {if $email_comment}\n <tr>\n <td><font size=\"1\" colspan=\"3\">{$email_comment}</font></td>\n </tr>\n {/if}\n <tr>\n <td width=\"30%\"><b><font size=\"4\" align=\"center\">{ts}INVOICE{/ts}</font></b></td>\n <td width=\"50%\" valign=\"bottom\"><b><font size=\"1\" align=\"center\">{ts}Invoice Date:{/ts}</font></b></td>\n <td valign=\"bottom\" style=\"white-space: nowrap\"><b><font size=\"1\" align=\"right\">{domain.name}</font></b></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{contact.display_name}{if \'{contact.current_employer}\'} ({contact.current_employer}){/if}</font></td>\n <td><font size=\"1\" align=\"right\">{$invoice_date}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">\n {domain.street_address}\n {domain.supplemental_address_1}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{$street_address} {$supplemental_address_1}</font></td>\n <td><b><font size=\"1\" align=\"right\">{ts}Invoice Number:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.supplemental_address_2}\n {domain.state_province_id:label}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.invoice_number}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">\n {domain.city}\n {domain.postal_code}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\">{$city} {$postal_code}</font></td>\n <td height=\"10\"><b><font size=\"1\" align=\"right\">{ts}Reference:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">{domain.country_id:label}</font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\"> {$country}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.source}</font></td>\n <td valign=\"top\" style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">{domain.email}</font> </td>\n </tr>\n <tr>\n <td></td>\n <td></td>\n <td valign=\"top\"><font size=\"1\" align=\"right\">{domain.phone}</font> </td>\n </tr>\n </table>\n\n <table style=\"padding-top:75px;font-family: Arial, Verdana, sans-serif;\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n <tr>\n <th style=\"text-align:left;font-weight:bold;width:100%\"><font size=\"1\">{ts}Description{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts}Quantity{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts}Unit Price{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{domain.tax_term}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts 1=$currency}Amount %1{/ts}</font></th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td style=\"text-align:left;nowrap\"><font size=\"1\">\n {$line.title}\n </font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$line.qty}</font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$line.unit_price|crmMoney:$currency}</font></td>\n {if $line.tax_amount != \'\'}\n <td style=\"text-align:right;\"><font size=\"1\">{if $line.tax_rate}{$line.tax_rate|crmNumberFormat}%{/if}</font></td>\n {else}\n <td style=\"text-align:right;\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\'}-{/ts}{/if}</font></td>\n {/if}\n <td style=\"text-align:right;\"><font size=\"1\">{$line.line_total|crmMoney:\'{contribution.currency}\'}</font></td>\n </tr>\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;\"><font size=\"1\">{ts}Sub Total{/ts}</font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$subTotal|crmMoney:$currency}</font></td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate != 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\' 2=$taxRate|crmNumberFormat}TOTAL %1 %2%{/ts}{/if}</font></td>\n <td style=\"text-align:right\"><font size=\"1\" align=\"right\">{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</font> </td>\n </tr>\n {/if}\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><b><font size=\"1\">{ts 1=$currency}TOTAL %1{/ts}</font></b></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><font size=\"1\">\n {if \'{contribution.contribution_status_id:name}\' == \'Refunded\'}\n {ts}Amount Credited{/ts}\n {else}\n {ts}Amount Paid{/ts}\n {/if}\n </font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$amountPaid|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\" ><b><font size=\"1\">{ts}AMOUNT DUE:{/ts}</font></b></td>\n <td style=\"text-align:right;\"><b><font size=\"1\">{$amountDue|crmMoney:$currency}</font></b></td>\n </tr>\n <tr>\n <td colspan=\"5\"></td>\n </tr>\n {if \'{contribution.contribution_status_id:name}\' == \'Pending\' && \'{contribution.is_pay_later}\' == 1}\n <tr>\n <td colspan=\"3\"><b><font size=\"1\" align=\"center\">{ts 1=$dueDate}DUE DATE: %1{/ts}</font></b></td>\n <td colspan=\"2\"></td>\n </tr>\n {/if}\n </table>\n\n {if \'{contribution.contribution_status_id:name}\' == \'Pending\' && \'{contribution.is_pay_later}\' == 1}\n <table style=\"margin-top:5px;\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td><img src=\"{$resourceBase}/i/contribute/cut_line.png\" height=\"15\"></td>\n </tr>\n </table>\n\n <table style=\"margin-top:5px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\" id=\"desc\">\n <tr>\n <td width=\"60%\"><b><font size=\"4\" align=\"right\">{ts}PAYMENT ADVICE{/ts}</font></b><br/><br/>\n <font size=\"1\" align=\"left\"><b>{ts}To:{/ts}</b><div style=\"width:24em;word-wrap:break-word;\">\n {domain.name}<br />\n {domain.street_address} {domain.supplemental_address_1}<br />\n {domain.supplemental_address_2} {domain.state_province_id:label}<br />\n {domain.city} {domain.postal_code}<br />\n {domain.country_id:label}<br />\n {domain.email}</div>\n {domain.phone}<br />\n </font>\n <br/><br/><font size=\"1\" align=\"left\">{$notes}</font>\n </td>\n <td width=\"40%\">\n <table cellpadding=\"5\" cellspacing=\"0\" width=\"100%\" border=\"0\">\n <tr>\n <td width=\"100%\"><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Customer:{/ts}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">{contact.display_name}</font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Invoice Number:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.invoice_number}</font></td>\n </tr>\n <tr><td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></td></tr>\n {if $is_pay_later == 1}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Amount Due:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n {else}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Amount Due:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amountDue|crmMoney:$currency}</font></td>\n </tr>\n {/if}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Due Date:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{$dueDate}</font></td>\n </tr>\n <tr>\n <td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n {/if}\n\n {if \'{contribution.contribution_status_id:name}\' === \'Refunded\' || \'{contribution.contribution_status_id:name}\' === \'Cancelled\'}\n {if $config->empoweredBy}\n <table style=\"margin-top:2px;padding-left:7px;page-break-before: always;\">\n <tr>\n <td><img src=\"{$resourceBase}/i/civi99.png\" height=\"34px\" width=\"99px\"></td>\n </tr>\n </table>\n {/if}\n\n <table style=\"font-family: Arial, Verdana, sans-serif\" width=\"100%\" height=\"100\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\">\n <tr>\n <td style=\"padding-left:15px;\"><b><font size=\"4\" align=\"center\">{ts}CREDIT NOTE{/ts}</font></b></td>\n <td style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Date:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">{domain.name}</font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{contact.display_name}{if \'{contact.current_employer}\'} ({contact.current_employer}){/if}</font></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{$invoice_date}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.street_address}\n {domain.supplemental_address_1}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{$street_address} {$supplemental_address_1}</font></td>\n <td style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Credit Note Number:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.supplemental_address_2}\n {domain.state_province_id:label}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{contribution.creditnote_id}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.city}\n {domain.postal_code}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"right\">{$city} {$postal_code}</font></td>\n <td height=\"10\" style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Reference:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.country_id:label}\n </font></td>\n </tr>\n <tr>\n <td></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{contribution.source}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.email}\n </font></td>\n </tr>\n <tr>\n <td></td>\n <td></td>\n <td><font size=\"1\" align=\"right\">\n {domain.phone}\n </font></td>\n </tr>\n </table>\n\n <table style=\"margin-top:75px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\" id=\"desc\">\n <tr>\n <td colspan=\"2\">\n <table>\n <tr>\n <th style=\"padding-right:28px;text-align:left;font-weight:bold;width:200px;\"><font size=\"1\">{ts}Description{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts}Quantity{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts}Unit Price{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{domain.tax_term}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts 1=$currency}Amount %1{/ts}</font></th>\n </tr>\n {foreach from=$lineItems item=line key=index}\n <tr><td colspan=\"5\"><hr {if $index == 0}size=\"3\" style=\"color:#000;\"{else}style=\"color:#F5F5F5;\"{/if}></hr></td></tr>\n <tr>\n <td style =\"text-align:left;\" ><font size=\"1\">\n {$line.title}\n </font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.qty}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.unit_price|crmMoney:$currency}</font></td>\n {if $line.tax_amount != \'\'}\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{if $line.tax_rate}{$line.tax_rate|crmNumberFormat}%{/if}</font></td>\n {else}\n <td style=\"padding-left:28px;text-align:right\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\'}No %1{/ts}{/if}</font></td>\n {/if}\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.line_total|crmMoney:\'{contribution.currency}\'}</font></td>\n </tr>\n {/foreach}\n <tr><td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></hr></td></tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{ts}Sub Total{/ts}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$subTotal|crmMoney:$currency}</font></td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate != 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\' 2=$taxRate|crmNumberFormat}TOTAL %1 %2%{/ts}{/if}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\" align=\"right\">{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</font> </td>\n </tr>\n {/if}\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{ts 1=$currency}TOTAL %1{/ts}</font></b></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n {if \'{contribution.is_pay_later}\' == 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{ts}LESS Credit to invoice(s){/ts}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{ts}REMAINING CREDIT{/ts}</font></b></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{$amountDue|crmMoney:$currency}</font></b></td>\n <td style=\"padding-left:28px;\"><font size=\"1\" align=\"right\"></font></td>\n </tr>\n {/if}\n <br/><br/><br/>\n <tr>\n <td colspan=\"3\"></td>\n </tr>\n <tr>\n <td></td>\n <td colspan=\"3\"></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n <table width=\"100%\" style=\"margin-top:5px;padding-right:45px;\">\n <tr>\n <td><img src=\"{$resourceBase}/i/contribute/cut_line.png\" height=\"15\" width=\"100%\"></td>\n </tr>\n </table>\n\n <table style=\"margin-top:6px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\" id=\"desc\">\n <tr>\n <td width=\"60%\"><font size=\"4\" align=\"right\"><b>{ts}CREDIT ADVICE{/ts}</b><br/><br /><div style=\"font-size:10px;max-width:300px;\">{ts}Please do not pay on this advice. Deduct the amount of this Credit Note from your next payment to us{/ts}</div><br/></font></td>\n <td width=\"40%\">\n <table align=\"right\">\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Customer:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contact.display_name}</font></td>\n </tr>\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Credit Note#:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.creditnote_id}</font></td>\n </tr>\n <tr><td colspan=\"5\"style=\"color:#F5F5F5;\"><hr></hr></td></tr>\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Credit Amount:{/ts}</font></td>\n <td width=\'50px\'><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n {/if}\n\n </div>\n </body>\n</html>\n',1,817,'contribution_invoice_receipt',0,1,0,NULL), - (11,'Contributions - Recurring Start and End Notification','{ts}Recurring Contribution Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $recur_txnType eq \'START\'}\n{if $auto_renew_membership}\n{ts}Thanks for your auto renew membership sign-up.{/ts}\n\n\n{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s).{/ts}\n\n{if $cancelSubscriptionUrl}\n{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n{else}\n{ts}Thanks for your recurring contribution sign-up.{/ts}\n\n\n{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments } {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.\n\n{ts}Start Date{/ts}: {$recur_start_date|crmDate}\n\n{if $cancelSubscriptionUrl}\n{ts 1=$cancelSubscriptionUrl}You can cancel the recurring contribution option by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionUrl}\n{ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n{/if}\n\n{elseif $recur_txnType eq \'END\'}\n{if $auto_renew_membership}\n{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}\n\n\n{else}\n{ts}Your recurring contribution term has ended.{/ts}\n\n\n{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}\n\n\n==================================================\n{ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}\n\n==================================================\n{ts}Start Date{/ts}: {$recur_start_date|crmDate}\n\n{ts}End Date{/ts}: {$recur_end_date|crmDate}\n\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n </td>\n </tr>\n\n <tr>\n <td> </td>\n </tr>\n\n {if $recur_txnType eq \'START\'}\n {if $auto_renew_membership}\n <tr>\n <td>\n <p>{ts}Thanks for your auto renew membership sign-up.{/ts}</p>\n <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s). {/ts}</p>\n </td>\n </tr>\n {if $cancelSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {else}\n <tr>\n <td>\n <p>{ts}Thanks for your recurring contribution sign-up.{/ts}</p>\n <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments }{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.</p>\n <p>{ts}Start Date{/ts}: {$recur_start_date|crmDate}</p>\n </td>\n </tr>\n {if $cancelSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$cancelSubscriptionUrl} You can cancel the recurring contribution option by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {elseif $recur_txnType eq \'END\'}\n\n {if $auto_renew_membership}\n <tr>\n <td>\n <p>{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}</p>\n </td>\n </tr>\n {else}\n <tr>\n <td>\n <p>{ts}Your recurring contribution term has ended.{/ts}</p>\n <p>{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$recur_start_date|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$recur_end_date|crmDate}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n {/if}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,818,'contribution_recurring_notify',1,0,0,NULL), - (12,'Contributions - Recurring Start and End Notification','{ts}Recurring Contribution Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $recur_txnType eq \'START\'}\n{if $auto_renew_membership}\n{ts}Thanks for your auto renew membership sign-up.{/ts}\n\n\n{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s).{/ts}\n\n{if $cancelSubscriptionUrl}\n{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n{else}\n{ts}Thanks for your recurring contribution sign-up.{/ts}\n\n\n{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments } {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.\n\n{ts}Start Date{/ts}: {$recur_start_date|crmDate}\n\n{if $cancelSubscriptionUrl}\n{ts 1=$cancelSubscriptionUrl}You can cancel the recurring contribution option by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionUrl}\n{ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n{/if}\n\n{elseif $recur_txnType eq \'END\'}\n{if $auto_renew_membership}\n{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}\n\n\n{else}\n{ts}Your recurring contribution term has ended.{/ts}\n\n\n{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}\n\n\n==================================================\n{ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}\n\n==================================================\n{ts}Start Date{/ts}: {$recur_start_date|crmDate}\n\n{ts}End Date{/ts}: {$recur_end_date|crmDate}\n\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n </td>\n </tr>\n\n <tr>\n <td> </td>\n </tr>\n\n {if $recur_txnType eq \'START\'}\n {if $auto_renew_membership}\n <tr>\n <td>\n <p>{ts}Thanks for your auto renew membership sign-up.{/ts}</p>\n <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s). {/ts}</p>\n </td>\n </tr>\n {if $cancelSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {else}\n <tr>\n <td>\n <p>{ts}Thanks for your recurring contribution sign-up.{/ts}</p>\n <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments }{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.</p>\n <p>{ts}Start Date{/ts}: {$recur_start_date|crmDate}</p>\n </td>\n </tr>\n {if $cancelSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$cancelSubscriptionUrl} You can cancel the recurring contribution option by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {elseif $recur_txnType eq \'END\'}\n\n {if $auto_renew_membership}\n <tr>\n <td>\n <p>{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}</p>\n </td>\n </tr>\n {else}\n <tr>\n <td>\n <p>{ts}Your recurring contribution term has ended.{/ts}</p>\n <p>{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$recur_start_date|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$recur_end_date|crmDate}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n {/if}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,818,'contribution_recurring_notify',0,1,0,NULL), - (13,'Contributions - Recurring Cancellation Notification','{ts}Recurring Contribution Cancellation Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n</body>\n</html>\n',1,819,'contribution_recurring_cancelled',1,0,0,NULL), - (14,'Contributions - Recurring Cancellation Notification','{ts}Recurring Contribution Cancellation Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n</body>\n</html>\n',1,819,'contribution_recurring_cancelled',0,1,0,NULL), - (15,'Contributions - Recurring Billing Updates','{ts}Recurring Contribution Billing Updates{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,820,'contribution_recurring_billing',1,0,0,NULL), - (16,'Contributions - Recurring Billing Updates','{ts}Recurring Contribution Billing Updates{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,820,'contribution_recurring_billing',0,1,0,NULL), - (17,'Contributions - Recurring Updates','{ts}Recurring Contribution Update Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Your recurring contribution has been updated as requested:{/ts}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}\n{if $installments}{ts 1=$installments} for %1 installments.{/ts}{/if}\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Your recurring contribution has been updated as requested:{/ts}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}{if $installments}{ts 1=$installments} for %1 installments{/ts}{/if}.</p>\n\n <p>{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n</body>\n</html>\n',1,821,'contribution_recurring_edit',1,0,0,NULL), - (18,'Contributions - Recurring Updates','{ts}Recurring Contribution Update Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Your recurring contribution has been updated as requested:{/ts}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}\n{if $installments}{ts 1=$installments} for %1 installments.{/ts}{/if}\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Your recurring contribution has been updated as requested:{/ts}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}{if $installments}{ts 1=$installments} for %1 installments{/ts}{/if}.</p>\n\n <p>{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n</body>\n</html>\n',1,821,'contribution_recurring_edit',0,1,0,NULL), - (19,'Personal Campaign Pages - Admin Notification','{ts}Personal Campaign Page Notification{/ts} - {contact.display_name}\n','===========================================================\n{ts}Personal Campaign Page Notification{/ts}\n\n===========================================================\n{ts}Action{/ts}: {if $mode EQ \'Update\'}{ts}Updated personal campaign page{/ts}{else}{ts}New personal campaign page{/ts}{/if}\n{ts}Personal Campaign Page Title{/ts}: {$pcpTitle}\n{ts}Current Status{/ts}: {$pcpStatus}\n{capture assign=pcpURL}{crmURL p=\"civicrm/pcp/info\" q=\"reset=1&id=`$pcpId`\" h=0 a=1 fe=1}{/capture}\n{ts}View Page{/ts}:\n>> {$pcpURL}\n\n{ts}Supporter{/ts}: {$supporterName}\n>> {$supporterUrl}\n\n{ts}Linked to Contribution Page{/ts}: {$contribPageTitle}\n>> {$contribPageUrl}\n\n{ts}Manage Personal Campaign Pages{/ts}:\n>> {$managePCPUrl}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=pcpURL }{crmURL p=\"civicrm/pcp/info\" q=\"reset=1&id=`$pcpId`\" h=0 a=1 fe=1}{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page Notification{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Action{/ts}:\n </td>\n <td {$valueStyle}>\n {if $mode EQ \'Update\'}\n {ts}Updated personal campaign page{/ts}\n {else}\n {ts}New personal campaign page{/ts}\n {/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Personal Campaign Page Title{/ts}\n </td>\n <td {$valueStyle}>\n {$pcpTitle}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Current Status{/ts}\n </td>\n <td {$valueStyle}>\n {$pcpStatus}\n </td>\n </tr>\n\n <tr>\n <td {$labelStyle}>\n <a href=\"{$pcpURL}\">{ts}View Page{/ts}</a>\n </td>\n <td></td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Supporter{/ts}\n </td>\n <td {$valueStyle}>\n <a href=\"{$supporterUrl}\">{$supporterName}</a>\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Linked to Contribution Page{/ts}\n </td>\n <td {$valueStyle}>\n <a href=\"{$contribPageUrl}\">{$contribPageTitle}</a>\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n <a href=\"{$managePCPUrl}\">{ts}Manage Personal Campaign Pages{/ts}</a>\n </td>\n <td></td>\n </tr>\n\n </table>\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,822,'pcp_notify',1,0,0,NULL), - (20,'Personal Campaign Pages - Admin Notification','{ts}Personal Campaign Page Notification{/ts} - {contact.display_name}\n','===========================================================\n{ts}Personal Campaign Page Notification{/ts}\n\n===========================================================\n{ts}Action{/ts}: {if $mode EQ \'Update\'}{ts}Updated personal campaign page{/ts}{else}{ts}New personal campaign page{/ts}{/if}\n{ts}Personal Campaign Page Title{/ts}: {$pcpTitle}\n{ts}Current Status{/ts}: {$pcpStatus}\n{capture assign=pcpURL}{crmURL p=\"civicrm/pcp/info\" q=\"reset=1&id=`$pcpId`\" h=0 a=1 fe=1}{/capture}\n{ts}View Page{/ts}:\n>> {$pcpURL}\n\n{ts}Supporter{/ts}: {$supporterName}\n>> {$supporterUrl}\n\n{ts}Linked to Contribution Page{/ts}: {$contribPageTitle}\n>> {$contribPageUrl}\n\n{ts}Manage Personal Campaign Pages{/ts}:\n>> {$managePCPUrl}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=pcpURL }{crmURL p=\"civicrm/pcp/info\" q=\"reset=1&id=`$pcpId`\" h=0 a=1 fe=1}{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page Notification{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Action{/ts}:\n </td>\n <td {$valueStyle}>\n {if $mode EQ \'Update\'}\n {ts}Updated personal campaign page{/ts}\n {else}\n {ts}New personal campaign page{/ts}\n {/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Personal Campaign Page Title{/ts}\n </td>\n <td {$valueStyle}>\n {$pcpTitle}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Current Status{/ts}\n </td>\n <td {$valueStyle}>\n {$pcpStatus}\n </td>\n </tr>\n\n <tr>\n <td {$labelStyle}>\n <a href=\"{$pcpURL}\">{ts}View Page{/ts}</a>\n </td>\n <td></td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Supporter{/ts}\n </td>\n <td {$valueStyle}>\n <a href=\"{$supporterUrl}\">{$supporterName}</a>\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Linked to Contribution Page{/ts}\n </td>\n <td {$valueStyle}>\n <a href=\"{$contribPageUrl}\">{$contribPageTitle}</a>\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n <a href=\"{$managePCPUrl}\">{ts}Manage Personal Campaign Pages{/ts}</a>\n </td>\n <td></td>\n </tr>\n\n </table>\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,822,'pcp_notify',0,1,0,NULL), - (21,'Personal Campaign Pages - Supporter Status Change Notification','{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}\n','{if $pcpStatus eq \'Approved\'}\n============================\n{ts}Your Personal Campaign Page{/ts}\n\n============================\n\n{ts}Your personal campaign page has been approved and is now live.{/ts}\n\n{ts}Whenever you want to preview, update or promote your page{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser to go to your page{/ts}:\n{$pcpInfoURL}\n\n{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}\n\n{if $isTellFriendEnabled}\n\n{ts}After logging in, you can use this form to promote your fundraising page{/ts}:\n{$pcpTellFriendURL}\n\n{/if}\n\n{if $pcpNotifyEmailAddress}\n{ts}Questions? Send email to{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n\n{* Rejected message *}\n{elseif $pcpStatus eq \'Not Approved\'}\n============================\n{ts}Your Personal Campaign Page{/ts}\n\n============================\n\n{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}\n\n{if $pcpNotifyEmailAddress}\n\n{ts}Please contact our site administrator for more information{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n\n <h1>{ts}Your Personal Campaign Page{/ts}</h1>\n\n {if $pcpStatus eq \'Approved\'}\n\n <p>{ts}Your personal campaign page has been approved and is now live.{/ts}</p>\n <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Go to your page{/ts}</a></li>\n </ol>\n <p>{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}</p>\n\n {if $isTellFriendEnabled}\n <p><a href=\"{$pcpTellFriendURL}\">{ts}After logging in, you can use this form to promote your fundraising page{/ts}</a></p>\n {/if}\n\n {if $pcpNotifyEmailAddress}\n <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>\n {/if}\n\n {elseif $pcpStatus eq \'Not Approved\'}\n\n <p>{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}</p>\n {if $pcpNotifyEmailAddress}\n <p>{ts}Please contact our site administrator for more information{/ts}: {$pcpNotifyEmailAddress}</p>\n {/if}\n\n {/if}\n\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,823,'pcp_status_change',1,0,0,NULL), - (22,'Personal Campaign Pages - Supporter Status Change Notification','{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}\n','{if $pcpStatus eq \'Approved\'}\n============================\n{ts}Your Personal Campaign Page{/ts}\n\n============================\n\n{ts}Your personal campaign page has been approved and is now live.{/ts}\n\n{ts}Whenever you want to preview, update or promote your page{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser to go to your page{/ts}:\n{$pcpInfoURL}\n\n{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}\n\n{if $isTellFriendEnabled}\n\n{ts}After logging in, you can use this form to promote your fundraising page{/ts}:\n{$pcpTellFriendURL}\n\n{/if}\n\n{if $pcpNotifyEmailAddress}\n{ts}Questions? Send email to{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n\n{* Rejected message *}\n{elseif $pcpStatus eq \'Not Approved\'}\n============================\n{ts}Your Personal Campaign Page{/ts}\n\n============================\n\n{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}\n\n{if $pcpNotifyEmailAddress}\n\n{ts}Please contact our site administrator for more information{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n\n <h1>{ts}Your Personal Campaign Page{/ts}</h1>\n\n {if $pcpStatus eq \'Approved\'}\n\n <p>{ts}Your personal campaign page has been approved and is now live.{/ts}</p>\n <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Go to your page{/ts}</a></li>\n </ol>\n <p>{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}</p>\n\n {if $isTellFriendEnabled}\n <p><a href=\"{$pcpTellFriendURL}\">{ts}After logging in, you can use this form to promote your fundraising page{/ts}</a></p>\n {/if}\n\n {if $pcpNotifyEmailAddress}\n <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>\n {/if}\n\n {elseif $pcpStatus eq \'Not Approved\'}\n\n <p>{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}</p>\n {if $pcpNotifyEmailAddress}\n <p>{ts}Please contact our site administrator for more information{/ts}: {$pcpNotifyEmailAddress}</p>\n {/if}\n\n {/if}\n\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,823,'pcp_status_change',0,1,0,NULL), - (23,'Personal Campaign Pages - Supporter Welcome','{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=\"$contribPageTitle\"}Thanks for creating a personal campaign page in support of %1.{/ts}\n\n{if $pcpStatus eq \'Approved\'}\n====================\n{ts}Promoting Your Page{/ts}\n\n====================\n{if $isTellFriendEnabled}\n\n{ts}You can begin your fundraising efforts using our \"Tell a Friend\" form{/ts}:\n\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser and follow the prompts{/ts}:\n{$pcpTellFriendURL}\n{else}\n\n{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts}\n{ts}Include this link to your fundraising page in your emails{/ts}:\n{$pcpInfoURL}\n{/if}\n\n===================\n{ts}Managing Your Page{/ts}\n\n===================\n{ts}Whenever you want to preview, update or promote your page{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser to go to your page{/ts}:\n{$pcpInfoURL}\n\n{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}\n\n\n{elseif $pcpStatus EQ \'Waiting Review\'}\n{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}\n\n\n{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}\n\n\n{ts}You can still preview your page prior to approval{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser{/ts}:\n{$pcpInfoURL}\n\n{/if}\n{if $pcpNotifyEmailAddress}\n{ts}Questions? Send email to{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=\"$contribPageTitle\"}Thanks for creating a personal campaign page in support of %1.{/ts}</p>\n </td>\n </tr>\n\n {if $pcpStatus eq \'Approved\'}\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Promoting Your Page{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {if $isTellFriendEnabled}\n <p>{ts}You can begin your fundraising efforts using our \"Tell a Friend\" form{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpTellFriendURL}\">{ts}Click this link and follow the prompts{/ts}</a></li>\n </ol>\n {else}\n <p>{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts} {ts}Include this link to your fundraising page in your emails{/ts}: {$pcpInfoURL}</p>\n {/if}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Managing Your Page{/ts}\n </th>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Go to your page{/ts}</a></li>\n </ol>\n <p>{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}</p>\n </td>\n </tr>\n </tr>\n </table>\n </td>\n </tr>\n\n {elseif $pcpStatus EQ \'Waiting Review\'}\n\n <tr>\n <td>\n <p>{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}</p>\n <p>{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}</p>\n <p>{ts}You can still preview your page prior to approval{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Click this link{/ts}</a></li>\n </ol>\n </td>\n </tr>\n\n {/if}\n\n {if $pcpNotifyEmailAddress}\n <tr>\n <td>\n <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,824,'pcp_supporter_notify',1,0,0,NULL), - (24,'Personal Campaign Pages - Supporter Welcome','{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=\"$contribPageTitle\"}Thanks for creating a personal campaign page in support of %1.{/ts}\n\n{if $pcpStatus eq \'Approved\'}\n====================\n{ts}Promoting Your Page{/ts}\n\n====================\n{if $isTellFriendEnabled}\n\n{ts}You can begin your fundraising efforts using our \"Tell a Friend\" form{/ts}:\n\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser and follow the prompts{/ts}:\n{$pcpTellFriendURL}\n{else}\n\n{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts}\n{ts}Include this link to your fundraising page in your emails{/ts}:\n{$pcpInfoURL}\n{/if}\n\n===================\n{ts}Managing Your Page{/ts}\n\n===================\n{ts}Whenever you want to preview, update or promote your page{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser to go to your page{/ts}:\n{$pcpInfoURL}\n\n{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}\n\n\n{elseif $pcpStatus EQ \'Waiting Review\'}\n{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}\n\n\n{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}\n\n\n{ts}You can still preview your page prior to approval{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser{/ts}:\n{$pcpInfoURL}\n\n{/if}\n{if $pcpNotifyEmailAddress}\n{ts}Questions? Send email to{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=\"$contribPageTitle\"}Thanks for creating a personal campaign page in support of %1.{/ts}</p>\n </td>\n </tr>\n\n {if $pcpStatus eq \'Approved\'}\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Promoting Your Page{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {if $isTellFriendEnabled}\n <p>{ts}You can begin your fundraising efforts using our \"Tell a Friend\" form{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpTellFriendURL}\">{ts}Click this link and follow the prompts{/ts}</a></li>\n </ol>\n {else}\n <p>{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts} {ts}Include this link to your fundraising page in your emails{/ts}: {$pcpInfoURL}</p>\n {/if}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Managing Your Page{/ts}\n </th>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Go to your page{/ts}</a></li>\n </ol>\n <p>{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}</p>\n </td>\n </tr>\n </tr>\n </table>\n </td>\n </tr>\n\n {elseif $pcpStatus EQ \'Waiting Review\'}\n\n <tr>\n <td>\n <p>{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}</p>\n <p>{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}</p>\n <p>{ts}You can still preview your page prior to approval{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Click this link{/ts}</a></li>\n </ol>\n </td>\n </tr>\n\n {/if}\n\n {if $pcpNotifyEmailAddress}\n <tr>\n <td>\n <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,824,'pcp_supporter_notify',0,1,0,NULL), - (25,'Personal Campaign Pages - Owner Notification','{ts}Someone has just donated to your personal campaign page{/ts} - {contact.display_name}\n','===========================================================\n{ts}Personal Campaign Page Owner Notification{/ts}\n\n===========================================================\n{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}You have received a donation at your personal page{/ts}: {$page_title}\n>> {$pcpInfoURL}\n\n{ts}Your fundraising total has been updated.{/ts}\n{ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts}\n{if $is_honor_roll_enabled}\n {ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}\n{/if}\n\n{ts}Contribution Date{/ts}: {$receive_date|crmDate}\n\n{ts}Amount{/ts}: {$total_amount|crmMoney:$currency}\n\n{ts}Name{/ts}: {$donors_display_name}\n\n{ts}Email{/ts}: {$donors_email}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}You have received a donation at your personal page{/ts}: <a href=\"{$pcpInfoURL}\">{$page_title}</a></p>\n <p>{ts}Your fundraising total has been updated.{/ts}<br/>\n {ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts} <br/>\n {if $is_honor_roll_enabled}\n {ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}<br/>\n {/if}\n </p>\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <tr><td>{ts}Contribution Date{/ts}:</td><td> {$receive_date|crmDate}</td></tr>\n <tr><td>{ts}Amount{/ts}:</td><td> {$total_amount|crmMoney:$currency}</td></tr>\n <tr><td>{ts}Name{/ts}:</td><td> {$donors_display_name}</td></tr>\n <tr><td>{ts}Email{/ts}:</td><td> {$donors_email}</td></tr>\n </table>\n</body>\n</html>\n',1,825,'pcp_owner_notify',1,0,0,NULL), - (26,'Personal Campaign Pages - Owner Notification','{ts}Someone has just donated to your personal campaign page{/ts} - {contact.display_name}\n','===========================================================\n{ts}Personal Campaign Page Owner Notification{/ts}\n\n===========================================================\n{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}You have received a donation at your personal page{/ts}: {$page_title}\n>> {$pcpInfoURL}\n\n{ts}Your fundraising total has been updated.{/ts}\n{ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts}\n{if $is_honor_roll_enabled}\n {ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}\n{/if}\n\n{ts}Contribution Date{/ts}: {$receive_date|crmDate}\n\n{ts}Amount{/ts}: {$total_amount|crmMoney:$currency}\n\n{ts}Name{/ts}: {$donors_display_name}\n\n{ts}Email{/ts}: {$donors_email}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}You have received a donation at your personal page{/ts}: <a href=\"{$pcpInfoURL}\">{$page_title}</a></p>\n <p>{ts}Your fundraising total has been updated.{/ts}<br/>\n {ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts} <br/>\n {if $is_honor_roll_enabled}\n {ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}<br/>\n {/if}\n </p>\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <tr><td>{ts}Contribution Date{/ts}:</td><td> {$receive_date|crmDate}</td></tr>\n <tr><td>{ts}Amount{/ts}:</td><td> {$total_amount|crmMoney:$currency}</td></tr>\n <tr><td>{ts}Name{/ts}:</td><td> {$donors_display_name}</td></tr>\n <tr><td>{ts}Email{/ts}:</td><td> {$donors_email}</td></tr>\n </table>\n</body>\n</html>\n',1,825,'pcp_owner_notify',0,1,0,NULL), - (27,'Additional Payment Receipt or Refund Notification','{if $isRefund}{ts}Refund Notification{/ts}{else}{ts}Payment Receipt{/ts}{/if}{if $component eq \'event\'} - {$event.title}{/if} - {contact.display_name}\n','{if $emailGreeting}{$emailGreeting},\n{/if}\n\n{if $isRefund}\n{ts}A refund has been issued based on changes in your registration selections.{/ts}\n{else}\n{ts}Below you will find a receipt for this payment.{/ts}\n{/if}\n{if $paymentsComplete}\n{ts}Thank you for completing this payment.{/ts}\n{/if}\n\n{if $isRefund}\n===============================================================================\n\n{ts}Refund Details{/ts}\n\n===============================================================================\n{ts}This Refund Amount{/ts}: {$refundAmount|crmMoney:$currency}\n------------------------------------------------------------------------------------\n\n{else}\n===============================================================================\n\n{ts}Payment Details{/ts}\n\n===============================================================================\n{ts}This Payment Amount{/ts}: {$paymentAmount|crmMoney:$currency}\n------------------------------------------------------------------------------------\n{/if}\n{if $receive_date}\n{ts}Transaction Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if !empty($paidBy)}\n{ts}Paid By{/ts}: {$paidBy}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n\n===============================================================================\n\n{ts}Contribution Details{/ts}\n\n===============================================================================\n{if $totalAmount}\n{ts}Total Fee{/ts}: {$totalAmount|crmMoney:$currency}\n{/if}\n{if $totalPaid}\n{ts}Total Paid{/ts}: {$totalPaid|crmMoney:$currency}\n{/if}\n{if $amountOwed}\n{ts}Balance Owed{/ts}: {$amountOwed|crmMoney:$currency} {* This will be zero after final payment. *}\n{/if}\n\n\n{if !empty($billingName) || !empty($address)}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n{if !empty($billingName)}\n{$billingName}\n{/if}\n{if !empty($address)}\n{$address}\n{/if}\n{/if}\n\n{if !empty($credit_card_number)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{if $component eq \'event\'}\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{if !empty($event.participant_role)}\n{ts}Participant Role{/ts}: {$event.participant_role}\n{/if}\n\n{if !empty($isShowLocation)}\n{$location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($location.phone.1.phone) || !empty($location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}\n{/foreach}\n{foreach from=$location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=emptyBlockStyle }style=\"padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;\"{/capture}\n{capture assign=emptyBlockValueStyle }style=\"padding: 10px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $isRefund}\n <p>{ts}A refund has been issued based on changes in your registration selections.{/ts}</p>\n {else}\n <p>{ts}Below you will find a receipt for this payment.{/ts}</p>\n {if $paymentsComplete}\n <p>{ts}Thank you for completing this contribution.{/ts}</p>\n {/if}\n {/if}\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if $isRefund}\n <tr>\n <th {$headerStyle}>{ts}Refund Details{/ts}</th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}This Refund Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$refundAmount|crmMoney:$currency}\n </td>\n </tr>\n {else}\n <tr>\n <th {$headerStyle}>{ts}Payment Details{/ts}</th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}This Payment Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$paymentAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $receive_date}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n {if !empty($paidBy)}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {$paidBy}\n </td>\n </tr>\n {/if}\n {if !empty($checkNumber)}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {$checkNumber}\n </td>\n </tr>\n {/if}\n\n <tr>\n <th {$headerStyle}>{ts}Contribution Details{/ts}</th>\n </tr>\n {if $totalAmount}\n <tr>\n <td {$labelStyle}>\n {ts}Total Fee{/ts}\n </td>\n <td {$valueStyle}>\n {$totalAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $totalPaid}\n <tr>\n <td {$labelStyle}>\n {ts}Total Paid{/ts}\n </td>\n <td {$valueStyle}>\n {$totalPaid|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $amountOwed}\n <tr>\n <td {$labelStyle}>\n {ts}Balance Owed{/ts}\n </td>\n <td {$valueStyle}>\n {$amountOwed|crmMoney:$currency}\n </td> {* This will be zero after final payment. *}\n </tr>\n {/if}\n </table>\n\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if !empty($billingName) || !empty($address)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {if !empty($billingName)}{$billingName}{/if}<br />\n {if !empty($address)}{$address|nl2br}{/if}\n </td>\n </tr>\n {/if}\n {if !empty($credit_card_number)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {if $component eq \'event\'}\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n\n {if !empty($event.participant_role)}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {$event.participant_role}\n </td>\n </tr>\n {/if}\n\n {if !empty($isShowLocation)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($location.phone.1.phone) || !empty($location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}\n {$phone.phone_type_display}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if} {*phone block close*}\n {/if}\n </table>\n </td>\n </tr>\n\n </table>\n\n </body>\n</html>\n',1,826,'payment_or_refund_notification',1,0,0,NULL), - (28,'Additional Payment Receipt or Refund Notification','{if $isRefund}{ts}Refund Notification{/ts}{else}{ts}Payment Receipt{/ts}{/if}{if $component eq \'event\'} - {$event.title}{/if} - {contact.display_name}\n','{if $emailGreeting}{$emailGreeting},\n{/if}\n\n{if $isRefund}\n{ts}A refund has been issued based on changes in your registration selections.{/ts}\n{else}\n{ts}Below you will find a receipt for this payment.{/ts}\n{/if}\n{if $paymentsComplete}\n{ts}Thank you for completing this payment.{/ts}\n{/if}\n\n{if $isRefund}\n===============================================================================\n\n{ts}Refund Details{/ts}\n\n===============================================================================\n{ts}This Refund Amount{/ts}: {$refundAmount|crmMoney:$currency}\n------------------------------------------------------------------------------------\n\n{else}\n===============================================================================\n\n{ts}Payment Details{/ts}\n\n===============================================================================\n{ts}This Payment Amount{/ts}: {$paymentAmount|crmMoney:$currency}\n------------------------------------------------------------------------------------\n{/if}\n{if $receive_date}\n{ts}Transaction Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if !empty($paidBy)}\n{ts}Paid By{/ts}: {$paidBy}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n\n===============================================================================\n\n{ts}Contribution Details{/ts}\n\n===============================================================================\n{if $totalAmount}\n{ts}Total Fee{/ts}: {$totalAmount|crmMoney:$currency}\n{/if}\n{if $totalPaid}\n{ts}Total Paid{/ts}: {$totalPaid|crmMoney:$currency}\n{/if}\n{if $amountOwed}\n{ts}Balance Owed{/ts}: {$amountOwed|crmMoney:$currency} {* This will be zero after final payment. *}\n{/if}\n\n\n{if !empty($billingName) || !empty($address)}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n{if !empty($billingName)}\n{$billingName}\n{/if}\n{if !empty($address)}\n{$address}\n{/if}\n{/if}\n\n{if !empty($credit_card_number)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{if $component eq \'event\'}\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{if !empty($event.participant_role)}\n{ts}Participant Role{/ts}: {$event.participant_role}\n{/if}\n\n{if !empty($isShowLocation)}\n{$location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($location.phone.1.phone) || !empty($location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}\n{/foreach}\n{foreach from=$location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=emptyBlockStyle }style=\"padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;\"{/capture}\n{capture assign=emptyBlockValueStyle }style=\"padding: 10px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $isRefund}\n <p>{ts}A refund has been issued based on changes in your registration selections.{/ts}</p>\n {else}\n <p>{ts}Below you will find a receipt for this payment.{/ts}</p>\n {if $paymentsComplete}\n <p>{ts}Thank you for completing this contribution.{/ts}</p>\n {/if}\n {/if}\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if $isRefund}\n <tr>\n <th {$headerStyle}>{ts}Refund Details{/ts}</th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}This Refund Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$refundAmount|crmMoney:$currency}\n </td>\n </tr>\n {else}\n <tr>\n <th {$headerStyle}>{ts}Payment Details{/ts}</th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}This Payment Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$paymentAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $receive_date}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n {if !empty($paidBy)}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {$paidBy}\n </td>\n </tr>\n {/if}\n {if !empty($checkNumber)}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {$checkNumber}\n </td>\n </tr>\n {/if}\n\n <tr>\n <th {$headerStyle}>{ts}Contribution Details{/ts}</th>\n </tr>\n {if $totalAmount}\n <tr>\n <td {$labelStyle}>\n {ts}Total Fee{/ts}\n </td>\n <td {$valueStyle}>\n {$totalAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $totalPaid}\n <tr>\n <td {$labelStyle}>\n {ts}Total Paid{/ts}\n </td>\n <td {$valueStyle}>\n {$totalPaid|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $amountOwed}\n <tr>\n <td {$labelStyle}>\n {ts}Balance Owed{/ts}\n </td>\n <td {$valueStyle}>\n {$amountOwed|crmMoney:$currency}\n </td> {* This will be zero after final payment. *}\n </tr>\n {/if}\n </table>\n\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if !empty($billingName) || !empty($address)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {if !empty($billingName)}{$billingName}{/if}<br />\n {if !empty($address)}{$address|nl2br}{/if}\n </td>\n </tr>\n {/if}\n {if !empty($credit_card_number)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {if $component eq \'event\'}\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n\n {if !empty($event.participant_role)}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {$event.participant_role}\n </td>\n </tr>\n {/if}\n\n {if !empty($isShowLocation)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($location.phone.1.phone) || !empty($location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}\n {$phone.phone_type_display}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if} {*phone block close*}\n {/if}\n </table>\n </td>\n </tr>\n\n </table>\n\n </body>\n</html>\n',1,826,'payment_or_refund_notification',0,1,0,NULL), - (29,'Events - Registration Confirmation and Receipt (off-line)','{ts}Event Confirmation{/ts} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n{/if}\n\n{if !empty($isOnWaitlist)}\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{elseif !empty($isRequireApproval)}\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{ts}Your registration has been submitted.{/ts}\n\n{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{elseif $is_pay_later}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$pay_later_receipt}\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{/if}\n\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{ts}Event Information and Location{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{event.title}\n{event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date}{/if}{/if}\n\n{if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and empty($defaultRole)}\n{ts}Participant Role{/ts}: {$event.participant_role}\n{/if}\n\n{if !empty($isShowLocation)}\n{$location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n{ts}Event Contacts:{/ts}\n\n{if {event.loc_block_id.phone_id.phone|boolean}}\n{if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n\n{if {event.loc_block_id.phone_2_id.phone|boolean}}\n{if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}{event.loc_block_id.phone_2_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n{/if}\n\n{if {event.loc_block_id.email_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_id.email}\n{/if}\n{if {event.loc_block_id.email_2_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if}\n{/if}\n\n\n{if {event.is_public|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if !empty($email)}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{ts}Registered Email{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$email}\n{/if}\n{if !empty($event.is_monetary)} {* This section for Paid events only.*}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{if !empty($event.fee_label)}{$event.fee_label}{/if}\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if {event.is_monetary|boolean}}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts}\n{/if}\n{/if}\n---------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if}\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if !empty($dataArray)}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{capture assign=ts_participant_total}{if !empty($pricesetFieldsCount) }{ts}Total Participants{/ts}{/if}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if !empty($dataArray)} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if}\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney|string_format:\"%10s\"} {if !empty($dataArray)} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:\"%10s\"} {if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n{/if}\n{/foreach}\n\n{if !empty($dataArray)}\n{if $totalAmount and $totalTaxAmount}\n{ts}Amount before Tax:{/ts} {$totalAmount-$totalTaxAmount|crmMoney:$currency}\n{/if}\n\n{foreach from=$dataArray item=value key=priceset}\n{if $priceset || $priceset == 0}\n{$taxTerm} {$priceset|string_format:\"%.2f\"}%: {$value|crmMoney:$currency}\n{/if}\n{/foreach}\n{/if}\n{/if}\n\n{if !empty($amount) && !$lineItem}\n{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}\n{/foreach}\n{/if}\n\n{if {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount}\n{/if}\n{if {event.is_monetary|boolean}}\n\n{if {contribution.balance_amount|boolean}}{ts}Total Paid{/ts}: {contribution.paid_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n{ts}Balance{/ts}: {contribution.balance_amount}\n{else}{ts}Total Amount{/ts}: {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n{/if}\n\n{if !empty($pricesetFieldsCount) }\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1 }\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if $is_pay_later}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$pay_later_receipt}\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{/if}\n\n{if {participant.register_date|boolean}}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n{if $receive_date}\n{ts}Transaction Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($financialTypeName)}\n{ts}Financial Type{/ts}: {$financialTypeName}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if !empty($paidBy)}\n{ts}Paid By{/ts}: {$paidBy}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n{if !empty($billingName)}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{ts}Billing Name and Address{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customGroup)}\n{foreach from=$customGroup item=value key=customName}\n=========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$customName}\n=========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n {if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n <p>{$event.confirm_email_text}</p>\n {/if}\n\n {if !empty($isOnWaitlist)}\n <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n {elseif !empty($isRequireApproval)}\n <p>{ts}Your registration has been submitted.{/ts}</p>\n <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p>\n {elseif $is_pay_later}\n <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.title}<br />\n {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date}{/if}{/if}\n </td>\n </tr>\n\n {if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {$event.participant_role}\n </td>\n </tr>\n {/if}\n\n {if !empty($isShowLocation)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n\n {if {event.loc_block_id.phone_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {if {event.loc_block_id.phone_2_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_2_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n\n\n {if {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_id.email}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.email_2_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_2_id.email}\n </td>\n </tr>\n {/if}\n\n {/if}\n\n {if {event.is_public|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if $email}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$email}\n </td>\n </tr>\n {/if}\n\n\n {if {event.is_monetary|boolean}}\n\n <tr>\n <th {$headerStyle}>\n {if !empty($event.fee_label)}{$event.fee_label}{/if}\n </th>\n </tr>\n\n {if !empty($lineItem)}\n {foreach from=$lineItem item=value key=priceset}\n {if $value neq \'skip\'}\n {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$priceset+1}Participant %1{/ts}\n </td>\n </tr>\n {/if}\n\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if !empty($dataArray)}\n <th>{ts}SubTotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n {if !empty($pricesetFieldsCount) }<th>{ts}Total Participants{/ts}</th>{/if}\n </tr>\n {foreach from=$value item=line}\n <tr>\n <td>\n {if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:\"...\"}</div>{/if}\n </td>\n <td>\n {$line.qty}\n </td>\n <td>\n {$line.unit_price|crmMoney}\n </td>\n {if !empty($dataArray)}\n <td>\n {$line.unit_price*$line.qty|crmMoney}\n </td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney}\n </td>\n {if !empty($pricesetFieldsCount) }\n <td>\n {$line.participant_count}\n </td>\n {/if}\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/if}\n {/foreach}\n {if !empty($dataArray)}\n {if $totalAmount and $totalTaxAmount}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {$totalAmount-$totalTaxAmount|crmMoney}\n </td>\n </tr>\n {/if}\n {foreach from=$dataArray item=value key=priceset}\n <tr>\n {if $priceset || $priceset == 0}\n <td> {$taxTerm} {$priceset|string_format:\"%.2f\"}%</td>\n <td> {$value|crmMoney:$currency}</td>\n {/if}\n </tr>\n {/foreach}\n {/if}\n {/if}\n\n {if !empty($amount) && !$lineItem}\n {foreach from=$amount item=amnt key=level}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$amnt.amount|crmMoney} {$amnt.label}\n </td>\n </tr>\n {/foreach}\n {/if}\n {if {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n {if {event.is_monetary|boolean}}\n {if {contribution.balance_amount|boolean}}\n <tr>\n <td {$labelStyle}>{ts}Total Paid{/ts}</td>\n <td {$valueStyle}>\n {contribution.paid_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>{ts}Balance{/ts}</td>\n <td {$valueStyle}>{contribution.balance_amount}</td>\n </tr>\n {else}\n <tr>\n <td {$labelStyle}>{ts}Total Amount{/ts}</td>\n <td {$valueStyle}>\n {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n </td>\n </tr>\n {/if}\n {if !empty($pricesetFieldsCount) }\n <tr>\n <td {$labelStyle}>\n {ts}Total Participants{/ts}</td>\n <td {$valueStyle}>\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1 }\n assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n {$count}\n </td>\n </tr>\n {/if}\n {if $is_pay_later}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$pay_later_receipt}\n </td>\n </tr>\n {/if}\n\n {if {participant.register_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {participant.register_date}\n </td>\n </tr>\n {/if}\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($financialTypeName)}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {$financialTypeName}\n </td>\n </tr>\n {/if}\n\n {if !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($paidBy)}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {$paidBy}\n </td>\n </tr>\n {/if}\n\n {if !empty($checkNumber)}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {$checkNumber}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n {/if}\n\n {/if} {* End of conditional section for Paid events *}\n\n {if !empty($customGroup)}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,827,'event_offline_receipt',1,0,0,NULL), - (30,'Events - Registration Confirmation and Receipt (off-line)','{ts}Event Confirmation{/ts} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n{/if}\n\n{if !empty($isOnWaitlist)}\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{elseif !empty($isRequireApproval)}\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{ts}Your registration has been submitted.{/ts}\n\n{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{elseif $is_pay_later}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$pay_later_receipt}\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{/if}\n\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{ts}Event Information and Location{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{event.title}\n{event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date}{/if}{/if}\n\n{if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and empty($defaultRole)}\n{ts}Participant Role{/ts}: {$event.participant_role}\n{/if}\n\n{if !empty($isShowLocation)}\n{$location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n{ts}Event Contacts:{/ts}\n\n{if {event.loc_block_id.phone_id.phone|boolean}}\n{if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n\n{if {event.loc_block_id.phone_2_id.phone|boolean}}\n{if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}{event.loc_block_id.phone_2_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n{/if}\n\n{if {event.loc_block_id.email_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_id.email}\n{/if}\n{if {event.loc_block_id.email_2_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if}\n{/if}\n\n\n{if {event.is_public|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if !empty($email)}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{ts}Registered Email{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$email}\n{/if}\n{if !empty($event.is_monetary)} {* This section for Paid events only.*}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{if !empty($event.fee_label)}{$event.fee_label}{/if}\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if {event.is_monetary|boolean}}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts}\n{/if}\n{/if}\n---------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if}\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if !empty($dataArray)}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{capture assign=ts_participant_total}{if !empty($pricesetFieldsCount) }{ts}Total Participants{/ts}{/if}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if !empty($dataArray)} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if}\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney|string_format:\"%10s\"} {if !empty($dataArray)} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:\"%10s\"} {if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n{/if}\n{/foreach}\n\n{if !empty($dataArray)}\n{if $totalAmount and $totalTaxAmount}\n{ts}Amount before Tax:{/ts} {$totalAmount-$totalTaxAmount|crmMoney:$currency}\n{/if}\n\n{foreach from=$dataArray item=value key=priceset}\n{if $priceset || $priceset == 0}\n{$taxTerm} {$priceset|string_format:\"%.2f\"}%: {$value|crmMoney:$currency}\n{/if}\n{/foreach}\n{/if}\n{/if}\n\n{if !empty($amount) && !$lineItem}\n{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}\n{/foreach}\n{/if}\n\n{if {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount}\n{/if}\n{if {event.is_monetary|boolean}}\n\n{if {contribution.balance_amount|boolean}}{ts}Total Paid{/ts}: {contribution.paid_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n{ts}Balance{/ts}: {contribution.balance_amount}\n{else}{ts}Total Amount{/ts}: {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n{/if}\n\n{if !empty($pricesetFieldsCount) }\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1 }\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if $is_pay_later}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$pay_later_receipt}\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{/if}\n\n{if {participant.register_date|boolean}}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n{if $receive_date}\n{ts}Transaction Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($financialTypeName)}\n{ts}Financial Type{/ts}: {$financialTypeName}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if !empty($paidBy)}\n{ts}Paid By{/ts}: {$paidBy}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n{if !empty($billingName)}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{ts}Billing Name and Address{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customGroup)}\n{foreach from=$customGroup item=value key=customName}\n=========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{$customName}\n=========================================================={if !empty($pricesetFieldsCount) }===================={/if}\n\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n {if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n <p>{$event.confirm_email_text}</p>\n {/if}\n\n {if !empty($isOnWaitlist)}\n <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n {elseif !empty($isRequireApproval)}\n <p>{ts}Your registration has been submitted.{/ts}</p>\n <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p>\n {elseif $is_pay_later}\n <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.title}<br />\n {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date}{/if}{/if}\n </td>\n </tr>\n\n {if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {$event.participant_role}\n </td>\n </tr>\n {/if}\n\n {if !empty($isShowLocation)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n\n {if {event.loc_block_id.phone_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {if {event.loc_block_id.phone_2_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_2_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n\n\n {if {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_id.email}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.email_2_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_2_id.email}\n </td>\n </tr>\n {/if}\n\n {/if}\n\n {if {event.is_public|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if $email}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$email}\n </td>\n </tr>\n {/if}\n\n\n {if {event.is_monetary|boolean}}\n\n <tr>\n <th {$headerStyle}>\n {if !empty($event.fee_label)}{$event.fee_label}{/if}\n </th>\n </tr>\n\n {if !empty($lineItem)}\n {foreach from=$lineItem item=value key=priceset}\n {if $value neq \'skip\'}\n {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$priceset+1}Participant %1{/ts}\n </td>\n </tr>\n {/if}\n\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if !empty($dataArray)}\n <th>{ts}SubTotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n {if !empty($pricesetFieldsCount) }<th>{ts}Total Participants{/ts}</th>{/if}\n </tr>\n {foreach from=$value item=line}\n <tr>\n <td>\n {if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:\"...\"}</div>{/if}\n </td>\n <td>\n {$line.qty}\n </td>\n <td>\n {$line.unit_price|crmMoney}\n </td>\n {if !empty($dataArray)}\n <td>\n {$line.unit_price*$line.qty|crmMoney}\n </td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney}\n </td>\n {if !empty($pricesetFieldsCount) }\n <td>\n {$line.participant_count}\n </td>\n {/if}\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/if}\n {/foreach}\n {if !empty($dataArray)}\n {if $totalAmount and $totalTaxAmount}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {$totalAmount-$totalTaxAmount|crmMoney}\n </td>\n </tr>\n {/if}\n {foreach from=$dataArray item=value key=priceset}\n <tr>\n {if $priceset || $priceset == 0}\n <td> {$taxTerm} {$priceset|string_format:\"%.2f\"}%</td>\n <td> {$value|crmMoney:$currency}</td>\n {/if}\n </tr>\n {/foreach}\n {/if}\n {/if}\n\n {if !empty($amount) && !$lineItem}\n {foreach from=$amount item=amnt key=level}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$amnt.amount|crmMoney} {$amnt.label}\n </td>\n </tr>\n {/foreach}\n {/if}\n {if {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n {if {event.is_monetary|boolean}}\n {if {contribution.balance_amount|boolean}}\n <tr>\n <td {$labelStyle}>{ts}Total Paid{/ts}</td>\n <td {$valueStyle}>\n {contribution.paid_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>{ts}Balance{/ts}</td>\n <td {$valueStyle}>{contribution.balance_amount}</td>\n </tr>\n {else}\n <tr>\n <td {$labelStyle}>{ts}Total Amount{/ts}</td>\n <td {$valueStyle}>\n {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n </td>\n </tr>\n {/if}\n {if !empty($pricesetFieldsCount) }\n <tr>\n <td {$labelStyle}>\n {ts}Total Participants{/ts}</td>\n <td {$valueStyle}>\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1 }\n assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n {$count}\n </td>\n </tr>\n {/if}\n {if $is_pay_later}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$pay_later_receipt}\n </td>\n </tr>\n {/if}\n\n {if {participant.register_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {participant.register_date}\n </td>\n </tr>\n {/if}\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($financialTypeName)}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {$financialTypeName}\n </td>\n </tr>\n {/if}\n\n {if !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($paidBy)}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {$paidBy}\n </td>\n </tr>\n {/if}\n\n {if !empty($checkNumber)}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {$checkNumber}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n {/if}\n\n {/if} {* End of conditional section for Paid events *}\n\n {if !empty($customGroup)}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,827,'event_offline_receipt',0,1,0,NULL), - (31,'Events - Registration Confirmation and Receipt (on-line)','{if !empty($isOnWaitlist)}{ts}Wait List Confirmation{/ts}{elseif !empty($isRequireApproval)}{ts}Registration Request Confirmation{/ts}{else}{ts}Registration Confirmation{/ts}{/if} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n\n{else}\n {ts}Thank you for your registration.{/ts}\n {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to %1.{/ts}\n {else}{if !empty($isOnWaitlist)}{ts}This is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}\n {/if}\n{/if}\n\n{if !empty($isOnWaitlist)}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{if $isPrimary}\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n{/if}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{elseif !empty($isRequireApproval)}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts}Your registration has been submitted.{/ts}\n\n{if $isPrimary}\n{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}\n\n{/if}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{/if}\n\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts}Event Information and Location{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{event.title}\n{event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:\"%A\"} {$event.event_end_date|crmDate}{/if}{/if}\n{if !empty($conference_sessions)}\n\n\n{ts}Your schedule:{/ts}\n{assign var=\'group_by_day\' value=\'NA\'}\n{foreach from=$conference_sessions item=session}\n{if $session.start_date|crmDate:\"%Y/%m/%d\" != $group_by_day|crmDate:\"%Y/%m/%d\"}\n{assign var=\'group_by_day\' value=$session.start_date}\n\n{$group_by_day|crmDate:\"%m/%d/%Y\"}\n\n\n{/if}\n{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}\n{if $session.location} {$session.location}{/if}\n{/foreach}\n{/if}\n\n{if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)}\n{ts}Participant Role{/ts}: {$event.participant_role}\n{/if}\n\n{if !empty($isShowLocation)}\n{$location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n\n{ts}Event Contacts:{/ts}\n{if {event.loc_block_id.phone_id.phone|boolean}}\n {if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n{foreach from=$location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if {event.is_public|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if !empty($payer.name)}\nYou were registered by: {$payer.name}\n{/if}\n{if !empty($event.is_monetary) and empty($isRequireApproval)} {* This section for Paid events only.*}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{if !empty ($event.fee_label)}{$event.fee_label}{/if}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if $isPrimary}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts} {if !empty($part.$priceset)}{$part.$priceset.info}{/if}\n\n{/if}\n{/if}\n-----------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if}\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n-----------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if}\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n----------------------------------------------------------------------------------------------------------------\n{if !empty($individual)}{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%29s\"} {$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%33s\"} {$individual.$priceset.totalAmtWithTax|crmMoney:$currency|string_format:\"%12s\"}{/if}\n{/if}\n{\"\"|string_format:\"%120s\"}\n{/foreach}\n{\"\"|string_format:\"%120s\"}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n{if !$isPrimary}{* Use the participant specific tax rate breakdown *}{assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n{/if}\n\n{if !empty($amounts) && empty($lineItem)}\n{foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}\n{/foreach}\n{/if}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n{/if}\n{if $isPrimary}\n\n{ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n\n{if !empty($pricesetFieldsCount) }\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1 }\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$register_date|crmDate}\n{/if}\n{if !empty($receive_date)}\n{ts}Transaction Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($financialTypeName)}\n{ts}Financial Type{/ts}: {$financialTypeName}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if !empty($paidBy)}\n{ts}Paid By{/ts}: {$paidBy}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n{if !empty($billingName)}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts}Billing Name and Address{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts}Credit Card Information{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customPre)}\n{foreach from=$customPre item=customPr key=i}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{$customPre_grouptitle.$i}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{foreach from=$customPr item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customPost)}\n{foreach from=$customPost item=customPos key=j}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{$customPost_grouptitle.$j}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{foreach from=$customPos item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($customProfile)}\n\n{foreach from=$customProfile.profile item=eachParticipant key=participantID}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts 1=$participantID+2}Participant Information - Participant %1{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{foreach from=$eachParticipant item=eachProfile key=pid}\n----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if}\n\n{$customProfile.title.$pid}\n----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if}\n\n{foreach from=$eachProfile item=val key=field}\n{foreach from=$val item=v key=f}\n{$field}: {$v}\n{/foreach}\n{/foreach}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($event.allow_selfcancelxfer) }\n{ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotal}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n <p>{event.confirm_email_text}</p>\n\n {else}\n <p>{ts}Thank you for your registration.{/ts}\n {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to <strong> %1</strong>.{/ts}\n {else}{if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>waitlisted</strong>.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}{/if}{/if}</p>\n\n {/if}\n\n <p>\n {if !empty($isOnWaitlist)}\n <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n {if $isPrimary}\n <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n {/if}\n {elseif !empty($isRequireApproval)}\n <p>{ts}Your registration has been submitted.{/ts}</p>\n {if $isPrimary}\n <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p>\n {/if}\n {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)}\n <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.title}<br />\n {event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date|crmDate:\"%A\"} {event.end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n\n\n {if $conference_sessions}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Your schedule:{/ts}\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {assign var=\'group_by_day\' value=\'NA\'}\n {foreach from=$conference_sessions item=session}\n {if $session.start_date|crmDate:\"%Y/%m/%d\" != $group_by_day|crmDate:\"%Y/%m/%d\"}\n {assign var=\'group_by_day\' value=$session.start_date}\n <em>{$group_by_day|crmDate:\"%m/%d/%Y\"}</em><br />\n {/if}\n {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />\n {if $session.location} {$session.location}<br />{/if}\n {/foreach}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {$event.participant_role}\n </td>\n </tr>\n {/if}\n\n {if !empty($isShowLocation)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($location.phone.1.phone) || !empty($location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}\n {$phone.phone_type_display}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if {event.is_public|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if $event.is_share}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q=\"id={event.id}&reset=1\" a=true fe=1 h=1}{/capture}\n {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'}\n </td>\n </tr>\n {/if}\n {if !empty($payer.name)}\n <tr>\n <th {$headerStyle}>\n {ts}You were registered by:{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$payer.name}\n </td>\n </tr>\n {/if}\n {if {event.is_monetary|boolean} and empty($isRequireApproval)}\n\n <tr>\n <th {$headerStyle}>\n {event.fee_label}\n </th>\n </tr>\n\n {if $isShowLineItems}\n {foreach from=$participants key=index item=participant}\n {if $isPrimary || {participant.id} === $participant.id}\n {if $isPrimary && $lineItems|@count GT 1} {* Header for multi participant registration cases. *}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$participant.index}Participant %1{/ts} {$participant.contact.display_name}\n </td>\n </tr>\n {/if}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n {if !empty($pricesetFieldsCount)}<th>{ts}Total Participants{/ts}</th>{/if}\n </tr>\n {foreach from=$participant.line_items item=line}\n <tr>\n <td {$tdfirstStyle}>{$line.title}</td>\n <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n <td>{$line.tax_amount|crmMoney:$currency}</td>\n {else}\n <td></td>\n <td></td>\n {/if}\n <td {$tdStyle}>\n {$line.line_total+$line.tax_amount|crmMoney:$currency}\n </td>\n {if !empty($pricesetFieldsCount)}<td {$tdStyle}>{$line.participant_count}</td> {/if}\n </tr>\n {/foreach}\n {if $isShowTax}\n <tr {$participantTotal}>\n <td colspan=3>{ts}Participant Total{/ts}</td>\n <td colspan=2>{$participant.totals.total_amount_exclusive|crmMoney}</td>\n <td colspan=1>{$participant.totals.tax_amount|crmMoney}</td>\n <td colspan=2>{$participant.totals.total_amount_inclusive|crmMoney}</td>\n </tr>\n {/if}\n </table>\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n </td>\n </tr>\n\n {if !$isPrimary}\n {* Use the participant specific tax rate breakdown *}\n {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n {/if}\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($amounts) && empty($lineItem)}\n {foreach from=$amounts item=amnt key=level}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$amnt.amount|crmMoney:$currency} {$amnt.label}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n </td>\n </tr>\n {/if}\n {if $isPrimary}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n </td>\n </tr>\n {if !empty($pricesetFieldsCount) }\n <tr>\n <td {$labelStyle}>\n {ts}Total Participants{/ts}</td>\n <td {$valueStyle}>\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1 }\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n {$count}\n </td> </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($financialTypeName)}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {$financialTypeName}\n </td>\n </tr>\n {/if}\n\n {if !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($paidBy)}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {$paidBy}\n </td>\n </tr>\n {/if}\n\n {if !empty($checkNumber)}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {$checkNumber}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n {/if}\n\n {/if} {* End of conditional section for Paid events *}\n\n\n{if !empty($customPre)}\n{foreach from=$customPre item=customPr key=i}\n <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>\n {foreach from=$customPr item=customValue key=customName}\n <tr>\n <td {$labelStyle}>{$customName}</td>\n <td {$valueStyle}>{$customValue}</td>\n </tr>\n {/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customPost)}\n{foreach from=$customPost item=customPos key=j}\n <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>\n {foreach from=$customPos item=customValue key=customName}\n <tr>\n <td {$labelStyle}>{$customName}</td>\n <td {$valueStyle}>{$customValue}</td>\n </tr>\n {/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customProfile)}\n{foreach from=$customProfile.profile item=eachParticipant key=participantID}\n <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr>\n {foreach from=$eachParticipant item=eachProfile key=pid}\n <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr>\n {foreach from=$eachProfile item=val key=field}\n <tr>{foreach from=$val item=v key=f}\n <td {$labelStyle}>{$field}</td>\n <td {$valueStyle}>{$v}</td>\n {/foreach}\n </tr>\n {/foreach}\n{/foreach}\n{/foreach}\n{/if}\n\n </table>\n {if !empty($event.allow_selfcancelxfer) }\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}<br />\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`{participant.id}`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n </td>\n </tr>\n {/if}\n </table>\n\n</body>\n</html>\n',1,828,'event_online_receipt',1,0,0,NULL), - (32,'Events - Registration Confirmation and Receipt (on-line)','{if !empty($isOnWaitlist)}{ts}Wait List Confirmation{/ts}{elseif !empty($isRequireApproval)}{ts}Registration Request Confirmation{/ts}{else}{ts}Registration Confirmation{/ts}{/if} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n\n{else}\n {ts}Thank you for your registration.{/ts}\n {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to %1.{/ts}\n {else}{if !empty($isOnWaitlist)}{ts}This is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}\n {/if}\n{/if}\n\n{if !empty($isOnWaitlist)}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{if $isPrimary}\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n{/if}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{elseif !empty($isRequireApproval)}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts}Your registration has been submitted.{/ts}\n\n{if $isPrimary}\n{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}\n\n{/if}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{/if}\n\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts}Event Information and Location{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{event.title}\n{event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:\"%A\"} {$event.event_end_date|crmDate}{/if}{/if}\n{if !empty($conference_sessions)}\n\n\n{ts}Your schedule:{/ts}\n{assign var=\'group_by_day\' value=\'NA\'}\n{foreach from=$conference_sessions item=session}\n{if $session.start_date|crmDate:\"%Y/%m/%d\" != $group_by_day|crmDate:\"%Y/%m/%d\"}\n{assign var=\'group_by_day\' value=$session.start_date}\n\n{$group_by_day|crmDate:\"%m/%d/%Y\"}\n\n\n{/if}\n{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}\n{if $session.location} {$session.location}{/if}\n{/foreach}\n{/if}\n\n{if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)}\n{ts}Participant Role{/ts}: {$event.participant_role}\n{/if}\n\n{if !empty($isShowLocation)}\n{$location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n\n{ts}Event Contacts:{/ts}\n{if {event.loc_block_id.phone_id.phone|boolean}}\n {if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n{foreach from=$location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if {event.is_public|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if !empty($payer.name)}\nYou were registered by: {$payer.name}\n{/if}\n{if !empty($event.is_monetary) and empty($isRequireApproval)} {* This section for Paid events only.*}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{if !empty ($event.fee_label)}{$event.fee_label}{/if}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if $isPrimary}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts} {if !empty($part.$priceset)}{$part.$priceset.info}{/if}\n\n{/if}\n{/if}\n-----------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if}\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n-----------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if}\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n----------------------------------------------------------------------------------------------------------------\n{if !empty($individual)}{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%29s\"} {$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%33s\"} {$individual.$priceset.totalAmtWithTax|crmMoney:$currency|string_format:\"%12s\"}{/if}\n{/if}\n{\"\"|string_format:\"%120s\"}\n{/foreach}\n{\"\"|string_format:\"%120s\"}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n{if !$isPrimary}{* Use the participant specific tax rate breakdown *}{assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n{/if}\n\n{if !empty($amounts) && empty($lineItem)}\n{foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}\n{/foreach}\n{/if}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n{/if}\n{if $isPrimary}\n\n{ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n\n{if !empty($pricesetFieldsCount) }\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1 }\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$register_date|crmDate}\n{/if}\n{if !empty($receive_date)}\n{ts}Transaction Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($financialTypeName)}\n{ts}Financial Type{/ts}: {$financialTypeName}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if !empty($paidBy)}\n{ts}Paid By{/ts}: {$paidBy}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n{if !empty($billingName)}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts}Billing Name and Address{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts}Credit Card Information{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customPre)}\n{foreach from=$customPre item=customPr key=i}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{$customPre_grouptitle.$i}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{foreach from=$customPr item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customPost)}\n{foreach from=$customPost item=customPos key=j}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{$customPost_grouptitle.$j}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{foreach from=$customPos item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($customProfile)}\n\n{foreach from=$customProfile.profile item=eachParticipant key=participantID}\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{ts 1=$participantID+2}Participant Information - Participant %1{/ts}\n\n==========================================================={if !empty($pricesetFieldsCount)}===================={/if}\n\n{foreach from=$eachParticipant item=eachProfile key=pid}\n----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if}\n\n{$customProfile.title.$pid}\n----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if}\n\n{foreach from=$eachProfile item=val key=field}\n{foreach from=$val item=v key=f}\n{$field}: {$v}\n{/foreach}\n{/foreach}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($event.allow_selfcancelxfer) }\n{ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotal}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n <p>{event.confirm_email_text}</p>\n\n {else}\n <p>{ts}Thank you for your registration.{/ts}\n {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to <strong> %1</strong>.{/ts}\n {else}{if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>waitlisted</strong>.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}{/if}{/if}</p>\n\n {/if}\n\n <p>\n {if !empty($isOnWaitlist)}\n <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n {if $isPrimary}\n <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n {/if}\n {elseif !empty($isRequireApproval)}\n <p>{ts}Your registration has been submitted.{/ts}</p>\n {if $isPrimary}\n <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p>\n {/if}\n {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)}\n <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.title}<br />\n {event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date|crmDate:\"%A\"} {event.end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n\n\n {if $conference_sessions}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Your schedule:{/ts}\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {assign var=\'group_by_day\' value=\'NA\'}\n {foreach from=$conference_sessions item=session}\n {if $session.start_date|crmDate:\"%Y/%m/%d\" != $group_by_day|crmDate:\"%Y/%m/%d\"}\n {assign var=\'group_by_day\' value=$session.start_date}\n <em>{$group_by_day|crmDate:\"%m/%d/%Y\"}</em><br />\n {/if}\n {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />\n {if $session.location} {$session.location}<br />{/if}\n {/foreach}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.participant_role) and $event.participant_role neq \'Attendee\' and !empty($defaultRole)}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {$event.participant_role}\n </td>\n </tr>\n {/if}\n\n {if !empty($isShowLocation)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($location.phone.1.phone) || !empty($location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}\n {$phone.phone_type_display}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if {event.is_public|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if $event.is_share}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q=\"id={event.id}&reset=1\" a=true fe=1 h=1}{/capture}\n {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'}\n </td>\n </tr>\n {/if}\n {if !empty($payer.name)}\n <tr>\n <th {$headerStyle}>\n {ts}You were registered by:{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$payer.name}\n </td>\n </tr>\n {/if}\n {if {event.is_monetary|boolean} and empty($isRequireApproval)}\n\n <tr>\n <th {$headerStyle}>\n {event.fee_label}\n </th>\n </tr>\n\n {if $isShowLineItems}\n {foreach from=$participants key=index item=participant}\n {if $isPrimary || {participant.id} === $participant.id}\n {if $isPrimary && $lineItems|@count GT 1} {* Header for multi participant registration cases. *}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$participant.index}Participant %1{/ts} {$participant.contact.display_name}\n </td>\n </tr>\n {/if}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n {if !empty($pricesetFieldsCount)}<th>{ts}Total Participants{/ts}</th>{/if}\n </tr>\n {foreach from=$participant.line_items item=line}\n <tr>\n <td {$tdfirstStyle}>{$line.title}</td>\n <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n <td>{$line.tax_amount|crmMoney:$currency}</td>\n {else}\n <td></td>\n <td></td>\n {/if}\n <td {$tdStyle}>\n {$line.line_total+$line.tax_amount|crmMoney:$currency}\n </td>\n {if !empty($pricesetFieldsCount)}<td {$tdStyle}>{$line.participant_count}</td> {/if}\n </tr>\n {/foreach}\n {if $isShowTax}\n <tr {$participantTotal}>\n <td colspan=3>{ts}Participant Total{/ts}</td>\n <td colspan=2>{$participant.totals.total_amount_exclusive|crmMoney}</td>\n <td colspan=1>{$participant.totals.tax_amount|crmMoney}</td>\n <td colspan=2>{$participant.totals.total_amount_inclusive|crmMoney}</td>\n </tr>\n {/if}\n </table>\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n </td>\n </tr>\n\n {if !$isPrimary}\n {* Use the participant specific tax rate breakdown *}\n {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n {/if}\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($amounts) && empty($lineItem)}\n {foreach from=$amounts item=amnt key=level}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$amnt.amount|crmMoney:$currency} {$amnt.label}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n </td>\n </tr>\n {/if}\n {if $isPrimary}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n </td>\n </tr>\n {if !empty($pricesetFieldsCount) }\n <tr>\n <td {$labelStyle}>\n {ts}Total Participants{/ts}</td>\n <td {$valueStyle}>\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1 }\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n {$count}\n </td> </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($financialTypeName)}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {$financialTypeName}\n </td>\n </tr>\n {/if}\n\n {if !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($paidBy)}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {$paidBy}\n </td>\n </tr>\n {/if}\n\n {if !empty($checkNumber)}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {$checkNumber}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n {/if}\n\n {/if} {* End of conditional section for Paid events *}\n\n\n{if !empty($customPre)}\n{foreach from=$customPre item=customPr key=i}\n <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>\n {foreach from=$customPr item=customValue key=customName}\n <tr>\n <td {$labelStyle}>{$customName}</td>\n <td {$valueStyle}>{$customValue}</td>\n </tr>\n {/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customPost)}\n{foreach from=$customPost item=customPos key=j}\n <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>\n {foreach from=$customPos item=customValue key=customName}\n <tr>\n <td {$labelStyle}>{$customName}</td>\n <td {$valueStyle}>{$customValue}</td>\n </tr>\n {/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customProfile)}\n{foreach from=$customProfile.profile item=eachParticipant key=participantID}\n <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr>\n {foreach from=$eachParticipant item=eachProfile key=pid}\n <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr>\n {foreach from=$eachProfile item=val key=field}\n <tr>{foreach from=$val item=v key=f}\n <td {$labelStyle}>{$field}</td>\n <td {$valueStyle}>{$v}</td>\n {/foreach}\n </tr>\n {/foreach}\n{/foreach}\n{/foreach}\n{/if}\n\n </table>\n {if !empty($event.allow_selfcancelxfer) }\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}<br />\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`{participant.id}`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n </td>\n </tr>\n {/if}\n </table>\n\n</body>\n</html>\n',1,828,'event_online_receipt',0,1,0,NULL), - (33,'Events - Receipt only','Receipt for {if $events_in_cart} Event Registration{/if} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $is_pay_later}\n This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.\n{else}\n This is being sent to you as a {if !empty($is_refund)}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.\n{/if}\n\n{if $is_pay_later}\n {$pay_later_receipt}\n{/if}\n\n Your order number is #{$transaction_id}. {if !empty($line_items) && empty($is_refund)} Information about the workshops will be sent separately to each participant.{/if}\n Here\'s a summary of your transaction placed on {$transaction_date|crmDate:\"%D %I:%M %p %Z\"}:\n\n{if $billing_name}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billing_name}\n\n{$billing_street_address}\n\n{$billing_city}, {$billing_state} {$billing_postal_code}\n\n{$email}\n{/if}\n\n{if !empty($source)}\n{$source}\n{/if}\n\n\n{foreach from=$line_items item=line_item}\n{$line_item.event->title} ({$line_item.event->start_date|crmDate:\"%D\"})\n{if $line_item.event->is_show_location}\n {$line_item.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n{$line_item.event->start_date|crmDate:\"%D %I:%M %p\"} - {$line_item.event->end_date|crmDate:\"%I:%M %p\"}\n\n Quantity: {$line_item.num_participants}\n\n{if $line_item.num_participants > 0}\n {foreach from=$line_item.participants item=participant}\n {$participant.display_name}\n {/foreach}\n{/if}\n{if $line_item.num_waiting_participants > 0}\n Waitlisted:\n {foreach from=$line_item.waiting_participants item=participant}\n {$participant.display_name}\n {/foreach}\n{/if}\nCost: {$line_item.cost|crmMoney:$currency|string_format:\"%10s\"}\nTotal For This Event: {$line_item.amount|crmMoney:$currency|string_format:\"%10s\"}\n\n{/foreach}\n\n{if $discounts}\nSubtotal: {$sub_total|crmMoney:$currency|string_format:\"%10s\"}\n--------------------------------------\nDiscounts\n{foreach from=$discounts key=myId item=i}\n {$i.title}: -{$i.amount|crmMoney:$currency|string_format:\"%10s\"}\n{/foreach}\n{/if}\n======================================\nTotal: {$total|crmMoney:$currency|string_format:\"%10s\"}\n\n{if $credit_card_type}\n===========================================================\n{ts}Payment Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}\n{/if}\n\n If you have questions about the status of your registration or purchase please feel free to contact us.\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n </head>\n <body>\n {capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n {capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n {capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $is_pay_later}\n <p>\n This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.\n </p>\n {else}\n <p>\n This is being sent to you as a {if !empty($is_refund)}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.\n </p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p>\n {/if}\n\n <p>Your order number is #{$transaction_id}. {if !empty($line_items) && empty($is_refund)} Information about the workshops will be sent separately to each participant.{/if}\n Here\'s a summary of your transaction placed on {$transaction_date|crmDate:\"%D %I:%M %p %Z\"}:</p>\n\n{if $billing_name}\n <table class=\"billing-info\">\n <tr>\n <th style=\"text-align: left;\">\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td>\n {$billing_name}<br />\n {$billing_street_address}<br />\n {$billing_city}, {$billing_state} {$billing_postal_code}<br/>\n <br/>\n {$email}\n </td>\n </tr>\n </table>\n{/if}\n{if $credit_card_type}\n <p> </p>\n <table class=\"billing-info\">\n <tr>\n <th style=\"text-align: left;\">\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}\n </td>\n </tr>\n </table>\n{/if}\n{if !empty($source)}\n <p> </p>\n {$source}\n{/if}\n <p> </p>\n <table width=\"700\">\n <thead>\n <tr>\n{if $line_items}\n <th style=\"text-align: left;\">\n Event\n </th>\n <th style=\"text-align: left;\">\n Participants\n </th>\n{/if}\n <th style=\"text-align: left;\">\n Price\n </th>\n <th style=\"text-align: left;\">\n Total\n </th>\n </tr>\n </thead>\n <tbody>\n {foreach from=$line_items item=line_item}\n <tr>\n <td style=\"width: 220px\">\n {$line_item.event->title} ({$line_item.event->start_date|crmDate:\"%D\"})<br />\n {if $line_item.event->is_show_location}\n {$line_item.location.address.1.display|nl2br}\n {/if}{*End of isShowLocation condition*}<br /><br />\n {$line_item.event->start_date|crmDate:\"%D %I:%M %p\"} - {$line_item.event->end_date|crmDate:\"%I:%M %p\"}\n </td>\n <td style=\"width: 180px\">\n {$line_item.num_participants}\n {if $line_item.num_participants > 0}\n <div class=\"participants\" style=\"padding-left: 10px;\">\n {foreach from=$line_item.participants item=participant}\n {$participant.display_name}<br />\n {/foreach}\n </div>\n {/if}\n {if $line_item.num_waiting_participants > 0}\n Waitlisted:<br/>\n <div class=\"participants\" style=\"padding-left: 10px;\">\n {foreach from=$line_item.waiting_participants item=participant}\n {$participant.display_name}<br />\n {/foreach}\n </div>\n {/if}\n </td>\n <td style=\"width: 100px\">\n {$line_item.cost|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n <td style=\"width: 100px\">\n {$line_item.amount|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n </tr>\n {/foreach}\n </tbody>\n <tfoot>\n {if $discounts}\n <tr>\n <td>\n </td>\n <td>\n </td>\n <td>\n Subtotal:\n </td>\n <td>\n {$sub_total|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n </tr>\n {foreach from=$discounts key=myId item=i}\n <tr>\n <td>\n {$i.title}\n </td>\n <td>\n </td>\n <td>\n </td>\n <td>\n -{$i.amount}\n </td>\n </tr>\n {/foreach}\n {/if}\n <tr>\n{if $line_items}\n <td>\n </td>\n <td>\n </td>\n{/if}\n <td>\n <strong>Total:</strong>\n </td>\n <td>\n <strong> {$total|crmMoney:$currency|string_format:\"%10s\"}</strong>\n </td>\n </tr>\n </tfoot>\n </table>\n\n If you have questions about the status of your registration or purchase please feel free to contact us.\n </body>\n</html>\n',1,829,'event_registration_receipt',1,0,0,NULL), - (34,'Events - Receipt only','Receipt for {if $events_in_cart} Event Registration{/if} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $is_pay_later}\n This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.\n{else}\n This is being sent to you as a {if !empty($is_refund)}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.\n{/if}\n\n{if $is_pay_later}\n {$pay_later_receipt}\n{/if}\n\n Your order number is #{$transaction_id}. {if !empty($line_items) && empty($is_refund)} Information about the workshops will be sent separately to each participant.{/if}\n Here\'s a summary of your transaction placed on {$transaction_date|crmDate:\"%D %I:%M %p %Z\"}:\n\n{if $billing_name}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billing_name}\n\n{$billing_street_address}\n\n{$billing_city}, {$billing_state} {$billing_postal_code}\n\n{$email}\n{/if}\n\n{if !empty($source)}\n{$source}\n{/if}\n\n\n{foreach from=$line_items item=line_item}\n{$line_item.event->title} ({$line_item.event->start_date|crmDate:\"%D\"})\n{if $line_item.event->is_show_location}\n {$line_item.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n{$line_item.event->start_date|crmDate:\"%D %I:%M %p\"} - {$line_item.event->end_date|crmDate:\"%I:%M %p\"}\n\n Quantity: {$line_item.num_participants}\n\n{if $line_item.num_participants > 0}\n {foreach from=$line_item.participants item=participant}\n {$participant.display_name}\n {/foreach}\n{/if}\n{if $line_item.num_waiting_participants > 0}\n Waitlisted:\n {foreach from=$line_item.waiting_participants item=participant}\n {$participant.display_name}\n {/foreach}\n{/if}\nCost: {$line_item.cost|crmMoney:$currency|string_format:\"%10s\"}\nTotal For This Event: {$line_item.amount|crmMoney:$currency|string_format:\"%10s\"}\n\n{/foreach}\n\n{if $discounts}\nSubtotal: {$sub_total|crmMoney:$currency|string_format:\"%10s\"}\n--------------------------------------\nDiscounts\n{foreach from=$discounts key=myId item=i}\n {$i.title}: -{$i.amount|crmMoney:$currency|string_format:\"%10s\"}\n{/foreach}\n{/if}\n======================================\nTotal: {$total|crmMoney:$currency|string_format:\"%10s\"}\n\n{if $credit_card_type}\n===========================================================\n{ts}Payment Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}\n{/if}\n\n If you have questions about the status of your registration or purchase please feel free to contact us.\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n </head>\n <body>\n {capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n {capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n {capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $is_pay_later}\n <p>\n This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.\n </p>\n {else}\n <p>\n This is being sent to you as a {if !empty($is_refund)}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.\n </p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p>\n {/if}\n\n <p>Your order number is #{$transaction_id}. {if !empty($line_items) && empty($is_refund)} Information about the workshops will be sent separately to each participant.{/if}\n Here\'s a summary of your transaction placed on {$transaction_date|crmDate:\"%D %I:%M %p %Z\"}:</p>\n\n{if $billing_name}\n <table class=\"billing-info\">\n <tr>\n <th style=\"text-align: left;\">\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td>\n {$billing_name}<br />\n {$billing_street_address}<br />\n {$billing_city}, {$billing_state} {$billing_postal_code}<br/>\n <br/>\n {$email}\n </td>\n </tr>\n </table>\n{/if}\n{if $credit_card_type}\n <p> </p>\n <table class=\"billing-info\">\n <tr>\n <th style=\"text-align: left;\">\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}\n </td>\n </tr>\n </table>\n{/if}\n{if !empty($source)}\n <p> </p>\n {$source}\n{/if}\n <p> </p>\n <table width=\"700\">\n <thead>\n <tr>\n{if $line_items}\n <th style=\"text-align: left;\">\n Event\n </th>\n <th style=\"text-align: left;\">\n Participants\n </th>\n{/if}\n <th style=\"text-align: left;\">\n Price\n </th>\n <th style=\"text-align: left;\">\n Total\n </th>\n </tr>\n </thead>\n <tbody>\n {foreach from=$line_items item=line_item}\n <tr>\n <td style=\"width: 220px\">\n {$line_item.event->title} ({$line_item.event->start_date|crmDate:\"%D\"})<br />\n {if $line_item.event->is_show_location}\n {$line_item.location.address.1.display|nl2br}\n {/if}{*End of isShowLocation condition*}<br /><br />\n {$line_item.event->start_date|crmDate:\"%D %I:%M %p\"} - {$line_item.event->end_date|crmDate:\"%I:%M %p\"}\n </td>\n <td style=\"width: 180px\">\n {$line_item.num_participants}\n {if $line_item.num_participants > 0}\n <div class=\"participants\" style=\"padding-left: 10px;\">\n {foreach from=$line_item.participants item=participant}\n {$participant.display_name}<br />\n {/foreach}\n </div>\n {/if}\n {if $line_item.num_waiting_participants > 0}\n Waitlisted:<br/>\n <div class=\"participants\" style=\"padding-left: 10px;\">\n {foreach from=$line_item.waiting_participants item=participant}\n {$participant.display_name}<br />\n {/foreach}\n </div>\n {/if}\n </td>\n <td style=\"width: 100px\">\n {$line_item.cost|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n <td style=\"width: 100px\">\n {$line_item.amount|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n </tr>\n {/foreach}\n </tbody>\n <tfoot>\n {if $discounts}\n <tr>\n <td>\n </td>\n <td>\n </td>\n <td>\n Subtotal:\n </td>\n <td>\n {$sub_total|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n </tr>\n {foreach from=$discounts key=myId item=i}\n <tr>\n <td>\n {$i.title}\n </td>\n <td>\n </td>\n <td>\n </td>\n <td>\n -{$i.amount}\n </td>\n </tr>\n {/foreach}\n {/if}\n <tr>\n{if $line_items}\n <td>\n </td>\n <td>\n </td>\n{/if}\n <td>\n <strong>Total:</strong>\n </td>\n <td>\n <strong> {$total|crmMoney:$currency|string_format:\"%10s\"}</strong>\n </td>\n </tr>\n </tfoot>\n </table>\n\n If you have questions about the status of your registration or purchase please feel free to contact us.\n </body>\n</html>\n',1,829,'event_registration_receipt',0,1,0,NULL), - (35,'Events - Registration Cancellation Notice','{ts 1=$event.event_title}Event Registration Cancelled for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Your Event Registration has been cancelled.{/ts}\n\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"shortdate\" == $event.event_start_date|crmDate:\"shortdate\"}{$event.event_end_date|crmDate:\"Time\"}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {participant.role_id:label}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if !empty(\'{participant.register_date}\')}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Your Event Registration has been cancelled.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"shortdate\" == $event.event_start_date|crmDate:\"shortdate\"}{$event.event_end_date|crmDate:\"Time\"}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {participant.role_id:label}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if !empty(\'{participant.register_date}\')}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {participant.register_date}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,830,'participant_cancelled',1,0,0,NULL), - (36,'Events - Registration Cancellation Notice','{ts 1=$event.event_title}Event Registration Cancelled for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Your Event Registration has been cancelled.{/ts}\n\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"shortdate\" == $event.event_start_date|crmDate:\"shortdate\"}{$event.event_end_date|crmDate:\"Time\"}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {participant.role_id:label}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if !empty(\'{participant.register_date}\')}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Your Event Registration has been cancelled.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"shortdate\" == $event.event_start_date|crmDate:\"shortdate\"}{$event.event_end_date|crmDate:\"Time\"}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {participant.role_id:label}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if !empty(\'{participant.register_date}\')}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {participant.register_date}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,830,'participant_cancelled',0,1,0,NULL), - (37,'Events - Registration Confirmation Invite','{ts 1=$event.event_title}Confirm your registration for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}\n\n{if !$isAdditional and $participant.id}\n\n===========================================================\n{ts}Confirm Your Registration{/ts}\n\n===========================================================\n{capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q=\"reset=1&participantId=`$participant.id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\nClick this link to go to a web page where you can confirm your registration online:\n{$confirmUrl}\n{/if}\n{if $event.allow_selfcancelxfer }\n{ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n{if $conference_sessions}\n\n\n{ts}Your schedule:{/ts}\n{assign var=\'group_by_day\' value=\'NA\'}\n{foreach from=$conference_sessions item=session}\n{if $session.start_date|crmDate:\"%Y/%m/%d\" != $group_by_day|crmDate:\"%Y/%m/%d\"}\n{assign var=\'group_by_day\' value=$session.start_date}\n\n{$group_by_day|crmDate:\"%m/%d/%Y\"}\n\n\n{/if}\n{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}\n{if $session.location} {$session.location}{/if}\n{/foreach}\n{/if}\n\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if $event.location.phone.1.phone || $event.location.email.1.email}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if $event.is_public}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}</p>\n </td>\n </tr>\n {if !$isAdditional and $participant.id}\n <tr>\n <th {$headerStyle}>\n {ts}Confirm Your Registration{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q=\"reset=1&participantId=`$participant.id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\n <a href=\"{$confirmUrl}\">{ts}Click here to confirm and complete your registration{/ts}</a>\n </td>\n </tr>\n {/if}\n {if $event.allow_selfcancelxfer }\n {ts}This event allows for{/ts}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\"> {ts}self service cancel or transfer{/ts}</a>\n {/if}\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n {if $conference_sessions}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Your schedule:{/ts}\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {assign var=\'group_by_day\' value=\'NA\'}\n {foreach from=$conference_sessions item=session}\n {if $session.start_date|crmDate:\"%Y/%m/%d\" != $group_by_day|crmDate:\"%Y/%m/%d\"}\n {assign var=\'group_by_day\' value=$session.start_date}\n <em>{$group_by_day|crmDate:\"%m/%d/%Y\"}</em><br />\n {/if}\n {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />\n {if $session.location} {$session.location}<br />{/if}\n {/foreach}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if $event.location.phone.1.phone || $event.location.email.1.email}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if $event.is_public}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n {if $event.allow_selfcancelxfer }\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}<br />\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n </td>\n </tr>\n {/if}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,831,'participant_confirm',1,0,0,NULL), - (38,'Events - Registration Confirmation Invite','{ts 1=$event.event_title}Confirm your registration for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}\n\n{if !$isAdditional and $participant.id}\n\n===========================================================\n{ts}Confirm Your Registration{/ts}\n\n===========================================================\n{capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q=\"reset=1&participantId=`$participant.id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\nClick this link to go to a web page where you can confirm your registration online:\n{$confirmUrl}\n{/if}\n{if $event.allow_selfcancelxfer }\n{ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n{if $conference_sessions}\n\n\n{ts}Your schedule:{/ts}\n{assign var=\'group_by_day\' value=\'NA\'}\n{foreach from=$conference_sessions item=session}\n{if $session.start_date|crmDate:\"%Y/%m/%d\" != $group_by_day|crmDate:\"%Y/%m/%d\"}\n{assign var=\'group_by_day\' value=$session.start_date}\n\n{$group_by_day|crmDate:\"%m/%d/%Y\"}\n\n\n{/if}\n{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}\n{if $session.location} {$session.location}{/if}\n{/foreach}\n{/if}\n\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if $event.location.phone.1.phone || $event.location.email.1.email}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if $event.is_public}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}</p>\n </td>\n </tr>\n {if !$isAdditional and $participant.id}\n <tr>\n <th {$headerStyle}>\n {ts}Confirm Your Registration{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q=\"reset=1&participantId=`$participant.id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\n <a href=\"{$confirmUrl}\">{ts}Click here to confirm and complete your registration{/ts}</a>\n </td>\n </tr>\n {/if}\n {if $event.allow_selfcancelxfer }\n {ts}This event allows for{/ts}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\"> {ts}self service cancel or transfer{/ts}</a>\n {/if}\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n {if $conference_sessions}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Your schedule:{/ts}\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {assign var=\'group_by_day\' value=\'NA\'}\n {foreach from=$conference_sessions item=session}\n {if $session.start_date|crmDate:\"%Y/%m/%d\" != $group_by_day|crmDate:\"%Y/%m/%d\"}\n {assign var=\'group_by_day\' value=$session.start_date}\n <em>{$group_by_day|crmDate:\"%m/%d/%Y\"}</em><br />\n {/if}\n {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />\n {if $session.location} {$session.location}<br />{/if}\n {/foreach}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if $event.location.phone.1.phone || $event.location.email.1.email}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if $event.is_public}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n {if $event.allow_selfcancelxfer }\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}<br />\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n </td>\n </tr>\n {/if}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,831,'participant_confirm',0,1,0,NULL), - (39,'Events - Pending Registration Expiration Notice','{ts 1=$event.event_title}Event registration has expired for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$event.event_title}Your pending event registration for %1 has expired\nbecause you did not confirm your registration.{/ts}\n\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor want to inquire about reinstating your registration for this event.{/ts}\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$event.event_title}Your pending event registration for %1 has expired\nbecause you did not confirm your registration.{/ts}</p>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor want to inquire about reinstating your registration for this event.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,832,'participant_expired',1,0,0,NULL), - (40,'Events - Pending Registration Expiration Notice','{ts 1=$event.event_title}Event registration has expired for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$event.event_title}Your pending event registration for %1 has expired\nbecause you did not confirm your registration.{/ts}\n\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor want to inquire about reinstating your registration for this event.{/ts}\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$event.event_title}Your pending event registration for %1 has expired\nbecause you did not confirm your registration.{/ts}</p>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor want to inquire about reinstating your registration for this event.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,832,'participant_expired',0,1,0,NULL), - (41,'Events - Registration Transferred Notice','{ts 1=$event.event_title}Event Registration Transferred for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$to_participant}Your Event Registration has been transferred to %1.{/ts}\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$to_participant}Your Event Registration has been Transferred to %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,833,'participant_transferred',1,0,0,NULL), - (42,'Events - Registration Transferred Notice','{ts 1=$event.event_title}Event Registration Transferred for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$to_participant}Your Event Registration has been transferred to %1.{/ts}\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$to_participant}Your Event Registration has been Transferred to %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,833,'participant_transferred',0,1,0,NULL), - (43,'Tell-a-Friend Email','{ts 1=$senderContactName 2=$title}%1 wants you to know about %2{/ts}\n','{$senderMessage}\n\n{if $generalLink}{ts}For more information, visit:{/ts}\n>> {$generalLink}\n\n{/if}\n{if $contribute}{ts}To make a contribution, go to:{/ts}\n>> {$pageURL}\n\n{/if}\n{if $event}{ts}To find out more about this event, go to:{/ts}\n>> {$pageURL}\n{/if}\n\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <p>{$senderMessage}</p>\n {if $generalLink}\n <p><a href=\"{$generalLink}\">{ts}More information{/ts}</a></p>\n {/if}\n {if $contribute}\n <p><a href=\"{$pageURL}\">{ts}Make a contribution{/ts}</a></p>\n {/if}\n {if $event}\n <p><a href=\"{$pageURL}\">{ts}Find out more about this event{/ts}</a></p>\n {/if}\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,834,'friend',1,0,0,NULL), - (44,'Tell-a-Friend Email','{ts 1=$senderContactName 2=$title}%1 wants you to know about %2{/ts}\n','{$senderMessage}\n\n{if $generalLink}{ts}For more information, visit:{/ts}\n>> {$generalLink}\n\n{/if}\n{if $contribute}{ts}To make a contribution, go to:{/ts}\n>> {$pageURL}\n\n{/if}\n{if $event}{ts}To find out more about this event, go to:{/ts}\n>> {$pageURL}\n{/if}\n\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <p>{$senderMessage}</p>\n {if $generalLink}\n <p><a href=\"{$generalLink}\">{ts}More information{/ts}</a></p>\n {/if}\n {if $contribute}\n <p><a href=\"{$pageURL}\">{ts}Make a contribution{/ts}</a></p>\n {/if}\n {if $event}\n <p><a href=\"{$pageURL}\">{ts}Find out more about this event{/ts}</a></p>\n {/if}\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,834,'friend',0,1,0,NULL), - (45,'Memberships - Signup and Renewal Receipts (off-line)','{if $receiptType EQ \'membership signup\'}\n{ts}Membership Confirmation and Receipt{/ts}\n{elseif $receiptType EQ \'membership renewal\'}\n{ts}Membership Renewal Confirmation and Receipt{/ts}\n{/if} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $receipt_text}\n{$receipt_text}\n{else}{ts}Thank you for this contribution.{/ts}{/if}\n\n{if !$isShowLineItems}\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Type{/ts}: {membership.membership_type_id:name}\n{/if}\n{if \'{membership.status_id:name}\' !== \'Cancelled\'}\n{if !$isShowLineItems}\n{ts}Membership Start Date{/ts}: {membership.start_date|crmDate:\"Full\"}\n{ts}Membership Expiration Date{/ts}: {membership.end_date|crmDate:\"Full\"}\n{/if}\n\n{if {contribution.total_amount|boolean}}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{if {contribution.financial_type_id|boolean}}\n{ts}Financial Type{/ts}: {contribution.financial_type_id:label}\n{/if}\n{if $isShowLineItems}\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_total}{ts}Fee{/ts}{/capture}\n{if $isShowTax && \'{contribution.tax_amount|boolean}\'}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{/if}\n{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}\n{capture assign=ts_end_date}{ts}Membership Expiration Date{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_total|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"} {/if} {$ts_start_date|string_format:\"%20s\"} {$ts_end_date|string_format:\"%20s\"}\n--------------------------------------------------------------------------------------------------\n\n{foreach from=$lineItems item=line}\n{line.title} {$line.line_total|crmMoney|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:\"%10s\"} {/if} {$line.membership.start_date|string_format:\"%20s\"} {$line.membership.end_date|string_format:\"%20s\"}\n{/foreach}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {contribution.tax_exclusive_amount}\n\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else} {$taxTerm} {$taxDetail.percentage}%{/if}: {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n--------------------------------------------------------------------------------------------------\n{/if}\n\n{if {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount}\n{/if}\n\n{ts}Amount{/ts}: {contribution.total_amount}\n{if {contribution.receive_date|boolean}}\n{ts}Contribution Date{/ts}: {contribution.receive_date}\n{/if}\n{if {contribution.payment_instrument_id|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{if {contribution.check_number|boolean}}\n{ts}Check Number{/ts}: {contribution.check_number|boolean}\n{/if}\n{/if}\n{/if}\n{/if}\n\n{if !empty($isPrimary) }\n{if !empty($billingName)}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n\n{if !empty($customValues)}\n===========================================================\n{ts}Membership Options{/ts}\n\n===========================================================\n{foreach from=$customValues item=value key=customName}\n {$customName} : {$value}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-membership_receipt\"\n style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $receipt_text}\n <p>{$receipt_text|htmlize}</p>\n {else}\n <p>{ts}Thank you for this contribution.{/ts}</p>\n {/if}\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if !$isShowLineItems}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Type{/ts}\n </td>\n <td {$valueStyle}>\n {membership.membership_type_id:name}\n </td>\n </tr>\n {/if}\n {if \'{membership.status_id:name}\' !== \'Cancelled\'}\n {if !$isShowLineItems}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {membership.start_date|crmDate:\"Full\"}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {membership.end_date|crmDate:\"Full\"}\n </td>\n </tr>\n {/if}\n {if {contribution.total_amount|boolean}}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n {if {contribution.financial_type_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.financial_type_id:label}\n </td>\n </tr>\n {/if}\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Fee{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}SubTotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n <th>{ts}Total{/ts}</th>\n {/if}\n <th>{ts}Membership Start Date{/ts}</th>\n <th>{ts}Membership Expiration Date{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>{$line.title}</td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>\n {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n {/if}\n <td>\n {$line.membership.start_date|crmDate:\"Full\"}\n </td>\n <td>\n {$line.membership.end_date|crmDate:\"Full\"}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_exclusive_amount}\n </td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else} {$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n {/if}\n {if {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n {if {contribution.receive_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receive_date}\n </td>\n </tr>\n {/if}\n {if {contribution.payment_instrument_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {if {contribution.check_number|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.check_number}\n </td>\n </tr>\n {/if}\n {/if}\n {/if}\n {/if}\n </table>\n </td>\n </tr>\n\n {if !empty($isPrimary)}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {$billingName}<br/>\n {$address}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$valueStyle}>\n {$credit_card_type}<br/>\n {$credit_card_number}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Expires{/ts}\n </td>\n <td {$valueStyle}>\n {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n {/if}\n\n {if !empty($customValues)}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Membership Options{/ts}\n </th>\n </tr>\n {foreach from=$customValues item=value key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,835,'membership_offline_receipt',1,0,0,NULL), - (46,'Memberships - Signup and Renewal Receipts (off-line)','{if $receiptType EQ \'membership signup\'}\n{ts}Membership Confirmation and Receipt{/ts}\n{elseif $receiptType EQ \'membership renewal\'}\n{ts}Membership Renewal Confirmation and Receipt{/ts}\n{/if} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $receipt_text}\n{$receipt_text}\n{else}{ts}Thank you for this contribution.{/ts}{/if}\n\n{if !$isShowLineItems}\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Type{/ts}: {membership.membership_type_id:name}\n{/if}\n{if \'{membership.status_id:name}\' !== \'Cancelled\'}\n{if !$isShowLineItems}\n{ts}Membership Start Date{/ts}: {membership.start_date|crmDate:\"Full\"}\n{ts}Membership Expiration Date{/ts}: {membership.end_date|crmDate:\"Full\"}\n{/if}\n\n{if {contribution.total_amount|boolean}}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{if {contribution.financial_type_id|boolean}}\n{ts}Financial Type{/ts}: {contribution.financial_type_id:label}\n{/if}\n{if $isShowLineItems}\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_total}{ts}Fee{/ts}{/capture}\n{if $isShowTax && \'{contribution.tax_amount|boolean}\'}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{/if}\n{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}\n{capture assign=ts_end_date}{ts}Membership Expiration Date{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_total|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"} {/if} {$ts_start_date|string_format:\"%20s\"} {$ts_end_date|string_format:\"%20s\"}\n--------------------------------------------------------------------------------------------------\n\n{foreach from=$lineItems item=line}\n{line.title} {$line.line_total|crmMoney|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:\"%10s\"} {/if} {$line.membership.start_date|string_format:\"%20s\"} {$line.membership.end_date|string_format:\"%20s\"}\n{/foreach}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {contribution.tax_exclusive_amount}\n\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else} {$taxTerm} {$taxDetail.percentage}%{/if}: {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n--------------------------------------------------------------------------------------------------\n{/if}\n\n{if {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount}\n{/if}\n\n{ts}Amount{/ts}: {contribution.total_amount}\n{if {contribution.receive_date|boolean}}\n{ts}Contribution Date{/ts}: {contribution.receive_date}\n{/if}\n{if {contribution.payment_instrument_id|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{if {contribution.check_number|boolean}}\n{ts}Check Number{/ts}: {contribution.check_number|boolean}\n{/if}\n{/if}\n{/if}\n{/if}\n\n{if !empty($isPrimary) }\n{if !empty($billingName)}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n\n{if !empty($customValues)}\n===========================================================\n{ts}Membership Options{/ts}\n\n===========================================================\n{foreach from=$customValues item=value key=customName}\n {$customName} : {$value}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-membership_receipt\"\n style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $receipt_text}\n <p>{$receipt_text|htmlize}</p>\n {else}\n <p>{ts}Thank you for this contribution.{/ts}</p>\n {/if}\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if !$isShowLineItems}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Type{/ts}\n </td>\n <td {$valueStyle}>\n {membership.membership_type_id:name}\n </td>\n </tr>\n {/if}\n {if \'{membership.status_id:name}\' !== \'Cancelled\'}\n {if !$isShowLineItems}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {membership.start_date|crmDate:\"Full\"}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {membership.end_date|crmDate:\"Full\"}\n </td>\n </tr>\n {/if}\n {if {contribution.total_amount|boolean}}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n {if {contribution.financial_type_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.financial_type_id:label}\n </td>\n </tr>\n {/if}\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Fee{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}SubTotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n <th>{ts}Total{/ts}</th>\n {/if}\n <th>{ts}Membership Start Date{/ts}</th>\n <th>{ts}Membership Expiration Date{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>{$line.title}</td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>\n {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n {/if}\n <td>\n {$line.membership.start_date|crmDate:\"Full\"}\n </td>\n <td>\n {$line.membership.end_date|crmDate:\"Full\"}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_exclusive_amount}\n </td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else} {$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n {/if}\n {if {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n {if {contribution.receive_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receive_date}\n </td>\n </tr>\n {/if}\n {if {contribution.payment_instrument_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {if {contribution.check_number|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.check_number}\n </td>\n </tr>\n {/if}\n {/if}\n {/if}\n {/if}\n </table>\n </td>\n </tr>\n\n {if !empty($isPrimary)}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {$billingName}<br/>\n {$address}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$valueStyle}>\n {$credit_card_type}<br/>\n {$credit_card_number}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Expires{/ts}\n </td>\n <td {$valueStyle}>\n {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n {/if}\n\n {if !empty($customValues)}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Membership Options{/ts}\n </th>\n </tr>\n {foreach from=$customValues item=value key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,835,'membership_offline_receipt',0,1,0,NULL), - (47,'Memberships - Receipt (on-line)','{if \'{contribution.contribution_status_id:name}\' === \'Pending\'}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($receipt_text)}\n{$receipt_text}\n{/if}\n{if $is_pay_later}\n\n===========================================================\n{$pay_later_receipt}\n===========================================================\n{/if}\n\n{if $membership_assign && !$useForMember}\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Type{/ts}: {$membership_name}\n{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}\n{/if}\n{if $mem_end_date}{ts}Membership Expiration Date{/ts}: {$mem_end_date|crmDate}\n{/if}\n\n{/if}\n{if $amount}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{if !$useForMember && isset($membership_amount) && !empty($is_quick_config)}\n{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}\n{if $amount && !$is_separate_payment }\n{ts}Contribution Amount{/ts}: {$amount|crmMoney}\n-------------------------------------------\n{ts}Total{/ts}: {$amount+$membership_amount|crmMoney}\n{/if}\n{elseif !$useForMember && !empty($lineItem) and !empty($priceSetID) & empty($is_quick_config)}\n{foreach from=$lineItem item=value key=priceset}\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$value item=line}\n{$line.description|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney|string_format:\"%10s\"} {$line.line_total|crmMoney|string_format:\"%10s\"}\n{/foreach}\n{/foreach}\n\n{ts}Total Amount{/ts}: {$amount|crmMoney}\n{else}\n{if $useForMember && $lineItem && empty($is_quick_config)}\n{foreach from=$lineItem item=value key=priceset}\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_total}{ts}Fee{/ts}{/capture}\n{if !empty($dataArray)}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{/if}\n{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}\n{capture assign=ts_end_date}{ts}Membership Expiration Date{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_total|string_format:\"%10s\"} {if !empty($dataArray)} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"} {/if} {$ts_start_date|string_format:\"%20s\"} {$ts_end_date|string_format:\"%20s\"}\n--------------------------------------------------------------------------------------------------\n\n{foreach from=$value item=line}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.line_total|crmMoney|string_format:\"%10s\"} {if !empty($dataArray)} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:\"%10s\"} {/if} {$line.start_date|string_format:\"%20s\"} {$line.end_date|string_format:\"%20s\"}\n{/foreach}\n{/foreach}\n\n{if !empty($dataArray)}\n{ts}Amount before Tax:{/ts} {$amount-$totalTaxAmount|crmMoney:$currency}\n\n{foreach from=$dataArray item=value key=priceset}\n{if $priceset || $priceset == 0}\n{$taxTerm} {$priceset|string_format:\"%.2f\"}%: {$value|crmMoney:$currency}\n{else}\n{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}\n{/if}\n{/foreach}\n{/if}\n--------------------------------------------------------------------------------------------------\n{/if}\n\n{if $totalTaxAmount}\n{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}\n{/if}\n\n{ts}Amount{/ts}: {$amount|crmMoney} {if isset($amount_level) } - {$amount_level} {/if}\n{/if}\n{elseif isset($membership_amount)}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}\n{/if}\n\n{if !empty($receive_date)}\n\n{ts}Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($is_monetary) and !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n\n{/if}\n{if !empty($membership_trx_id)}\n{ts}Membership Transaction #{/ts}: {$membership_trx_id}\n\n{/if}\n{if !empty($is_recur)}\n{ts}This membership will be renewed automatically.{/ts}\n{if $cancelSubscriptionUrl}\n\n{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page: %1.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n{/if}\n{/if}\n\n{if $honor_block_is_active }\n===========================================================\n{$soft_credit_type}\n===========================================================\n{foreach from=$honoreeProfile item=value key=label}\n{$label}: {$value}\n{/foreach}\n\n{/if}\n{if !empty($pcpBlock)}\n===========================================================\n{ts}Personal Campaign Page{/ts}\n\n===========================================================\n{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n\n{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}\n\n{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}\n\n{/if}\n{if !empty($onBehalfProfile)}\n===========================================================\n{ts}On Behalf Of{/ts}\n\n===========================================================\n{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n{$onBehalfName}: {$onBehalfValue}\n{/foreach}\n{/if}\n\n{if !empty($billingName)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n{elseif !empty($email)}\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{$email}\n{/if} {* End billingName or email *}\n{if !empty($credit_card_type)}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n\n{if !empty($selectPremium)}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$product_name}\n{if $option}\n{ts}Option{/ts}: {$option}\n{/if}\n{if $sku}\n{ts}SKU{/ts}: {$sku}\n{/if}\n{if $start_date}\n{ts}Start Date{/ts}: {$start_date|crmDate}\n{/if}\n{if $end_date}\n{ts}End Date{/ts}: {$end_date|crmDate}\n{/if}\n{if !empty($contact_email) OR !empty($contact_phone)}\n\n{ts}For information about this premium, contact:{/ts}\n\n{if !empty($contact_email)}\n {$contact_email}\n{/if}\n{if !empty($contact_phone)}\n {$contact_phone}\n{/if}\n{/if}\n{if $is_deductible AND !empty($price)}\n\n{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}\n{/if}\n\n{if !empty($customPre)}\n===========================================================\n{$customPre_grouptitle}\n\n===========================================================\n{foreach from=$customPre item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n\n\n{if !empty($customPost)}\n===========================================================\n{$customPost_grouptitle}\n\n===========================================================\n{foreach from=$customPost item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if !empty($receipt_text)}\n <p>{$receipt_text|htmlize}</p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n </table>\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n\n {if $membership_assign && !$useForMember}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Type{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_name}\n </td>\n </tr>\n {if $mem_start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $mem_end_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_end_date|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n\n\n {if $amount}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n\n {if !$useForMember and isset($membership_amount) and !empty($is_quick_config)}\n\n <tr>\n <td {$labelStyle}>\n {ts 1=$membership_name}%1 Membership{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_amount|crmMoney}\n </td>\n </tr>\n {if $amount && !$is_separate_payment }\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total{/ts}\n </td>\n <td {$valueStyle}>\n {$amount+$membership_amount|crmMoney}\n </td>\n </tr>\n {/if}\n\n {elseif empty($useForMember) && !empty($lineItem) and $priceSetID and empty($is_quick_config)}\n\n {foreach from=$lineItem item=value key=priceset}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$value item=line}\n <tr>\n <td>\n {$line.description|truncate:30:\"...\"}\n </td>\n <td>\n {$line.qty}\n </td>\n <td>\n {$line.unit_price|crmMoney}\n </td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/foreach}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney}\n </td>\n </tr>\n\n {else}\n {if $useForMember && $lineItem and empty($is_quick_config)}\n {foreach from=$lineItem item=value key=priceset}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Fee{/ts}</th>\n {if !empty($dataArray)}\n <th>{ts}SubTotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n <th>{ts}Total{/ts}</th>\n {/if}\n <th>{ts}Membership Start Date{/ts}</th>\n <th>{ts}Membership Expiration Date{/ts}</th>\n </tr>\n {foreach from=$value item=line}\n <tr>\n <td>\n {if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:\"...\"}</div>{/if}\n </td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n {if !empty($dataArray)}\n <td>\n {$line.unit_price*$line.qty|crmMoney}\n </td>\n {if ($line.tax_rate || $line.tax_amount != \"\")}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney}\n </td>\n {/if}\n <td>\n {$line.start_date}\n </td>\n <td>\n {$line.end_date}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/foreach}\n {if !empty($dataArray)}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {$amount-$totalTaxAmount|crmMoney}\n </td>\n </tr>\n {foreach from=$dataArray item=value key=priceset}\n <tr>\n {if $priceset || $priceset == 0}\n <td> {$taxTerm} {$priceset|string_format:\"%.2f\"}%</td>\n <td> {$value|crmMoney:$currency}</td>\n {else}\n <td> {ts}NO{/ts} {$taxTerm}</td>\n <td> {$value|crmMoney:$currency}</td>\n {/if}\n </tr>\n {/foreach}\n {/if}\n {/if}\n {if $totalTaxAmount}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$totalTaxAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney} {if isset($amount_level)} - {$amount_level}{/if}\n </td>\n </tr>\n\n {/if}\n\n\n {elseif isset($membership_amount)}\n\n\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$membership_name}%1 Membership{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_amount|crmMoney}\n </td>\n </tr>\n\n\n {/if}\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($is_monetary) and !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($membership_trx_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_trx_id}\n </td>\n </tr>\n {/if}\n {if !empty($is_recur)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}This membership will be renewed automatically.{/ts}\n {if $cancelSubscriptionUrl}\n {ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n {/if}\n </td>\n </tr>\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if $honor_block_is_active}\n <tr>\n <th {$headerStyle}>\n {$soft_credit_type}\n </th>\n </tr>\n {foreach from=$honoreeProfile item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($pcpBlock)}\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Display In Honor Roll{/ts}\n </td>\n <td {$valueStyle}>\n {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n </td>\n </tr>\n {if $pcp_roll_nickname}\n <tr>\n <td {$labelStyle}>\n {ts}Nickname{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_roll_nickname}\n </td>\n </tr>\n {/if}\n {if $pcp_personal_note}\n <tr>\n <td {$labelStyle}>\n {ts}Personal Note{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_personal_note}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($onBehalfProfile)}\n <tr>\n <th {$headerStyle}>\n {$onBehalfProfile_grouptitle}\n </th>\n </tr>\n {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n <tr>\n <td {$labelStyle}>\n {$onBehalfName}\n </td>\n <td {$valueStyle}>\n {$onBehalfValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n {elseif !empty($email)}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$email}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n {/if}\n\n {if !empty($selectPremium)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$product_name}\n </td>\n </tr>\n {if $option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$option}\n </td>\n </tr>\n {/if}\n {if $sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$sku}\n </td>\n </tr>\n {/if}\n {if $start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $end_date}\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$end_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($contact_email) OR !empty($contact_phone)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}For information about this premium, contact:{/ts}</p>\n {if !empty($contact_email)}\n <p>{$contact_email}</p>\n {/if}\n {if !empty($contact_phone)}\n <p>{$contact_phone}</p>\n {/if}\n </td>\n </tr>\n {/if}\n {if $is_deductible AND !empty($price)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($customPre)}\n <tr>\n <th {$headerStyle}>\n {$customPre_grouptitle}\n </th>\n </tr>\n {foreach from=$customPre item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($customPost)}\n <tr>\n <th {$headerStyle}>\n {$customPost_grouptitle}\n </th>\n </tr>\n {foreach from=$customPost item=customValue key=customName}\n {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,836,'membership_online_receipt',1,0,0,NULL), - (48,'Memberships - Receipt (on-line)','{if \'{contribution.contribution_status_id:name}\' === \'Pending\'}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($receipt_text)}\n{$receipt_text}\n{/if}\n{if $is_pay_later}\n\n===========================================================\n{$pay_later_receipt}\n===========================================================\n{/if}\n\n{if $membership_assign && !$useForMember}\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Type{/ts}: {$membership_name}\n{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}\n{/if}\n{if $mem_end_date}{ts}Membership Expiration Date{/ts}: {$mem_end_date|crmDate}\n{/if}\n\n{/if}\n{if $amount}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{if !$useForMember && isset($membership_amount) && !empty($is_quick_config)}\n{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}\n{if $amount && !$is_separate_payment }\n{ts}Contribution Amount{/ts}: {$amount|crmMoney}\n-------------------------------------------\n{ts}Total{/ts}: {$amount+$membership_amount|crmMoney}\n{/if}\n{elseif !$useForMember && !empty($lineItem) and !empty($priceSetID) & empty($is_quick_config)}\n{foreach from=$lineItem item=value key=priceset}\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$value item=line}\n{$line.description|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney|string_format:\"%10s\"} {$line.line_total|crmMoney|string_format:\"%10s\"}\n{/foreach}\n{/foreach}\n\n{ts}Total Amount{/ts}: {$amount|crmMoney}\n{else}\n{if $useForMember && $lineItem && empty($is_quick_config)}\n{foreach from=$lineItem item=value key=priceset}\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_total}{ts}Fee{/ts}{/capture}\n{if !empty($dataArray)}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{/if}\n{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}\n{capture assign=ts_end_date}{ts}Membership Expiration Date{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_total|string_format:\"%10s\"} {if !empty($dataArray)} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"} {/if} {$ts_start_date|string_format:\"%20s\"} {$ts_end_date|string_format:\"%20s\"}\n--------------------------------------------------------------------------------------------------\n\n{foreach from=$value item=line}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.line_total|crmMoney|string_format:\"%10s\"} {if !empty($dataArray)} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:\"%10s\"} {/if} {$line.start_date|string_format:\"%20s\"} {$line.end_date|string_format:\"%20s\"}\n{/foreach}\n{/foreach}\n\n{if !empty($dataArray)}\n{ts}Amount before Tax:{/ts} {$amount-$totalTaxAmount|crmMoney:$currency}\n\n{foreach from=$dataArray item=value key=priceset}\n{if $priceset || $priceset == 0}\n{$taxTerm} {$priceset|string_format:\"%.2f\"}%: {$value|crmMoney:$currency}\n{else}\n{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}\n{/if}\n{/foreach}\n{/if}\n--------------------------------------------------------------------------------------------------\n{/if}\n\n{if $totalTaxAmount}\n{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}\n{/if}\n\n{ts}Amount{/ts}: {$amount|crmMoney} {if isset($amount_level) } - {$amount_level} {/if}\n{/if}\n{elseif isset($membership_amount)}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}\n{/if}\n\n{if !empty($receive_date)}\n\n{ts}Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($is_monetary) and !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n\n{/if}\n{if !empty($membership_trx_id)}\n{ts}Membership Transaction #{/ts}: {$membership_trx_id}\n\n{/if}\n{if !empty($is_recur)}\n{ts}This membership will be renewed automatically.{/ts}\n{if $cancelSubscriptionUrl}\n\n{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page: %1.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n{/if}\n{/if}\n\n{if $honor_block_is_active }\n===========================================================\n{$soft_credit_type}\n===========================================================\n{foreach from=$honoreeProfile item=value key=label}\n{$label}: {$value}\n{/foreach}\n\n{/if}\n{if !empty($pcpBlock)}\n===========================================================\n{ts}Personal Campaign Page{/ts}\n\n===========================================================\n{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n\n{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}\n\n{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}\n\n{/if}\n{if !empty($onBehalfProfile)}\n===========================================================\n{ts}On Behalf Of{/ts}\n\n===========================================================\n{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n{$onBehalfName}: {$onBehalfValue}\n{/foreach}\n{/if}\n\n{if !empty($billingName)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n{elseif !empty($email)}\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{$email}\n{/if} {* End billingName or email *}\n{if !empty($credit_card_type)}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n\n{if !empty($selectPremium)}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$product_name}\n{if $option}\n{ts}Option{/ts}: {$option}\n{/if}\n{if $sku}\n{ts}SKU{/ts}: {$sku}\n{/if}\n{if $start_date}\n{ts}Start Date{/ts}: {$start_date|crmDate}\n{/if}\n{if $end_date}\n{ts}End Date{/ts}: {$end_date|crmDate}\n{/if}\n{if !empty($contact_email) OR !empty($contact_phone)}\n\n{ts}For information about this premium, contact:{/ts}\n\n{if !empty($contact_email)}\n {$contact_email}\n{/if}\n{if !empty($contact_phone)}\n {$contact_phone}\n{/if}\n{/if}\n{if $is_deductible AND !empty($price)}\n\n{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}\n{/if}\n\n{if !empty($customPre)}\n===========================================================\n{$customPre_grouptitle}\n\n===========================================================\n{foreach from=$customPre item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n\n\n{if !empty($customPost)}\n===========================================================\n{$customPost_grouptitle}\n\n===========================================================\n{foreach from=$customPost item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if !empty($receipt_text)}\n <p>{$receipt_text|htmlize}</p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n </table>\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n\n {if $membership_assign && !$useForMember}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Type{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_name}\n </td>\n </tr>\n {if $mem_start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $mem_end_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_end_date|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n\n\n {if $amount}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n\n {if !$useForMember and isset($membership_amount) and !empty($is_quick_config)}\n\n <tr>\n <td {$labelStyle}>\n {ts 1=$membership_name}%1 Membership{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_amount|crmMoney}\n </td>\n </tr>\n {if $amount && !$is_separate_payment }\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total{/ts}\n </td>\n <td {$valueStyle}>\n {$amount+$membership_amount|crmMoney}\n </td>\n </tr>\n {/if}\n\n {elseif empty($useForMember) && !empty($lineItem) and $priceSetID and empty($is_quick_config)}\n\n {foreach from=$lineItem item=value key=priceset}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$value item=line}\n <tr>\n <td>\n {$line.description|truncate:30:\"...\"}\n </td>\n <td>\n {$line.qty}\n </td>\n <td>\n {$line.unit_price|crmMoney}\n </td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/foreach}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney}\n </td>\n </tr>\n\n {else}\n {if $useForMember && $lineItem and empty($is_quick_config)}\n {foreach from=$lineItem item=value key=priceset}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Fee{/ts}</th>\n {if !empty($dataArray)}\n <th>{ts}SubTotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n <th>{ts}Total{/ts}</th>\n {/if}\n <th>{ts}Membership Start Date{/ts}</th>\n <th>{ts}Membership Expiration Date{/ts}</th>\n </tr>\n {foreach from=$value item=line}\n <tr>\n <td>\n {if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:\"...\"}</div>{/if}\n </td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n {if !empty($dataArray)}\n <td>\n {$line.unit_price*$line.qty|crmMoney}\n </td>\n {if ($line.tax_rate || $line.tax_amount != \"\")}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney}\n </td>\n {/if}\n <td>\n {$line.start_date}\n </td>\n <td>\n {$line.end_date}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/foreach}\n {if !empty($dataArray)}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {$amount-$totalTaxAmount|crmMoney}\n </td>\n </tr>\n {foreach from=$dataArray item=value key=priceset}\n <tr>\n {if $priceset || $priceset == 0}\n <td> {$taxTerm} {$priceset|string_format:\"%.2f\"}%</td>\n <td> {$value|crmMoney:$currency}</td>\n {else}\n <td> {ts}NO{/ts} {$taxTerm}</td>\n <td> {$value|crmMoney:$currency}</td>\n {/if}\n </tr>\n {/foreach}\n {/if}\n {/if}\n {if $totalTaxAmount}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$totalTaxAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney} {if isset($amount_level)} - {$amount_level}{/if}\n </td>\n </tr>\n\n {/if}\n\n\n {elseif isset($membership_amount)}\n\n\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$membership_name}%1 Membership{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_amount|crmMoney}\n </td>\n </tr>\n\n\n {/if}\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($is_monetary) and !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($membership_trx_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_trx_id}\n </td>\n </tr>\n {/if}\n {if !empty($is_recur)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}This membership will be renewed automatically.{/ts}\n {if $cancelSubscriptionUrl}\n {ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n {/if}\n </td>\n </tr>\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if $honor_block_is_active}\n <tr>\n <th {$headerStyle}>\n {$soft_credit_type}\n </th>\n </tr>\n {foreach from=$honoreeProfile item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($pcpBlock)}\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Display In Honor Roll{/ts}\n </td>\n <td {$valueStyle}>\n {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n </td>\n </tr>\n {if $pcp_roll_nickname}\n <tr>\n <td {$labelStyle}>\n {ts}Nickname{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_roll_nickname}\n </td>\n </tr>\n {/if}\n {if $pcp_personal_note}\n <tr>\n <td {$labelStyle}>\n {ts}Personal Note{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_personal_note}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($onBehalfProfile)}\n <tr>\n <th {$headerStyle}>\n {$onBehalfProfile_grouptitle}\n </th>\n </tr>\n {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n <tr>\n <td {$labelStyle}>\n {$onBehalfName}\n </td>\n <td {$valueStyle}>\n {$onBehalfValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n {elseif !empty($email)}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$email}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n {/if}\n\n {if !empty($selectPremium)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$product_name}\n </td>\n </tr>\n {if $option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$option}\n </td>\n </tr>\n {/if}\n {if $sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$sku}\n </td>\n </tr>\n {/if}\n {if $start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $end_date}\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$end_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($contact_email) OR !empty($contact_phone)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}For information about this premium, contact:{/ts}</p>\n {if !empty($contact_email)}\n <p>{$contact_email}</p>\n {/if}\n {if !empty($contact_phone)}\n <p>{$contact_phone}</p>\n {/if}\n </td>\n </tr>\n {/if}\n {if $is_deductible AND !empty($price)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($customPre)}\n <tr>\n <th {$headerStyle}>\n {$customPre_grouptitle}\n </th>\n </tr>\n {foreach from=$customPre item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($customPost)}\n <tr>\n <th {$headerStyle}>\n {$customPost_grouptitle}\n </th>\n </tr>\n {foreach from=$customPost item=customValue key=customName}\n {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,836,'membership_online_receipt',0,1,0,NULL), - (49,'Memberships - Auto-renew Cancellation Notification','{ts}Autorenew Membership Cancellation Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}\n\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Status{/ts}: {$membership_status}\n{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}\n{/if}\n{if $mem_end_date}{ts}Membership Expiration Date{/ts}: {$mem_end_date|crmDate}\n{/if}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}</p>\n\n </td>\n </tr>\n </table>\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Status{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_status}\n </td>\n </tr>\n {if $mem_start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $mem_end_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_end_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,837,'membership_autorenew_cancelled',1,0,0,NULL), - (50,'Memberships - Auto-renew Cancellation Notification','{ts}Autorenew Membership Cancellation Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}\n\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Status{/ts}: {$membership_status}\n{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}\n{/if}\n{if $mem_end_date}{ts}Membership Expiration Date{/ts}: {$mem_end_date|crmDate}\n{/if}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}</p>\n\n </td>\n </tr>\n </table>\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Status{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_status}\n </td>\n </tr>\n {if $mem_start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $mem_end_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_end_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,837,'membership_autorenew_cancelled',0,1,0,NULL), - (51,'Memberships - Auto-renew Billing Updates','{ts}Membership Autorenewal Billing Updates{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,838,'membership_autorenew_billing',1,0,0,NULL), - (52,'Memberships - Auto-renew Billing Updates','{ts}Membership Autorenewal Billing Updates{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,838,'membership_autorenew_billing',0,1,0,NULL), - (53,'Test-drive - Receipt Header','[TEST]\n','***********************************************************\n\n{ts}Test-drive Email / Receipt{/ts}\n\n{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}\n\n***********************************************************\n',' <table id=\"crm-event_receipt_test\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <tr>\n <td>\n <p>{ts}Test-drive Email / Receipt{/ts}</p>\n <p>{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}</p>\n </td>\n </tr>\n </table>\n',1,839,'test_preview',1,0,0,NULL), - (54,'Test-drive - Receipt Header','[TEST]\n','***********************************************************\n\n{ts}Test-drive Email / Receipt{/ts}\n\n{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}\n\n***********************************************************\n',' <table id=\"crm-event_receipt_test\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <tr>\n <td>\n <p>{ts}Test-drive Email / Receipt{/ts}</p>\n <p>{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}</p>\n </td>\n </tr>\n </table>\n',1,839,'test_preview',0,1,0,NULL), - (55,'Pledges - Acknowledgement','{ts}Thank you for your Pledge{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Thank you for your generous pledge.{/ts}\n\n===========================================================\n{ts}Pledge Information{/ts}\n\n===========================================================\n{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}\n{ts}Total Pledge Amount{/ts}: {$total_pledge_amount|crmMoney:$currency}\n\n===========================================================\n{ts}Payment Schedule{/ts}\n\n===========================================================\n{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}\n\n{if $frequency_day}\n\n{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}\n{/if}\n\n{if $payments}\n{assign var=\"count\" value=\"1\"}\n{foreach from=$payments item=payment}\n\n{ts 1=$count}Payment %1{/ts}: {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if}\n{assign var=\"count\" value=`$count+1`}\n{/foreach}\n{/if}\n\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}\n\n{if $customGroup}\n{foreach from=$customGroup item=value key=customName}\n===========================================================\n{$customName}\n===========================================================\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Thank you for your generous pledge.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Pledge Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Pledge Received{/ts}\n </td>\n <td {$valueStyle}>\n {$create_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Pledge Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$total_pledge_amount|crmMoney:$currency}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Payment Schedule{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}</p>\n\n {if $frequency_day}\n <p>{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}</p>\n {/if}\n </td>\n </tr>\n\n {if $payments}\n {assign var=\"count\" value=\"1\"}\n {foreach from=$payments item=payment}\n <tr>\n <td {$labelStyle}>\n {ts 1=$count}Payment %1{/ts}\n </td>\n <td {$valueStyle}>\n {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if}\n </td>\n </tr>\n {assign var=\"count\" value=`$count+1`}\n {/foreach}\n {/if}\n\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}</p>\n </td>\n </tr>\n\n {if $customGroup}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,840,'pledge_acknowledge',1,0,0,NULL), - (56,'Pledges - Acknowledgement','{ts}Thank you for your Pledge{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Thank you for your generous pledge.{/ts}\n\n===========================================================\n{ts}Pledge Information{/ts}\n\n===========================================================\n{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}\n{ts}Total Pledge Amount{/ts}: {$total_pledge_amount|crmMoney:$currency}\n\n===========================================================\n{ts}Payment Schedule{/ts}\n\n===========================================================\n{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}\n\n{if $frequency_day}\n\n{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}\n{/if}\n\n{if $payments}\n{assign var=\"count\" value=\"1\"}\n{foreach from=$payments item=payment}\n\n{ts 1=$count}Payment %1{/ts}: {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if}\n{assign var=\"count\" value=`$count+1`}\n{/foreach}\n{/if}\n\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}\n\n{if $customGroup}\n{foreach from=$customGroup item=value key=customName}\n===========================================================\n{$customName}\n===========================================================\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Thank you for your generous pledge.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Pledge Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Pledge Received{/ts}\n </td>\n <td {$valueStyle}>\n {$create_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Pledge Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$total_pledge_amount|crmMoney:$currency}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Payment Schedule{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}</p>\n\n {if $frequency_day}\n <p>{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}</p>\n {/if}\n </td>\n </tr>\n\n {if $payments}\n {assign var=\"count\" value=\"1\"}\n {foreach from=$payments item=payment}\n <tr>\n <td {$labelStyle}>\n {ts 1=$count}Payment %1{/ts}\n </td>\n <td {$valueStyle}>\n {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if}\n </td>\n </tr>\n {assign var=\"count\" value=`$count+1`}\n {/foreach}\n {/if}\n\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}</p>\n </td>\n </tr>\n\n {if $customGroup}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,840,'pledge_acknowledge',0,1,0,NULL), - (57,'Pledges - Payment Reminder','{ts}Pledge Payment Reminder{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}\n\n===========================================================\n{ts}Payment Due{/ts}\n\n===========================================================\n{ts}Amount Due{/ts}: {$amount_due|crmMoney:$currency}\n{ts}Due Date{/ts}: {$scheduled_payment_date|truncate:10:\'\'|crmDate}\n\n{if $contribution_page_id}\n{capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id=`$contribution_page_id`&cid=`{contact.id}`&pledgeId=`$pledge_id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\nClick this link to go to a web page where you can make your payment online:\n{$contributionUrl}\n{else}\n{ts}Please mail your payment to{/ts}:\n{domain.address}\n{/if}\n\n===========================================================\n{ts}Pledge Information{/ts}\n\n===========================================================\n{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}\n{ts}Total Pledge Amount{/ts}: {$amount|crmMoney:$currency}\n{ts}Total Paid{/ts}: {$amount_paid|crmMoney:$currency}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'} Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}\n\n\n{ts}Thank you for your generous support.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Payment Due{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Amount Due{/ts}\n </td>\n <td {$valueStyle}>\n {$amount_due|crmMoney:$currency}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n {if $contribution_page_id}\n {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id=`$contribution_page_id`&cid=`{contact.id}`&pledgeId=`$pledge_id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\n <p><a href=\"{$contributionUrl}\">{ts}Go to a web page where you can make your payment online{/ts}</a></p>\n {else}\n <p>{ts}Please mail your payment to{/ts}: {domain.address}</p>\n {/if}\n </td>\n </tr>\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Pledge Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Pledge Received{/ts}\n </td>\n <td {$valueStyle}>\n {$create_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Pledge Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney:$currency}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Paid{/ts}\n </td>\n <td {$valueStyle}>\n {$amount_paid|crmMoney:$currency}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}</p>\n <p>{ts}Thank you for your generous support.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,841,'pledge_reminder',1,0,0,NULL), - (58,'Pledges - Payment Reminder','{ts}Pledge Payment Reminder{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}\n\n===========================================================\n{ts}Payment Due{/ts}\n\n===========================================================\n{ts}Amount Due{/ts}: {$amount_due|crmMoney:$currency}\n{ts}Due Date{/ts}: {$scheduled_payment_date|truncate:10:\'\'|crmDate}\n\n{if $contribution_page_id}\n{capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id=`$contribution_page_id`&cid=`{contact.id}`&pledgeId=`$pledge_id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\nClick this link to go to a web page where you can make your payment online:\n{$contributionUrl}\n{else}\n{ts}Please mail your payment to{/ts}:\n{domain.address}\n{/if}\n\n===========================================================\n{ts}Pledge Information{/ts}\n\n===========================================================\n{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}\n{ts}Total Pledge Amount{/ts}: {$amount|crmMoney:$currency}\n{ts}Total Paid{/ts}: {$amount_paid|crmMoney:$currency}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'} Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}\n\n\n{ts}Thank you for your generous support.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Payment Due{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Amount Due{/ts}\n </td>\n <td {$valueStyle}>\n {$amount_due|crmMoney:$currency}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n {if $contribution_page_id}\n {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id=`$contribution_page_id`&cid=`{contact.id}`&pledgeId=`$pledge_id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\n <p><a href=\"{$contributionUrl}\">{ts}Go to a web page where you can make your payment online{/ts}</a></p>\n {else}\n <p>{ts}Please mail your payment to{/ts}: {domain.address}</p>\n {/if}\n </td>\n </tr>\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Pledge Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Pledge Received{/ts}\n </td>\n <td {$valueStyle}>\n {$create_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Pledge Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney:$currency}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Paid{/ts}\n </td>\n <td {$valueStyle}>\n {$amount_paid|crmMoney:$currency}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}</p>\n <p>{ts}Thank you for your generous support.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,841,'pledge_reminder',0,1,0,NULL), - (59,'Profiles - Admin Notification','{$grouptitle} {ts 1=$displayName}Submitted by %1{/ts} - {contact.display_name}\n','{ts}Submitted For:{/ts} {$displayName}\n{ts}Date:{/ts} {$currentDate}\n{ts}Contact Summary:{/ts} {$contactLink}\n\n===========================================================\n{$grouptitle}\n\n===========================================================\n{foreach from=$values item=value key=valueName}\n{$valueName}: {$value}\n{/foreach}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <td {$labelStyle}>\n {ts}Submitted For{/ts}\n </td>\n <td {$valueStyle}>\n {$displayName}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$currentDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Contact Summary{/ts}\n </td>\n <td {$valueStyle}>\n {$contactLink}\n </td>\n </tr>\n\n <tr>\n <th {$headerStyle}>\n {$grouptitle}\n </th>\n </tr>\n\n {foreach from=$values item=value key=valueName}\n <tr>\n <td {$labelStyle}>\n {$valueName}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,842,'uf_notify',1,0,0,NULL), - (60,'Profiles - Admin Notification','{$grouptitle} {ts 1=$displayName}Submitted by %1{/ts} - {contact.display_name}\n','{ts}Submitted For:{/ts} {$displayName}\n{ts}Date:{/ts} {$currentDate}\n{ts}Contact Summary:{/ts} {$contactLink}\n\n===========================================================\n{$grouptitle}\n\n===========================================================\n{foreach from=$values item=value key=valueName}\n{$valueName}: {$value}\n{/foreach}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle }style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle }style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <td {$labelStyle}>\n {ts}Submitted For{/ts}\n </td>\n <td {$valueStyle}>\n {$displayName}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$currentDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Contact Summary{/ts}\n </td>\n <td {$valueStyle}>\n {$contactLink}\n </td>\n </tr>\n\n <tr>\n <th {$headerStyle}>\n {$grouptitle}\n </th>\n </tr>\n\n {foreach from=$values item=value key=valueName}\n <tr>\n <td {$labelStyle}>\n {$valueName}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,842,'uf_notify',0,1,0,NULL), - (61,'Petition - signature added','Thank you for signing {survey.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\nThank you for signing {survey.title}.\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n<p>Thank you for signing {survey.title}.</p>\n\n{capture assign=petitionURL}{crmURL p=\'civicrm/petition/sign\' q=\"sid={survey.id}\" a=1 fe=1 h=1}{/capture}\n{include file=\"CRM/common/SocialNetwork.tpl\" url=$petitionURL title=\'{survey.title}\' pageURL=$petitionURL petition_id=\'{survey.id}\' noscript=true emailMode=true}\n',1,843,'petition_sign',1,0,0,NULL), - (62,'Petition - signature added','Thank you for signing {survey.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\nThank you for signing {survey.title}.\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n<p>Thank you for signing {survey.title}.</p>\n\n{capture assign=petitionURL}{crmURL p=\'civicrm/petition/sign\' q=\"sid={survey.id}\" a=1 fe=1 h=1}{/capture}\n{include file=\"CRM/common/SocialNetwork.tpl\" url=$petitionURL title=\'{survey.title}\' pageURL=$petitionURL petition_id=\'{survey.id}\' noscript=true emailMode=true}\n',1,843,'petition_sign',0,1,0,NULL), - (63,'Petition - need verification','Confirmation of signature needed for {$petition.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\nThank you for signing {$petition.title}.\n\nIn order to complete your signature, we must confirm your e-mail.\nPlease do so by visiting the following email confirmation web page:\n\n{$petition.confirmUrlPlainText}\n\nIf you did not sign this petition, please ignore this message.\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n<p>Thank you for signing {$petition.title}.</p>\n\n<p>In order to <b>complete your signature</b>, we must confirm your e-mail.\n<br />\nPlease do so by visiting the following web page by clicking\non the link below or pasting the link into your browser.\n<br /><br />\nEmail confirmation page: <a href=\"{$petition.confirmUrl}\">{$petition.confirmUrl}</a></p>\n\n<p>If you did not sign this petition, please ignore this message.</p>\n',1,844,'petition_confirmation_needed',1,0,0,NULL), - (64,'Petition - need verification','Confirmation of signature needed for {$petition.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\nThank you for signing {$petition.title}.\n\nIn order to complete your signature, we must confirm your e-mail.\nPlease do so by visiting the following email confirmation web page:\n\n{$petition.confirmUrlPlainText}\n\nIf you did not sign this petition, please ignore this message.\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n<p>Thank you for signing {$petition.title}.</p>\n\n<p>In order to <b>complete your signature</b>, we must confirm your e-mail.\n<br />\nPlease do so by visiting the following web page by clicking\non the link below or pasting the link into your browser.\n<br /><br />\nEmail confirmation page: <a href=\"{$petition.confirmUrl}\">{$petition.confirmUrl}</a></p>\n\n<p>If you did not sign this petition, please ignore this message.</p>\n',1,844,'petition_confirmation_needed',0,1,0,NULL), + (1,'Cases - Send Copy of an Activity','{if !empty($idHash)}[case #{$idHash}]{/if} {$activitySubject}\n','===========================================================\n{ts}Activity Summary{/ts} - {$activityTypeName}\n===========================================================\n{if !empty($isCaseActivity)}\n{ts}Your Case Role(s){/ts} : {$contact.role|default:\'\'}\n{if !empty($manageCaseURL)}\n{ts}Manage Case{/ts} : {$manageCaseURL}\n{/if}\n{/if}\n\n{if !empty($editActURL)}\n{ts}Edit activity{/ts} : {$editActURL}\n{/if}\n{if !empty($viewActURL)}\n{ts}View activity{/ts} : {$viewActURL}\n{/if}\n\n{foreach from=$activity.fields item=field}\n{if $field.type eq \'Date\'}\n{$field.label} : {$field.value|crmDate:$config->dateformatDatetime}\n{else}\n{$field.label} : {$field.value}\n{/if}\n{/foreach}\n\n{if !empty($activity.customGroups)}\n{foreach from=$activity.customGroups key=customGroupName item=customGroup}\n==========================================================\n{$customGroupName}\n==========================================================\n{foreach from=$customGroup item=field}\n{if $field.type eq \'Date\'}\n{$field.label} : {$field.value|crmDate:$config->dateformatDatetime}\n{else}\n{$field.label} : {$field.value}\n{/if}\n{/foreach}\n\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n {capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n {capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n {capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Activity Summary{/ts} - {$activityTypeName}\n </th>\n </tr>\n {if !empty($isCaseActivity)}\n <tr>\n <td {$labelStyle}>\n {ts}Your Case Role(s){/ts}\n </td>\n <td {$valueStyle}>\n {$contact.role|default:\'\'}\n </td>\n </tr>\n {if !empty($manageCaseURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$manageCaseURL}\" title=\"{ts}Manage Case{/ts}\">{ts}Manage Case{/ts}</a>\n </td>\n </tr>\n {/if}\n {/if}\n {if !empty($editActURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$editActURL}\" title=\"{ts}Edit activity{/ts}\">{ts}Edit activity{/ts}</a>\n </td>\n </tr>\n {/if}\n {if !empty($viewActURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$viewActURL}\" title=\"{ts}View activity{/ts}\">{ts}View activity{/ts}</a>\n </td>\n </tr>\n {/if}\n {foreach from=$activity.fields item=field}\n <tr>\n <td {$labelStyle}>\n {$field.label}\n </td>\n <td {$valueStyle}>\n {if $field.type eq \'Date\'}\n {$field.value|crmDate:$config->dateformatDatetime}\n {else}\n {$field.value}\n {/if}\n </td>\n </tr>\n {/foreach}\n\n {if !empty($activity.customGroups)}\n {foreach from=$activity.customGroups key=customGroupName item=customGroup}\n <tr>\n <th {$headerStyle}>\n {$customGroupName}\n </th>\n </tr>\n {foreach from=$customGroup item=field}\n <tr>\n <td {$labelStyle}>\n {$field.label}\n </td>\n <td {$valueStyle}>\n {if $field.type eq \'Date\'}\n {$field.value|crmDate:$config->dateformatDatetime}\n {else}\n {$field.value}\n {/if}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n </table>\n </td>\n </tr>\n </table>\n</body>\n</html>\n',1,814,'case_activity',1,0,0,NULL), + (2,'Cases - Send Copy of an Activity','{if !empty($idHash)}[case #{$idHash}]{/if} {$activitySubject}\n','===========================================================\n{ts}Activity Summary{/ts} - {$activityTypeName}\n===========================================================\n{if !empty($isCaseActivity)}\n{ts}Your Case Role(s){/ts} : {$contact.role|default:\'\'}\n{if !empty($manageCaseURL)}\n{ts}Manage Case{/ts} : {$manageCaseURL}\n{/if}\n{/if}\n\n{if !empty($editActURL)}\n{ts}Edit activity{/ts} : {$editActURL}\n{/if}\n{if !empty($viewActURL)}\n{ts}View activity{/ts} : {$viewActURL}\n{/if}\n\n{foreach from=$activity.fields item=field}\n{if $field.type eq \'Date\'}\n{$field.label} : {$field.value|crmDate:$config->dateformatDatetime}\n{else}\n{$field.label} : {$field.value}\n{/if}\n{/foreach}\n\n{if !empty($activity.customGroups)}\n{foreach from=$activity.customGroups key=customGroupName item=customGroup}\n==========================================================\n{$customGroupName}\n==========================================================\n{foreach from=$customGroup item=field}\n{if $field.type eq \'Date\'}\n{$field.label} : {$field.value|crmDate:$config->dateformatDatetime}\n{else}\n{$field.label} : {$field.value}\n{/if}\n{/foreach}\n\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n {capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n {capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n {capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Activity Summary{/ts} - {$activityTypeName}\n </th>\n </tr>\n {if !empty($isCaseActivity)}\n <tr>\n <td {$labelStyle}>\n {ts}Your Case Role(s){/ts}\n </td>\n <td {$valueStyle}>\n {$contact.role|default:\'\'}\n </td>\n </tr>\n {if !empty($manageCaseURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$manageCaseURL}\" title=\"{ts}Manage Case{/ts}\">{ts}Manage Case{/ts}</a>\n </td>\n </tr>\n {/if}\n {/if}\n {if !empty($editActURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$editActURL}\" title=\"{ts}Edit activity{/ts}\">{ts}Edit activity{/ts}</a>\n </td>\n </tr>\n {/if}\n {if !empty($viewActURL)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <a href=\"{$viewActURL}\" title=\"{ts}View activity{/ts}\">{ts}View activity{/ts}</a>\n </td>\n </tr>\n {/if}\n {foreach from=$activity.fields item=field}\n <tr>\n <td {$labelStyle}>\n {$field.label}\n </td>\n <td {$valueStyle}>\n {if $field.type eq \'Date\'}\n {$field.value|crmDate:$config->dateformatDatetime}\n {else}\n {$field.value}\n {/if}\n </td>\n </tr>\n {/foreach}\n\n {if !empty($activity.customGroups)}\n {foreach from=$activity.customGroups key=customGroupName item=customGroup}\n <tr>\n <th {$headerStyle}>\n {$customGroupName}\n </th>\n </tr>\n {foreach from=$customGroup item=field}\n <tr>\n <td {$labelStyle}>\n {$field.label}\n </td>\n <td {$valueStyle}>\n {if $field.type eq \'Date\'}\n {$field.value|crmDate:$config->dateformatDatetime}\n {else}\n {$field.value}\n {/if}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n </table>\n </td>\n </tr>\n </table>\n</body>\n</html>\n',1,814,'case_activity',0,1,0,NULL), + (3,'Contributions - Duplicate Organization Alert','{ts}CiviContribute Alert: Possible Duplicate Contact Record{/ts} - {contact.display_name}\n','{ts}A contribution / membership signup was made on behalf of the organization listed below.{/ts}\n{ts}The information provided matched multiple existing database records based on the configured Duplicate Matching Rules for your site.{/ts}\n\n{ts}Organization Name{/ts}: {$onBehalfName}\n{ts}Organization Email{/ts}: {$onBehalfEmail}\n{ts}Organization Contact ID{/ts}: {$onBehalfID}\n\n{ts}If you think this may be a duplicate contact which should be merged with an existing record - Go to \"Contacts >> Find and Merge Duplicate Contacts\". Use the strict rule for Organizations to find the potential duplicates and merge them if appropriate.{/ts}\n\n{if $receiptMessage}\n###########################################################\n{ts}Copy of Contribution Receipt{/ts}\n\n###########################################################\n{$receiptMessage}\n\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <p>{ts}A contribution / membership signup was made on behalf of the organization listed below.{/ts}</p>\n <p>{ts}The information provided matched multiple existing database records based on the configured Duplicate Matching Rules for your site.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <td {$labelStyle}>\n {ts}Organization Name{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfName}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Organization Email{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfEmail}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Organization Contact ID{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfID}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <p>{ts}If you think this may be a duplicate contact which should be merged with an existing record - Go to \"Contacts >> Find and Merge Duplicate Contacts\". Use the strict rule for Organizations to find the potential duplicates and merge them if appropriate.{/ts}</p>\n </td>\n </tr>\n {if $receiptMessage}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Copy of Contribution Receipt{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {* FIXME: the below is most probably not HTML-ised *}\n {$receiptMessage}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n {/if}\n </table>\n</body>\n</html>\n',1,815,'contribution_dupalert',1,0,0,NULL), + (4,'Contributions - Duplicate Organization Alert','{ts}CiviContribute Alert: Possible Duplicate Contact Record{/ts} - {contact.display_name}\n','{ts}A contribution / membership signup was made on behalf of the organization listed below.{/ts}\n{ts}The information provided matched multiple existing database records based on the configured Duplicate Matching Rules for your site.{/ts}\n\n{ts}Organization Name{/ts}: {$onBehalfName}\n{ts}Organization Email{/ts}: {$onBehalfEmail}\n{ts}Organization Contact ID{/ts}: {$onBehalfID}\n\n{ts}If you think this may be a duplicate contact which should be merged with an existing record - Go to \"Contacts >> Find and Merge Duplicate Contacts\". Use the strict rule for Organizations to find the potential duplicates and merge them if appropriate.{/ts}\n\n{if $receiptMessage}\n###########################################################\n{ts}Copy of Contribution Receipt{/ts}\n\n###########################################################\n{$receiptMessage}\n\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <p>{ts}A contribution / membership signup was made on behalf of the organization listed below.{/ts}</p>\n <p>{ts}The information provided matched multiple existing database records based on the configured Duplicate Matching Rules for your site.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <td {$labelStyle}>\n {ts}Organization Name{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfName}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Organization Email{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfEmail}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Organization Contact ID{/ts}\n </td>\n <td {$valueStyle}>\n {$onBehalfID}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <p>{ts}If you think this may be a duplicate contact which should be merged with an existing record - Go to \"Contacts >> Find and Merge Duplicate Contacts\". Use the strict rule for Organizations to find the potential duplicates and merge them if appropriate.{/ts}</p>\n </td>\n </tr>\n {if $receiptMessage}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Copy of Contribution Receipt{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {* FIXME: the below is most probably not HTML-ised *}\n {$receiptMessage}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n {/if}\n </table>\n</body>\n</html>\n',1,815,'contribution_dupalert',0,1,0,NULL), + (5,'Contributions - Receipt (off-line)','{ts}Contribution Receipt{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if {contribution.contribution_page_id.receipt_text|boolean}}\n{contribution.contribution_page_id.receipt_text}\n{elseif {contribution.paid_amount|boolean}} {ts}Below you will find a receipt for this contribution.{/ts}\n{/if}\n\n===========================================================\n{ts}Contribution Information{/ts}\n\n===========================================================\n{ts}Contributor{/ts}: {contact.display_name}\n{if \'{contribution.financial_type_id}\'}\n{ts}Financial Type{/ts}: {contribution.financial_type_id:label}\n{/if}\n{if $isShowLineItems}\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$lineItems item=line}\n{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"}\n{/foreach}\n{/if}\n\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax{/ts} : {contribution.tax_exclusive_amount}\n{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} : {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n\n{if $isShowTax}\n{ts}Total Tax Amount{/ts} : {contribution.tax_amount}\n{/if}\n{ts}Total Amount{/ts} : {contribution.total_amount}\n{if \'{contribution.receive_date}\'}\n{ts}Contribution Date{/ts}: {contribution.receive_date|crmDate:\"shortdate\"}\n{/if}\n{if \'{contribution.receipt_date}\'}\n{ts}Receipt Date{/ts}: {contribution.receipt_date|crmDate:\"shortdate\"}\n{/if}\n{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{if \'{contribution.check_number}\'}\n{ts}Check Number{/ts}: {contribution.check_number}\n{/if}\n{/if}\n{if \'{contribution.trxn_id}\'}\n{ts}Transaction ID{/ts}: {contribution.trxn_id}\n{/if}\n\n{if !empty($ccContribution)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{if !empty($customGroup)}\n{foreach from=$customGroup item=value key=customName}\n===========================================================\n{$customName}\n===========================================================\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($softCreditTypes) and !empty($softCredits)}\n{foreach from=$softCreditTypes item=softCreditType key=n}\n===========================================================\n{$softCreditType}\n===========================================================\n{foreach from=$softCredits.$n item=value key=label}\n{$label}: {$value}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($formValues.product_name)}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$formValues.product_name}\n{if $formValues.product_option}\n{ts}Option{/ts}: {$formValues.product_option}\n{/if}\n{if $formValues.product_sku}\n{ts}SKU{/ts}: {$formValues.product_sku}\n{/if}\n{if !empty($fulfilled_date)}\n{ts}Sent{/ts}: {$fulfilled_date|crmDate}\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>\n {if {contribution.contribution_page_id.receipt_text|boolean}}{contribution.contribution_page_id.receipt_text}\n {elseif {contribution.paid_amount|boolean}}{ts}Below you will find a receipt for this contribution.{/ts}{/if}\n </p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Contribution Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Contributor Name{/ts}\n </td>\n <td {$valueStyle}>\n {contact.display_name}\n </td>\n </tr>\n <tr>\n {if \'{contribution.financial_type_id}\'}\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.financial_type_id:label}\n </td>\n {/if}\n </tr>\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>\n {$line.title}\n </td>\n <td>\n {$line.qty}\n </td>\n <td>\n {$line.unit_price|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>\n {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td>\n {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts} Amount before Tax : {/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_exclusive_amount}\n </td>\n </tr>\n\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n\n {if $isShowTax}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n\n {if \'{contribution.receive_date}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receive_date|crmDate:\"shortdate\"}\n </td>\n </tr>\n {/if}\n\n {if \'{contribution.receipt_date}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Receipt Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receipt_date|crmDate:\"shortdate\"}\n </td>\n </tr>\n {/if}\n\n {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {if \'{contribution.check_number}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.check_number}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if \'{contribution.trxn_id}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction ID{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($ccContribution)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($softCreditTypes) and !empty($softCredits)}\n {foreach from=$softCreditTypes item=softCreditType key=n}\n <tr>\n <th {$headerStyle}>\n {$softCreditType}\n </th>\n </tr>\n {foreach from=$softCredits.$n item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($customGroup)}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($formValues.product_name)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$formValues.product_name}\n </td>\n </tr>\n {if $formValues.product_option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$formValues.product_option}\n </td>\n </tr>\n {/if}\n {if $formValues.product_sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$formValues.product_sku}\n </td>\n </tr>\n {/if}\n {if !empty($fulfilled_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Sent{/ts}\n </td>\n <td {$valueStyle}>\n {$fulfilled_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,816,'contribution_offline_receipt',1,0,0,NULL), + (6,'Contributions - Receipt (off-line)','{ts}Contribution Receipt{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if {contribution.contribution_page_id.receipt_text|boolean}}\n{contribution.contribution_page_id.receipt_text}\n{elseif {contribution.paid_amount|boolean}} {ts}Below you will find a receipt for this contribution.{/ts}\n{/if}\n\n===========================================================\n{ts}Contribution Information{/ts}\n\n===========================================================\n{ts}Contributor{/ts}: {contact.display_name}\n{if \'{contribution.financial_type_id}\'}\n{ts}Financial Type{/ts}: {contribution.financial_type_id:label}\n{/if}\n{if $isShowLineItems}\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$lineItems item=line}\n{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"}\n{/foreach}\n{/if}\n\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax{/ts} : {contribution.tax_exclusive_amount}\n{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} : {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n\n{if $isShowTax}\n{ts}Total Tax Amount{/ts} : {contribution.tax_amount}\n{/if}\n{ts}Total Amount{/ts} : {contribution.total_amount}\n{if \'{contribution.receive_date}\'}\n{ts}Contribution Date{/ts}: {contribution.receive_date|crmDate:\"shortdate\"}\n{/if}\n{if \'{contribution.receipt_date}\'}\n{ts}Receipt Date{/ts}: {contribution.receipt_date|crmDate:\"shortdate\"}\n{/if}\n{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{if \'{contribution.check_number}\'}\n{ts}Check Number{/ts}: {contribution.check_number}\n{/if}\n{/if}\n{if \'{contribution.trxn_id}\'}\n{ts}Transaction ID{/ts}: {contribution.trxn_id}\n{/if}\n\n{if !empty($ccContribution)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{if !empty($customGroup)}\n{foreach from=$customGroup item=value key=customName}\n===========================================================\n{$customName}\n===========================================================\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($softCreditTypes) and !empty($softCredits)}\n{foreach from=$softCreditTypes item=softCreditType key=n}\n===========================================================\n{$softCreditType}\n===========================================================\n{foreach from=$softCredits.$n item=value key=label}\n{$label}: {$value}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($formValues.product_name)}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$formValues.product_name}\n{if $formValues.product_option}\n{ts}Option{/ts}: {$formValues.product_option}\n{/if}\n{if $formValues.product_sku}\n{ts}SKU{/ts}: {$formValues.product_sku}\n{/if}\n{if !empty($fulfilled_date)}\n{ts}Sent{/ts}: {$fulfilled_date|crmDate}\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>\n {if {contribution.contribution_page_id.receipt_text|boolean}}{contribution.contribution_page_id.receipt_text}\n {elseif {contribution.paid_amount|boolean}}{ts}Below you will find a receipt for this contribution.{/ts}{/if}\n </p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Contribution Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Contributor Name{/ts}\n </td>\n <td {$valueStyle}>\n {contact.display_name}\n </td>\n </tr>\n <tr>\n {if \'{contribution.financial_type_id}\'}\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.financial_type_id:label}\n </td>\n {/if}\n </tr>\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>\n {$line.title}\n </td>\n <td>\n {$line.qty}\n </td>\n <td>\n {$line.unit_price|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>\n {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td>\n {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts} Amount before Tax : {/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_exclusive_amount}\n </td>\n </tr>\n\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n\n {if $isShowTax}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n\n {if \'{contribution.receive_date}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receive_date|crmDate:\"shortdate\"}\n </td>\n </tr>\n {/if}\n\n {if \'{contribution.receipt_date}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Receipt Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receipt_date|crmDate:\"shortdate\"}\n </td>\n </tr>\n {/if}\n\n {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {if \'{contribution.check_number}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.check_number}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if \'{contribution.trxn_id}\'}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction ID{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($ccContribution)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($softCreditTypes) and !empty($softCredits)}\n {foreach from=$softCreditTypes item=softCreditType key=n}\n <tr>\n <th {$headerStyle}>\n {$softCreditType}\n </th>\n </tr>\n {foreach from=$softCredits.$n item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($customGroup)}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($formValues.product_name)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$formValues.product_name}\n </td>\n </tr>\n {if $formValues.product_option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$formValues.product_option}\n </td>\n </tr>\n {/if}\n {if $formValues.product_sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$formValues.product_sku}\n </td>\n </tr>\n {/if}\n {if !empty($fulfilled_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Sent{/ts}\n </td>\n <td {$valueStyle}>\n {$fulfilled_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,816,'contribution_offline_receipt',0,1,0,NULL), + (7,'Contributions - Receipt (on-line)','{if \'{contribution.contribution_status_id:name}\' === \'Pending\'}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($receipt_text)}\n{$receipt_text}\n{/if}\n{if $is_pay_later}\n\n===========================================================\n{$pay_later_receipt}\n===========================================================\n{/if}\n\n{if {contribution.total_amount|boolean}}\n===========================================================\n{ts}Contribution Information{/ts}\n\n===========================================================\n{if $isShowLineItems}\n\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$lineItems item=line}\n{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total_inclusive|crmMoney:$currency|string_format:\"%10s\"}\n{/foreach}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {$amount-$totalTaxAmount|crmMoney:$currency}\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} : {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n {/foreach}\n{/if}\n\n{if $isShowTax}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount|crmMoney}\n{/if}\n\n{ts}Total Amount{/ts}: {contribution.total_amount}\n{else}\n{ts}Amount{/ts}: {contribution.total_amount} {if \'{contribution.amount_level}\'} - {contribution.amount_level}{/if}\n{/if}\n{/if}\n{if !empty($receive_date)}\n\n{ts}Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if {contribution.trxn_id|boolean}}\n{ts}Transaction #{/ts}: {contribution.trxn_id}\n{/if}\n\n{if !empty($is_recur)}\n{ts}This is a recurring contribution.{/ts}\n\n{if $cancelSubscriptionUrl}\n{ts}You can cancel future contributions at:{/ts}\n\n{$cancelSubscriptionUrl}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts}You can update billing details for this recurring contribution at:{/ts}\n\n{$updateSubscriptionBillingUrl}\n\n{/if}\n\n{if $updateSubscriptionUrl}\n{ts}You can update recurring contribution amount or change the number of installments for this recurring contribution at:{/ts}\n\n{$updateSubscriptionUrl}\n\n{/if}\n{/if}\n\n{if $honor_block_is_active}\n===========================================================\n{$soft_credit_type}\n===========================================================\n{foreach from=$honoreeProfile item=value key=label}\n{$label}: {$value}\n{/foreach}\n{elseif !empty($softCreditTypes) and !empty($softCredits)}\n{foreach from=$softCreditTypes item=softCreditType key=n}\n===========================================================\n{$softCreditType}\n===========================================================\n{foreach from=$softCredits.$n item=value key=label}\n{$label}: {$value}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($pcpBlock)}\n===========================================================\n{ts}Personal Campaign Page{/ts}\n\n===========================================================\n{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n\n{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}\n\n{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}\n\n{/if}\n{if !empty($onBehalfProfile)}\n===========================================================\n{ts}On Behalf Of{/ts}\n\n===========================================================\n{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n{$onBehalfName}: {$onBehalfValue}\n{/foreach}\n{/if}\n\n{if !empty($billingName)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n{elseif !empty($email)}\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{$email}\n{/if} {* End billingName or Email*}\n{if !empty($credit_card_type)}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n\n{if !empty($selectPremium )}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$product_name}\n{if $option}\n{ts}Option{/ts}: {$option}\n{/if}\n{if $sku}\n{ts}SKU{/ts}: {$sku}\n{/if}\n{if $start_date}\n{ts}Start Date{/ts}: {$start_date|crmDate}\n{/if}\n{if $end_date}\n{ts}End Date{/ts}: {$end_date|crmDate}\n{/if}\n{if !empty($contact_email) OR !empty($contact_phone)}\n\n{ts}For information about this premium, contact:{/ts}\n\n{if !empty($contact_email)}\n {$contact_email}\n{/if}\n{if !empty($contact_phone)}\n {$contact_phone}\n{/if}\n{/if}\n{if $is_deductible AND !empty($price)}\n\n{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}\n{/if}\n\n{if !empty($customPre)}\n===========================================================\n{$customPre_grouptitle}\n\n===========================================================\n{foreach from=$customPre item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n\n\n{if !empty($customPost)}\n===========================================================\n{$customPost_grouptitle}\n\n===========================================================\n{foreach from=$customPost item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if !empty($receipt_text)}\n <p>{$receipt_text|htmlize}</p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n</table>\n<table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n {if {contribution.total_amount|boolean}}\n <tr>\n <th {$headerStyle}>\n {ts}Contribution Information{/ts}\n </th>\n </tr>\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>{$line.title}</td>\n <td>{$line.qty}</td>\n <td>{$line.unit_price|crmMoney:$currency}</td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>{$line.unit_price*$line.qty|crmMoney:$currency}</td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n <td>{$line.tax_amount|crmMoney:$currency}</td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td>\n {$line.line_total_inclusive|crmMoney:$currency}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts} Amount before Tax : {/ts}\n </td>\n <td {$valueStyle}>\n {$amount-$totalTaxAmount|crmMoney:$currency}\n </td>\n </tr>\n\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n\n {/if}\n {if $isShowTax}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n {else}\n {if {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount} {if \'{contribution.amount_level}\'} - {contribution.amount_level}{/if}\n </td>\n </tr>\n\n {/if}\n\n {/if}\n\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if {contribution.trxn_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($is_recur)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}This is a recurring contribution.{/ts}\n {if $cancelSubscriptionUrl}\n {ts 1=$cancelSubscriptionUrl}You can cancel future contributions by <a href=\"%1\">visiting this web page</a>.{/ts}\n {/if}\n </td>\n </tr>\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if $honor_block_is_active}\n <tr>\n <th {$headerStyle}>\n {$soft_credit_type}\n </th>\n </tr>\n {foreach from=$honoreeProfile item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {elseif !empty($softCreditTypes) and !empty($softCredits)}\n {foreach from=$softCreditTypes item=softCreditType key=n}\n <tr>\n <th {$headerStyle}>\n {$softCreditType}\n </th>\n </tr>\n {foreach from=$softCredits.$n item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($pcpBlock)}\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Display In Honor Roll{/ts}\n </td>\n <td {$valueStyle}>\n {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n </td>\n </tr>\n {if $pcp_roll_nickname}\n <tr>\n <td {$labelStyle}>\n {ts}Nickname{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_roll_nickname}\n </td>\n </tr>\n {/if}\n {if $pcp_personal_note}\n <tr>\n <td {$labelStyle}>\n {ts}Personal Note{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_personal_note}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($onBehalfProfile)}\n <tr>\n <th {$headerStyle}>\n {$onBehalfProfile_grouptitle}\n </th>\n </tr>\n {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n <tr>\n <td {$labelStyle}>\n {$onBehalfName}\n </td>\n <td {$valueStyle}>\n {$onBehalfValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if {contribution.contribution_page_id.is_share|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id={contribution.contribution_page_id}\" a=true fe=1 h=1}{/capture}\n {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n {elseif !empty($email)}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$email}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n {/if}\n\n {if !empty($selectPremium)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$product_name}\n </td>\n </tr>\n {if $option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$option}\n </td>\n </tr>\n {/if}\n {if $sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$sku}\n </td>\n </tr>\n {/if}\n {if $start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $end_date}\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$end_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($contact_email) OR !empty($contact_phone)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}For information about this premium, contact:{/ts}</p>\n {if !empty($contact_email)}\n <p>{$contact_email}</p>\n {/if}\n {if !empty($contact_phone)}\n <p>{$contact_phone}</p>\n {/if}\n </td>\n </tr>\n {/if}\n {if $is_deductible AND !empty($price)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($customPre)}\n <tr>\n <th {$headerStyle}>\n {$customPre_grouptitle}\n </th>\n </tr>\n {foreach from=$customPre item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($customPost)}\n <tr>\n <th {$headerStyle}>\n {$customPost_grouptitle}\n </th>\n </tr>\n {foreach from=$customPost item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,817,'contribution_online_receipt',1,0,0,NULL), + (8,'Contributions - Receipt (on-line)','{if \'{contribution.contribution_status_id:name}\' === \'Pending\'}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($receipt_text)}\n{$receipt_text}\n{/if}\n{if $is_pay_later}\n\n===========================================================\n{$pay_later_receipt}\n===========================================================\n{/if}\n\n{if {contribution.total_amount|boolean}}\n===========================================================\n{ts}Contribution Information{/ts}\n\n===========================================================\n{if $isShowLineItems}\n\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$lineItems item=line}\n{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total_inclusive|crmMoney:$currency|string_format:\"%10s\"}\n{/foreach}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {$amount-$totalTaxAmount|crmMoney:$currency}\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} : {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n {/foreach}\n{/if}\n\n{if $isShowTax}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount|crmMoney}\n{/if}\n\n{ts}Total Amount{/ts}: {contribution.total_amount}\n{else}\n{ts}Amount{/ts}: {contribution.total_amount} {if \'{contribution.amount_level}\'} - {contribution.amount_level}{/if}\n{/if}\n{/if}\n{if !empty($receive_date)}\n\n{ts}Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if {contribution.trxn_id|boolean}}\n{ts}Transaction #{/ts}: {contribution.trxn_id}\n{/if}\n\n{if !empty($is_recur)}\n{ts}This is a recurring contribution.{/ts}\n\n{if $cancelSubscriptionUrl}\n{ts}You can cancel future contributions at:{/ts}\n\n{$cancelSubscriptionUrl}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts}You can update billing details for this recurring contribution at:{/ts}\n\n{$updateSubscriptionBillingUrl}\n\n{/if}\n\n{if $updateSubscriptionUrl}\n{ts}You can update recurring contribution amount or change the number of installments for this recurring contribution at:{/ts}\n\n{$updateSubscriptionUrl}\n\n{/if}\n{/if}\n\n{if $honor_block_is_active}\n===========================================================\n{$soft_credit_type}\n===========================================================\n{foreach from=$honoreeProfile item=value key=label}\n{$label}: {$value}\n{/foreach}\n{elseif !empty($softCreditTypes) and !empty($softCredits)}\n{foreach from=$softCreditTypes item=softCreditType key=n}\n===========================================================\n{$softCreditType}\n===========================================================\n{foreach from=$softCredits.$n item=value key=label}\n{$label}: {$value}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($pcpBlock)}\n===========================================================\n{ts}Personal Campaign Page{/ts}\n\n===========================================================\n{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n\n{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}\n\n{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}\n\n{/if}\n{if !empty($onBehalfProfile)}\n===========================================================\n{ts}On Behalf Of{/ts}\n\n===========================================================\n{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n{$onBehalfName}: {$onBehalfValue}\n{/foreach}\n{/if}\n\n{if !empty($billingName)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n{elseif !empty($email)}\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{$email}\n{/if} {* End billingName or Email*}\n{if !empty($credit_card_type)}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n\n{if !empty($selectPremium )}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$product_name}\n{if $option}\n{ts}Option{/ts}: {$option}\n{/if}\n{if $sku}\n{ts}SKU{/ts}: {$sku}\n{/if}\n{if $start_date}\n{ts}Start Date{/ts}: {$start_date|crmDate}\n{/if}\n{if $end_date}\n{ts}End Date{/ts}: {$end_date|crmDate}\n{/if}\n{if !empty($contact_email) OR !empty($contact_phone)}\n\n{ts}For information about this premium, contact:{/ts}\n\n{if !empty($contact_email)}\n {$contact_email}\n{/if}\n{if !empty($contact_phone)}\n {$contact_phone}\n{/if}\n{/if}\n{if $is_deductible AND !empty($price)}\n\n{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}\n{/if}\n\n{if !empty($customPre)}\n===========================================================\n{$customPre_grouptitle}\n\n===========================================================\n{foreach from=$customPre item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n\n\n{if !empty($customPost)}\n===========================================================\n{$customPost_grouptitle}\n\n===========================================================\n{foreach from=$customPost item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if !empty($receipt_text)}\n <p>{$receipt_text|htmlize}</p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n</table>\n<table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n {if {contribution.total_amount|boolean}}\n <tr>\n <th {$headerStyle}>\n {ts}Contribution Information{/ts}\n </th>\n </tr>\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>{$line.title}</td>\n <td>{$line.qty}</td>\n <td>{$line.unit_price|crmMoney:$currency}</td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>{$line.unit_price*$line.qty|crmMoney:$currency}</td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n <td>{$line.tax_amount|crmMoney:$currency}</td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td>\n {$line.line_total_inclusive|crmMoney:$currency}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts} Amount before Tax : {/ts}\n </td>\n <td {$valueStyle}>\n {$amount-$totalTaxAmount|crmMoney:$currency}\n </td>\n </tr>\n\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n\n {/if}\n {if $isShowTax}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n {else}\n {if {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount} {if \'{contribution.amount_level}\'} - {contribution.amount_level}{/if}\n </td>\n </tr>\n\n {/if}\n\n {/if}\n\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if {contribution.trxn_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($is_recur)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}This is a recurring contribution.{/ts}\n {if $cancelSubscriptionUrl}\n {ts 1=$cancelSubscriptionUrl}You can cancel future contributions by <a href=\"%1\">visiting this web page</a>.{/ts}\n {/if}\n </td>\n </tr>\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if $honor_block_is_active}\n <tr>\n <th {$headerStyle}>\n {$soft_credit_type}\n </th>\n </tr>\n {foreach from=$honoreeProfile item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {elseif !empty($softCreditTypes) and !empty($softCredits)}\n {foreach from=$softCreditTypes item=softCreditType key=n}\n <tr>\n <th {$headerStyle}>\n {$softCreditType}\n </th>\n </tr>\n {foreach from=$softCredits.$n item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($pcpBlock)}\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Display In Honor Roll{/ts}\n </td>\n <td {$valueStyle}>\n {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n </td>\n </tr>\n {if $pcp_roll_nickname}\n <tr>\n <td {$labelStyle}>\n {ts}Nickname{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_roll_nickname}\n </td>\n </tr>\n {/if}\n {if $pcp_personal_note}\n <tr>\n <td {$labelStyle}>\n {ts}Personal Note{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_personal_note}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($onBehalfProfile)}\n <tr>\n <th {$headerStyle}>\n {$onBehalfProfile_grouptitle}\n </th>\n </tr>\n {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n <tr>\n <td {$labelStyle}>\n {$onBehalfName}\n </td>\n <td {$valueStyle}>\n {$onBehalfValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if {contribution.contribution_page_id.is_share|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id={contribution.contribution_page_id}\" a=true fe=1 h=1}{/capture}\n {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n {elseif !empty($email)}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$email}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n {/if}\n\n {if !empty($selectPremium)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$product_name}\n </td>\n </tr>\n {if $option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$option}\n </td>\n </tr>\n {/if}\n {if $sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$sku}\n </td>\n </tr>\n {/if}\n {if $start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $end_date}\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$end_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($contact_email) OR !empty($contact_phone)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}For information about this premium, contact:{/ts}</p>\n {if !empty($contact_email)}\n <p>{$contact_email}</p>\n {/if}\n {if !empty($contact_phone)}\n <p>{$contact_phone}</p>\n {/if}\n </td>\n </tr>\n {/if}\n {if $is_deductible AND !empty($price)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($customPre)}\n <tr>\n <th {$headerStyle}>\n {$customPre_grouptitle}\n </th>\n </tr>\n {foreach from=$customPre item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($customPost)}\n <tr>\n <th {$headerStyle}>\n {$customPost_grouptitle}\n </th>\n </tr>\n {foreach from=$customPost item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,817,'contribution_online_receipt',0,1,0,NULL), + (9,'Contributions - Invoice','{if $title}\n {if $component}\n {if $component == \'event\'}\n {ts 1=$title}Event Registration Invoice: %1{/ts}\n {else}\n {ts 1=$title}Contribution Invoice: %1{/ts}\n {/if}\n {/if}\n{else}\n {ts}Invoice{/ts}\n{/if}\n - {contact.display_name}\n','{ts}Contribution Invoice{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n </head>\n <body>\n <div style=\"padding-top:100px;margin-right:50px;border-style: none;\">\n {if $config->empoweredBy}\n <table style=\"margin-top:5px;padding-bottom:50px;\" cellpadding=\"5\" cellspacing=\"0\">\n <tr>\n <td><img src=\"{domain.empowered_by_civicrm_image_url}\" height=\"34px\" width=\"99px\"></td>\n </tr>\n </table>\n {/if}\n <table style=\"font-family: Arial, Verdana, sans-serif;\" width=\"100%\" height=\"100\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n {if $email_comment}\n <tr>\n <td><font size=\"1\" colspan=\"3\">{$email_comment}</font></td>\n </tr>\n {/if}\n <tr>\n <td width=\"30%\"><b><font size=\"4\" align=\"center\">{ts}INVOICE{/ts}</font></b></td>\n <td width=\"50%\" valign=\"bottom\"><b><font size=\"1\" align=\"center\">{ts}Invoice Date:{/ts}</font></b></td>\n <td valign=\"bottom\" style=\"white-space: nowrap\"><b><font size=\"1\" align=\"right\">{domain.name}</font></b></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{contact.display_name}{if \'{contact.current_employer}\'} ({contact.current_employer}){/if}</font></td>\n <td><font size=\"1\" align=\"right\">{$invoice_date}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">\n {domain.street_address}\n {domain.supplemental_address_1}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{$street_address} {$supplemental_address_1}</font></td>\n <td><b><font size=\"1\" align=\"right\">{ts}Invoice Number:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.supplemental_address_2}\n {domain.state_province_id:label}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.invoice_number}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">\n {domain.city}\n {domain.postal_code}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\">{$city} {$postal_code}</font></td>\n <td height=\"10\"><b><font size=\"1\" align=\"right\">{ts}Reference:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">{domain.country_id:label}</font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\"> {$country}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.source}</font></td>\n <td valign=\"top\" style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">{domain.email}</font> </td>\n </tr>\n <tr>\n <td></td>\n <td></td>\n <td valign=\"top\"><font size=\"1\" align=\"right\">{domain.phone}</font> </td>\n </tr>\n </table>\n\n <table style=\"padding-top:75px;font-family: Arial, Verdana, sans-serif;\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n <tr>\n <th style=\"text-align:left;font-weight:bold;width:100%\"><font size=\"1\">{ts}Description{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts}Quantity{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts}Unit Price{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{domain.tax_term}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts 1=$currency}Amount %1{/ts}</font></th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td style=\"text-align:left;nowrap\"><font size=\"1\">\n {$line.title}\n </font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$line.qty}</font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$line.unit_price|crmMoney:$currency}</font></td>\n {if $line.tax_amount != \'\'}\n <td style=\"text-align:right;\"><font size=\"1\">{if $line.tax_rate}{$line.tax_rate|crmNumberFormat}%{/if}</font></td>\n {else}\n <td style=\"text-align:right;\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\'}-{/ts}{/if}</font></td>\n {/if}\n <td style=\"text-align:right;\"><font size=\"1\">{$line.line_total|crmMoney:\'{contribution.currency}\'}</font></td>\n </tr>\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;\"><font size=\"1\">{ts}Sub Total{/ts}</font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$subTotal|crmMoney:$currency}</font></td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate != 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\' 2=$taxRate|crmNumberFormat}TOTAL %1 %2%{/ts}{/if}</font></td>\n <td style=\"text-align:right\"><font size=\"1\" align=\"right\">{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</font> </td>\n </tr>\n {/if}\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><b><font size=\"1\">{ts 1=$currency}TOTAL %1{/ts}</font></b></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><font size=\"1\">\n {if \'{contribution.contribution_status_id:name}\' == \'Refunded\'}\n {ts}Amount Credited{/ts}\n {else}\n {ts}Amount Paid{/ts}\n {/if}\n </font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$amountPaid|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\" ><b><font size=\"1\">{ts}AMOUNT DUE:{/ts}</font></b></td>\n <td style=\"text-align:right;\"><b><font size=\"1\">{$amountDue|crmMoney:$currency}</font></b></td>\n </tr>\n <tr>\n <td colspan=\"5\"></td>\n </tr>\n {if \'{contribution.contribution_status_id:name}\' == \'Pending\' && \'{contribution.is_pay_later}\' == 1}\n <tr>\n <td colspan=\"3\"><b><font size=\"1\" align=\"center\">{ts 1=$dueDate}DUE DATE: %1{/ts}</font></b></td>\n <td colspan=\"2\"></td>\n </tr>\n {/if}\n </table>\n\n {if \'{contribution.contribution_status_id:name}\' == \'Pending\' && \'{contribution.is_pay_later}\' == 1}\n <table style=\"margin-top:5px;\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td><img src=\"{$resourceBase}/i/contribute/cut_line.png\" height=\"15\"></td>\n </tr>\n </table>\n\n <table style=\"margin-top:5px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\" id=\"desc\">\n <tr>\n <td width=\"60%\"><b><font size=\"4\" align=\"right\">{ts}PAYMENT ADVICE{/ts}</font></b><br/><br/>\n <font size=\"1\" align=\"left\"><b>{ts}To:{/ts}</b><div style=\"width:24em;word-wrap:break-word;\">\n {domain.name}<br />\n {domain.street_address} {domain.supplemental_address_1}<br />\n {domain.supplemental_address_2} {domain.state_province_id:label}<br />\n {domain.city} {domain.postal_code}<br />\n {domain.country_id:label}<br />\n {domain.email}</div>\n {domain.phone}<br />\n </font>\n <br/><br/><font size=\"1\" align=\"left\">{$notes}</font>\n </td>\n <td width=\"40%\">\n <table cellpadding=\"5\" cellspacing=\"0\" width=\"100%\" border=\"0\">\n <tr>\n <td width=\"100%\"><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Customer:{/ts}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">{contact.display_name}</font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Invoice Number:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.invoice_number}</font></td>\n </tr>\n <tr><td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></td></tr>\n {if $is_pay_later == 1}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Amount Due:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n {else}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Amount Due:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amountDue|crmMoney:$currency}</font></td>\n </tr>\n {/if}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Due Date:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{$dueDate}</font></td>\n </tr>\n <tr>\n <td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n {/if}\n\n {if \'{contribution.contribution_status_id:name}\' === \'Refunded\' || \'{contribution.contribution_status_id:name}\' === \'Cancelled\'}\n {if $config->empoweredBy}\n <table style=\"margin-top:2px;padding-left:7px;page-break-before: always;\">\n <tr>\n <td><img src=\"{$resourceBase}/i/civi99.png\" height=\"34px\" width=\"99px\"></td>\n </tr>\n </table>\n {/if}\n\n <table style=\"font-family: Arial, Verdana, sans-serif\" width=\"100%\" height=\"100\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\">\n <tr>\n <td style=\"padding-left:15px;\"><b><font size=\"4\" align=\"center\">{ts}CREDIT NOTE{/ts}</font></b></td>\n <td style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Date:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">{domain.name}</font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{contact.display_name}{if \'{contact.current_employer}\'} ({contact.current_employer}){/if}</font></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{$invoice_date}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.street_address}\n {domain.supplemental_address_1}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{$street_address} {$supplemental_address_1}</font></td>\n <td style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Credit Note Number:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.supplemental_address_2}\n {domain.state_province_id:label}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{contribution.creditnote_id}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.city}\n {domain.postal_code}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"right\">{$city} {$postal_code}</font></td>\n <td height=\"10\" style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Reference:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.country_id:label}\n </font></td>\n </tr>\n <tr>\n <td></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{contribution.source}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.email}\n </font></td>\n </tr>\n <tr>\n <td></td>\n <td></td>\n <td><font size=\"1\" align=\"right\">\n {domain.phone}\n </font></td>\n </tr>\n </table>\n\n <table style=\"margin-top:75px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\" id=\"desc\">\n <tr>\n <td colspan=\"2\">\n <table>\n <tr>\n <th style=\"padding-right:28px;text-align:left;font-weight:bold;width:200px;\"><font size=\"1\">{ts}Description{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts}Quantity{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts}Unit Price{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{domain.tax_term}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts 1=$currency}Amount %1{/ts}</font></th>\n </tr>\n {foreach from=$lineItems item=line key=index}\n <tr><td colspan=\"5\"><hr {if $index == 0}size=\"3\" style=\"color:#000;\"{else}style=\"color:#F5F5F5;\"{/if}></hr></td></tr>\n <tr>\n <td style =\"text-align:left;\" ><font size=\"1\">\n {$line.title}\n </font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.qty}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.unit_price|crmMoney:$currency}</font></td>\n {if $line.tax_amount != \'\'}\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{if $line.tax_rate}{$line.tax_rate|crmNumberFormat}%{/if}</font></td>\n {else}\n <td style=\"padding-left:28px;text-align:right\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\'}No %1{/ts}{/if}</font></td>\n {/if}\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.line_total|crmMoney:\'{contribution.currency}\'}</font></td>\n </tr>\n {/foreach}\n <tr><td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></hr></td></tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{ts}Sub Total{/ts}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$subTotal|crmMoney:$currency}</font></td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate != 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\' 2=$taxRate|crmNumberFormat}TOTAL %1 %2%{/ts}{/if}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\" align=\"right\">{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</font> </td>\n </tr>\n {/if}\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{ts 1=$currency}TOTAL %1{/ts}</font></b></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n {if \'{contribution.is_pay_later}\' == 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{ts}LESS Credit to invoice(s){/ts}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{ts}REMAINING CREDIT{/ts}</font></b></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{$amountDue|crmMoney:$currency}</font></b></td>\n <td style=\"padding-left:28px;\"><font size=\"1\" align=\"right\"></font></td>\n </tr>\n {/if}\n <br/><br/><br/>\n <tr>\n <td colspan=\"3\"></td>\n </tr>\n <tr>\n <td></td>\n <td colspan=\"3\"></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n <table width=\"100%\" style=\"margin-top:5px;padding-right:45px;\">\n <tr>\n <td><img src=\"{$resourceBase}/i/contribute/cut_line.png\" height=\"15\" width=\"100%\"></td>\n </tr>\n </table>\n\n <table style=\"margin-top:6px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\" id=\"desc\">\n <tr>\n <td width=\"60%\"><font size=\"4\" align=\"right\"><b>{ts}CREDIT ADVICE{/ts}</b><br/><br /><div style=\"font-size:10px;max-width:300px;\">{ts}Please do not pay on this advice. Deduct the amount of this Credit Note from your next payment to us{/ts}</div><br/></font></td>\n <td width=\"40%\">\n <table align=\"right\">\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Customer:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contact.display_name}</font></td>\n </tr>\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Credit Note#:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.creditnote_id}</font></td>\n </tr>\n <tr><td colspan=\"5\"style=\"color:#F5F5F5;\"><hr></hr></td></tr>\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Credit Amount:{/ts}</font></td>\n <td width=\'50px\'><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n {/if}\n\n </div>\n </body>\n</html>\n',1,818,'contribution_invoice_receipt',1,0,0,NULL), + (10,'Contributions - Invoice','{if $title}\n {if $component}\n {if $component == \'event\'}\n {ts 1=$title}Event Registration Invoice: %1{/ts}\n {else}\n {ts 1=$title}Contribution Invoice: %1{/ts}\n {/if}\n {/if}\n{else}\n {ts}Invoice{/ts}\n{/if}\n - {contact.display_name}\n','{ts}Contribution Invoice{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n </head>\n <body>\n <div style=\"padding-top:100px;margin-right:50px;border-style: none;\">\n {if $config->empoweredBy}\n <table style=\"margin-top:5px;padding-bottom:50px;\" cellpadding=\"5\" cellspacing=\"0\">\n <tr>\n <td><img src=\"{domain.empowered_by_civicrm_image_url}\" height=\"34px\" width=\"99px\"></td>\n </tr>\n </table>\n {/if}\n <table style=\"font-family: Arial, Verdana, sans-serif;\" width=\"100%\" height=\"100\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n {if $email_comment}\n <tr>\n <td><font size=\"1\" colspan=\"3\">{$email_comment}</font></td>\n </tr>\n {/if}\n <tr>\n <td width=\"30%\"><b><font size=\"4\" align=\"center\">{ts}INVOICE{/ts}</font></b></td>\n <td width=\"50%\" valign=\"bottom\"><b><font size=\"1\" align=\"center\">{ts}Invoice Date:{/ts}</font></b></td>\n <td valign=\"bottom\" style=\"white-space: nowrap\"><b><font size=\"1\" align=\"right\">{domain.name}</font></b></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{contact.display_name}{if \'{contact.current_employer}\'} ({contact.current_employer}){/if}</font></td>\n <td><font size=\"1\" align=\"right\">{$invoice_date}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">\n {domain.street_address}\n {domain.supplemental_address_1}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{$street_address} {$supplemental_address_1}</font></td>\n <td><b><font size=\"1\" align=\"right\">{ts}Invoice Number:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.supplemental_address_2}\n {domain.state_province_id:label}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"center\">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.invoice_number}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">\n {domain.city}\n {domain.postal_code}\n </font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\">{$city} {$postal_code}</font></td>\n <td height=\"10\"><b><font size=\"1\" align=\"right\">{ts}Reference:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">{domain.country_id:label}</font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\"> {$country}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.source}</font></td>\n <td valign=\"top\" style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">{domain.email}</font> </td>\n </tr>\n <tr>\n <td></td>\n <td></td>\n <td valign=\"top\"><font size=\"1\" align=\"right\">{domain.phone}</font> </td>\n </tr>\n </table>\n\n <table style=\"padding-top:75px;font-family: Arial, Verdana, sans-serif;\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n <tr>\n <th style=\"text-align:left;font-weight:bold;width:100%\"><font size=\"1\">{ts}Description{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts}Quantity{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts}Unit Price{/ts}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{domain.tax_term}</font></th>\n <th style=\"text-align:right;font-weight:bold;white-space: nowrap\"><font size=\"1\">{ts 1=$currency}Amount %1{/ts}</font></th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td style=\"text-align:left;nowrap\"><font size=\"1\">\n {$line.title}\n </font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$line.qty}</font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$line.unit_price|crmMoney:$currency}</font></td>\n {if $line.tax_amount != \'\'}\n <td style=\"text-align:right;\"><font size=\"1\">{if $line.tax_rate}{$line.tax_rate|crmNumberFormat}%{/if}</font></td>\n {else}\n <td style=\"text-align:right;\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\'}-{/ts}{/if}</font></td>\n {/if}\n <td style=\"text-align:right;\"><font size=\"1\">{$line.line_total|crmMoney:\'{contribution.currency}\'}</font></td>\n </tr>\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;\"><font size=\"1\">{ts}Sub Total{/ts}</font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$subTotal|crmMoney:$currency}</font></td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate != 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\' 2=$taxRate|crmNumberFormat}TOTAL %1 %2%{/ts}{/if}</font></td>\n <td style=\"text-align:right\"><font size=\"1\" align=\"right\">{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</font> </td>\n </tr>\n {/if}\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><b><font size=\"1\">{ts 1=$currency}TOTAL %1{/ts}</font></b></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\"><font size=\"1\">\n {if \'{contribution.contribution_status_id:name}\' == \'Refunded\'}\n {ts}Amount Credited{/ts}\n {else}\n {ts}Amount Paid{/ts}\n {/if}\n </font></td>\n <td style=\"text-align:right;\"><font size=\"1\">{$amountPaid|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"text-align:right;white-space: nowrap\" ><b><font size=\"1\">{ts}AMOUNT DUE:{/ts}</font></b></td>\n <td style=\"text-align:right;\"><b><font size=\"1\">{$amountDue|crmMoney:$currency}</font></b></td>\n </tr>\n <tr>\n <td colspan=\"5\"></td>\n </tr>\n {if \'{contribution.contribution_status_id:name}\' == \'Pending\' && \'{contribution.is_pay_later}\' == 1}\n <tr>\n <td colspan=\"3\"><b><font size=\"1\" align=\"center\">{ts 1=$dueDate}DUE DATE: %1{/ts}</font></b></td>\n <td colspan=\"2\"></td>\n </tr>\n {/if}\n </table>\n\n {if \'{contribution.contribution_status_id:name}\' == \'Pending\' && \'{contribution.is_pay_later}\' == 1}\n <table style=\"margin-top:5px;\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td><img src=\"{$resourceBase}/i/contribute/cut_line.png\" height=\"15\"></td>\n </tr>\n </table>\n\n <table style=\"margin-top:5px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\" id=\"desc\">\n <tr>\n <td width=\"60%\"><b><font size=\"4\" align=\"right\">{ts}PAYMENT ADVICE{/ts}</font></b><br/><br/>\n <font size=\"1\" align=\"left\"><b>{ts}To:{/ts}</b><div style=\"width:24em;word-wrap:break-word;\">\n {domain.name}<br />\n {domain.street_address} {domain.supplemental_address_1}<br />\n {domain.supplemental_address_2} {domain.state_province_id:label}<br />\n {domain.city} {domain.postal_code}<br />\n {domain.country_id:label}<br />\n {domain.email}</div>\n {domain.phone}<br />\n </font>\n <br/><br/><font size=\"1\" align=\"left\">{$notes}</font>\n </td>\n <td width=\"40%\">\n <table cellpadding=\"5\" cellspacing=\"0\" width=\"100%\" border=\"0\">\n <tr>\n <td width=\"100%\"><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Customer:{/ts}</font></td>\n <td style=\"white-space: nowrap\"><font size=\"1\" align=\"right\">{contact.display_name}</font></td>\n </tr>\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Invoice Number:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.invoice_number}</font></td>\n </tr>\n <tr><td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></td></tr>\n {if $is_pay_later == 1}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Amount Due:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n {else}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Amount Due:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amountDue|crmMoney:$currency}</font></td>\n </tr>\n {/if}\n <tr>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Due Date:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{$dueDate}</font></td>\n </tr>\n <tr>\n <td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n {/if}\n\n {if \'{contribution.contribution_status_id:name}\' === \'Refunded\' || \'{contribution.contribution_status_id:name}\' === \'Cancelled\'}\n {if $config->empoweredBy}\n <table style=\"margin-top:2px;padding-left:7px;page-break-before: always;\">\n <tr>\n <td><img src=\"{$resourceBase}/i/civi99.png\" height=\"34px\" width=\"99px\"></td>\n </tr>\n </table>\n {/if}\n\n <table style=\"font-family: Arial, Verdana, sans-serif\" width=\"100%\" height=\"100\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\">\n <tr>\n <td style=\"padding-left:15px;\"><b><font size=\"4\" align=\"center\">{ts}CREDIT NOTE{/ts}</font></b></td>\n <td style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Date:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">{domain.name}</font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{contact.display_name}{if \'{contact.current_employer}\'} ({contact.current_employer}){/if}</font></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{$invoice_date}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.street_address}\n {domain.supplemental_address_1}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{$street_address} {$supplemental_address_1}</font></td>\n <td style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Credit Note Number:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.supplemental_address_2}\n {domain.state_province_id:label}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"center\">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{contribution.creditnote_id}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.city}\n {domain.postal_code}\n </font></td>\n </tr>\n <tr>\n <td style=\"padding-left:17px;\"><font size=\"1\" align=\"right\">{$city} {$postal_code}</font></td>\n <td height=\"10\" style=\"padding-left:30px;\"><b><font size=\"1\" align=\"right\">{ts}Reference:{/ts}</font></b></td>\n <td><font size=\"1\" align=\"right\">\n {domain.country_id:label}\n </font></td>\n </tr>\n <tr>\n <td></td>\n <td style=\"padding-left:30px;\"><font size=\"1\" align=\"right\">{contribution.source}</font></td>\n <td><font size=\"1\" align=\"right\">\n {domain.email}\n </font></td>\n </tr>\n <tr>\n <td></td>\n <td></td>\n <td><font size=\"1\" align=\"right\">\n {domain.phone}\n </font></td>\n </tr>\n </table>\n\n <table style=\"margin-top:75px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\" id=\"desc\">\n <tr>\n <td colspan=\"2\">\n <table>\n <tr>\n <th style=\"padding-right:28px;text-align:left;font-weight:bold;width:200px;\"><font size=\"1\">{ts}Description{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts}Quantity{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts}Unit Price{/ts}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{domain.tax_term}</font></th>\n <th style=\"padding-left:28px;text-align:right;font-weight:bold;\"><font size=\"1\">{ts 1=$currency}Amount %1{/ts}</font></th>\n </tr>\n {foreach from=$lineItems item=line key=index}\n <tr><td colspan=\"5\"><hr {if $index == 0}size=\"3\" style=\"color:#000;\"{else}style=\"color:#F5F5F5;\"{/if}></hr></td></tr>\n <tr>\n <td style =\"text-align:left;\" ><font size=\"1\">\n {$line.title}\n </font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.qty}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.unit_price|crmMoney:$currency}</font></td>\n {if $line.tax_amount != \'\'}\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{if $line.tax_rate}{$line.tax_rate|crmNumberFormat}%{/if}</font></td>\n {else}\n <td style=\"padding-left:28px;text-align:right\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\'}No %1{/ts}{/if}</font></td>\n {/if}\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$line.line_total|crmMoney:\'{contribution.currency}\'}</font></td>\n </tr>\n {/foreach}\n <tr><td colspan=\"5\" style=\"color:#F5F5F5;\"><hr></hr></td></tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{ts}Sub Total{/ts}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$subTotal|crmMoney:$currency}</font></td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n {if $taxRate != 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{if \'{domain.tax_term}\'}{ts 1=\'{domain.tax_term}\' 2=$taxRate|crmNumberFormat}TOTAL %1 %2%{/ts}{/if}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\" align=\"right\">{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</font> </td>\n </tr>\n {/if}\n {/foreach}\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{ts 1=$currency}TOTAL %1{/ts}</font></b></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n {if \'{contribution.is_pay_later}\' == 0}\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{ts}LESS Credit to invoice(s){/ts}</font></td>\n <td style=\"padding-left:28px;text-align:right;\"><font size=\"1\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td colspan=\"2\"><hr></hr></td>\n </tr>\n <tr>\n <td colspan=\"3\"></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{ts}REMAINING CREDIT{/ts}</font></b></td>\n <td style=\"padding-left:28px;text-align:right;\"><b><font size=\"1\">{$amountDue|crmMoney:$currency}</font></b></td>\n <td style=\"padding-left:28px;\"><font size=\"1\" align=\"right\"></font></td>\n </tr>\n {/if}\n <br/><br/><br/>\n <tr>\n <td colspan=\"3\"></td>\n </tr>\n <tr>\n <td></td>\n <td colspan=\"3\"></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n <table width=\"100%\" style=\"margin-top:5px;padding-right:45px;\">\n <tr>\n <td><img src=\"{$resourceBase}/i/contribute/cut_line.png\" height=\"15\" width=\"100%\"></td>\n </tr>\n </table>\n\n <table style=\"margin-top:6px;font-family: Arial, Verdana, sans-serif\" width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\" id=\"desc\">\n <tr>\n <td width=\"60%\"><font size=\"4\" align=\"right\"><b>{ts}CREDIT ADVICE{/ts}</b><br/><br /><div style=\"font-size:10px;max-width:300px;\">{ts}Please do not pay on this advice. Deduct the amount of this Credit Note from your next payment to us{/ts}</div><br/></font></td>\n <td width=\"40%\">\n <table align=\"right\">\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Customer:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contact.display_name}</font></td>\n </tr>\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Credit Note#:{/ts}</font></td>\n <td><font size=\"1\" align=\"right\">{contribution.creditnote_id}</font></td>\n </tr>\n <tr><td colspan=\"5\"style=\"color:#F5F5F5;\"><hr></hr></td></tr>\n <tr>\n <td colspan=\"2\"></td>\n <td><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{ts}Credit Amount:{/ts}</font></td>\n <td width=\'50px\'><font size=\"1\" align=\"right\" style=\"font-weight:bold;\">{$amount|crmMoney:$currency}</font></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n {/if}\n\n </div>\n </body>\n</html>\n',1,818,'contribution_invoice_receipt',0,1,0,NULL), + (11,'Contributions - Recurring Start and End Notification','{ts}Recurring Contribution Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $recur_txnType eq \'START\'}\n{if $auto_renew_membership}\n{ts}Thanks for your auto renew membership sign-up.{/ts}\n\n\n{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s).{/ts}\n\n{if $cancelSubscriptionUrl}\n{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n{else}\n{ts}Thanks for your recurring contribution sign-up.{/ts}\n\n\n{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments} {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.\n\n{ts}Start Date{/ts}: {$recur_start_date|crmDate}\n\n{if $cancelSubscriptionUrl}\n{ts 1=$cancelSubscriptionUrl}You can cancel the recurring contribution option by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionUrl}\n{ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n{/if}\n\n{elseif $recur_txnType eq \'END\'}\n{if $auto_renew_membership}\n{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}\n\n\n{else}\n{ts}Your recurring contribution term has ended.{/ts}\n\n\n{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}\n\n\n==================================================\n{ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}\n\n==================================================\n{ts}Start Date{/ts}: {$recur_start_date|crmDate}\n\n{ts}End Date{/ts}: {$recur_end_date|crmDate}\n\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n </td>\n </tr>\n\n <tr>\n <td> </td>\n </tr>\n\n {if $recur_txnType eq \'START\'}\n {if $auto_renew_membership}\n <tr>\n <td>\n <p>{ts}Thanks for your auto renew membership sign-up.{/ts}</p>\n <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s). {/ts}</p>\n </td>\n </tr>\n {if $cancelSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {else}\n <tr>\n <td>\n <p>{ts}Thanks for your recurring contribution sign-up.{/ts}</p>\n <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments}{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.</p>\n <p>{ts}Start Date{/ts}: {$recur_start_date|crmDate}</p>\n </td>\n </tr>\n {if $cancelSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$cancelSubscriptionUrl} You can cancel the recurring contribution option by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {elseif $recur_txnType eq \'END\'}\n\n {if $auto_renew_membership}\n <tr>\n <td>\n <p>{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}</p>\n </td>\n </tr>\n {else}\n <tr>\n <td>\n <p>{ts}Your recurring contribution term has ended.{/ts}</p>\n <p>{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$recur_start_date|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$recur_end_date|crmDate}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n {/if}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,819,'contribution_recurring_notify',1,0,0,NULL), + (12,'Contributions - Recurring Start and End Notification','{ts}Recurring Contribution Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $recur_txnType eq \'START\'}\n{if $auto_renew_membership}\n{ts}Thanks for your auto renew membership sign-up.{/ts}\n\n\n{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s).{/ts}\n\n{if $cancelSubscriptionUrl}\n{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n{else}\n{ts}Thanks for your recurring contribution sign-up.{/ts}\n\n\n{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments} {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.\n\n{ts}Start Date{/ts}: {$recur_start_date|crmDate}\n\n{if $cancelSubscriptionUrl}\n{ts 1=$cancelSubscriptionUrl}You can cancel the recurring contribution option by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n\n{if $updateSubscriptionUrl}\n{ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n\n{/if}\n{/if}\n\n{elseif $recur_txnType eq \'END\'}\n{if $auto_renew_membership}\n{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}\n\n\n{else}\n{ts}Your recurring contribution term has ended.{/ts}\n\n\n{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}\n\n\n==================================================\n{ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}\n\n==================================================\n{ts}Start Date{/ts}: {$recur_start_date|crmDate}\n\n{ts}End Date{/ts}: {$recur_end_date|crmDate}\n\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n </td>\n </tr>\n\n <tr>\n <td> </td>\n </tr>\n\n {if $recur_txnType eq \'START\'}\n {if $auto_renew_membership}\n <tr>\n <td>\n <p>{ts}Thanks for your auto renew membership sign-up.{/ts}</p>\n <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s). {/ts}</p>\n </td>\n </tr>\n {if $cancelSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {else}\n <tr>\n <td>\n <p>{ts}Thanks for your recurring contribution sign-up.{/ts}</p>\n <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments}{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.</p>\n <p>{ts}Start Date{/ts}: {$recur_start_date|crmDate}</p>\n </td>\n </tr>\n {if $cancelSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$cancelSubscriptionUrl} You can cancel the recurring contribution option by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {if $updateSubscriptionUrl}\n <tr>\n <td {$labelStyle}>\n {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments details for this recurring contribution by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {elseif $recur_txnType eq \'END\'}\n\n {if $auto_renew_membership}\n <tr>\n <td>\n <p>{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}</p>\n </td>\n </tr>\n {else}\n <tr>\n <td>\n <p>{ts}Your recurring contribution term has ended.{/ts}</p>\n <p>{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$recur_start_date|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$recur_end_date|crmDate}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n {/if}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,819,'contribution_recurring_notify',0,1,0,NULL), + (13,'Contributions - Recurring Cancellation Notification','{ts}Recurring Contribution Cancellation Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n</body>\n</html>\n',1,820,'contribution_recurring_cancelled',1,0,0,NULL), + (14,'Contributions - Recurring Cancellation Notification','{ts}Recurring Contribution Cancellation Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n</body>\n</html>\n',1,820,'contribution_recurring_cancelled',0,1,0,NULL), + (15,'Contributions - Recurring Billing Updates','{ts}Recurring Contribution Billing Updates{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,821,'contribution_recurring_billing',1,0,0,NULL), + (16,'Contributions - Recurring Billing Updates','{ts}Recurring Contribution Billing Updates{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,821,'contribution_recurring_billing',0,1,0,NULL), + (17,'Contributions - Recurring Updates','{ts}Recurring Contribution Update Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Your recurring contribution has been updated as requested:{/ts}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}\n{if $installments}{ts 1=$installments} for %1 installments.{/ts}{/if}\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Your recurring contribution has been updated as requested:{/ts}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}{if $installments}{ts 1=$installments} for %1 installments{/ts}{/if}.</p>\n\n <p>{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n</body>\n</html>\n',1,822,'contribution_recurring_edit',1,0,0,NULL), + (18,'Contributions - Recurring Updates','{ts}Recurring Contribution Update Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Your recurring contribution has been updated as requested:{/ts}\n\n{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}\n{if $installments}{ts 1=$installments} for %1 installments.{/ts}{/if}\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Your recurring contribution has been updated as requested:{/ts}\n <p>{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}{if $installments}{ts 1=$installments} for %1 installments{/ts}{/if}.</p>\n\n <p>{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n</body>\n</html>\n',1,822,'contribution_recurring_edit',0,1,0,NULL), + (19,'Personal Campaign Pages - Admin Notification','{ts}Personal Campaign Page Notification{/ts} - {contact.display_name}\n','===========================================================\n{ts}Personal Campaign Page Notification{/ts}\n\n===========================================================\n{ts}Action{/ts}: {if $mode EQ \'Update\'}{ts}Updated personal campaign page{/ts}{else}{ts}New personal campaign page{/ts}{/if}\n{ts}Personal Campaign Page Title{/ts}: {$pcpTitle}\n{ts}Current Status{/ts}: {$pcpStatus}\n{capture assign=pcpURL}{crmURL p=\"civicrm/pcp/info\" q=\"reset=1&id=`$pcpId`\" h=0 a=1 fe=1}{/capture}\n{ts}View Page{/ts}:\n>> {$pcpURL}\n\n{ts}Supporter{/ts}: {$supporterName}\n>> {$supporterUrl}\n\n{ts}Linked to Contribution Page{/ts}: {$contribPageTitle}\n>> {$contribPageUrl}\n\n{ts}Manage Personal Campaign Pages{/ts}:\n>> {$managePCPUrl}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=pcpURL}{crmURL p=\"civicrm/pcp/info\" q=\"reset=1&id=`$pcpId`\" h=0 a=1 fe=1}{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page Notification{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Action{/ts}:\n </td>\n <td {$valueStyle}>\n {if $mode EQ \'Update\'}\n {ts}Updated personal campaign page{/ts}\n {else}\n {ts}New personal campaign page{/ts}\n {/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Personal Campaign Page Title{/ts}\n </td>\n <td {$valueStyle}>\n {$pcpTitle}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Current Status{/ts}\n </td>\n <td {$valueStyle}>\n {$pcpStatus}\n </td>\n </tr>\n\n <tr>\n <td {$labelStyle}>\n <a href=\"{$pcpURL}\">{ts}View Page{/ts}</a>\n </td>\n <td></td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Supporter{/ts}\n </td>\n <td {$valueStyle}>\n <a href=\"{$supporterUrl}\">{$supporterName}</a>\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Linked to Contribution Page{/ts}\n </td>\n <td {$valueStyle}>\n <a href=\"{$contribPageUrl}\">{$contribPageTitle}</a>\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n <a href=\"{$managePCPUrl}\">{ts}Manage Personal Campaign Pages{/ts}</a>\n </td>\n <td></td>\n </tr>\n\n </table>\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,823,'pcp_notify',1,0,0,NULL), + (20,'Personal Campaign Pages - Admin Notification','{ts}Personal Campaign Page Notification{/ts} - {contact.display_name}\n','===========================================================\n{ts}Personal Campaign Page Notification{/ts}\n\n===========================================================\n{ts}Action{/ts}: {if $mode EQ \'Update\'}{ts}Updated personal campaign page{/ts}{else}{ts}New personal campaign page{/ts}{/if}\n{ts}Personal Campaign Page Title{/ts}: {$pcpTitle}\n{ts}Current Status{/ts}: {$pcpStatus}\n{capture assign=pcpURL}{crmURL p=\"civicrm/pcp/info\" q=\"reset=1&id=`$pcpId`\" h=0 a=1 fe=1}{/capture}\n{ts}View Page{/ts}:\n>> {$pcpURL}\n\n{ts}Supporter{/ts}: {$supporterName}\n>> {$supporterUrl}\n\n{ts}Linked to Contribution Page{/ts}: {$contribPageTitle}\n>> {$contribPageUrl}\n\n{ts}Manage Personal Campaign Pages{/ts}:\n>> {$managePCPUrl}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=pcpURL}{crmURL p=\"civicrm/pcp/info\" q=\"reset=1&id=`$pcpId`\" h=0 a=1 fe=1}{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page Notification{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Action{/ts}:\n </td>\n <td {$valueStyle}>\n {if $mode EQ \'Update\'}\n {ts}Updated personal campaign page{/ts}\n {else}\n {ts}New personal campaign page{/ts}\n {/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Personal Campaign Page Title{/ts}\n </td>\n <td {$valueStyle}>\n {$pcpTitle}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Current Status{/ts}\n </td>\n <td {$valueStyle}>\n {$pcpStatus}\n </td>\n </tr>\n\n <tr>\n <td {$labelStyle}>\n <a href=\"{$pcpURL}\">{ts}View Page{/ts}</a>\n </td>\n <td></td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Supporter{/ts}\n </td>\n <td {$valueStyle}>\n <a href=\"{$supporterUrl}\">{$supporterName}</a>\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Linked to Contribution Page{/ts}\n </td>\n <td {$valueStyle}>\n <a href=\"{$contribPageUrl}\">{$contribPageTitle}</a>\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n <a href=\"{$managePCPUrl}\">{ts}Manage Personal Campaign Pages{/ts}</a>\n </td>\n <td></td>\n </tr>\n\n </table>\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,823,'pcp_notify',0,1,0,NULL), + (21,'Personal Campaign Pages - Supporter Status Change Notification','{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}\n','{if $pcpStatus eq \'Approved\'}\n============================\n{ts}Your Personal Campaign Page{/ts}\n\n============================\n\n{ts}Your personal campaign page has been approved and is now live.{/ts}\n\n{ts}Whenever you want to preview, update or promote your page{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser to go to your page{/ts}:\n{$pcpInfoURL}\n\n{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}\n\n{if $isTellFriendEnabled}\n\n{ts}After logging in, you can use this form to promote your fundraising page{/ts}:\n{$pcpTellFriendURL}\n\n{/if}\n\n{if $pcpNotifyEmailAddress}\n{ts}Questions? Send email to{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n\n{* Rejected message *}\n{elseif $pcpStatus eq \'Not Approved\'}\n============================\n{ts}Your Personal Campaign Page{/ts}\n\n============================\n\n{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}\n\n{if $pcpNotifyEmailAddress}\n\n{ts}Please contact our site administrator for more information{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n\n <h1>{ts}Your Personal Campaign Page{/ts}</h1>\n\n {if $pcpStatus eq \'Approved\'}\n\n <p>{ts}Your personal campaign page has been approved and is now live.{/ts}</p>\n <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Go to your page{/ts}</a></li>\n </ol>\n <p>{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}</p>\n\n {if $isTellFriendEnabled}\n <p><a href=\"{$pcpTellFriendURL}\">{ts}After logging in, you can use this form to promote your fundraising page{/ts}</a></p>\n {/if}\n\n {if $pcpNotifyEmailAddress}\n <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>\n {/if}\n\n {elseif $pcpStatus eq \'Not Approved\'}\n\n <p>{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}</p>\n {if $pcpNotifyEmailAddress}\n <p>{ts}Please contact our site administrator for more information{/ts}: {$pcpNotifyEmailAddress}</p>\n {/if}\n\n {/if}\n\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,824,'pcp_status_change',1,0,0,NULL), + (22,'Personal Campaign Pages - Supporter Status Change Notification','{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}\n','{if $pcpStatus eq \'Approved\'}\n============================\n{ts}Your Personal Campaign Page{/ts}\n\n============================\n\n{ts}Your personal campaign page has been approved and is now live.{/ts}\n\n{ts}Whenever you want to preview, update or promote your page{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser to go to your page{/ts}:\n{$pcpInfoURL}\n\n{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}\n\n{if $isTellFriendEnabled}\n\n{ts}After logging in, you can use this form to promote your fundraising page{/ts}:\n{$pcpTellFriendURL}\n\n{/if}\n\n{if $pcpNotifyEmailAddress}\n{ts}Questions? Send email to{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n\n{* Rejected message *}\n{elseif $pcpStatus eq \'Not Approved\'}\n============================\n{ts}Your Personal Campaign Page{/ts}\n\n============================\n\n{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}\n\n{if $pcpNotifyEmailAddress}\n\n{ts}Please contact our site administrator for more information{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n\n <h1>{ts}Your Personal Campaign Page{/ts}</h1>\n\n {if $pcpStatus eq \'Approved\'}\n\n <p>{ts}Your personal campaign page has been approved and is now live.{/ts}</p>\n <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Go to your page{/ts}</a></li>\n </ol>\n <p>{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}</p>\n\n {if $isTellFriendEnabled}\n <p><a href=\"{$pcpTellFriendURL}\">{ts}After logging in, you can use this form to promote your fundraising page{/ts}</a></p>\n {/if}\n\n {if $pcpNotifyEmailAddress}\n <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>\n {/if}\n\n {elseif $pcpStatus eq \'Not Approved\'}\n\n <p>{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}</p>\n {if $pcpNotifyEmailAddress}\n <p>{ts}Please contact our site administrator for more information{/ts}: {$pcpNotifyEmailAddress}</p>\n {/if}\n\n {/if}\n\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,824,'pcp_status_change',0,1,0,NULL), + (23,'Personal Campaign Pages - Supporter Welcome','{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=\"$contribPageTitle\"}Thanks for creating a personal campaign page in support of %1.{/ts}\n\n{if $pcpStatus eq \'Approved\'}\n====================\n{ts}Promoting Your Page{/ts}\n\n====================\n{if $isTellFriendEnabled}\n\n{ts}You can begin your fundraising efforts using our \"Tell a Friend\" form{/ts}:\n\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser and follow the prompts{/ts}:\n{$pcpTellFriendURL}\n{else}\n\n{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts}\n{ts}Include this link to your fundraising page in your emails{/ts}:\n{$pcpInfoURL}\n{/if}\n\n===================\n{ts}Managing Your Page{/ts}\n\n===================\n{ts}Whenever you want to preview, update or promote your page{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser to go to your page{/ts}:\n{$pcpInfoURL}\n\n{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}\n\n\n{elseif $pcpStatus EQ \'Waiting Review\'}\n{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}\n\n\n{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}\n\n\n{ts}You can still preview your page prior to approval{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser{/ts}:\n{$pcpInfoURL}\n\n{/if}\n{if $pcpNotifyEmailAddress}\n{ts}Questions? Send email to{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=\"$contribPageTitle\"}Thanks for creating a personal campaign page in support of %1.{/ts}</p>\n </td>\n </tr>\n\n {if $pcpStatus eq \'Approved\'}\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Promoting Your Page{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {if $isTellFriendEnabled}\n <p>{ts}You can begin your fundraising efforts using our \"Tell a Friend\" form{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpTellFriendURL}\">{ts}Click this link and follow the prompts{/ts}</a></li>\n </ol>\n {else}\n <p>{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts} {ts}Include this link to your fundraising page in your emails{/ts}: {$pcpInfoURL}</p>\n {/if}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Managing Your Page{/ts}\n </th>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Go to your page{/ts}</a></li>\n </ol>\n <p>{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}</p>\n </td>\n </tr>\n </tr>\n </table>\n </td>\n </tr>\n\n {elseif $pcpStatus EQ \'Waiting Review\'}\n\n <tr>\n <td>\n <p>{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}</p>\n <p>{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}</p>\n <p>{ts}You can still preview your page prior to approval{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Click this link{/ts}</a></li>\n </ol>\n </td>\n </tr>\n\n {/if}\n\n {if $pcpNotifyEmailAddress}\n <tr>\n <td>\n <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,825,'pcp_supporter_notify',1,0,0,NULL), + (24,'Personal Campaign Pages - Supporter Welcome','{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=\"$contribPageTitle\"}Thanks for creating a personal campaign page in support of %1.{/ts}\n\n{if $pcpStatus eq \'Approved\'}\n====================\n{ts}Promoting Your Page{/ts}\n\n====================\n{if $isTellFriendEnabled}\n\n{ts}You can begin your fundraising efforts using our \"Tell a Friend\" form{/ts}:\n\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser and follow the prompts{/ts}:\n{$pcpTellFriendURL}\n{else}\n\n{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts}\n{ts}Include this link to your fundraising page in your emails{/ts}:\n{$pcpInfoURL}\n{/if}\n\n===================\n{ts}Managing Your Page{/ts}\n\n===================\n{ts}Whenever you want to preview, update or promote your page{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser to go to your page{/ts}:\n{$pcpInfoURL}\n\n{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}\n\n\n{elseif $pcpStatus EQ \'Waiting Review\'}\n{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}\n\n\n{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}\n\n\n{ts}You can still preview your page prior to approval{/ts}:\n1. {ts}Login to your account at{/ts}:\n{$loginUrl}\n\n2. {ts}Click or paste this link into your browser{/ts}:\n{$pcpInfoURL}\n\n{/if}\n{if $pcpNotifyEmailAddress}\n{ts}Questions? Send email to{/ts}:\n{$pcpNotifyEmailAddress}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=\"$contribPageTitle\"}Thanks for creating a personal campaign page in support of %1.{/ts}</p>\n </td>\n </tr>\n\n {if $pcpStatus eq \'Approved\'}\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Promoting Your Page{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {if $isTellFriendEnabled}\n <p>{ts}You can begin your fundraising efforts using our \"Tell a Friend\" form{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpTellFriendURL}\">{ts}Click this link and follow the prompts{/ts}</a></li>\n </ol>\n {else}\n <p>{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts} {ts}Include this link to your fundraising page in your emails{/ts}: {$pcpInfoURL}</p>\n {/if}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Managing Your Page{/ts}\n </th>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Go to your page{/ts}</a></li>\n </ol>\n <p>{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}</p>\n </td>\n </tr>\n </tr>\n </table>\n </td>\n </tr>\n\n {elseif $pcpStatus EQ \'Waiting Review\'}\n\n <tr>\n <td>\n <p>{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}</p>\n <p>{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}</p>\n <p>{ts}You can still preview your page prior to approval{/ts}:</p>\n <ol>\n <li><a href=\"{$loginUrl}\">{ts}Login to your account{/ts}</a></li>\n <li><a href=\"{$pcpInfoURL}\">{ts}Click this link{/ts}</a></li>\n </ol>\n </td>\n </tr>\n\n {/if}\n\n {if $pcpNotifyEmailAddress}\n <tr>\n <td>\n <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,825,'pcp_supporter_notify',0,1,0,NULL), + (25,'Personal Campaign Pages - Owner Notification','{ts}Someone has just donated to your personal campaign page{/ts} - {contact.display_name}\n','===========================================================\n{ts}Personal Campaign Page Owner Notification{/ts}\n\n===========================================================\n{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}You have received a donation at your personal page{/ts}: {$page_title}\n>> {$pcpInfoURL}\n\n{ts}Your fundraising total has been updated.{/ts}\n{ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts}\n{if $is_honor_roll_enabled}\n {ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}\n{/if}\n\n{ts}Contribution Date{/ts}: {$receive_date|crmDate}\n\n{ts}Amount{/ts}: {$total_amount|crmMoney:$currency}\n\n{ts}Name{/ts}: {$donors_display_name}\n\n{ts}Email{/ts}: {$donors_email}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}You have received a donation at your personal page{/ts}: <a href=\"{$pcpInfoURL}\">{$page_title}</a></p>\n <p>{ts}Your fundraising total has been updated.{/ts}<br/>\n {ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts} <br/>\n {if $is_honor_roll_enabled}\n {ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}<br/>\n {/if}\n </p>\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <tr><td>{ts}Contribution Date{/ts}:</td><td> {$receive_date|crmDate}</td></tr>\n <tr><td>{ts}Amount{/ts}:</td><td> {$total_amount|crmMoney:$currency}</td></tr>\n <tr><td>{ts}Name{/ts}:</td><td> {$donors_display_name}</td></tr>\n <tr><td>{ts}Email{/ts}:</td><td> {$donors_email}</td></tr>\n </table>\n</body>\n</html>\n',1,826,'pcp_owner_notify',1,0,0,NULL), + (26,'Personal Campaign Pages - Owner Notification','{ts}Someone has just donated to your personal campaign page{/ts} - {contact.display_name}\n','===========================================================\n{ts}Personal Campaign Page Owner Notification{/ts}\n\n===========================================================\n{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}You have received a donation at your personal page{/ts}: {$page_title}\n>> {$pcpInfoURL}\n\n{ts}Your fundraising total has been updated.{/ts}\n{ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts}\n{if $is_honor_roll_enabled}\n {ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}\n{/if}\n\n{ts}Contribution Date{/ts}: {$receive_date|crmDate}\n\n{ts}Amount{/ts}: {$total_amount|crmMoney:$currency}\n\n{ts}Name{/ts}: {$donors_display_name}\n\n{ts}Email{/ts}: {$donors_email}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}You have received a donation at your personal page{/ts}: <a href=\"{$pcpInfoURL}\">{$page_title}</a></p>\n <p>{ts}Your fundraising total has been updated.{/ts}<br/>\n {ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts} <br/>\n {if $is_honor_roll_enabled}\n {ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}<br/>\n {/if}\n </p>\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <tr><td>{ts}Contribution Date{/ts}:</td><td> {$receive_date|crmDate}</td></tr>\n <tr><td>{ts}Amount{/ts}:</td><td> {$total_amount|crmMoney:$currency}</td></tr>\n <tr><td>{ts}Name{/ts}:</td><td> {$donors_display_name}</td></tr>\n <tr><td>{ts}Email{/ts}:</td><td> {$donors_email}</td></tr>\n </table>\n</body>\n</html>\n',1,826,'pcp_owner_notify',0,1,0,NULL), + (27,'Additional Payment Receipt or Refund Notification','{if $isRefund}{ts}Refund Notification{/ts}{else}{ts}Payment Receipt{/ts}{/if}{if $component eq \'event\'} - {$event.title}{/if} - {contact.display_name}\n','{if $emailGreeting}{$emailGreeting},\n{/if}\n\n{if $isRefund}\n{ts}A refund has been issued based on changes in your registration selections.{/ts}\n{else}\n{ts}Below you will find a receipt for this payment.{/ts}\n{/if}\n{if $paymentsComplete}\n{ts}Thank you for completing this payment.{/ts}\n{/if}\n\n{if $isRefund}\n===============================================================================\n\n{ts}Refund Details{/ts}\n\n===============================================================================\n{ts}This Refund Amount{/ts}: {$refundAmount|crmMoney:$currency}\n------------------------------------------------------------------------------------\n\n{else}\n===============================================================================\n\n{ts}Payment Details{/ts}\n\n===============================================================================\n{ts}This Payment Amount{/ts}: {$paymentAmount|crmMoney:$currency}\n------------------------------------------------------------------------------------\n{/if}\n{if $receive_date}\n{ts}Transaction Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if !empty($paidBy)}\n{ts}Paid By{/ts}: {$paidBy}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n\n===============================================================================\n\n{ts}Contribution Details{/ts}\n\n===============================================================================\n{if $totalAmount}\n{ts}Total Fee{/ts}: {$totalAmount|crmMoney:$currency}\n{/if}\n{if $totalPaid}\n{ts}Total Paid{/ts}: {$totalPaid|crmMoney:$currency}\n{/if}\n{if $amountOwed}\n{ts}Balance Owed{/ts}: {$amountOwed|crmMoney:$currency} {* This will be zero after final payment. *}\n{/if}\n\n\n{if !empty($billingName) || !empty($address)}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n{if !empty($billingName)}\n{$billingName}\n{/if}\n{if !empty($address)}\n{$address}\n{/if}\n{/if}\n\n{if !empty($credit_card_number)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{if $component eq \'event\'}\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{if !empty($event.participant_role)}\n{ts}Participant Role{/ts}: {$event.participant_role}\n{/if}\n\n{if !empty($isShowLocation)}\n{$location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($location.phone.1.phone) || !empty($location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}\n{/foreach}\n{foreach from=$location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=emptyBlockStyle}style=\"padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;\"{/capture}\n{capture assign=emptyBlockValueStyle}style=\"padding: 10px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $isRefund}\n <p>{ts}A refund has been issued based on changes in your registration selections.{/ts}</p>\n {else}\n <p>{ts}Below you will find a receipt for this payment.{/ts}</p>\n {if $paymentsComplete}\n <p>{ts}Thank you for completing this contribution.{/ts}</p>\n {/if}\n {/if}\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if $isRefund}\n <tr>\n <th {$headerStyle}>{ts}Refund Details{/ts}</th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}This Refund Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$refundAmount|crmMoney:$currency}\n </td>\n </tr>\n {else}\n <tr>\n <th {$headerStyle}>{ts}Payment Details{/ts}</th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}This Payment Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$paymentAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $receive_date}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n {if !empty($paidBy)}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {$paidBy}\n </td>\n </tr>\n {/if}\n {if !empty($checkNumber)}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {$checkNumber}\n </td>\n </tr>\n {/if}\n\n <tr>\n <th {$headerStyle}>{ts}Contribution Details{/ts}</th>\n </tr>\n {if $totalAmount}\n <tr>\n <td {$labelStyle}>\n {ts}Total Fee{/ts}\n </td>\n <td {$valueStyle}>\n {$totalAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $totalPaid}\n <tr>\n <td {$labelStyle}>\n {ts}Total Paid{/ts}\n </td>\n <td {$valueStyle}>\n {$totalPaid|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $amountOwed}\n <tr>\n <td {$labelStyle}>\n {ts}Balance Owed{/ts}\n </td>\n <td {$valueStyle}>\n {$amountOwed|crmMoney:$currency}\n </td> {* This will be zero after final payment. *}\n </tr>\n {/if}\n </table>\n\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if !empty($billingName) || !empty($address)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {if !empty($billingName)}{$billingName}{/if}<br />\n {if !empty($address)}{$address|nl2br}{/if}\n </td>\n </tr>\n {/if}\n {if !empty($credit_card_number)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {if $component eq \'event\'}\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n\n {if !empty($event.participant_role)}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {$event.participant_role}\n </td>\n </tr>\n {/if}\n\n {if !empty($isShowLocation)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($location.phone.1.phone) || !empty($location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}\n {$phone.phone_type_display}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if} {*phone block close*}\n {/if}\n </table>\n </td>\n </tr>\n\n </table>\n\n </body>\n</html>\n',1,827,'payment_or_refund_notification',1,0,0,NULL), + (28,'Additional Payment Receipt or Refund Notification','{if $isRefund}{ts}Refund Notification{/ts}{else}{ts}Payment Receipt{/ts}{/if}{if $component eq \'event\'} - {$event.title}{/if} - {contact.display_name}\n','{if $emailGreeting}{$emailGreeting},\n{/if}\n\n{if $isRefund}\n{ts}A refund has been issued based on changes in your registration selections.{/ts}\n{else}\n{ts}Below you will find a receipt for this payment.{/ts}\n{/if}\n{if $paymentsComplete}\n{ts}Thank you for completing this payment.{/ts}\n{/if}\n\n{if $isRefund}\n===============================================================================\n\n{ts}Refund Details{/ts}\n\n===============================================================================\n{ts}This Refund Amount{/ts}: {$refundAmount|crmMoney:$currency}\n------------------------------------------------------------------------------------\n\n{else}\n===============================================================================\n\n{ts}Payment Details{/ts}\n\n===============================================================================\n{ts}This Payment Amount{/ts}: {$paymentAmount|crmMoney:$currency}\n------------------------------------------------------------------------------------\n{/if}\n{if $receive_date}\n{ts}Transaction Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if !empty($paidBy)}\n{ts}Paid By{/ts}: {$paidBy}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n\n===============================================================================\n\n{ts}Contribution Details{/ts}\n\n===============================================================================\n{if $totalAmount}\n{ts}Total Fee{/ts}: {$totalAmount|crmMoney:$currency}\n{/if}\n{if $totalPaid}\n{ts}Total Paid{/ts}: {$totalPaid|crmMoney:$currency}\n{/if}\n{if $amountOwed}\n{ts}Balance Owed{/ts}: {$amountOwed|crmMoney:$currency} {* This will be zero after final payment. *}\n{/if}\n\n\n{if !empty($billingName) || !empty($address)}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n{if !empty($billingName)}\n{$billingName}\n{/if}\n{if !empty($address)}\n{$address}\n{/if}\n{/if}\n\n{if !empty($credit_card_number)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{if $component eq \'event\'}\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{if !empty($event.participant_role)}\n{ts}Participant Role{/ts}: {$event.participant_role}\n{/if}\n\n{if !empty($isShowLocation)}\n{$location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($location.phone.1.phone) || !empty($location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}\n{/foreach}\n{foreach from=$location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=emptyBlockStyle}style=\"padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;\"{/capture}\n{capture assign=emptyBlockValueStyle}style=\"padding: 10px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $isRefund}\n <p>{ts}A refund has been issued based on changes in your registration selections.{/ts}</p>\n {else}\n <p>{ts}Below you will find a receipt for this payment.{/ts}</p>\n {if $paymentsComplete}\n <p>{ts}Thank you for completing this contribution.{/ts}</p>\n {/if}\n {/if}\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if $isRefund}\n <tr>\n <th {$headerStyle}>{ts}Refund Details{/ts}</th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}This Refund Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$refundAmount|crmMoney:$currency}\n </td>\n </tr>\n {else}\n <tr>\n <th {$headerStyle}>{ts}Payment Details{/ts}</th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}This Payment Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$paymentAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $receive_date}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n {if !empty($paidBy)}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {$paidBy}\n </td>\n </tr>\n {/if}\n {if !empty($checkNumber)}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {$checkNumber}\n </td>\n </tr>\n {/if}\n\n <tr>\n <th {$headerStyle}>{ts}Contribution Details{/ts}</th>\n </tr>\n {if $totalAmount}\n <tr>\n <td {$labelStyle}>\n {ts}Total Fee{/ts}\n </td>\n <td {$valueStyle}>\n {$totalAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $totalPaid}\n <tr>\n <td {$labelStyle}>\n {ts}Total Paid{/ts}\n </td>\n <td {$valueStyle}>\n {$totalPaid|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n {if $amountOwed}\n <tr>\n <td {$labelStyle}>\n {ts}Balance Owed{/ts}\n </td>\n <td {$valueStyle}>\n {$amountOwed|crmMoney:$currency}\n </td> {* This will be zero after final payment. *}\n </tr>\n {/if}\n </table>\n\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if !empty($billingName) || !empty($address)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {if !empty($billingName)}{$billingName}{/if}<br />\n {if !empty($address)}{$address|nl2br}{/if}\n </td>\n </tr>\n {/if}\n {if !empty($credit_card_number)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {if $component eq \'event\'}\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n\n {if !empty($event.participant_role)}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {$event.participant_role}\n </td>\n </tr>\n {/if}\n\n {if !empty($isShowLocation)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($location.phone.1.phone) || !empty($location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}\n {$phone.phone_type_display}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if} {*phone block close*}\n {/if}\n </table>\n </td>\n </tr>\n\n </table>\n\n </body>\n</html>\n',1,827,'payment_or_refund_notification',0,1,0,NULL), + (29,'Events - Registration Confirmation and Receipt (off-line)','{ts}Event Confirmation{/ts} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n{/if}\n\n{if !empty($isOnWaitlist)}\n===============================================================================\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n\n===============================================================================\n\n{elseif !empty($isRequireApproval)}\n===============================================================================\n\n{ts}Your registration has been submitted.{/ts}\n\n{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}\n\n===============================================================================\n\n{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}}\n\n===============================================================================\n\n{$pay_later_receipt}\n===============================================================================\n\n{/if}\n\n\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{event.title}\n{event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date}{/if}{/if}\n\n{if \"{participant.role_id:label}\" neq \'Attendee\'}\n{ts}Participant Role{/ts}: {participant.role_id:label}\n{/if}\n\n{if !empty($isShowLocation)}\n{event.location}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n{ts}Event Contacts:{/ts}\n\n{if {event.loc_block_id.phone_id.phone|boolean}}\n{if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n\n{if {event.loc_block_id.phone_2_id.phone|boolean}}\n{if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}{event.loc_block_id.phone_2_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n{/if}\n\n{if {event.loc_block_id.email_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_id.email}\n{/if}\n{if {event.loc_block_id.email_2_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if}\n{/if}\n\n\n{if {event.is_public|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if {contact.email_primary.email|boolean}}\n\n===============================================================================\n\n{ts}Registered Email{/ts}\n\n===============================================================================\n\n{contact.email_primary.email}\n{/if}\n{if {event.is_monetary|boolean}} {* This section for Paid events only.*}\n\n===============================================================================\n\n{event.fee_label}\n===============================================================================\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if {event.is_monetary|boolean}}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts}\n{/if}\n{/if}\n-----------------------------------------------------------------------------\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{capture assign=ts_participant_total}{if !empty($pricesetFieldsCount)}{ts}Total Participants{/ts}{/if}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney|string_format:\"%10s\"} {if !empty($dataArray)} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:\"%10s\"} {if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n{/if}\n{/foreach}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{if $totalAmount and $totalTaxAmount}\n{ts}Amount before Tax:{/ts} {$totalAmount-$totalTaxAmount|crmMoney:$currency}\n{/if}\n\n{foreach from=$dataArray item=value key=priceset}\n{if $priceset || $priceset == 0}\n{$taxTerm} {$priceset|string_format:\"%.2f\"}%: {$value|crmMoney:$currency}\n{/if}\n{/foreach}\n{/if}\n{/if}\n\n{if !empty($amount) && !$lineItem}\n{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}\n{/foreach}\n{/if}\n\n{if {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount}\n{/if}\n{if {event.is_monetary|boolean}}\n\n{if {contribution.balance_amount|boolean}}{ts}Total Paid{/ts}: {contribution.paid_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n{ts}Balance{/ts}: {contribution.balance_amount}\n{else}{ts}Total Amount{/ts}: {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n{/if}\n\n{if !empty($pricesetFieldsCount)}\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1}\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}}\n===============================================================================\n\n{$pay_later_receipt}\n===============================================================================\n\n{/if}\n\n{if {participant.register_date|boolean}}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n{if {contribution.receive_date|boolean}}\n{ts}Transaction Date{/ts}: {contribution.receive_date}\n{/if}\n{if {contribution.financial_type_id|boolean}}\n{ts}Financial Type{/ts}: {contribution.financial_type_id:label}\n{/if}\n{if {contribution.trxn_id|boolean}}\n{ts}Transaction #{/ts}: {contribution.trxn_id}\n{/if}\n{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{/if}\n{if {contribution.check_number|boolean}}\n{ts}Check Number{/ts}: {contribution.check_number}\n{/if}\n{if !empty($billingName)}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customGroup)}\n{foreach from=$customGroup item=value key=customName}\n==============================================================================\n\n{$customName}\n==============================================================================\n\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotalStyle}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n {if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n <p>{$event.confirm_email_text}</p>\n {/if}\n\n {if !empty($isOnWaitlist)}\n <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n {elseif !empty($isRequireApproval)}\n <p>{ts}Your registration has been submitted.{/ts}</p>\n <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p>\n {elseif {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean}}\n <p>{event.pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.title}<br />\n {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date}{/if}{/if}\n </td>\n </tr>\n\n {if \"{participant.role_id:label}\" neq \'Attendee\'}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {participant.role_id:label}\n </td>\n </tr>\n {/if}\n\n {if {event.is_show_location|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.location}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n\n {if {event.loc_block_id.phone_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {if {event.loc_block_id.phone_2_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_2_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_id.email}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.email_2_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_2_id.email}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if {event.is_public|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if {contact.email_primary.email|boolean}}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email_primary.email}\n </td>\n </tr>\n {/if}\n\n\n {if {event.is_monetary|boolean}}\n <tr>\n <th {$headerStyle}>\n {event.fee_label}\n </th>\n </tr>\n {if $isShowLineItems}\n {foreach from=$participants key=index item=currentParticipant}\n {if $isPrimary || {participant.id} === $currentParticipant.id}\n {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$currentParticipant.contact.display_name}\n </td>\n </tr>\n {/if}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n {if $isShowParticipantCount}\n <th>{ts}Total Participants{/ts}</th>\n {/if}\n </tr>\n {foreach from=$currentParticipant.line_items item=line}\n <tr>\n <td {$tdfirstStyle}>{$line.title}</td>\n <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>{$line.line_total|crmMoney:$currency}</td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n <td>{$line.tax_amount|crmMoney:$currency}</td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td {$tdStyle}>\n {$line.line_total_inclusive|crmMoney:$currency}\n </td>\n {if $isShowParticipantCount}\n <td {$tdStyle}>{$line.participant_count}</td>\n {/if}\n </tr>\n {/foreach}\n {if $isShowTax && $isPrimary && ($participants|@count > 1)}\n <tr {$participantTotalStyle}>\n <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td>\n <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td>\n <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td>\n <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td>\n </tr>\n {/if}\n </table>\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n {if !$isShowLineItems}\n {foreach from=$participants key=index item=currentParticipant}\n {if $isPrimary || {participant.id} === $currentParticipant.id}\n {foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n <tr>\n <td {$valueStyle}>\n {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if}\n </td>\n <td {$valueStyle}>\n {$currentLineItem.line_total|crmMoney:$currency}\n </td>\n </tr>\n {/foreach}\n {/if}\n {/foreach}\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n </td>\n </tr>\n {if !$isPrimary}\n {* Use the participant specific tax rate breakdown *}\n {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n {/if}\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n </td>\n </tr>\n {/if}\n {if $isPrimary}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n {if {contribution.balance_amount|boolean} && {contribution.paid_amount|boolean}}\n <tr>\n <td {$labelStyle}>{ts}Total Paid{/ts}</td>\n <td {$valueStyle}>\n {contribution.paid_amount|crmMoney}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>{ts}Balance{/ts}</td>\n <td {$valueStyle}>{contribution.balance_amount}</td>\n </tr>\n {/if}\n {if $isShowParticipantCount}\n <tr>\n <td {$labelStyle}>{ts}Total Participants{/ts}</td>\n <td {$valueStyle}>{$line.participant_count}</td>\n </tr>\n {/if}\n {if {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean} && {event.pay_later_receipt|boolean}}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {event.pay_later_receipt}\n </td>\n </tr>\n {/if}\n\n {if {participant.register_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {participant.register_date}\n </td>\n </tr>\n {/if}\n\n {if {contribution.receive_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receive_date}\n </td>\n </tr>\n {/if}\n\n {if {contribution.financial_type_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.financial_type_id:label}\n </td>\n </tr>\n {/if}\n\n {if {contribution.trxn_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.trxn_id}\n </td>\n </tr>\n {/if}\n\n {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {/if}\n\n {if {contribution.check_number|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.check_number}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br/>\n {$address|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br/>\n {$credit_card_number}<br/>\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n {/if} {* End of conditional section for Paid events *}\n\n {if !empty($customGroup)}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,828,'event_offline_receipt',1,0,0,NULL), + (30,'Events - Registration Confirmation and Receipt (off-line)','{ts}Event Confirmation{/ts} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n{/if}\n\n{if !empty($isOnWaitlist)}\n===============================================================================\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n\n===============================================================================\n\n{elseif !empty($isRequireApproval)}\n===============================================================================\n\n{ts}Your registration has been submitted.{/ts}\n\n{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}\n\n===============================================================================\n\n{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}}\n\n===============================================================================\n\n{$pay_later_receipt}\n===============================================================================\n\n{/if}\n\n\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{event.title}\n{event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date}{/if}{/if}\n\n{if \"{participant.role_id:label}\" neq \'Attendee\'}\n{ts}Participant Role{/ts}: {participant.role_id:label}\n{/if}\n\n{if !empty($isShowLocation)}\n{event.location}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n{ts}Event Contacts:{/ts}\n\n{if {event.loc_block_id.phone_id.phone|boolean}}\n{if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n\n{if {event.loc_block_id.phone_2_id.phone|boolean}}\n{if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}{event.loc_block_id.phone_2_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n{/if}\n\n{if {event.loc_block_id.email_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_id.email}\n{/if}\n{if {event.loc_block_id.email_2_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if}\n{/if}\n\n\n{if {event.is_public|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if {contact.email_primary.email|boolean}}\n\n===============================================================================\n\n{ts}Registered Email{/ts}\n\n===============================================================================\n\n{contact.email_primary.email}\n{/if}\n{if {event.is_monetary|boolean}} {* This section for Paid events only.*}\n\n===============================================================================\n\n{event.fee_label}\n===============================================================================\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if {event.is_monetary|boolean}}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts}\n{/if}\n{/if}\n-----------------------------------------------------------------------------\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{capture assign=ts_participant_total}{if !empty($pricesetFieldsCount)}{ts}Total Participants{/ts}{/if}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney|string_format:\"%10s\"} {if !empty($dataArray)} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:\"%10s\"} {if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n{/if}\n{/foreach}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{if $totalAmount and $totalTaxAmount}\n{ts}Amount before Tax:{/ts} {$totalAmount-$totalTaxAmount|crmMoney:$currency}\n{/if}\n\n{foreach from=$dataArray item=value key=priceset}\n{if $priceset || $priceset == 0}\n{$taxTerm} {$priceset|string_format:\"%.2f\"}%: {$value|crmMoney:$currency}\n{/if}\n{/foreach}\n{/if}\n{/if}\n\n{if !empty($amount) && !$lineItem}\n{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}\n{/foreach}\n{/if}\n\n{if {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount}\n{/if}\n{if {event.is_monetary|boolean}}\n\n{if {contribution.balance_amount|boolean}}{ts}Total Paid{/ts}: {contribution.paid_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n{ts}Balance{/ts}: {contribution.balance_amount}\n{else}{ts}Total Amount{/ts}: {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n{/if}\n\n{if !empty($pricesetFieldsCount)}\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1}\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}}\n===============================================================================\n\n{$pay_later_receipt}\n===============================================================================\n\n{/if}\n\n{if {participant.register_date|boolean}}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n{if {contribution.receive_date|boolean}}\n{ts}Transaction Date{/ts}: {contribution.receive_date}\n{/if}\n{if {contribution.financial_type_id|boolean}}\n{ts}Financial Type{/ts}: {contribution.financial_type_id:label}\n{/if}\n{if {contribution.trxn_id|boolean}}\n{ts}Transaction #{/ts}: {contribution.trxn_id}\n{/if}\n{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{/if}\n{if {contribution.check_number|boolean}}\n{ts}Check Number{/ts}: {contribution.check_number}\n{/if}\n{if !empty($billingName)}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customGroup)}\n{foreach from=$customGroup item=value key=customName}\n==============================================================================\n\n{$customName}\n==============================================================================\n\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotalStyle}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n {if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n <p>{$event.confirm_email_text}</p>\n {/if}\n\n {if !empty($isOnWaitlist)}\n <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n {elseif !empty($isRequireApproval)}\n <p>{ts}Your registration has been submitted.{/ts}</p>\n <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p>\n {elseif {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean}}\n <p>{event.pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.title}<br />\n {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date}{/if}{/if}\n </td>\n </tr>\n\n {if \"{participant.role_id:label}\" neq \'Attendee\'}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {participant.role_id:label}\n </td>\n </tr>\n {/if}\n\n {if {event.is_show_location|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.location}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n\n {if {event.loc_block_id.phone_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {if {event.loc_block_id.phone_2_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_2_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_id.email}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.email_2_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_2_id.email}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if {event.is_public|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if {contact.email_primary.email|boolean}}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email_primary.email}\n </td>\n </tr>\n {/if}\n\n\n {if {event.is_monetary|boolean}}\n <tr>\n <th {$headerStyle}>\n {event.fee_label}\n </th>\n </tr>\n {if $isShowLineItems}\n {foreach from=$participants key=index item=currentParticipant}\n {if $isPrimary || {participant.id} === $currentParticipant.id}\n {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$currentParticipant.contact.display_name}\n </td>\n </tr>\n {/if}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n {if $isShowParticipantCount}\n <th>{ts}Total Participants{/ts}</th>\n {/if}\n </tr>\n {foreach from=$currentParticipant.line_items item=line}\n <tr>\n <td {$tdfirstStyle}>{$line.title}</td>\n <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>{$line.line_total|crmMoney:$currency}</td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n <td>{$line.tax_amount|crmMoney:$currency}</td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td {$tdStyle}>\n {$line.line_total_inclusive|crmMoney:$currency}\n </td>\n {if $isShowParticipantCount}\n <td {$tdStyle}>{$line.participant_count}</td>\n {/if}\n </tr>\n {/foreach}\n {if $isShowTax && $isPrimary && ($participants|@count > 1)}\n <tr {$participantTotalStyle}>\n <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td>\n <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td>\n <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td>\n <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td>\n </tr>\n {/if}\n </table>\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n {if !$isShowLineItems}\n {foreach from=$participants key=index item=currentParticipant}\n {if $isPrimary || {participant.id} === $currentParticipant.id}\n {foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n <tr>\n <td {$valueStyle}>\n {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if}\n </td>\n <td {$valueStyle}>\n {$currentLineItem.line_total|crmMoney:$currency}\n </td>\n </tr>\n {/foreach}\n {/if}\n {/foreach}\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n </td>\n </tr>\n {if !$isPrimary}\n {* Use the participant specific tax rate breakdown *}\n {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n {/if}\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n </td>\n </tr>\n {/if}\n {if $isPrimary}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n {if {contribution.balance_amount|boolean} && {contribution.paid_amount|boolean}}\n <tr>\n <td {$labelStyle}>{ts}Total Paid{/ts}</td>\n <td {$valueStyle}>\n {contribution.paid_amount|crmMoney}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>{ts}Balance{/ts}</td>\n <td {$valueStyle}>{contribution.balance_amount}</td>\n </tr>\n {/if}\n {if $isShowParticipantCount}\n <tr>\n <td {$labelStyle}>{ts}Total Participants{/ts}</td>\n <td {$valueStyle}>{$line.participant_count}</td>\n </tr>\n {/if}\n {if {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean} && {event.pay_later_receipt|boolean}}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {event.pay_later_receipt}\n </td>\n </tr>\n {/if}\n\n {if {participant.register_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {participant.register_date}\n </td>\n </tr>\n {/if}\n\n {if {contribution.receive_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receive_date}\n </td>\n </tr>\n {/if}\n\n {if {contribution.financial_type_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.financial_type_id:label}\n </td>\n </tr>\n {/if}\n\n {if {contribution.trxn_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.trxn_id}\n </td>\n </tr>\n {/if}\n\n {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {/if}\n\n {if {contribution.check_number|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.check_number}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br/>\n {$address|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br/>\n {$credit_card_number}<br/>\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n {/if} {* End of conditional section for Paid events *}\n\n {if !empty($customGroup)}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,828,'event_offline_receipt',0,1,0,NULL), + (31,'Events - Registration Confirmation and Receipt (on-line)','{if !empty($isOnWaitlist)}{ts}Wait List Confirmation{/ts}{elseif !empty($isRequireApproval)}{ts}Registration Request Confirmation{/ts}{else}{ts}Registration Confirmation{/ts}{/if} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n\n{else}\n {ts}Thank you for your registration.{/ts}\n {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to %1.{/ts}\n {else}{if !empty($isOnWaitlist)}{ts}This is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}\n {/if}\n{/if}\n\n{if !empty($isOnWaitlist)}\n===============================================================================\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{if $isPrimary}\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n{/if}\n===============================================================================\n\n{elseif !empty($isRequireApproval)}\n===============================================================================\n\n{ts}Your registration has been submitted.{/ts}\n\n{if $isPrimary}\n{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}\n\n{/if}\n===============================================================================\n\n{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}}\n\n\n===============================================================================\n\n{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}\n===============================================================================\n\n{/if}\n\n\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{event.title}\n{event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:\"%A\"} {$event.event_end_date|crmDate}{/if}{/if}\n\n{if \"{participant.role_id:label}\" neq \'Attendee\'}\n{ts}Participant Role{/ts}: {participant.role_id:label}\n{/if}\n\n{if !empty($isShowLocation)}\n{event.location}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n\n{ts}Event Contacts:{/ts}\n{if {event.loc_block_id.phone_id.phone|boolean}}\n {if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n{if {event.loc_block_id.email_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_id.email}\n{/if}\n{if {event.loc_block_id.email_2_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if}\n{/if}\n{if {event.is_public|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if !empty($payer.name)}\nYou were registered by: {$payer.name}\n{/if}\n{if {event.is_monetary|boolean} and empty($isRequireApproval)} {* This section for Paid events only.*}\n\n===============================================================================\n\n{event.fee_label}\n===============================================================================\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if $isPrimary}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts} {if !empty($part.$priceset)}{$part.$priceset.info}{/if}\n\n{/if}\n{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n----------------------------------------------------------------------------------------------------------------\n{if !empty($individual)}{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%29s\"} {$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%33s\"} {$individual.$priceset.totalAmtWithTax|crmMoney:$currency|string_format:\"%12s\"}{/if}\n{/if}\n{\"\"|string_format:\"%120s\"}\n{/foreach}\n{\"\"|string_format:\"%120s\"}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n{if !$isPrimary}{* Use the participant specific tax rate breakdown *}{assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n{/if}\n\n{if !$isShowLineItems}\n{foreach from=$participants key=index item=currentParticipant}\n{if $isPrimary || {participant.id} === $currentParticipant.id}\n{foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n{$currentLineItem.label} {if $isPrimary} - {$currentParticipant.contact.display_name}{/if} - {$currentLineItem.line_total|crmMoney:$currency}\n{/foreach}\n{/if}\n{/foreach}\n{/if}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n{/if}\n{if $isPrimary}\n\n{ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n\n{if !empty($pricesetFieldsCount)}\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1}\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if {participant.register_date|boolean}}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n{if {contribution.receive_date|boolean}}\n{ts}Transaction Date{/ts}: {contribution.receive_date}\n{/if}\n{if !empty($financialTypeName)}\n{ts}Financial Type{/ts}: {$financialTypeName}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n{if !empty($billingName)}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n===============================================================================\n\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customPre)}\n{foreach from=$customPre item=customPr key=i}\n===============================================================================\n\n{$customPre_grouptitle.$i}\n===============================================================================\n\n{foreach from=$customPr item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customPost)}\n{foreach from=$customPost item=customPos key=j}\n===============================================================================\n\n{$customPost_grouptitle.$j}\n===============================================================================\n\n{foreach from=$customPos item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($customProfile)}\n\n{foreach from=$customProfile.profile item=eachParticipant key=participantID}\n===============================================================================\n\n{ts 1=$participantID+2}Participant Information - Participant %1{/ts}\n\n===============================================================================\n\n{foreach from=$eachParticipant item=eachProfile key=pid}\n------------------------------------------------------------------------------\n\n{$customProfile.title.$pid}\n------------------------------------------------------------------------------\n\n{foreach from=$eachProfile item=val key=field}\n{foreach from=$val item=v key=f}\n{$field}: {$v}\n{/foreach}\n{/foreach}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($event.allow_selfcancelxfer)}\n{ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotalStyle}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n <p>{event.confirm_email_text}</p>\n {else}\n <p>{ts}Thank you for your registration.{/ts}\n {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to<strong> %1</strong>.{/ts}\n {else}\n {if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to<strong>waitlisted</strong>.{/ts}\n {else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}\n {/if}\n {/if}\n </p>\n {/if}\n\n {if !empty($isOnWaitlist)}\n <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n {if $isPrimary}\n <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n {/if}\n {elseif !empty($isRequireApproval)}\n <p>{ts}Your registration has been submitted.{/ts}</p>\n {if $isPrimary}\n <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p>\n {/if}\n {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)}\n <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p>\n {/if}\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.title}<br/>\n {event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date|crmDate:\"%A\"} {event.end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n\n {if \"{participant.role_id:label}\" neq \'Attendee\'}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {participant.role_id:label}\n </td>\n </tr>\n {/if}\n\n {if !empty($isShowLocation)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.location}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n\n {if {event.loc_block_id.phone_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {if {event.loc_block_id.phone_2_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_2_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {if {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_id.email}\n </td>\n </tr>\n {/if}\n {if {event.loc_block_id.email_2_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_2_id.email}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if {event.is_public|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if {event.is_share|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q=\"id={event.id}&reset=1\" a=true fe=1 h=1}{/capture}\n {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'}\n </td>\n </tr>\n {/if}\n {if !empty($payer.name)}\n <tr>\n <th {$headerStyle}>\n {ts}You were registered by:{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$payer.name}\n </td>\n </tr>\n {/if}\n {if {event.is_monetary|boolean} and empty($isRequireApproval)}\n <tr>\n <th {$headerStyle}>\n {event.fee_label}\n </th>\n </tr>\n {if $isShowLineItems}\n {foreach from=$participants key=index item=currentParticipant}\n {if $isPrimary || {participant.id} === $currentParticipant.id}\n {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$currentParticipant.contact.display_name}\n </td>\n </tr>\n {/if}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n {if !empty($pricesetFieldsCount)}\n <th>{ts}Total Participants{/ts}</th>\n {/if}\n </tr>\n {foreach from=$currentParticipant.line_items item=line}\n <tr>\n <td {$tdfirstStyle}>{$line.title}</td>\n <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>{$line.line_total|crmMoney:$currency}</td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n <td>{$line.tax_amount|crmMoney:$currency}</td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td {$tdStyle}>\n {$line.line_total_inclusive|crmMoney:$currency}\n </td>\n {if !empty($pricesetFieldsCount)}\n <td {$tdStyle}>{$line.participant_count}</td>\n {/if}\n </tr>\n {/foreach}\n {if $isShowTax && $isPrimary && ($participants|@count > 1)}\n <tr {$participantTotalStyle}>\n <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td>\n <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td>\n <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td>\n <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td>\n </tr>\n {/if}\n </table>\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n {if !$isShowLineItems}\n {foreach from=$participants key=index item=currentParticipant}\n {if $isPrimary || {participant.id} === $currentParticipant.id}\n {foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n <tr>\n <td {$valueStyle}>\n {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if}\n </td>\n <td {$valueStyle}>\n {$currentLineItem.line_total|crmMoney:$currency}\n </td>\n </tr>\n {/foreach}\n {/if}\n {/foreach}\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n </td>\n </tr>\n {if !$isPrimary}\n {* Use the participant specific tax rate breakdown *}\n {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n {/if}\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n </td>\n </tr>\n {/if}\n {if $isPrimary}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n </td>\n </tr>\n {if !empty($pricesetFieldsCount)}\n <tr>\n <td {$labelStyle}>\n {ts}Total Participants{/ts}</td>\n <td {$valueStyle}>\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1}\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n {$count}\n </td>\n </tr>\n {/if}\n\n {if {participant.register_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {participant.register_date}\n </td>\n </tr>\n {/if}\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($financialTypeName)}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {$financialTypeName}\n </td>\n </tr>\n {/if}\n\n {if !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n\n {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {/if}\n\n {if !empty($checkNumber)}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {$checkNumber}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br/>\n {$address|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br/>\n {$credit_card_number}<br/>\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n\n {/if} {* End of conditional section for Paid events *}\n\n {if !empty($customPre)}\n {foreach from=$customPre item=customPr key=i}\n <tr>\n <th {$headerStyle}>{$customPre_grouptitle.$i}</th>\n </tr>\n {foreach from=$customPr item=customValue key=customName}\n <tr>\n <td {$labelStyle}>{$customName}</td>\n <td {$valueStyle}>{$customValue}</td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($customPost)}\n {foreach from=$customPost item=customPos key=j}\n <tr>\n <th {$headerStyle}>{$customPost_grouptitle.$j}</th>\n </tr>\n {foreach from=$customPos item=customValue key=customName}\n <tr>\n <td {$labelStyle}>{$customName}</td>\n <td {$valueStyle}>{$customValue}</td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($customProfile)}\n {foreach from=$customProfile.profile item=eachParticipant key=participantID}\n <tr>\n <th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th>\n </tr>\n {foreach from=$eachParticipant item=eachProfile key=pid}\n <tr>\n <th {$headerStyle}>{$customProfile.title.$pid}</th>\n </tr>\n {foreach from=$eachProfile item=val key=field}\n <tr>\n {foreach from=$val item=v key=f}\n <td {$labelStyle}>{$field}</td>\n <td {$valueStyle}>{$v}</td>\n {/foreach}\n </tr>\n {/foreach}\n {/foreach}\n {/foreach}\n {/if}\n\n </table>\n {if !empty($event.allow_selfcancelxfer)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}<br/>\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n </td>\n </tr>\n {/if}\n </table>\n\n</body>\n</html>\n',1,829,'event_online_receipt',1,0,0,NULL), + (32,'Events - Registration Confirmation and Receipt (on-line)','{if !empty($isOnWaitlist)}{ts}Wait List Confirmation{/ts}{elseif !empty($isRequireApproval)}{ts}Registration Request Confirmation{/ts}{else}{ts}Registration Confirmation{/ts}{/if} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n\n{else}\n {ts}Thank you for your registration.{/ts}\n {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to %1.{/ts}\n {else}{if !empty($isOnWaitlist)}{ts}This is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}\n {/if}\n{/if}\n\n{if !empty($isOnWaitlist)}\n===============================================================================\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{if $isPrimary}\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n{/if}\n===============================================================================\n\n{elseif !empty($isRequireApproval)}\n===============================================================================\n\n{ts}Your registration has been submitted.{/ts}\n\n{if $isPrimary}\n{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}\n\n{/if}\n===============================================================================\n\n{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}}\n\n\n===============================================================================\n\n{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}\n===============================================================================\n\n{/if}\n\n\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{event.title}\n{event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:\"%A\"} {$event.event_end_date|crmDate}{/if}{/if}\n\n{if \"{participant.role_id:label}\" neq \'Attendee\'}\n{ts}Participant Role{/ts}: {participant.role_id:label}\n{/if}\n\n{if !empty($isShowLocation)}\n{event.location}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n\n{ts}Event Contacts:{/ts}\n{if {event.loc_block_id.phone_id.phone|boolean}}\n {if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n{if {event.loc_block_id.email_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_id.email}\n{/if}\n{if {event.loc_block_id.email_2_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if}\n{/if}\n{if {event.is_public|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if !empty($payer.name)}\nYou were registered by: {$payer.name}\n{/if}\n{if {event.is_monetary|boolean} and empty($isRequireApproval)} {* This section for Paid events only.*}\n\n===============================================================================\n\n{event.fee_label}\n===============================================================================\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if $isPrimary}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts} {if !empty($part.$priceset)}{$part.$priceset.info}{/if}\n\n{/if}\n{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n----------------------------------------------------------------------------------------------------------------\n{if !empty($individual)}{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%29s\"} {$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%33s\"} {$individual.$priceset.totalAmtWithTax|crmMoney:$currency|string_format:\"%12s\"}{/if}\n{/if}\n{\"\"|string_format:\"%120s\"}\n{/foreach}\n{\"\"|string_format:\"%120s\"}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n{if !$isPrimary}{* Use the participant specific tax rate breakdown *}{assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n{/if}\n\n{if !$isShowLineItems}\n{foreach from=$participants key=index item=currentParticipant}\n{if $isPrimary || {participant.id} === $currentParticipant.id}\n{foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n{$currentLineItem.label} {if $isPrimary} - {$currentParticipant.contact.display_name}{/if} - {$currentLineItem.line_total|crmMoney:$currency}\n{/foreach}\n{/if}\n{/foreach}\n{/if}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n{/if}\n{if $isPrimary}\n\n{ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n\n{if !empty($pricesetFieldsCount)}\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1}\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if {participant.register_date|boolean}}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n{if {contribution.receive_date|boolean}}\n{ts}Transaction Date{/ts}: {contribution.receive_date}\n{/if}\n{if !empty($financialTypeName)}\n{ts}Financial Type{/ts}: {$financialTypeName}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n{if !empty($billingName)}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n===============================================================================\n\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customPre)}\n{foreach from=$customPre item=customPr key=i}\n===============================================================================\n\n{$customPre_grouptitle.$i}\n===============================================================================\n\n{foreach from=$customPr item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customPost)}\n{foreach from=$customPost item=customPos key=j}\n===============================================================================\n\n{$customPost_grouptitle.$j}\n===============================================================================\n\n{foreach from=$customPos item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($customProfile)}\n\n{foreach from=$customProfile.profile item=eachParticipant key=participantID}\n===============================================================================\n\n{ts 1=$participantID+2}Participant Information - Participant %1{/ts}\n\n===============================================================================\n\n{foreach from=$eachParticipant item=eachProfile key=pid}\n------------------------------------------------------------------------------\n\n{$customProfile.title.$pid}\n------------------------------------------------------------------------------\n\n{foreach from=$eachProfile item=val key=field}\n{foreach from=$val item=v key=f}\n{$field}: {$v}\n{/foreach}\n{/foreach}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($event.allow_selfcancelxfer)}\n{ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotalStyle}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n <p>{event.confirm_email_text}</p>\n {else}\n <p>{ts}Thank you for your registration.{/ts}\n {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to<strong> %1</strong>.{/ts}\n {else}\n {if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to<strong>waitlisted</strong>.{/ts}\n {else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}\n {/if}\n {/if}\n </p>\n {/if}\n\n {if !empty($isOnWaitlist)}\n <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n {if $isPrimary}\n <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n {/if}\n {elseif !empty($isRequireApproval)}\n <p>{ts}Your registration has been submitted.{/ts}</p>\n {if $isPrimary}\n <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p>\n {/if}\n {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)}\n <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p>\n {/if}\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.title}<br/>\n {event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date|crmDate:\"%A\"} {event.end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n\n {if \"{participant.role_id:label}\" neq \'Attendee\'}\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}\n </td>\n <td {$valueStyle}>\n {participant.role_id:label}\n </td>\n </tr>\n {/if}\n\n {if !empty($isShowLocation)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {event.location}\n </td>\n </tr>\n {/if}\n\n {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n\n {if {event.loc_block_id.phone_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {if {event.loc_block_id.phone_2_id.phone|boolean}}\n <tr>\n <td {$labelStyle}>\n {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n {event.loc_block_id.phone_2_id.phone_type_id:label}\n {else}\n {ts}Phone{/ts}\n {/if}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n </td>\n </tr>\n {/if}\n {if {event.loc_block_id.email_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_id.email}\n </td>\n </tr>\n {/if}\n {if {event.loc_block_id.email_2_id.email|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {event.loc_block_id.email_2_id.email}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if {event.is_public|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if {event.is_share|boolean}}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q=\"id={event.id}&reset=1\" a=true fe=1 h=1}{/capture}\n {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'}\n </td>\n </tr>\n {/if}\n {if !empty($payer.name)}\n <tr>\n <th {$headerStyle}>\n {ts}You were registered by:{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$payer.name}\n </td>\n </tr>\n {/if}\n {if {event.is_monetary|boolean} and empty($isRequireApproval)}\n <tr>\n <th {$headerStyle}>\n {event.fee_label}\n </th>\n </tr>\n {if $isShowLineItems}\n {foreach from=$participants key=index item=currentParticipant}\n {if $isPrimary || {participant.id} === $currentParticipant.id}\n {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$currentParticipant.contact.display_name}\n </td>\n </tr>\n {/if}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}Subtotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n {/if}\n <th>{ts}Total{/ts}</th>\n {if !empty($pricesetFieldsCount)}\n <th>{ts}Total Participants{/ts}</th>\n {/if}\n </tr>\n {foreach from=$currentParticipant.line_items item=line}\n <tr>\n <td {$tdfirstStyle}>{$line.title}</td>\n <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>{$line.line_total|crmMoney:$currency}</td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n <td>{$line.tax_amount|crmMoney:$currency}</td>\n {else}\n <td></td>\n <td></td>\n {/if}\n {/if}\n <td {$tdStyle}>\n {$line.line_total_inclusive|crmMoney:$currency}\n </td>\n {if !empty($pricesetFieldsCount)}\n <td {$tdStyle}>{$line.participant_count}</td>\n {/if}\n </tr>\n {/foreach}\n {if $isShowTax && $isPrimary && ($participants|@count > 1)}\n <tr {$participantTotalStyle}>\n <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td>\n <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td>\n <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td>\n <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td>\n </tr>\n {/if}\n </table>\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n {if !$isShowLineItems}\n {foreach from=$participants key=index item=currentParticipant}\n {if $isPrimary || {participant.id} === $currentParticipant.id}\n {foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n <tr>\n <td {$valueStyle}>\n {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if}\n </td>\n <td {$valueStyle}>\n {$currentLineItem.line_total|crmMoney:$currency}\n </td>\n </tr>\n {/foreach}\n {/if}\n {/foreach}\n {/if}\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n </td>\n </tr>\n {if !$isPrimary}\n {* Use the participant specific tax rate breakdown *}\n {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n {/if}\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n </td>\n </tr>\n {/if}\n {if $isPrimary}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n </td>\n </tr>\n {if !empty($pricesetFieldsCount)}\n <tr>\n <td {$labelStyle}>\n {ts}Total Participants{/ts}</td>\n <td {$valueStyle}>\n {assign var=\"count\" value= 0}\n {foreach from=$lineItem item=pcount}\n {assign var=\"lineItemCount\" value=0}\n {if $pcount neq \'skip\'}\n {foreach from=$pcount item=p_count}\n {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n {/foreach}\n {if $lineItemCount < 1}\n {assign var=\"lineItemCount\" value=1}\n {/if}\n {assign var=\"count\" value=$count+$lineItemCount}\n {/if}\n {/foreach}\n {$count}\n </td>\n </tr>\n {/if}\n\n {if {participant.register_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {participant.register_date}\n </td>\n </tr>\n {/if}\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($financialTypeName)}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {$financialTypeName}\n </td>\n </tr>\n {/if}\n\n {if !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n\n {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {/if}\n\n {if !empty($checkNumber)}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {$checkNumber}\n </td>\n </tr>\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br/>\n {$address|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br/>\n {$credit_card_number}<br/>\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n\n {/if} {* End of conditional section for Paid events *}\n\n {if !empty($customPre)}\n {foreach from=$customPre item=customPr key=i}\n <tr>\n <th {$headerStyle}>{$customPre_grouptitle.$i}</th>\n </tr>\n {foreach from=$customPr item=customValue key=customName}\n <tr>\n <td {$labelStyle}>{$customName}</td>\n <td {$valueStyle}>{$customValue}</td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($customPost)}\n {foreach from=$customPost item=customPos key=j}\n <tr>\n <th {$headerStyle}>{$customPost_grouptitle.$j}</th>\n </tr>\n {foreach from=$customPos item=customValue key=customName}\n <tr>\n <td {$labelStyle}>{$customName}</td>\n <td {$valueStyle}>{$customValue}</td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n {if !empty($customProfile)}\n {foreach from=$customProfile.profile item=eachParticipant key=participantID}\n <tr>\n <th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th>\n </tr>\n {foreach from=$eachParticipant item=eachProfile key=pid}\n <tr>\n <th {$headerStyle}>{$customProfile.title.$pid}</th>\n </tr>\n {foreach from=$eachProfile item=val key=field}\n <tr>\n {foreach from=$val item=v key=f}\n <td {$labelStyle}>{$field}</td>\n <td {$valueStyle}>{$v}</td>\n {/foreach}\n </tr>\n {/foreach}\n {/foreach}\n {/foreach}\n {/if}\n\n </table>\n {if !empty($event.allow_selfcancelxfer)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}<br/>\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n </td>\n </tr>\n {/if}\n </table>\n\n</body>\n</html>\n',1,829,'event_online_receipt',0,1,0,NULL), + (33,'Events - Receipt only','Receipt for {if $events_in_cart} Event Registration{/if} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $is_pay_later}\n This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.\n{else}\n This is being sent to you as a {if !empty($is_refund)}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.\n{/if}\n\n{if $is_pay_later}\n {$pay_later_receipt}\n{/if}\n\n Your order number is #{$transaction_id}. {if !empty($line_items) && empty($is_refund)} Information about the workshops will be sent separately to each participant.{/if}\n Here\'s a summary of your transaction placed on {$transaction_date|crmDate:\"%D %I:%M %p %Z\"}:\n\n{if $billing_name}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billing_name}\n\n{$billing_street_address}\n\n{$billing_city}, {$billing_state} {$billing_postal_code}\n\n{$email}\n{/if}\n\n{if !empty($source)}\n{$source}\n{/if}\n\n\n{foreach from=$line_items item=line_item}\n{$line_item.event->title} ({$line_item.event->start_date|crmDate:\"%D\"})\n{if $line_item.event->is_show_location}\n {$line_item.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n{$line_item.event->start_date|crmDate:\"%D %I:%M %p\"} - {$line_item.event->end_date|crmDate:\"%I:%M %p\"}\n\n Quantity: {$line_item.num_participants}\n\n{if $line_item.num_participants > 0}\n {foreach from=$line_item.participants item=participant}\n {$participant.display_name}\n {/foreach}\n{/if}\n{if $line_item.num_waiting_participants > 0}\n Waitlisted:\n {foreach from=$line_item.waiting_participants item=participant}\n {$participant.display_name}\n {/foreach}\n{/if}\nCost: {$line_item.cost|crmMoney:$currency|string_format:\"%10s\"}\nTotal For This Event: {$line_item.amount|crmMoney:$currency|string_format:\"%10s\"}\n\n{/foreach}\n\n{if $discounts}\nSubtotal: {$sub_total|crmMoney:$currency|string_format:\"%10s\"}\n--------------------------------------\nDiscounts\n{foreach from=$discounts key=myId item=i}\n {$i.title}: -{$i.amount|crmMoney:$currency|string_format:\"%10s\"}\n{/foreach}\n{/if}\n======================================\nTotal: {$total|crmMoney:$currency|string_format:\"%10s\"}\n\n{if $credit_card_type}\n===========================================================\n{ts}Payment Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}\n{/if}\n\n If you have questions about the status of your registration or purchase please feel free to contact us.\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n </head>\n <body>\n {capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n {capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n {capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $is_pay_later}\n <p>\n This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.\n </p>\n {else}\n <p>\n This is being sent to you as a {if !empty($is_refund)}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.\n </p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p>\n {/if}\n\n <p>Your order number is #{$transaction_id}. {if !empty($line_items) && empty($is_refund)} Information about the workshops will be sent separately to each participant.{/if}\n Here\'s a summary of your transaction placed on {$transaction_date|crmDate:\"%D %I:%M %p %Z\"}:</p>\n\n{if $billing_name}\n <table class=\"billing-info\">\n <tr>\n <th style=\"text-align: left;\">\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td>\n {$billing_name}<br />\n {$billing_street_address}<br />\n {$billing_city}, {$billing_state} {$billing_postal_code}<br/>\n <br/>\n {$email}\n </td>\n </tr>\n </table>\n{/if}\n{if $credit_card_type}\n <p> </p>\n <table class=\"billing-info\">\n <tr>\n <th style=\"text-align: left;\">\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}\n </td>\n </tr>\n </table>\n{/if}\n{if !empty($source)}\n <p> </p>\n {$source}\n{/if}\n <p> </p>\n <table width=\"700\">\n <thead>\n <tr>\n{if $line_items}\n <th style=\"text-align: left;\">\n Event\n </th>\n <th style=\"text-align: left;\">\n Participants\n </th>\n{/if}\n <th style=\"text-align: left;\">\n Price\n </th>\n <th style=\"text-align: left;\">\n Total\n </th>\n </tr>\n </thead>\n <tbody>\n {foreach from=$line_items item=line_item}\n <tr>\n <td style=\"width: 220px\">\n {$line_item.event->title} ({$line_item.event->start_date|crmDate:\"%D\"})<br />\n {if $line_item.event->is_show_location}\n {$line_item.location.address.1.display|nl2br}\n {/if}{*End of isShowLocation condition*}<br /><br />\n {$line_item.event->start_date|crmDate:\"%D %I:%M %p\"} - {$line_item.event->end_date|crmDate:\"%I:%M %p\"}\n </td>\n <td style=\"width: 180px\">\n {$line_item.num_participants}\n {if $line_item.num_participants > 0}\n <div class=\"participants\" style=\"padding-left: 10px;\">\n {foreach from=$line_item.participants item=participant}\n {$participant.display_name}<br />\n {/foreach}\n </div>\n {/if}\n {if $line_item.num_waiting_participants > 0}\n Waitlisted:<br/>\n <div class=\"participants\" style=\"padding-left: 10px;\">\n {foreach from=$line_item.waiting_participants item=participant}\n {$participant.display_name}<br />\n {/foreach}\n </div>\n {/if}\n </td>\n <td style=\"width: 100px\">\n {$line_item.cost|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n <td style=\"width: 100px\">\n {$line_item.amount|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n </tr>\n {/foreach}\n </tbody>\n <tfoot>\n {if $discounts}\n <tr>\n <td>\n </td>\n <td>\n </td>\n <td>\n Subtotal:\n </td>\n <td>\n {$sub_total|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n </tr>\n {foreach from=$discounts key=myId item=i}\n <tr>\n <td>\n {$i.title}\n </td>\n <td>\n </td>\n <td>\n </td>\n <td>\n -{$i.amount}\n </td>\n </tr>\n {/foreach}\n {/if}\n <tr>\n{if $line_items}\n <td>\n </td>\n <td>\n </td>\n{/if}\n <td>\n <strong>Total:</strong>\n </td>\n <td>\n <strong> {$total|crmMoney:$currency|string_format:\"%10s\"}</strong>\n </td>\n </tr>\n </tfoot>\n </table>\n\n If you have questions about the status of your registration or purchase please feel free to contact us.\n </body>\n</html>\n',1,830,'event_registration_receipt',1,0,0,NULL), + (34,'Events - Receipt only','Receipt for {if $events_in_cart} Event Registration{/if} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $is_pay_later}\n This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.\n{else}\n This is being sent to you as a {if !empty($is_refund)}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.\n{/if}\n\n{if $is_pay_later}\n {$pay_later_receipt}\n{/if}\n\n Your order number is #{$transaction_id}. {if !empty($line_items) && empty($is_refund)} Information about the workshops will be sent separately to each participant.{/if}\n Here\'s a summary of your transaction placed on {$transaction_date|crmDate:\"%D %I:%M %p %Z\"}:\n\n{if $billing_name}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billing_name}\n\n{$billing_street_address}\n\n{$billing_city}, {$billing_state} {$billing_postal_code}\n\n{$email}\n{/if}\n\n{if !empty($source)}\n{$source}\n{/if}\n\n\n{foreach from=$line_items item=line_item}\n{$line_item.event->title} ({$line_item.event->start_date|crmDate:\"%D\"})\n{if $line_item.event->is_show_location}\n {$line_item.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n{$line_item.event->start_date|crmDate:\"%D %I:%M %p\"} - {$line_item.event->end_date|crmDate:\"%I:%M %p\"}\n\n Quantity: {$line_item.num_participants}\n\n{if $line_item.num_participants > 0}\n {foreach from=$line_item.participants item=participant}\n {$participant.display_name}\n {/foreach}\n{/if}\n{if $line_item.num_waiting_participants > 0}\n Waitlisted:\n {foreach from=$line_item.waiting_participants item=participant}\n {$participant.display_name}\n {/foreach}\n{/if}\nCost: {$line_item.cost|crmMoney:$currency|string_format:\"%10s\"}\nTotal For This Event: {$line_item.amount|crmMoney:$currency|string_format:\"%10s\"}\n\n{/foreach}\n\n{if $discounts}\nSubtotal: {$sub_total|crmMoney:$currency|string_format:\"%10s\"}\n--------------------------------------\nDiscounts\n{foreach from=$discounts key=myId item=i}\n {$i.title}: -{$i.amount|crmMoney:$currency|string_format:\"%10s\"}\n{/foreach}\n{/if}\n======================================\nTotal: {$total|crmMoney:$currency|string_format:\"%10s\"}\n\n{if $credit_card_type}\n===========================================================\n{ts}Payment Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}\n{/if}\n\n If you have questions about the status of your registration or purchase please feel free to contact us.\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n </head>\n <body>\n {capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n {capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n {capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $is_pay_later}\n <p>\n This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.\n </p>\n {else}\n <p>\n This is being sent to you as a {if !empty($is_refund)}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.\n </p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p>\n {/if}\n\n <p>Your order number is #{$transaction_id}. {if !empty($line_items) && empty($is_refund)} Information about the workshops will be sent separately to each participant.{/if}\n Here\'s a summary of your transaction placed on {$transaction_date|crmDate:\"%D %I:%M %p %Z\"}:</p>\n\n{if $billing_name}\n <table class=\"billing-info\">\n <tr>\n <th style=\"text-align: left;\">\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td>\n {$billing_name}<br />\n {$billing_street_address}<br />\n {$billing_city}, {$billing_state} {$billing_postal_code}<br/>\n <br/>\n {$email}\n </td>\n </tr>\n </table>\n{/if}\n{if $credit_card_type}\n <p> </p>\n <table class=\"billing-info\">\n <tr>\n <th style=\"text-align: left;\">\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}\n </td>\n </tr>\n </table>\n{/if}\n{if !empty($source)}\n <p> </p>\n {$source}\n{/if}\n <p> </p>\n <table width=\"700\">\n <thead>\n <tr>\n{if $line_items}\n <th style=\"text-align: left;\">\n Event\n </th>\n <th style=\"text-align: left;\">\n Participants\n </th>\n{/if}\n <th style=\"text-align: left;\">\n Price\n </th>\n <th style=\"text-align: left;\">\n Total\n </th>\n </tr>\n </thead>\n <tbody>\n {foreach from=$line_items item=line_item}\n <tr>\n <td style=\"width: 220px\">\n {$line_item.event->title} ({$line_item.event->start_date|crmDate:\"%D\"})<br />\n {if $line_item.event->is_show_location}\n {$line_item.location.address.1.display|nl2br}\n {/if}{*End of isShowLocation condition*}<br /><br />\n {$line_item.event->start_date|crmDate:\"%D %I:%M %p\"} - {$line_item.event->end_date|crmDate:\"%I:%M %p\"}\n </td>\n <td style=\"width: 180px\">\n {$line_item.num_participants}\n {if $line_item.num_participants > 0}\n <div class=\"participants\" style=\"padding-left: 10px;\">\n {foreach from=$line_item.participants item=participant}\n {$participant.display_name}<br />\n {/foreach}\n </div>\n {/if}\n {if $line_item.num_waiting_participants > 0}\n Waitlisted:<br/>\n <div class=\"participants\" style=\"padding-left: 10px;\">\n {foreach from=$line_item.waiting_participants item=participant}\n {$participant.display_name}<br />\n {/foreach}\n </div>\n {/if}\n </td>\n <td style=\"width: 100px\">\n {$line_item.cost|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n <td style=\"width: 100px\">\n {$line_item.amount|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n </tr>\n {/foreach}\n </tbody>\n <tfoot>\n {if $discounts}\n <tr>\n <td>\n </td>\n <td>\n </td>\n <td>\n Subtotal:\n </td>\n <td>\n {$sub_total|crmMoney:$currency|string_format:\"%10s\"}\n </td>\n </tr>\n {foreach from=$discounts key=myId item=i}\n <tr>\n <td>\n {$i.title}\n </td>\n <td>\n </td>\n <td>\n </td>\n <td>\n -{$i.amount}\n </td>\n </tr>\n {/foreach}\n {/if}\n <tr>\n{if $line_items}\n <td>\n </td>\n <td>\n </td>\n{/if}\n <td>\n <strong>Total:</strong>\n </td>\n <td>\n <strong> {$total|crmMoney:$currency|string_format:\"%10s\"}</strong>\n </td>\n </tr>\n </tfoot>\n </table>\n\n If you have questions about the status of your registration or purchase please feel free to contact us.\n </body>\n</html>\n',1,830,'event_registration_receipt',0,1,0,NULL), + (35,'Events - Registration Cancellation Notice','{ts 1=$event.event_title}Event Registration Cancelled for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Your Event Registration has been cancelled.{/ts}\n\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"shortdate\" == $event.event_start_date|crmDate:\"shortdate\"}{$event.event_end_date|crmDate:\"Time\"}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {participant.role_id:label}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if !empty(\'{participant.register_date}\')}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Your Event Registration has been cancelled.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"shortdate\" == $event.event_start_date|crmDate:\"shortdate\"}{$event.event_end_date|crmDate:\"Time\"}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {participant.role_id:label}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if !empty(\'{participant.register_date}\')}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {participant.register_date}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,831,'participant_cancelled',1,0,0,NULL), + (36,'Events - Registration Cancellation Notice','{ts 1=$event.event_title}Event Registration Cancelled for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Your Event Registration has been cancelled.{/ts}\n\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"shortdate\" == $event.event_start_date|crmDate:\"shortdate\"}{$event.event_end_date|crmDate:\"Time\"}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {participant.role_id:label}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if !empty(\'{participant.register_date}\')}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Your Event Registration has been cancelled.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"shortdate\" == $event.event_start_date|crmDate:\"shortdate\"}{$event.event_end_date|crmDate:\"Time\"}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {participant.role_id:label}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if !empty(\'{participant.register_date}\')}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {participant.register_date}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,831,'participant_cancelled',0,1,0,NULL), + (37,'Events - Registration Confirmation Invite','{ts 1=$event.event_title}Confirm your registration for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}\n\n{if !$isAdditional and $participant.id}\n\n===========================================================\n{ts}Confirm Your Registration{/ts}\n\n===========================================================\n{capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q=\"reset=1&participantId=`$participant.id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\nClick this link to go to a web page where you can confirm your registration online:\n{$confirmUrl}\n{/if}\n{if $event.allow_selfcancelxfer}\n{ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if $event.location.phone.1.phone || $event.location.email.1.email}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if $event.is_public}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}</p>\n </td>\n </tr>\n {if !$isAdditional and $participant.id}\n <tr>\n <th {$headerStyle}>\n {ts}Confirm Your Registration{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q=\"reset=1&participantId=`$participant.id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\n <a href=\"{$confirmUrl}\">{ts}Click here to confirm and complete your registration{/ts}</a>\n </td>\n </tr>\n {/if}\n {if $event.allow_selfcancelxfer}\n {ts}This event allows for{/ts}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\"> {ts}self service cancel or transfer{/ts}</a>\n {/if}\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if $event.location.phone.1.phone || $event.location.email.1.email}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if $event.is_public}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n {if $event.allow_selfcancelxfer}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}<br />\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n </td>\n </tr>\n {/if}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,832,'participant_confirm',1,0,0,NULL), + (38,'Events - Registration Confirmation Invite','{ts 1=$event.event_title}Confirm your registration for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}\n\n{if !$isAdditional and $participant.id}\n\n===========================================================\n{ts}Confirm Your Registration{/ts}\n\n===========================================================\n{capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q=\"reset=1&participantId=`$participant.id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\nClick this link to go to a web page where you can confirm your registration online:\n{$confirmUrl}\n{/if}\n{if $event.allow_selfcancelxfer}\n{ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if $event.location.phone.1.phone || $event.location.email.1.email}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if $event.is_public}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}</p>\n </td>\n </tr>\n {if !$isAdditional and $participant.id}\n <tr>\n <th {$headerStyle}>\n {ts}Confirm Your Registration{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q=\"reset=1&participantId=`$participant.id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\n <a href=\"{$confirmUrl}\">{ts}Click here to confirm and complete your registration{/ts}</a>\n </td>\n </tr>\n {/if}\n {if $event.allow_selfcancelxfer}\n {ts}This event allows for{/ts}\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\"> {ts}self service cancel or transfer{/ts}</a>\n {/if}\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if $event.location.phone.1.phone || $event.location.email.1.email}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if $event.is_public}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id=`$event.id`\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n </td>\n </tr>\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n {if $event.allow_selfcancelxfer}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}<br />\n {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid=`$participant.id`&{contact.checksum}\" h=0 a=1 fe=1}{/capture}\n <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n </td>\n </tr>\n {/if}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,832,'participant_confirm',0,1,0,NULL), + (39,'Events - Pending Registration Expiration Notice','{ts 1=$event.event_title}Event registration has expired for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$event.event_title}Your pending event registration for %1 has expired\nbecause you did not confirm your registration.{/ts}\n\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor want to inquire about reinstating your registration for this event.{/ts}\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$event.event_title}Your pending event registration for %1 has expired\nbecause you did not confirm your registration.{/ts}</p>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor want to inquire about reinstating your registration for this event.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,833,'participant_expired',1,0,0,NULL), + (40,'Events - Pending Registration Expiration Notice','{ts 1=$event.event_title}Event registration has expired for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$event.event_title}Your pending event registration for %1 has expired\nbecause you did not confirm your registration.{/ts}\n\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor want to inquire about reinstating your registration for this event.{/ts}\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$event.event_title}Your pending event registration for %1 has expired\nbecause you did not confirm your registration.{/ts}</p>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor want to inquire about reinstating your registration for this event.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,833,'participant_expired',0,1,0,NULL), + (41,'Events - Registration Transferred Notice','{ts 1=$event.event_title}Event Registration Transferred for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$to_participant}Your Event Registration has been transferred to %1.{/ts}\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$to_participant}Your Event Registration has been Transferred to %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,834,'participant_transferred',1,0,0,NULL), + (42,'Events - Registration Transferred Notice','{ts 1=$event.event_title}Event Registration Transferred for %1{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$to_participant}Your Event Registration has been transferred to %1.{/ts}\n\n===========================================================\n{ts}Event Information and Location{/ts}\n\n===========================================================\n{$event.event_title}\n{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n\n{ts}Participant Role{/ts}: {$participant.role}\n\n{if $isShowLocation}\n{$event.location.address.1.display|strip_tags:false}\n{/if}{*End of isShowLocation condition*}\n\n{if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n\n{ts}Event Contacts:{/ts}\n{foreach from=$event.location.phone item=phone}\n{if $phone.phone}\n\n{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}\n{/foreach}\n{foreach from=$event.location.email item=eventEmail}\n{if $eventEmail.email}\n\n{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}\n{/if}\n\n{if \'{contact.email}\'}\n\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{contact.email}\n{/if}\n\n{if $register_date}\n{ts}Registration Date{/ts}: {$participant.register_date|crmDate}\n{/if}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$to_participant}Your Event Registration has been Transferred to %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Event Information and Location{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.event_title}<br />\n {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Participant Role{/ts}:\n </td>\n <td {$valueStyle}>\n {$participant.role}\n </td>\n </tr>\n\n {if $isShowLocation}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$event.location.address.1.display|nl2br}\n </td>\n </tr>\n {/if}\n\n {if !empty($event.location.phone.1.phone) || !empty($event.location.email.1.email)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}Event Contacts:{/ts}\n </td>\n </tr>\n {foreach from=$event.location.phone item=phone}\n {if $phone.phone}\n <tr>\n <td {$labelStyle}>\n {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}\n </td>\n <td {$valueStyle}>\n {$phone.phone}\n </td>\n </tr>\n {/if}\n {/foreach}\n {foreach from=$event.location.email item=eventEmail}\n {if $eventEmail.email}\n <tr>\n <td {$labelStyle}>\n {ts}Email{/ts}\n </td>\n <td {$valueStyle}>\n {$eventEmail.email}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n {if \'{contact.email}\'}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {contact.email}\n </td>\n </tr>\n {/if}\n\n {if $register_date}\n <tr>\n <td {$labelStyle}>\n {ts}Registration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$participant.register_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,834,'participant_transferred',0,1,0,NULL), + (43,'Tell-a-Friend Email','{ts 1=$senderContactName 2=$title}%1 wants you to know about %2{/ts}\n','{$senderMessage}\n\n{if $generalLink}{ts}For more information, visit:{/ts}\n>> {$generalLink}\n\n{/if}\n{if $contribute}{ts}To make a contribution, go to:{/ts}\n>> {$pageURL}\n\n{/if}\n{if $event}{ts}To find out more about this event, go to:{/ts}\n>> {$pageURL}\n{/if}\n\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <p>{$senderMessage}</p>\n {if $generalLink}\n <p><a href=\"{$generalLink}\">{ts}More information{/ts}</a></p>\n {/if}\n {if $contribute}\n <p><a href=\"{$pageURL}\">{ts}Make a contribution{/ts}</a></p>\n {/if}\n {if $event}\n <p><a href=\"{$pageURL}\">{ts}Find out more about this event{/ts}</a></p>\n {/if}\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,835,'friend',1,0,0,NULL), + (44,'Tell-a-Friend Email','{ts 1=$senderContactName 2=$title}%1 wants you to know about %2{/ts}\n','{$senderMessage}\n\n{if $generalLink}{ts}For more information, visit:{/ts}\n>> {$generalLink}\n\n{/if}\n{if $contribute}{ts}To make a contribution, go to:{/ts}\n>> {$pageURL}\n\n{/if}\n{if $event}{ts}To find out more about this event, go to:{/ts}\n>> {$pageURL}\n{/if}\n\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <p>{$senderMessage}</p>\n {if $generalLink}\n <p><a href=\"{$generalLink}\">{ts}More information{/ts}</a></p>\n {/if}\n {if $contribute}\n <p><a href=\"{$pageURL}\">{ts}Make a contribution{/ts}</a></p>\n {/if}\n {if $event}\n <p><a href=\"{$pageURL}\">{ts}Find out more about this event{/ts}</a></p>\n {/if}\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,835,'friend',0,1,0,NULL), + (45,'Memberships - Signup and Renewal Receipts (off-line)','{if $receiptType EQ \'membership signup\'}\n{ts}Membership Confirmation and Receipt{/ts}\n{elseif $receiptType EQ \'membership renewal\'}\n{ts}Membership Renewal Confirmation and Receipt{/ts}\n{/if} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $receipt_text}\n{$receipt_text}\n{else}{ts}Thank you for this contribution.{/ts}{/if}\n\n{if !$isShowLineItems}\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Type{/ts}: {membership.membership_type_id:name}\n{/if}\n{if \'{membership.status_id:name}\' !== \'Cancelled\'}\n{if !$isShowLineItems}\n{ts}Membership Start Date{/ts}: {membership.start_date|crmDate:\"Full\"}\n{ts}Membership Expiration Date{/ts}: {membership.end_date|crmDate:\"Full\"}\n{/if}\n\n{if {contribution.total_amount|boolean}}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{if {contribution.financial_type_id|boolean}}\n{ts}Financial Type{/ts}: {contribution.financial_type_id:label}\n{/if}\n{if $isShowLineItems}\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_total}{ts}Fee{/ts}{/capture}\n{if $isShowTax && \'{contribution.tax_amount|boolean}\'}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{/if}\n{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}\n{capture assign=ts_end_date}{ts}Membership Expiration Date{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_total|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"} {/if} {$ts_start_date|string_format:\"%20s\"} {$ts_end_date|string_format:\"%20s\"}\n--------------------------------------------------------------------------------------------------\n\n{foreach from=$lineItems item=line}\n{line.title} {$line.line_total|crmMoney|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {else} {/if} {$line.line_total_inclusive|crmMoney|string_format:\"%10s\"} {/if} {$line.membership.start_date|string_format:\"%20s\"} {$line.membership.end_date|string_format:\"%20s\"}\n{/foreach}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {contribution.tax_exclusive_amount}\n\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else} {$taxTerm} {$taxDetail.percentage}%{/if}: {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n--------------------------------------------------------------------------------------------------\n{/if}\n\n{if {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount}\n{/if}\n\n{ts}Amount{/ts}: {contribution.total_amount}\n{if {contribution.receive_date|boolean}}\n{ts}Contribution Date{/ts}: {contribution.receive_date}\n{/if}\n{if {contribution.payment_instrument_id|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{if {contribution.check_number|boolean}}\n{ts}Check Number{/ts}: {contribution.check_number|boolean}\n{/if}\n{/if}\n{/if}\n{/if}\n\n{if !empty($isPrimary)}\n{if !empty($billingName)}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n\n{if !empty($customValues)}\n===========================================================\n{ts}Membership Options{/ts}\n\n===========================================================\n{foreach from=$customValues item=value key=customName}\n {$customName} : {$value}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-membership_receipt\"\n style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $receipt_text}\n <p>{$receipt_text|htmlize}</p>\n {else}\n <p>{ts}Thank you for this contribution.{/ts}</p>\n {/if}\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if !$isShowLineItems}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Type{/ts}\n </td>\n <td {$valueStyle}>\n {membership.membership_type_id:name}\n </td>\n </tr>\n {/if}\n {if \'{membership.status_id:name}\' !== \'Cancelled\'}\n {if !$isShowLineItems}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {membership.start_date|crmDate:\"Full\"}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {membership.end_date|crmDate:\"Full\"}\n </td>\n </tr>\n {/if}\n {if {contribution.total_amount|boolean}}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n {if {contribution.financial_type_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.financial_type_id:label}\n </td>\n </tr>\n {/if}\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Fee{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}SubTotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n <th>{ts}Total{/ts}</th>\n {/if}\n <th>{ts}Membership Start Date{/ts}</th>\n <th>{ts}Membership Expiration Date{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>{$line.title}</td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>\n {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n <td>\n {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'}\n </td>\n {/if}\n <td>\n {$line.membership.start_date|crmDate:\"Full\"}\n </td>\n <td>\n {$line.membership.end_date|crmDate:\"Full\"}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_exclusive_amount}\n </td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else} {$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n {/if}\n {if {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n {if {contribution.receive_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receive_date}\n </td>\n </tr>\n {/if}\n {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {if {contribution.check_number|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.check_number}\n </td>\n </tr>\n {/if}\n {/if}\n {/if}\n {/if}\n </table>\n </td>\n </tr>\n\n {if !empty($isPrimary)}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {$billingName}<br/>\n {$address}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$valueStyle}>\n {$credit_card_type}<br/>\n {$credit_card_number}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Expires{/ts}\n </td>\n <td {$valueStyle}>\n {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n {/if}\n\n {if !empty($customValues)}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Membership Options{/ts}\n </th>\n </tr>\n {foreach from=$customValues item=value key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,836,'membership_offline_receipt',1,0,0,NULL), + (46,'Memberships - Signup and Renewal Receipts (off-line)','{if $receiptType EQ \'membership signup\'}\n{ts}Membership Confirmation and Receipt{/ts}\n{elseif $receiptType EQ \'membership renewal\'}\n{ts}Membership Renewal Confirmation and Receipt{/ts}\n{/if} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{if $receipt_text}\n{$receipt_text}\n{else}{ts}Thank you for this contribution.{/ts}{/if}\n\n{if !$isShowLineItems}\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Type{/ts}: {membership.membership_type_id:name}\n{/if}\n{if \'{membership.status_id:name}\' !== \'Cancelled\'}\n{if !$isShowLineItems}\n{ts}Membership Start Date{/ts}: {membership.start_date|crmDate:\"Full\"}\n{ts}Membership Expiration Date{/ts}: {membership.end_date|crmDate:\"Full\"}\n{/if}\n\n{if {contribution.total_amount|boolean}}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{if {contribution.financial_type_id|boolean}}\n{ts}Financial Type{/ts}: {contribution.financial_type_id:label}\n{/if}\n{if $isShowLineItems}\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_total}{ts}Fee{/ts}{/capture}\n{if $isShowTax && \'{contribution.tax_amount|boolean}\'}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{/if}\n{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}\n{capture assign=ts_end_date}{ts}Membership Expiration Date{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_total|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"} {/if} {$ts_start_date|string_format:\"%20s\"} {$ts_end_date|string_format:\"%20s\"}\n--------------------------------------------------------------------------------------------------\n\n{foreach from=$lineItems item=line}\n{line.title} {$line.line_total|crmMoney|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:\'{contribution.currency}\'|string_format:\"%10s\"} {else} {/if} {$line.line_total_inclusive|crmMoney|string_format:\"%10s\"} {/if} {$line.membership.start_date|string_format:\"%20s\"} {$line.membership.end_date|string_format:\"%20s\"}\n{/foreach}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {contribution.tax_exclusive_amount}\n\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else} {$taxTerm} {$taxDetail.percentage}%{/if}: {$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n--------------------------------------------------------------------------------------------------\n{/if}\n\n{if {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {contribution.tax_amount}\n{/if}\n\n{ts}Amount{/ts}: {contribution.total_amount}\n{if {contribution.receive_date|boolean}}\n{ts}Contribution Date{/ts}: {contribution.receive_date}\n{/if}\n{if {contribution.payment_instrument_id|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{if {contribution.check_number|boolean}}\n{ts}Check Number{/ts}: {contribution.check_number|boolean}\n{/if}\n{/if}\n{/if}\n{/if}\n\n{if !empty($isPrimary)}\n{if !empty($billingName)}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n{/if}\n\n{if !empty($credit_card_type)}\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n\n{if !empty($customValues)}\n===========================================================\n{ts}Membership Options{/ts}\n\n===========================================================\n{foreach from=$customValues item=value key=customName}\n {$customName} : {$value}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-membership_receipt\"\n style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if $receipt_text}\n <p>{$receipt_text|htmlize}</p>\n {else}\n <p>{ts}Thank you for this contribution.{/ts}</p>\n {/if}\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n {if !$isShowLineItems}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Type{/ts}\n </td>\n <td {$valueStyle}>\n {membership.membership_type_id:name}\n </td>\n </tr>\n {/if}\n {if \'{membership.status_id:name}\' !== \'Cancelled\'}\n {if !$isShowLineItems}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {membership.start_date|crmDate:\"Full\"}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {membership.end_date|crmDate:\"Full\"}\n </td>\n </tr>\n {/if}\n {if {contribution.total_amount|boolean}}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n {if {contribution.financial_type_id|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Financial Type{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.financial_type_id:label}\n </td>\n </tr>\n {/if}\n\n {if $isShowLineItems}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Fee{/ts}</th>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <th>{ts}SubTotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n <th>{ts}Total{/ts}</th>\n {/if}\n <th>{ts}Membership Start Date{/ts}</th>\n <th>{ts}Membership Expiration Date{/ts}</th>\n </tr>\n {foreach from=$lineItems item=line}\n <tr>\n <td>{$line.title}</td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <td>\n {$line.unit_price*$line.qty|crmMoney:\'{contribution.currency}\'}\n </td>\n {if $line.tax_rate || $line.tax_amount != \"\"}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney:\'{contribution.currency}\'}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n <td>\n {$line.line_total_inclusive|crmMoney:\'{contribution.currency}\'}\n </td>\n {/if}\n <td>\n {$line.membership.start_date|crmDate:\"Full\"}\n </td>\n <td>\n {$line.membership.end_date|crmDate:\"Full\"}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n {if $isShowTax && {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_exclusive_amount}\n </td>\n </tr>\n {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n <tr>\n <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else} {$taxTerm} {$taxDetail.percentage}%{/if}</td>\n <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n </tr>\n {/foreach}\n {/if}\n {/if}\n {if {contribution.tax_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.tax_amount}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.total_amount}\n </td>\n </tr>\n {if {contribution.receive_date|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Date{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.receive_date}\n </td>\n </tr>\n {/if}\n {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Paid By{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.payment_instrument_id:label}\n </td>\n </tr>\n {if {contribution.check_number|boolean}}\n <tr>\n <td {$labelStyle}>\n {ts}Check Number{/ts}\n </td>\n <td {$valueStyle}>\n {contribution.check_number}\n </td>\n </tr>\n {/if}\n {/if}\n {/if}\n {/if}\n </table>\n </td>\n </tr>\n\n {if !empty($isPrimary)}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {$billingName}<br/>\n {$address}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$valueStyle}>\n {$credit_card_type}<br/>\n {$credit_card_number}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Expires{/ts}\n </td>\n <td {$valueStyle}>\n {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n </td>\n </tr>\n {/if}\n\n {if !empty($customValues)}\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Membership Options{/ts}\n </th>\n </tr>\n {foreach from=$customValues item=value key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,836,'membership_offline_receipt',0,1,0,NULL), + (47,'Memberships - Receipt (on-line)','{if \'{contribution.contribution_status_id:name}\' === \'Pending\'}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($receipt_text)}\n{$receipt_text}\n{/if}\n{if $is_pay_later}\n\n===========================================================\n{$pay_later_receipt}\n===========================================================\n{/if}\n\n{if $membership_assign && !$useForMember}\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Type{/ts}: {$membership_name}\n{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}\n{/if}\n{if $mem_end_date}{ts}Membership Expiration Date{/ts}: {$mem_end_date|crmDate}\n{/if}\n\n{/if}\n{if $amount}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{if !$useForMember && isset($membership_amount) && !empty($is_quick_config)}\n{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}\n{if $amount && !$is_separate_payment}\n{ts}Contribution Amount{/ts}: {$amount|crmMoney}\n-------------------------------------------\n{ts}Total{/ts}: {$amount+$membership_amount|crmMoney}\n{/if}\n{elseif !$useForMember && !empty($lineItem) and !empty($priceSetID) & empty($is_quick_config)}\n{foreach from=$lineItem item=value key=priceset}\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$value item=line}\n{$line.description|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney|string_format:\"%10s\"} {$line.line_total|crmMoney|string_format:\"%10s\"}\n{/foreach}\n{/foreach}\n\n{ts}Total Amount{/ts}: {$amount|crmMoney}\n{else}\n{if $useForMember && $lineItem && empty($is_quick_config)}\n{foreach from=$lineItem item=value key=priceset}\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_total}{ts}Fee{/ts}{/capture}\n{if !empty($dataArray)}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{/if}\n{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}\n{capture assign=ts_end_date}{ts}Membership Expiration Date{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_total|string_format:\"%10s\"} {if !empty($dataArray)} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"} {/if} {$ts_start_date|string_format:\"%20s\"} {$ts_end_date|string_format:\"%20s\"}\n--------------------------------------------------------------------------------------------------\n\n{foreach from=$value item=line}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.line_total|crmMoney|string_format:\"%10s\"} {if !empty($dataArray)} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:\"%10s\"} {/if} {$line.start_date|string_format:\"%20s\"} {$line.end_date|string_format:\"%20s\"}\n{/foreach}\n{/foreach}\n\n{if !empty($dataArray)}\n{ts}Amount before Tax:{/ts} {$amount-$totalTaxAmount|crmMoney:$currency}\n\n{foreach from=$dataArray item=value key=priceset}\n{if $priceset || $priceset == 0}\n{$taxTerm} {$priceset|string_format:\"%.2f\"}%: {$value|crmMoney:$currency}\n{else}\n{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}\n{/if}\n{/foreach}\n{/if}\n--------------------------------------------------------------------------------------------------\n{/if}\n\n{if $totalTaxAmount}\n{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}\n{/if}\n\n{ts}Amount{/ts}: {$amount|crmMoney} {if isset($amount_level)} - {$amount_level} {/if}\n{/if}\n{elseif isset($membership_amount)}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}\n{/if}\n\n{if !empty($receive_date)}\n\n{ts}Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($is_monetary) and !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n\n{/if}\n{if !empty($membership_trx_id)}\n{ts}Membership Transaction #{/ts}: {$membership_trx_id}\n\n{/if}\n{if !empty($is_recur)}\n{ts}This membership will be renewed automatically.{/ts}\n{if $cancelSubscriptionUrl}\n\n{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page: %1.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n{/if}\n{/if}\n\n{if $honor_block_is_active}\n===========================================================\n{$soft_credit_type}\n===========================================================\n{foreach from=$honoreeProfile item=value key=label}\n{$label}: {$value}\n{/foreach}\n\n{/if}\n{if !empty($pcpBlock)}\n===========================================================\n{ts}Personal Campaign Page{/ts}\n\n===========================================================\n{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n\n{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}\n\n{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}\n\n{/if}\n{if !empty($onBehalfProfile)}\n===========================================================\n{ts}On Behalf Of{/ts}\n\n===========================================================\n{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n{$onBehalfName}: {$onBehalfValue}\n{/foreach}\n{/if}\n\n{if !empty($billingName)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n{elseif !empty($email)}\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{$email}\n{/if} {* End billingName or email *}\n{if !empty($credit_card_type)}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n\n{if !empty($selectPremium)}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$product_name}\n{if $option}\n{ts}Option{/ts}: {$option}\n{/if}\n{if $sku}\n{ts}SKU{/ts}: {$sku}\n{/if}\n{if $start_date}\n{ts}Start Date{/ts}: {$start_date|crmDate}\n{/if}\n{if $end_date}\n{ts}End Date{/ts}: {$end_date|crmDate}\n{/if}\n{if !empty($contact_email) OR !empty($contact_phone)}\n\n{ts}For information about this premium, contact:{/ts}\n\n{if !empty($contact_email)}\n {$contact_email}\n{/if}\n{if !empty($contact_phone)}\n {$contact_phone}\n{/if}\n{/if}\n{if $is_deductible AND !empty($price)}\n\n{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}\n{/if}\n\n{if !empty($customPre)}\n===========================================================\n{$customPre_grouptitle}\n\n===========================================================\n{foreach from=$customPre item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n\n\n{if !empty($customPost)}\n===========================================================\n{$customPost_grouptitle}\n\n===========================================================\n{foreach from=$customPost item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if !empty($receipt_text)}\n <p>{$receipt_text|htmlize}</p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n </table>\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n\n {if $membership_assign && !$useForMember}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Type{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_name}\n </td>\n </tr>\n {if $mem_start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $mem_end_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_end_date|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n\n\n {if $amount}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n\n {if !$useForMember and isset($membership_amount) and !empty($is_quick_config)}\n\n <tr>\n <td {$labelStyle}>\n {ts 1=$membership_name}%1 Membership{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_amount|crmMoney}\n </td>\n </tr>\n {if $amount && !$is_separate_payment}\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total{/ts}\n </td>\n <td {$valueStyle}>\n {$amount+$membership_amount|crmMoney}\n </td>\n </tr>\n {/if}\n\n {elseif empty($useForMember) && !empty($lineItem) and $priceSetID and empty($is_quick_config)}\n\n {foreach from=$lineItem item=value key=priceset}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$value item=line}\n <tr>\n <td>\n {$line.description|truncate:30:\"...\"}\n </td>\n <td>\n {$line.qty}\n </td>\n <td>\n {$line.unit_price|crmMoney}\n </td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/foreach}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney}\n </td>\n </tr>\n\n {else}\n {if $useForMember && $lineItem and empty($is_quick_config)}\n {foreach from=$lineItem item=value key=priceset}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Fee{/ts}</th>\n {if !empty($dataArray)}\n <th>{ts}SubTotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n <th>{ts}Total{/ts}</th>\n {/if}\n <th>{ts}Membership Start Date{/ts}</th>\n <th>{ts}Membership Expiration Date{/ts}</th>\n </tr>\n {foreach from=$value item=line}\n <tr>\n <td>\n {if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:\"...\"}</div>{/if}\n </td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n {if !empty($dataArray)}\n <td>\n {$line.unit_price*$line.qty|crmMoney}\n </td>\n {if ($line.tax_rate || $line.tax_amount != \"\")}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney}\n </td>\n {/if}\n <td>\n {$line.start_date}\n </td>\n <td>\n {$line.end_date}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/foreach}\n {if !empty($dataArray)}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {$amount-$totalTaxAmount|crmMoney}\n </td>\n </tr>\n {foreach from=$dataArray item=value key=priceset}\n <tr>\n {if $priceset || $priceset == 0}\n <td> {$taxTerm} {$priceset|string_format:\"%.2f\"}%</td>\n <td> {$value|crmMoney:$currency}</td>\n {else}\n <td> {ts}NO{/ts} {$taxTerm}</td>\n <td> {$value|crmMoney:$currency}</td>\n {/if}\n </tr>\n {/foreach}\n {/if}\n {/if}\n {if $totalTaxAmount}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$totalTaxAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney} {if isset($amount_level)} - {$amount_level}{/if}\n </td>\n </tr>\n\n {/if}\n\n\n {elseif isset($membership_amount)}\n\n\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$membership_name}%1 Membership{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_amount|crmMoney}\n </td>\n </tr>\n\n\n {/if}\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($is_monetary) and !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($membership_trx_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_trx_id}\n </td>\n </tr>\n {/if}\n {if !empty($is_recur)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}This membership will be renewed automatically.{/ts}\n {if $cancelSubscriptionUrl}\n {ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n {/if}\n </td>\n </tr>\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if $honor_block_is_active}\n <tr>\n <th {$headerStyle}>\n {$soft_credit_type}\n </th>\n </tr>\n {foreach from=$honoreeProfile item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($pcpBlock)}\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Display In Honor Roll{/ts}\n </td>\n <td {$valueStyle}>\n {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n </td>\n </tr>\n {if $pcp_roll_nickname}\n <tr>\n <td {$labelStyle}>\n {ts}Nickname{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_roll_nickname}\n </td>\n </tr>\n {/if}\n {if $pcp_personal_note}\n <tr>\n <td {$labelStyle}>\n {ts}Personal Note{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_personal_note}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($onBehalfProfile)}\n <tr>\n <th {$headerStyle}>\n {$onBehalfProfile_grouptitle}\n </th>\n </tr>\n {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n <tr>\n <td {$labelStyle}>\n {$onBehalfName}\n </td>\n <td {$valueStyle}>\n {$onBehalfValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n {elseif !empty($email)}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$email}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n {/if}\n\n {if !empty($selectPremium)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$product_name}\n </td>\n </tr>\n {if $option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$option}\n </td>\n </tr>\n {/if}\n {if $sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$sku}\n </td>\n </tr>\n {/if}\n {if $start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $end_date}\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$end_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($contact_email) OR !empty($contact_phone)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}For information about this premium, contact:{/ts}</p>\n {if !empty($contact_email)}\n <p>{$contact_email}</p>\n {/if}\n {if !empty($contact_phone)}\n <p>{$contact_phone}</p>\n {/if}\n </td>\n </tr>\n {/if}\n {if $is_deductible AND !empty($price)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($customPre)}\n <tr>\n <th {$headerStyle}>\n {$customPre_grouptitle}\n </th>\n </tr>\n {foreach from=$customPre item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($customPost)}\n <tr>\n <th {$headerStyle}>\n {$customPost_grouptitle}\n </th>\n </tr>\n {foreach from=$customPost item=customValue key=customName}\n {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,837,'membership_online_receipt',1,0,0,NULL), + (48,'Memberships - Receipt (on-line)','{if \'{contribution.contribution_status_id:name}\' === \'Pending\'}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($receipt_text)}\n{$receipt_text}\n{/if}\n{if $is_pay_later}\n\n===========================================================\n{$pay_later_receipt}\n===========================================================\n{/if}\n\n{if $membership_assign && !$useForMember}\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Type{/ts}: {$membership_name}\n{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}\n{/if}\n{if $mem_end_date}{ts}Membership Expiration Date{/ts}: {$mem_end_date|crmDate}\n{/if}\n\n{/if}\n{if $amount}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{if !$useForMember && isset($membership_amount) && !empty($is_quick_config)}\n{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}\n{if $amount && !$is_separate_payment}\n{ts}Contribution Amount{/ts}: {$amount|crmMoney}\n-------------------------------------------\n{ts}Total{/ts}: {$amount+$membership_amount|crmMoney}\n{/if}\n{elseif !$useForMember && !empty($lineItem) and !empty($priceSetID) & empty($is_quick_config)}\n{foreach from=$lineItem item=value key=priceset}\n---------------------------------------------------------\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"}\n----------------------------------------------------------\n{foreach from=$value item=line}\n{$line.description|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney|string_format:\"%10s\"} {$line.line_total|crmMoney|string_format:\"%10s\"}\n{/foreach}\n{/foreach}\n\n{ts}Total Amount{/ts}: {$amount|crmMoney}\n{else}\n{if $useForMember && $lineItem && empty($is_quick_config)}\n{foreach from=$lineItem item=value key=priceset}\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_total}{ts}Fee{/ts}{/capture}\n{if !empty($dataArray)}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{/if}\n{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}\n{capture assign=ts_end_date}{ts}Membership Expiration Date{/ts}{/capture}\n{$ts_item|string_format:\"%-30s\"} {$ts_total|string_format:\"%10s\"} {if !empty($dataArray)} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {$ts_total|string_format:\"%10s\"} {/if} {$ts_start_date|string_format:\"%20s\"} {$ts_end_date|string_format:\"%20s\"}\n--------------------------------------------------------------------------------------------------\n\n{foreach from=$value item=line}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.line_total|crmMoney|string_format:\"%10s\"} {if !empty($dataArray)} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"} {$line.tax_rate|string_format:\"%.2f\"} % {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:\"%10s\"} {/if} {$line.start_date|string_format:\"%20s\"} {$line.end_date|string_format:\"%20s\"}\n{/foreach}\n{/foreach}\n\n{if !empty($dataArray)}\n{ts}Amount before Tax:{/ts} {$amount-$totalTaxAmount|crmMoney:$currency}\n\n{foreach from=$dataArray item=value key=priceset}\n{if $priceset || $priceset == 0}\n{$taxTerm} {$priceset|string_format:\"%.2f\"}%: {$value|crmMoney:$currency}\n{else}\n{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}\n{/if}\n{/foreach}\n{/if}\n--------------------------------------------------------------------------------------------------\n{/if}\n\n{if $totalTaxAmount}\n{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}\n{/if}\n\n{ts}Amount{/ts}: {$amount|crmMoney} {if isset($amount_level)} - {$amount_level} {/if}\n{/if}\n{elseif isset($membership_amount)}\n===========================================================\n{ts}Membership Fee{/ts}\n\n===========================================================\n{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}\n{/if}\n\n{if !empty($receive_date)}\n\n{ts}Date{/ts}: {$receive_date|crmDate}\n{/if}\n{if !empty($is_monetary) and !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n\n{/if}\n{if !empty($membership_trx_id)}\n{ts}Membership Transaction #{/ts}: {$membership_trx_id}\n\n{/if}\n{if !empty($is_recur)}\n{ts}This membership will be renewed automatically.{/ts}\n{if $cancelSubscriptionUrl}\n\n{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page: %1.{/ts}\n\n{/if}\n\n{if $updateSubscriptionBillingUrl}\n\n{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n{/if}\n{/if}\n\n{if $honor_block_is_active}\n===========================================================\n{$soft_credit_type}\n===========================================================\n{foreach from=$honoreeProfile item=value key=label}\n{$label}: {$value}\n{/foreach}\n\n{/if}\n{if !empty($pcpBlock)}\n===========================================================\n{ts}Personal Campaign Page{/ts}\n\n===========================================================\n{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n\n{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}\n\n{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}\n\n{/if}\n{if !empty($onBehalfProfile)}\n===========================================================\n{ts}On Behalf Of{/ts}\n\n===========================================================\n{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n{$onBehalfName}: {$onBehalfValue}\n{/foreach}\n{/if}\n\n{if !empty($billingName)}\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n{elseif !empty($email)}\n===========================================================\n{ts}Registered Email{/ts}\n\n===========================================================\n{$email}\n{/if} {* End billingName or email *}\n{if !empty($credit_card_type)}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n\n{if !empty($selectPremium)}\n===========================================================\n{ts}Premium Information{/ts}\n\n===========================================================\n{$product_name}\n{if $option}\n{ts}Option{/ts}: {$option}\n{/if}\n{if $sku}\n{ts}SKU{/ts}: {$sku}\n{/if}\n{if $start_date}\n{ts}Start Date{/ts}: {$start_date|crmDate}\n{/if}\n{if $end_date}\n{ts}End Date{/ts}: {$end_date|crmDate}\n{/if}\n{if !empty($contact_email) OR !empty($contact_phone)}\n\n{ts}For information about this premium, contact:{/ts}\n\n{if !empty($contact_email)}\n {$contact_email}\n{/if}\n{if !empty($contact_phone)}\n {$contact_phone}\n{/if}\n{/if}\n{if $is_deductible AND !empty($price)}\n\n{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}\n{/if}\n\n{if !empty($customPre)}\n===========================================================\n{$customPre_grouptitle}\n\n===========================================================\n{foreach from=$customPre item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n\n\n{if !empty($customPost)}\n===========================================================\n{$customPost_grouptitle}\n\n===========================================================\n{foreach from=$customPost item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n {if !empty($receipt_text)}\n <p>{$receipt_text|htmlize}</p>\n {/if}\n\n {if $is_pay_later}\n <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n {/if}\n\n </td>\n </tr>\n </table>\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n\n {if $membership_assign && !$useForMember}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Type{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_name}\n </td>\n </tr>\n {if $mem_start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $mem_end_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_end_date|crmDate}\n </td>\n </tr>\n {/if}\n {/if}\n\n\n {if $amount}\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n\n {if !$useForMember and isset($membership_amount) and !empty($is_quick_config)}\n\n <tr>\n <td {$labelStyle}>\n {ts 1=$membership_name}%1 Membership{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_amount|crmMoney}\n </td>\n </tr>\n {if $amount && !$is_separate_payment}\n <tr>\n <td {$labelStyle}>\n {ts}Contribution Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total{/ts}\n </td>\n <td {$valueStyle}>\n {$amount+$membership_amount|crmMoney}\n </td>\n </tr>\n {/if}\n\n {elseif empty($useForMember) && !empty($lineItem) and $priceSetID and empty($is_quick_config)}\n\n {foreach from=$lineItem item=value key=priceset}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Qty{/ts}</th>\n <th>{ts}Each{/ts}</th>\n <th>{ts}Total{/ts}</th>\n </tr>\n {foreach from=$value item=line}\n <tr>\n <td>\n {$line.description|truncate:30:\"...\"}\n </td>\n <td>\n {$line.qty}\n </td>\n <td>\n {$line.unit_price|crmMoney}\n </td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/foreach}\n <tr>\n <td {$labelStyle}>\n {ts}Total Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney}\n </td>\n </tr>\n\n {else}\n {if $useForMember && $lineItem and empty($is_quick_config)}\n {foreach from=$lineItem item=value key=priceset}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <table>\n <tr>\n <th>{ts}Item{/ts}</th>\n <th>{ts}Fee{/ts}</th>\n {if !empty($dataArray)}\n <th>{ts}SubTotal{/ts}</th>\n <th>{ts}Tax Rate{/ts}</th>\n <th>{ts}Tax Amount{/ts}</th>\n <th>{ts}Total{/ts}</th>\n {/if}\n <th>{ts}Membership Start Date{/ts}</th>\n <th>{ts}Membership Expiration Date{/ts}</th>\n </tr>\n {foreach from=$value item=line}\n <tr>\n <td>\n {if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:\"...\"}</div>{/if}\n </td>\n <td>\n {$line.line_total|crmMoney}\n </td>\n {if !empty($dataArray)}\n <td>\n {$line.unit_price*$line.qty|crmMoney}\n </td>\n {if ($line.tax_rate || $line.tax_amount != \"\")}\n <td>\n {$line.tax_rate|string_format:\"%.2f\"}%\n </td>\n <td>\n {$line.tax_amount|crmMoney}\n </td>\n {else}\n <td></td>\n <td></td>\n {/if}\n <td>\n {$line.line_total+$line.tax_amount|crmMoney}\n </td>\n {/if}\n <td>\n {$line.start_date}\n </td>\n <td>\n {$line.end_date}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n {/foreach}\n {if !empty($dataArray)}\n <tr>\n <td {$labelStyle}>\n {ts}Amount Before Tax:{/ts}\n </td>\n <td {$valueStyle}>\n {$amount-$totalTaxAmount|crmMoney}\n </td>\n </tr>\n {foreach from=$dataArray item=value key=priceset}\n <tr>\n {if $priceset || $priceset == 0}\n <td> {$taxTerm} {$priceset|string_format:\"%.2f\"}%</td>\n <td> {$value|crmMoney:$currency}</td>\n {else}\n <td> {ts}NO{/ts} {$taxTerm}</td>\n <td> {$value|crmMoney:$currency}</td>\n {/if}\n </tr>\n {/foreach}\n {/if}\n {/if}\n {if $totalTaxAmount}\n <tr>\n <td {$labelStyle}>\n {ts}Total Tax Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$totalTaxAmount|crmMoney:$currency}\n </td>\n </tr>\n {/if}\n <tr>\n <td {$labelStyle}>\n {ts}Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney} {if isset($amount_level)} - {$amount_level}{/if}\n </td>\n </tr>\n\n {/if}\n\n\n {elseif isset($membership_amount)}\n\n\n <tr>\n <th {$headerStyle}>\n {ts}Membership Fee{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$membership_name}%1 Membership{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_amount|crmMoney}\n </td>\n </tr>\n\n\n {/if}\n\n {if !empty($receive_date)}\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$receive_date|crmDate}\n </td>\n </tr>\n {/if}\n\n {if !empty($is_monetary) and !empty($trxn_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$trxn_id}\n </td>\n </tr>\n {/if}\n\n {if !empty($membership_trx_id)}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Transaction #{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_trx_id}\n </td>\n </tr>\n {/if}\n {if !empty($is_recur)}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts}This membership will be renewed automatically.{/ts}\n {if $cancelSubscriptionUrl}\n {ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href=\"%1\">visiting this web page</a>.{/ts}\n {/if}\n </td>\n </tr>\n {if $updateSubscriptionBillingUrl}\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href=\"%1\">visiting this web page</a>.{/ts}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if $honor_block_is_active}\n <tr>\n <th {$headerStyle}>\n {$soft_credit_type}\n </th>\n </tr>\n {foreach from=$honoreeProfile item=value key=label}\n <tr>\n <td {$labelStyle}>\n {$label}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($pcpBlock)}\n <tr>\n <th {$headerStyle}>\n {ts}Personal Campaign Page{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Display In Honor Roll{/ts}\n </td>\n <td {$valueStyle}>\n {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}\n </td>\n </tr>\n {if $pcp_roll_nickname}\n <tr>\n <td {$labelStyle}>\n {ts}Nickname{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_roll_nickname}\n </td>\n </tr>\n {/if}\n {if $pcp_personal_note}\n <tr>\n <td {$labelStyle}>\n {ts}Personal Note{/ts}\n </td>\n <td {$valueStyle}>\n {$pcp_personal_note}\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($onBehalfProfile)}\n <tr>\n <th {$headerStyle}>\n {$onBehalfProfile_grouptitle}\n </th>\n </tr>\n {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}\n <tr>\n <td {$labelStyle}>\n {$onBehalfName}\n </td>\n <td {$valueStyle}>\n {$onBehalfValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($billingName)}\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n {elseif !empty($email)}\n <tr>\n <th {$headerStyle}>\n {ts}Registered Email{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$email}\n </td>\n </tr>\n {/if}\n\n {if !empty($credit_card_type)}\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n {/if}\n\n {if !empty($selectPremium)}\n <tr>\n <th {$headerStyle}>\n {ts}Premium Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$labelStyle}>\n {$product_name}\n </td>\n </tr>\n {if $option}\n <tr>\n <td {$labelStyle}>\n {ts}Option{/ts}\n </td>\n <td {$valueStyle}>\n {$option}\n </td>\n </tr>\n {/if}\n {if $sku}\n <tr>\n <td {$labelStyle}>\n {ts}SKU{/ts}\n </td>\n <td {$valueStyle}>\n {$sku}\n </td>\n </tr>\n {/if}\n {if $start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $end_date}\n <tr>\n <td {$labelStyle}>\n {ts}End Date{/ts}\n </td>\n <td {$valueStyle}>\n {$end_date|crmDate}\n </td>\n </tr>\n {/if}\n {if !empty($contact_email) OR !empty($contact_phone)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts}For information about this premium, contact:{/ts}</p>\n {if !empty($contact_email)}\n <p>{$contact_email}</p>\n {/if}\n {if !empty($contact_phone)}\n <p>{$contact_phone}</p>\n {/if}\n </td>\n </tr>\n {/if}\n {if $is_deductible AND !empty($price)}\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>\n </td>\n </tr>\n {/if}\n {/if}\n\n {if !empty($customPre)}\n <tr>\n <th {$headerStyle}>\n {$customPre_grouptitle}\n </th>\n </tr>\n {foreach from=$customPre item=customValue key=customName}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/foreach}\n {/if}\n\n {if !empty($customPost)}\n <tr>\n <th {$headerStyle}>\n {$customPost_grouptitle}\n </th>\n </tr>\n {foreach from=$customPost item=customValue key=customName}\n {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)}\n <tr>\n <td {$labelStyle}>\n {$customName}\n </td>\n <td {$valueStyle}>\n {$customValue}\n </td>\n </tr>\n {/if}\n {/foreach}\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,837,'membership_online_receipt',0,1,0,NULL), + (49,'Memberships - Auto-renew Cancellation Notification','{ts}Autorenew Membership Cancellation Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}\n\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Status{/ts}: {$membership_status}\n{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}\n{/if}\n{if $mem_end_date}{ts}Membership Expiration Date{/ts}: {$mem_end_date|crmDate}\n{/if}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}</p>\n\n </td>\n </tr>\n </table>\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Status{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_status}\n </td>\n </tr>\n {if $mem_start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $mem_end_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_end_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,838,'membership_autorenew_cancelled',1,0,0,NULL), + (50,'Memberships - Auto-renew Cancellation Notification','{ts}Autorenew Membership Cancellation Notification{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}\n\n===========================================================\n{ts}Membership Information{/ts}\n\n===========================================================\n{ts}Membership Status{/ts}: {$membership_status}\n{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}\n{/if}\n{if $mem_end_date}{ts}Membership Expiration Date{/ts}: {$mem_end_date|crmDate}\n{/if}\n\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}</p>\n\n </td>\n </tr>\n </table>\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n\n <tr>\n <th {$headerStyle}>\n {ts}Membership Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Membership Status{/ts}\n </td>\n <td {$valueStyle}>\n {$membership_status}\n </td>\n </tr>\n {if $mem_start_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Start Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_start_date|crmDate}\n </td>\n </tr>\n {/if}\n {if $mem_end_date}\n <tr>\n <td {$labelStyle}>\n {ts}Membership Expiration Date{/ts}\n </td>\n <td {$valueStyle}>\n {$mem_end_date|crmDate}\n </td>\n </tr>\n {/if}\n\n </table>\n\n</body>\n</html>\n',1,838,'membership_autorenew_cancelled',0,1,0,NULL), + (51,'Memberships - Auto-renew Billing Updates','{ts}Membership Autorenewal Billing Updates{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,839,'membership_autorenew_billing',1,0,0,NULL), + (52,'Memberships - Auto-renew Billing Updates','{ts}Membership Autorenewal Billing Updates{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}\n\n===========================================================\n{ts}Billing Name and Address{/ts}\n\n===========================================================\n{$billingName}\n{$address}\n\n{$email}\n\n===========================================================\n{ts}Credit Card Information{/ts}\n\n===========================================================\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n\n\n{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}</p>\n </td>\n </tr>\n <tr>\n </table>\n\n <table style=\"width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n <tr>\n <th {$headerStyle}>\n {ts}Billing Name and Address{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$billingName}<br />\n {$address|nl2br}<br />\n {$email}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Credit Card Information{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n {$credit_card_type}<br />\n {$credit_card_number}<br />\n {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}<br />\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,839,'membership_autorenew_billing',0,1,0,NULL), + (53,'Test-drive - Receipt Header','[TEST]\n','***********************************************************\n\n{ts}Test-drive Email / Receipt{/ts}\n\n{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}\n\n***********************************************************\n',' <table id=\"crm-event_receipt_test\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <tr>\n <td>\n <p>{ts}Test-drive Email / Receipt{/ts}</p>\n <p>{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}</p>\n </td>\n </tr>\n </table>\n',1,840,'test_preview',1,0,0,NULL), + (54,'Test-drive - Receipt Header','[TEST]\n','***********************************************************\n\n{ts}Test-drive Email / Receipt{/ts}\n\n{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}\n\n***********************************************************\n',' <table id=\"crm-event_receipt_test\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n <tr>\n <td>\n <p>{ts}Test-drive Email / Receipt{/ts}</p>\n <p>{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}</p>\n </td>\n </tr>\n </table>\n',1,840,'test_preview',0,1,0,NULL), + (55,'Pledges - Acknowledgement','{ts}Thank you for your Pledge{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Thank you for your generous pledge.{/ts}\n\n===========================================================\n{ts}Pledge Information{/ts}\n\n===========================================================\n{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}\n{ts}Total Pledge Amount{/ts}: {$total_pledge_amount|crmMoney:$currency}\n\n===========================================================\n{ts}Payment Schedule{/ts}\n\n===========================================================\n{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}\n\n{if $frequency_day}\n\n{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}\n{/if}\n\n{if $payments}\n{assign var=\"count\" value=1}\n{foreach from=$payments item=payment}\n\n{ts 1=$count}Payment %1{/ts}: {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if}\n{assign var=\"count\" value=$count+1}\n{/foreach}\n{/if}\n\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}\n\n{if $customGroup}\n{foreach from=$customGroup item=value key=customName}\n===========================================================\n{$customName}\n===========================================================\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Thank you for your generous pledge.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Pledge Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Pledge Received{/ts}\n </td>\n <td {$valueStyle}>\n {$create_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Pledge Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$total_pledge_amount|crmMoney:$currency}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Payment Schedule{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}</p>\n\n {if $frequency_day}\n <p>{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}</p>\n {/if}\n </td>\n </tr>\n\n {if $payments}\n {assign var=\"count\" value=1}\n {foreach from=$payments item=payment}\n <tr>\n <td {$labelStyle}>\n {ts 1=$count}Payment %1{/ts}\n </td>\n <td {$valueStyle}>\n {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if}\n </td>\n </tr>\n {assign var=\"count\" value=$count+1}\n {/foreach}\n {/if}\n\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}</p>\n </td>\n </tr>\n\n {if $customGroup}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,841,'pledge_acknowledge',1,0,0,NULL), + (56,'Pledges - Acknowledgement','{ts}Thank you for your Pledge{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts}Thank you for your generous pledge.{/ts}\n\n===========================================================\n{ts}Pledge Information{/ts}\n\n===========================================================\n{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}\n{ts}Total Pledge Amount{/ts}: {$total_pledge_amount|crmMoney:$currency}\n\n===========================================================\n{ts}Payment Schedule{/ts}\n\n===========================================================\n{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}\n\n{if $frequency_day}\n\n{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}\n{/if}\n\n{if $payments}\n{assign var=\"count\" value=1}\n{foreach from=$payments item=payment}\n\n{ts 1=$count}Payment %1{/ts}: {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if}\n{assign var=\"count\" value=$count+1}\n{/foreach}\n{/if}\n\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}\n\n{if $customGroup}\n{foreach from=$customGroup item=value key=customName}\n===========================================================\n{$customName}\n===========================================================\n{foreach from=$value item=v key=n}\n{$n}: {$v}\n{/foreach}\n{/foreach}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts}Thank you for your generous pledge.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Pledge Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Pledge Received{/ts}\n </td>\n <td {$valueStyle}>\n {$create_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Pledge Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$total_pledge_amount|crmMoney:$currency}\n </td>\n </tr>\n <tr>\n <th {$headerStyle}>\n {ts}Payment Schedule{/ts}\n </th>\n </tr>\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}</p>\n\n {if $frequency_day}\n <p>{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}</p>\n {/if}\n </td>\n </tr>\n\n {if $payments}\n {assign var=\"count\" value=1}\n {foreach from=$payments item=payment}\n <tr>\n <td {$labelStyle}>\n {ts 1=$count}Payment %1{/ts}\n </td>\n <td {$valueStyle}>\n {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:\'\'|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:\'\'|crmDate}{/if}\n </td>\n </tr>\n {assign var=\"count\" value=$count+1}\n {/foreach}\n {/if}\n\n <tr>\n <td colspan=\"2\" {$valueStyle}>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}</p>\n </td>\n </tr>\n\n {if $customGroup}\n {foreach from=$customGroup item=value key=customName}\n <tr>\n <th {$headerStyle}>\n {$customName}\n </th>\n </tr>\n {foreach from=$value item=v key=n}\n <tr>\n <td {$labelStyle}>\n {$n}\n </td>\n <td {$valueStyle}>\n {$v}\n </td>\n </tr>\n {/foreach}\n {/foreach}\n {/if}\n\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,841,'pledge_acknowledge',0,1,0,NULL), + (57,'Pledges - Payment Reminder','{ts}Pledge Payment Reminder{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}\n\n===========================================================\n{ts}Payment Due{/ts}\n\n===========================================================\n{ts}Amount Due{/ts}: {$amount_due|crmMoney:$currency}\n{ts}Due Date{/ts}: {$scheduled_payment_date|truncate:10:\'\'|crmDate}\n\n{if $contribution_page_id}\n{capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id=`$contribution_page_id`&cid=`{contact.id}`&pledgeId=`$pledge_id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\nClick this link to go to a web page where you can make your payment online:\n{$contributionUrl}\n{else}\n{ts}Please mail your payment to{/ts}:\n{domain.address}\n{/if}\n\n===========================================================\n{ts}Pledge Information{/ts}\n\n===========================================================\n{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}\n{ts}Total Pledge Amount{/ts}: {$amount|crmMoney:$currency}\n{ts}Total Paid{/ts}: {$amount_paid|crmMoney:$currency}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'} Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}\n\n\n{ts}Thank you for your generous support.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Payment Due{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Amount Due{/ts}\n </td>\n <td {$valueStyle}>\n {$amount_due|crmMoney:$currency}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n {if $contribution_page_id}\n {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id=`$contribution_page_id`&cid=`{contact.id}`&pledgeId=`$pledge_id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\n <p><a href=\"{$contributionUrl}\">{ts}Go to a web page where you can make your payment online{/ts}</a></p>\n {else}\n <p>{ts}Please mail your payment to{/ts}: {domain.address}</p>\n {/if}\n </td>\n </tr>\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Pledge Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Pledge Received{/ts}\n </td>\n <td {$valueStyle}>\n {$create_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Pledge Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney:$currency}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Paid{/ts}\n </td>\n <td {$valueStyle}>\n {$amount_paid|crmMoney:$currency}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}</p>\n <p>{ts}Thank you for your generous support.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,842,'pledge_reminder',1,0,0,NULL), + (58,'Pledges - Payment Reminder','{ts}Pledge Payment Reminder{/ts} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\n{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}\n\n===========================================================\n{ts}Payment Due{/ts}\n\n===========================================================\n{ts}Amount Due{/ts}: {$amount_due|crmMoney:$currency}\n{ts}Due Date{/ts}: {$scheduled_payment_date|truncate:10:\'\'|crmDate}\n\n{if $contribution_page_id}\n{capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id=`$contribution_page_id`&cid=`{contact.id}`&pledgeId=`$pledge_id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\nClick this link to go to a web page where you can make your payment online:\n{$contributionUrl}\n{else}\n{ts}Please mail your payment to{/ts}:\n{domain.address}\n{/if}\n\n===========================================================\n{ts}Pledge Information{/ts}\n\n===========================================================\n{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}\n{ts}Total Pledge Amount{/ts}: {$amount|crmMoney:$currency}\n{ts}Total Paid{/ts}: {$amount_paid|crmMoney:$currency}\n\n{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'} Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}\n\n\n{ts}Thank you for your generous support.{/ts}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n <p>{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}</p>\n </td>\n </tr>\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Payment Due{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Amount Due{/ts}\n </td>\n <td {$valueStyle}>\n {$amount_due|crmMoney:$currency}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n {if $contribution_page_id}\n {capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q=\"reset=1&id=`$contribution_page_id`&cid=`{contact.id}`&pledgeId=`$pledge_id`&cs=`$checksumValue`\" a=true h=0 fe=1}{/capture}\n <p><a href=\"{$contributionUrl}\">{ts}Go to a web page where you can make your payment online{/ts}</a></p>\n {else}\n <p>{ts}Please mail your payment to{/ts}: {domain.address}</p>\n {/if}\n </td>\n </tr>\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <th {$headerStyle}>\n {ts}Pledge Information{/ts}\n </th>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Pledge Received{/ts}\n </td>\n <td {$valueStyle}>\n {$create_date|truncate:10:\'\'|crmDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Pledge Amount{/ts}\n </td>\n <td {$valueStyle}>\n {$amount|crmMoney:$currency}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Total Paid{/ts}\n </td>\n <td {$valueStyle}>\n {$amount_paid|crmMoney:$currency}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n <tr>\n <td>\n <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions\nor need to modify your payment schedule.{/ts}</p>\n <p>{ts}Thank you for your generous support.{/ts}</p>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,842,'pledge_reminder',0,1,0,NULL), + (59,'Profiles - Admin Notification','{$grouptitle} {ts 1=$displayName}Submitted by %1{/ts} - {contact.display_name}\n','{ts}Submitted For:{/ts} {$displayName}\n{ts}Date:{/ts} {$currentDate}\n{ts}Contact Summary:{/ts} {$contactLink}\n\n===========================================================\n{$grouptitle}\n\n===========================================================\n{foreach from=$values item=value key=valueName}\n{$valueName}: {$value}\n{/foreach}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <td {$labelStyle}>\n {ts}Submitted For{/ts}\n </td>\n <td {$valueStyle}>\n {$displayName}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$currentDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Contact Summary{/ts}\n </td>\n <td {$valueStyle}>\n {$contactLink}\n </td>\n </tr>\n\n <tr>\n <th {$headerStyle}>\n {$grouptitle}\n </th>\n </tr>\n\n {foreach from=$values item=value key=valueName}\n <tr>\n <td {$labelStyle}>\n {$valueName}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,843,'uf_notify',1,0,0,NULL), + (60,'Profiles - Admin Notification','{$grouptitle} {ts 1=$displayName}Submitted by %1{/ts} - {contact.display_name}\n','{ts}Submitted For:{/ts} {$displayName}\n{ts}Date:{/ts} {$currentDate}\n{ts}Contact Summary:{/ts} {$contactLink}\n\n===========================================================\n{$grouptitle}\n\n===========================================================\n{foreach from=$values item=value key=valueName}\n{$valueName}: {$value}\n{/foreach}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n <!-- BEGIN HEADER -->\n <!-- You can add table row(s) here with logo or other header elements -->\n <!-- END HEADER -->\n\n <!-- BEGIN CONTENT -->\n\n <tr>\n <td>\n <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n <tr>\n <td {$labelStyle}>\n {ts}Submitted For{/ts}\n </td>\n <td {$valueStyle}>\n {$displayName}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Date{/ts}\n </td>\n <td {$valueStyle}>\n {$currentDate}\n </td>\n </tr>\n <tr>\n <td {$labelStyle}>\n {ts}Contact Summary{/ts}\n </td>\n <td {$valueStyle}>\n {$contactLink}\n </td>\n </tr>\n\n <tr>\n <th {$headerStyle}>\n {$grouptitle}\n </th>\n </tr>\n\n {foreach from=$values item=value key=valueName}\n <tr>\n <td {$labelStyle}>\n {$valueName}\n </td>\n <td {$valueStyle}>\n {$value}\n </td>\n </tr>\n {/foreach}\n </table>\n </td>\n </tr>\n\n </table>\n\n</body>\n</html>\n',1,843,'uf_notify',0,1,0,NULL), + (61,'Petition - signature added','Thank you for signing {survey.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\nThank you for signing {survey.title}.\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n<p>Thank you for signing {survey.title}.</p>\n\n{capture assign=petitionURL}{crmURL p=\'civicrm/petition/sign\' q=\"sid={survey.id}\" a=1 fe=1 h=1}{/capture}\n{include file=\"CRM/common/SocialNetwork.tpl\" url=$petitionURL title=\'{survey.title}\' pageURL=$petitionURL petition_id=\'{survey.id}\' noscript=true emailMode=true}\n',1,844,'petition_sign',1,0,0,NULL), + (62,'Petition - signature added','Thank you for signing {survey.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\nThank you for signing {survey.title}.\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n<p>Thank you for signing {survey.title}.</p>\n\n{capture assign=petitionURL}{crmURL p=\'civicrm/petition/sign\' q=\"sid={survey.id}\" a=1 fe=1 h=1}{/capture}\n{include file=\"CRM/common/SocialNetwork.tpl\" url=$petitionURL title=\'{survey.title}\' pageURL=$petitionURL petition_id=\'{survey.id}\' noscript=true emailMode=true}\n',1,844,'petition_sign',0,1,0,NULL), + (63,'Petition - need verification','Confirmation of signature needed for {$petition.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\nThank you for signing {$petition.title}.\n\nIn order to complete your signature, we must confirm your e-mail.\nPlease do so by visiting the following email confirmation web page:\n\n{$petition.confirmUrlPlainText}\n\nIf you did not sign this petition, please ignore this message.\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n<p>Thank you for signing {$petition.title}.</p>\n\n<p>In order to <b>complete your signature</b>, we must confirm your e-mail.\n<br />\nPlease do so by visiting the following web page by clicking\non the link below or pasting the link into your browser.\n<br /><br />\nEmail confirmation page: <a href=\"{$petition.confirmUrl}\">{$petition.confirmUrl}</a></p>\n\n<p>If you did not sign this petition, please ignore this message.</p>\n',1,845,'petition_confirmation_needed',1,0,0,NULL), + (64,'Petition - need verification','Confirmation of signature needed for {$petition.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n\nThank you for signing {$petition.title}.\n\nIn order to complete your signature, we must confirm your e-mail.\nPlease do so by visiting the following email confirmation web page:\n\n{$petition.confirmUrlPlainText}\n\nIf you did not sign this petition, please ignore this message.\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n<p>Thank you for signing {$petition.title}.</p>\n\n<p>In order to <b>complete your signature</b>, we must confirm your e-mail.\n<br />\nPlease do so by visiting the following web page by clicking\non the link below or pasting the link into your browser.\n<br /><br />\nEmail confirmation page: <a href=\"{$petition.confirmUrl}\">{$petition.confirmUrl}</a></p>\n\n<p>If you did not sign this petition, please ignore this message.</p>\n',1,845,'petition_confirmation_needed',0,1,0,NULL), (65,'Sample CiviMail Newsletter Template','Sample CiviMail Newsletter','','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n<table width=612 cellpadding=0 cellspacing=0 bgcolor=\"#ffffff\">\n <tr>\n <td colspan=\"2\" bgcolor=\"#ffffff\" valign=\"middle\" >\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >\n <tr>\n <td>\n <a href=\"https://civicrm.org\"><img src=\"https://civicrm.org/sites/civicrm.org/files/top-logo_2.png\" border=0 alt=\"Replace this logo with the URL to your own\"></a>\n </td>\n <td> </td>\n <td>\n <a href=\"https://civicrm.org\" style=\"text-decoration: none;\"><font size=5 face=\"Arial, Verdana, sans-serif\" color=\"#8bc539\">Your Newsletter Title</font></a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td valign=\"top\" width=\"70%\">\n <!-- left column -->\n <table cellpadding=\"10\" cellspacing=\"0\" border=\"0\">\n <tr>\n <td style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" >\n <font face=\"Arial, Verdana, sans-serif\" size=\"2\" >\n Greetings {contact.display_name},\n <br /><br />\n This is a sample template designed to help you get started creating and sending your own CiviMail messages. This template uses an HTML layout that is generally compatible with the wide variety of email clients that your recipients might be using (e.g. Gmail, Outlook, Yahoo, etc.).\n <br /><br />You can select this \"Sample CiviMail Newsletter Template\" from the \"Use Template\" drop-down in Step 3 of creating a mailing, and customize it to your needs. Then check the \"Save as New Template\" box on the bottom the page to save your customized version for use in future mailings.\n <br /><br />The logo you use must be uploaded to your server. Copy and paste the URL path to the logo into the <img src= tag in the HTML at the top. Click \"Source\" or the Image button if you are using the text editor.\n <br /><br />\n Edit the color of the links and headers using the color button or by editing the HTML.\n <br /><br />\n Your newsletter message and donation appeal can go here. Click the link button to <a href=\"#\">create links</a> - remember to use a fully qualified URL starting with http:// in all your links!\n <br /><br />\n To use CiviMail:\n <ul>\n <li><a href=\"http://book.civicrm.org/user/advanced-configuration/email-system-configuration/\">Configure your Email System</a>.</li>\n <li>Make sure your web hosting provider allows outgoing bulk mail, and see if they have a restriction on quantity. If they don\'t allow bulk mail, consider <a href=\"https://civicrm.org/providers/hosting\">finding a new host</a>.</li>\n </ul>\n Sincerely,\n <br /><br />\n Your Team\n <br /><br />\n </font>\n </td>\n </tr>\n </table>\n </td>\n\n <td valign=\"top\" width=\"30%\" bgcolor=\"#ffffff\" style=\"border: 1px solid #056085;\">\n <!-- right column -->\n <table cellpadding=10 cellspacing=0 border=0>\n <tr>\n <td bgcolor=\"#056085\"><font face=\"Arial, Verdana, sans-serif\" size=\"4\" color=\"#ffffff\">News and Events</font></td>\n </tr>\n <tr>\n <td style=\"color: #000; font-family: Arial, Verdana, sans-serif; font-size: 12px;\" >\n <font face=\"Arial, Verdana, sans-serif\" size=\"2\" >\n <font color=\"#056085\"><strong>Featured Events</strong> </font><br />\n Fundraising Dinner<br />\n Training Meeting<br />\n Board of Directors Annual Meeting<br />\n\n <br /><br />\n <font color=\"#056085\"><strong>Community Events</strong></font><br />\n Bake Sale<br />\n Charity Auction<br />\n Art Exhibit<br />\n\n <br /><br />\n <font color=\"#056085\"><strong>Important Dates</strong></font><br />\n Tuesday August 27<br />\n Wednesday September 8<br />\n Thursday September 29<br />\n Saturday October 1<br />\n Sunday October 20<br />\n </font>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n <tr>\n <td colspan=\"2\">\n <table cellpadding=\"10\" cellspacing=\"0\" border=\"0\">\n <tr>\n <td>\n <font face=\"Arial, Verdana, sans-serif\" size=\"2\" >\n <font color=\"#7dc857\"><strong>Helpful Tips</strong></font>\n <br /><br />\n <font color=\"#3b5187\">Tokens</font><br />\n Click \"Insert Tokens\" to dynamically insert names, addresses, and other contact data of your recipients.\n <br /><br />\n <font color=\"#3b5187\">Plain Text Version</font><br />\n Some people refuse HTML emails altogether. We recommend sending a plain-text version of your important communications to accommodate them. Luckily, CiviCRM accommodates for this! Just click \"Plain Text\" and copy and paste in some text. Line breaks (carriage returns) and fully qualified URLs like http://www.example.com are all you get, no HTML here!\n <br /><br />\n <font color=\"#3b5187\">Play by the Rules</font><br />\n The address of the sender is required by the Can Spam Act law. This is an available token called domain.address. An unsubscribe or opt-out link is also required. There are several available tokens for this. <em>{action.optOutUrl}</em> creates a link for recipients to click if they want to opt out of receiving emails from your organization. <em>{action.unsubscribeUrl}</em> creates a link to unsubscribe from the specific mailing list used to send this message. Click on \"Insert Tokens\" to find these and look for tokens named \"Domain\" or \"Unsubscribe\". This sample template includes both required tokens at the bottom of the message. You can also configure a default Mailing Footer containing these tokens.\n <br /><br />\n <font color=\"#3b5187\">Composing Offline</font><br />\n If you prefer to compose an HTML email offline in your own text editor, you can upload this HTML content into CiviMail or simply click \"Source\" and then copy and paste the HTML in.\n <br /><br />\n <font color=\"#3b5187\">Images</font><br />\n Most email clients these days (Outlook, Gmail, etc) block image loading by default. This is to protect their users from annoying or harmful email. Not much we can do about this, so encourage recipients to add you to their contacts or \"whitelist\". Also use images sparingly, do not rely on images to convey vital information, and always use HTML \"alt\" tags which describe the image content.\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" style=\"color: #000; font-family: Arial, Verdana, sans-serif; font-size: 10px;\">\n <font face=\"Arial, Verdana, sans-serif\" size=\"2\" >\n <hr />\n <a href=\"{action.unsubscribeUrl}\" title=\"click to unsubscribe\">Click here</a> to unsubscribe from this mailing list.<br /><br />\n Our mailing address is:<br />\n {domain.address}\n </td>\n </tr>\n </table>\n\n</body>\n</html>\n',1,NULL,NULL,1,0,0,NULL), (66,'Sample Responsive Design Newsletter - Single Column Template','Sample Responsive Design Newsletter - Single Column','','<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" />\n <meta content=\"width=device-width, initial-scale=1.0\" name=\"viewport\" />\n <title></title>\n\n <style type=\"text/css\">\n {literal}\n /* Client-specific Styles */\n #outlook a {padding:0;} /* Force Outlook to provide a \"view in browser\" menu link. */\n body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}\n\n /* Prevent Webkit and Windows Mobile platforms from changing default font sizes, while not breaking desktop design. */\n .ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */\n .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing. */\n #backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}\n img {outline:none; text-decoration:none;border:none; -ms-interpolation-mode: bicubic;}\n a img {border:none;}\n .image_fix {display:block;}\n p {margin: 0px 0px !important;}\n table td {border-collapse: collapse;}\n table { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }\n a {text-decoration: none;text-decoration:none;}\n\n /*STYLES*/\n table[class=full] { width: 100%; clear: both; }\n\n /*IPAD STYLES*/\n @media only screen and (max-width: 640px) {\n a[href^=\"tel\"], a[href^=\"sms\"] {text-decoration: none;color:#136388;pointer-events: none;cursor: default;}\n .mobile_link a[href^=\"tel\"], .mobile_link a[href^=\"sms\"] {text-decoration: default;color:#136388;pointer-events: auto;cursor: default;}\n table[class=devicewidth] {width: 440px!important;text-align:center!important;}\n table[class=devicewidthmob] {width: 416px!important;text-align:center!important;}\n table[class=devicewidthinner] {width: 416px!important;text-align:center!important;}\n img[class=banner] {width: 440px!important;auto!important;}\n img[class=col2img] {width: 440px!important;height:auto!important;}\n table[class=\"cols3inner\"] {width: 100px!important;}\n table[class=\"col3img\"] {width: 131px!important;}\n img[class=\"col3img\"] {width: 131px!important;height: auto!important;}\n table[class=\"removeMobile\"]{width:10px!important;}\n img[class=\"blog\"] {width: 440px!important;height: auto!important;}\n }\n\n /*IPHONE STYLES*/\n @media only screen and (max-width: 480px) {\n a[href^=\"tel\"], a[href^=\"sms\"] {text-decoration: none;color: #136388;pointer-events: none;cursor: default;}\n .mobile_link a[href^=\"tel\"], .mobile_link a[href^=\"sms\"] {text-decoration: none;color:#136388;pointer-events: auto;cursor: default;}\n\n table[class=devicewidth] {width: 280px!important;text-align:center!important;}\n table[class=devicewidthmob] {width: 260px!important;text-align:center!important;}\n table[class=devicewidthinner] {width: 260px!important;text-align:center!important;}\n img[class=banner] {width: 280px!important;height:100px!important;}\n img[class=col2img] {width: 280px!important;height:auto!important;}\n table[class=\"cols3inner\"] {width: 260px!important;}\n img[class=\"col3img\"] {width: 280px!important;height: auto!important;}\n table[class=\"col3img\"] {width: 280px!important;}\n img[class=\"blog\"] {width: 280px!important;auto!important;}\n td[class=\"padding-top-right15\"]{padding:15px 15px 0 0 !important;}\n td[class=\"padding-right15\"]{padding-right:15px !important;}\n }\n\n @media only screen and (max-device-width: 800px)\n {td[class=\"padding-top-right15\"]{padding:15px 15px 0 0 !important;}\n td[class=\"padding-right15\"]{padding-right:15px !important;}}\n @media only screen and (max-device-width: 769px) {\n .devicewidthmob {font-size:16px;}\n }\n\n @media only screen and (max-width: 640px) {\n .desktop-spacer {display:none !important;}\n }\n {/literal}\n </style>\n\n<body>\n <!-- Start of preheader --><!-- Start of preheader -->\n <table bgcolor=\"#89c66b\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody><!-- Spacing -->\n <tr>\n <td height=\"20\" width=\"100%\"> </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td>\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthinner\" width=\"310\">\n <tbody>\n <tr>\n <td align=\"left\" style=\"font-family: Helvetica, arial, sans-serif; font-size: 16px; line-height:120%; color: #f8f8f8;padding-left:15px; padding-bottom:5px;\" valign=\"middle\">Organization or Program Name Here</td>\n </tr>\n </tbody>\n </table>\n\n <table align=\"right\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"emhide\" width=\"310\">\n <tbody>\n <tr>\n <td align=\"right\" style=\"font-family: Helvetica, arial, sans-serif; font-size: 16px;color: #f8f8f8;padding-right:15px; text-align:right;\" valign=\"middle\">Month and Year</td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td height=\"20\" width=\"100%\"> </td>\n </tr>\n <!-- Spacing -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- End of main-banner-->\n\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"left-image\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody><!-- Spacing -->\n <tr>\n <td height=\"20\" width=\"100%\">\n <table align=\"center\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"93%\">\n <tbody>\n <tr>\n <td rowspan=\"2\" style=\"padding-top:10px; padding-bottom:10px;\" width=\"38%\"><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\" /></td>\n <td align=\"right\" width=\"62%\">\n <h6 class=\"collapse\"> </h6>\n </td>\n </tr>\n <tr>\n <td align=\"right\">\n <h5 style=\"font-family: Gill Sans, Gill Sans MT, Myriad Pro, DejaVu Sans Condensed, Helvetica, Arial, sans-serif; color:#136388;\"> </h5>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody><!-- /Spacing -->\n <tr>\n <td style=\"font-family: Helvetica, arial, sans-serif; font-size: 23px; color:#f8f8f8; text-align:left; line-height: 32px; padding:5px 15px; background-color:#136388;\">Headline Here</td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthinner\" width=\"650\">\n <tbody><!-- hero story -->\n <tr>\n <td align=\"center\" class=\"devicewidthinner\" width=\"100%\">\n <div class=\"imgpop\"><a href=\"#\"><img alt=\"\" border=\"0\" class=\"blog\" height=\"auto\" src=\"https://civicrm.org/sites/default/files/civicrm/custom/images/650x396.png\" style=\"display:block; border:none; outline:none; text-decoration:none; padding:0; line-height:0;\" width=\"650\" /></a></div>\n </td>\n </tr>\n <!-- /hero image --><!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing -->\n <tr>\n <td style=\"font-family: Helvetica, arial, sans-serif; font-size: 18px; text-align:left; line-height: 26px; padding:0 15px; color:#89c66b;\"><a href=\"#\" style=\"color:#89c66b;\">Your Heading Here</a></td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing --><!-- content -->\n <tr>\n <td style=\"padding:0 15px;\">\n <p style=\"font-family: Helvetica, arial, sans-serif; font-size: 16px; color: #7a6e67; text-align:left; line-height: 26px; padding-bottom:10px;\">{contact.email_greeting_display}, </p>\n <p style=\"font-family: Helvetica, arial, sans-serif; font-size: 16px; color: #7a6e67; text-align:left; line-height: 26px; padding-bottom:10px;\"><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></p>\n </td>\n </tr>\n <tr>\n <td class=\"padding-right15\" style=\"font-family: Helvetica, arial, sans-serif; font-size: 16px; font-weight:bold; color: #333333; text-align:left;line-height: 24px; padding-top:10px; padding-left:15px;\"><a href=\"#\" style=\"color:#136388;text-decoration:none;font-weight:bold;\" target=\"_blank\" title=\"read more\">Read More</a></td>\n </tr>\n <!-- /button --><!-- Spacing -->\n <tr>\n <td height=\"20\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing --><!-- end of content -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- end of hero image and story --><!-- story 1 -->\n\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"left-image\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody><!-- Spacing -->\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthinner\" width=\"650\">\n <tbody><!-- image -->\n <tr>\n <td align=\"center\" class=\"devicewidthinner\" width=\"100%\">\n <div class=\"imgpop\"><a href=\"#\" target=\"_blank\"><img alt=\"\" border=\"0\" class=\"blog\" height=\"250\" src=\"https://civicrm.org/sites/default/files/civicrm/custom/images/banner-image-650-250.png\" style=\"display:block; border:none; outline:none; text-decoration:none; padding:0; line-height:0;\" width=\"650\" /></a></div>\n </td>\n </tr>\n <!-- /image --><!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing -->\n <tr>\n <td style=\"font-family: Helvetica, arial, sans-serif; font-size: 18px; text-align:left; line-height: 26px; padding:0 15px;\"><a href=\"#\" style=\"color:#89c66b;\">Your Heading Here</a></td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing --><!-- content -->\n <tr>\n <td style=\"padding:0 15px;\">\n <p style=\"font-family: Helvetica, arial, sans-serif; font-size: 16px; color: #7a6e67; text-align:left; line-height: 26px; padding-bottom:10px;\">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna </p>\n </td>\n </tr>\n <tr>\n <td class=\"padding-right15\" style=\"font-family: Helvetica, arial, sans-serif; font-size: 16px; font-weight:bold; color: #333333; text-align:left;line-height: 24px; padding-top:10px; padding-left:15px;\"><a href=\"#\" style=\"color:#136388;text-decoration:none;font-weight:bold;\" target=\"_blank\" title=\"read more\">Read More</a></td>\n </tr>\n <!-- /button --><!-- Spacing -->\n <tr>\n <td height=\"20\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing --><!-- end of content -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- /story 2--><!-- banner1 -->\n\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"left-image\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody><!-- Spacing -->\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#89c66b\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthinner\" width=\"650\">\n <tbody><!-- image -->\n <tr>\n <td align=\"center\" class=\"devicewidthinner\" width=\"100%\">\n <div class=\"imgpop\"><a href=\"#\" target=\"_blank\"><img alt=\"\" border=\"0\" class=\"blog\" height=\"auto\" src=\"https://civicrm.org/sites/default/files/civicrm/custom/images/banner-image-650-250.png\" style=\"display:block; border:none; outline:none; text-decoration:none; padding:0; line-height:0;\" width=\"650\" /></a></div>\n </td>\n </tr>\n <!-- /image --><!-- content --><!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing -->\n <tr>\n <td style=\"padding:15px;\">\n <p style=\"font-family: Helvetica, arial, sans-serif; font-size: 16px; color: #f0f0f0; text-align:left; line-height: 26px; padding-bottom:10px;\">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna </p>\n </td>\n </tr>\n <!-- /button --><!-- white button -->\n <!-- /button --><!-- Spacing --><!-- end of content -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- /banner 1--><!-- banner 2 -->\n\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"left-image\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody><!-- Spacing -->\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#136388\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthinner\" width=\"650\">\n <tbody><!-- image -->\n <tr>\n <td align=\"center\" class=\"devicewidthinner\" width=\"100%\">\n <div class=\"imgpop\"><a href=\"#\" target=\"_blank\"><img alt=\"\" border=\"0\" class=\"blog\" height=\"auto\" src=\"https://civicrm.org/sites/default/files/civicrm/custom/images/banner-image-650-250.png\" style=\"display:block; border:none; outline:none; text-decoration:none; padding:0; line-height:0;\" width=\"650\" /></a></div>\n </td>\n </tr>\n <!-- /image --><!-- content --><!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing -->\n <tr>\n <td style=\"padding: 15px;\">\n <p style=\"font-family: Helvetica, arial, sans-serif; font-size: 16px; color: #f0f0f0; text-align:left; line-height: 26px; padding-bottom:10px;\">Remember to link the facebook and twitter links below to your pages!</p>\n </td>\n </tr>\n <!-- /button --><!-- white button -->\n <tr>\n <td class=\"padding-right15\" style=\"font-family: Helvetica, arial, sans-serif; font-size: 16px; font-weight:bold; color: #333333; text-align:left;line-height: 24px; padding-top:10px; padding-bottom:10px; padding-left:15px;\"><a href=\"#\" style=\"color:#ffffff;text-decoration:none;font-weight:bold;\" target=\"_blank\" title=\"read more\">Read More</a></td>\n </tr>\n <!-- /button --><!-- Spacing --><!-- end of content -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- /banner2 --><!-- footer -->\n\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"footer\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#89c66b\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"650\">\n <tbody><!-- Spacing -->\n <tr>\n <td height=\"10\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td><!-- logo -->\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"250\">\n <tbody>\n <tr>\n <td width=\"20\"> </td>\n <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>\n </tr>\n <tr>\n <td width=\"20\"> </td>\n <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>\n </tr>\n </tbody>\n </table>\n <!-- end of logo --><!-- start of social icons -->\n\n <table align=\"right\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"40\" vaalign=\"middle\" width=\"60\">\n <tbody>\n <tr>\n <td align=\"left\" height=\"22\" width=\"22\">\n <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>\n </td>\n <td align=\"left\" style=\"font-size:1px; line-height:1px;\" width=\"10\"> </td>\n <td align=\"right\" height=\"22\" width=\"22\">\n <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>\n </td>\n <td align=\"left\" style=\"font-size:1px; line-height:1px;\" width=\"20\"> </td>\n </tr>\n </tbody>\n </table>\n <!-- end of social icons --></td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td height=\"10\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n\n</body>\n</html>\n',1,NULL,NULL,1,0,0,NULL), (67,'Sample Responsive Design Newsletter - Two Column Template','Sample Responsive Design Newsletter - Two Column','','<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" />\n <meta content=\"width=device-width, initial-scale=1.0\" name=\"viewport\" />\n <title></title>\n <style type=\"text/css\">\n {literal}\n img {height: auto !important;}\n /* Client-specific Styles */\n #outlook a {padding:0;} /* Force Outlook to provide a \"view in browser\" menu link. */\n body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}\n\n /* Prevent Webkit and Windows Mobile platforms from changing default font sizes, while not breaking desktop design. */\n .ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */\n .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing. */\n #backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}\n img {outline:none; text-decoration:none;border:none; -ms-interpolation-mode: bicubic;}\n a img {border:none;}\n .image_fix {display:block;}\n p {margin: 0px 0px !important;}\n table td {border-collapse: collapse;}\n table { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }\n a {/*color: #33b9ff;*/text-decoration: none;text-decoration:none!important;}\n\n\n /*STYLES*/\n table[class=full] { width: 100%; clear: both; }\n\n /*IPAD STYLES*/\n @media only screen and (max-width: 640px) {\n a[href^=\"tel\"], a[href^=\"sms\"] {text-decoration: none;color: #0a8cce;pointer-events: none;cursor: default;}\n .mobile_link a[href^=\"tel\"], .mobile_link a[href^=\"sms\"] {text-decoration: default;color: #0a8cce !important;pointer-events: auto;cursor: default;}\n table[class=devicewidth] {width: 440px!important;text-align:center!important;}\n table[class=devicewidthmob] {width: 414px!important;text-align:center!important;}\n table[class=devicewidthinner] {width: 414px!important;text-align:center!important;}\n img[class=banner] {width: 440px!important;auto!important;}\n img[class=col2img] {width: 440px!important;height:auto!important;}\n table[class=\"cols3inner\"] {width: 100px!important;}\n table[class=\"col3img\"] {width: 131px!important;}\n img[class=\"col3img\"] {width: 131px!important;height: auto!important;}\n table[class=\"removeMobile\"]{width:10px!important;}\n img[class=\"blog\"] {width: 440px!important;height: auto!important;}\n }\n\n /*IPHONE STYLES*/\n @media only screen and (max-width: 480px) {\n a[href^=\"tel\"], a[href^=\"sms\"] {text-decoration: none;color: #0a8cce;pointer-events: none;cursor: default;}\n .mobile_link a[href^=\"tel\"], .mobile_link a[href^=\"sms\"] {text-decoration: default;color: #0a8cce !important; pointer-events: auto;cursor: default;}\n table[class=devicewidth] {width: 280px!important;text-align:center!important;}\n table[class=devicewidthmob] {width: 260px!important;text-align:center!important;}\n table[class=devicewidthinner] {width: 260px!important;text-align:center!important;}\n img[class=banner] {width: 280px!important;height:100px!important;}\n img[class=col2img] {width: 280px!important;height:auto!important;}\n table[class=\"cols3inner\"] {width: 260px!important;}\n img[class=\"col3img\"] {width: 280px!important;height: auto!important;}\n table[class=\"col3img\"] {width: 280px!important;}\n img[class=\"blog\"] {width: 280px!important;auto!important;}\n td[class=\"padding-top-right15\"]{padding:15px 15px 0 0 !important;}\n td[class=\"padding-right15\"]{padding-right:15px !important;}\n }\n\n @media only screen and (max-device-width: 800px)\n {td[class=\"padding-top-right15\"]{padding:15px 15px 0 0 !important;}\n td[class=\"padding-right15\"]{padding-right:15px !important;}}\n @media only screen and (max-device-width: 769px) {.devicewidthmob {font-size:14px;}}\n\n @media only screen and (max-width: 640px) {.desktop-spacer {display:none !important;}\n }\n {/literal}\n </style>\n <body>\n <!-- Start of preheader --><!-- Start of preheader -->\n <table bgcolor=\"#0B4151\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody><!-- Spacing -->\n <tr>\n <td height=\"20\" width=\"100%\"> </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td>\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthinner\" width=\"360\">\n <tbody>\n <tr>\n <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>\n </tr>\n </tbody>\n </table>\n\n <table align=\"right\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"emhide\" width=\"320\">\n <tbody>\n <tr>\n <td align=\"right\" style=\"font-family: Helvetica, arial, sans-serif; font-size: 16px;color: #f8f8f8;padding-right:15px;\" valign=\"middle\">Month Year</td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td height=\"20\" width=\"100%\"> </td>\n </tr>\n <!-- Spacing -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- End of preheader --><!-- start of logo -->\n\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"left-image\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthmob\" width=\"700\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody><!-- Spacing -->\n <tr>\n <td height=\"20\" width=\"100%\">\n <table align=\"center\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"93%\">\n <tbody>\n <tr>\n <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>\n <td align=\"right\" >\n <h6 class=\"collapse\"> </h6>\n </td>\n </tr>\n <tr>\n <td align=\"right\">\n\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- end of logo --> <!-- hero story 1 -->\n\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"left-image\" width=\"101%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#f8f8f8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#f8f8f8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody><!-- /Spacing -->\n <tr>\n <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>\n </tr>\n <!-- Spacing -->\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthinner\" width=\"700\">\n <tbody><!-- image -->\n <tr>\n <td align=\"center\" class=\"devicewidthinner\" width=\"100%\">\n <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>\n </td>\n </tr>\n <!-- /image --><!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing --><!-- hero story -->\n <tr>\n <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>\n </tr>\n <!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr><!-- /Spacing -->\n <tr>\n <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>\n </tr>\n\n <!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr><!-- /Spacing -->\n\n <!-- /Spacing --><!-- /hero story -->\n\n <!-- Spacing --> <!-- Spacing -->\n\n\n\n <!-- Spacing --><!-- end of content -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <!-- Section Heading -->\n <tr>\n <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>\n </tr>\n <!-- /Section Heading -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- /hero story 1 --><!-- story one -->\n\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"left-image\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody><!-- Spacing -->\n <tr>\n <td class=\"desktop-spacer\" height=\"20\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"660\">\n <tbody>\n <tr>\n <td><!-- Start of left column -->\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"330\">\n <tbody><!-- image -->\n <tr>\n <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>\n </tr>\n <!-- /image -->\n </tbody>\n </table>\n <!-- end of left column --><!-- spacing for mobile devices-->\n\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mobilespacing\">\n <tbody>\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n </tbody>\n </table>\n <!-- end of for mobile devices--><!-- start of right column -->\n\n <table align=\"right\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthmob\" width=\"310\">\n <tbody>\n <tr>\n <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>\n </tr>\n <!-- end of title --><!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing --><!-- content -->\n <tr>\n <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\n tempor incididunt ut labore et dolore magna </span></td>\n </tr>\n <tr>\n <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>\n </tr>\n <!-- /button --><!-- end of content -->\n </tbody>\n </table>\n <!-- end of right column --></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td height=\"20\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- /story one -->\n <!-- story two -->\n\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"left-image\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody><!-- Spacing -->\n <tr>\n <td bgcolor=\"#076187\" height=\"0\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing --><!-- Spacing -->\n <tr>\n <td class=\"desktop-spacer\" height=\"20\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"660\">\n <tbody>\n <tr>\n <td><!-- Start of left column -->\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"330\">\n <tbody><!-- image -->\n <tr>\n <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>\n </tr>\n <!-- /image -->\n </tbody>\n </table>\n <!-- end of left column --><!-- spacing for mobile devices-->\n\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mobilespacing\">\n <tbody>\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n </tbody>\n </table>\n <!-- end of for mobile devices--><!-- start of right column -->\n\n <table align=\"right\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthmob\" width=\"310\">\n <tbody>\n <tr>\n <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>\n </tr>\n <!-- end of title --><!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing --><!-- content -->\n <tr>\n <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\n tempor incididunt ut labore et dolore magna </span></td>\n </tr>\n <tr>\n <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>\n </tr>\n <!-- /button --><!-- end of content -->\n </tbody>\n </table>\n <!-- end of right column --></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td height=\"20\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- /story two --><!-- story three -->\n\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"left-image\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody><!-- Spacing -->\n <tr>\n <td bgcolor=\"#076187\" height=\"0\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing --><!-- Spacing -->\n <tr>\n <td height=\"20\" class=\"desktop-spacer\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"660\">\n <tbody>\n <tr>\n <td><!-- Start of left column -->\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"330\">\n <tbody><!-- image -->\n <tr>\n <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>\n </tr>\n <!-- /image -->\n </tbody>\n </table>\n <!-- end of left column --><!-- spacing for mobile devices-->\n\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mobilespacing\">\n <tbody>\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n </tbody>\n </table>\n <!-- end of for mobile devices--><!-- start of right column -->\n\n <table align=\"right\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthmob\" width=\"310\">\n <tbody>\n <tr>\n <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>\n </tr>\n <!-- end of title --><!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing --><!-- content -->\n <tr>\n <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\n tempor incididunt ut labore et dolore magna </span></td>\n </tr>\n <tr>\n <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>\n </tr>\n <!-- /button --><!-- end of content -->\n </tbody>\n </table>\n <!-- end of right column --></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td height=\"20\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- /story three -->\n\n\n\n\n\n <!-- story four -->\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"left-image\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody>\n <!-- Spacing -->\n <tr>\n <td bgcolor=\"#076187\" height=\"0\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing -->\n <!-- Spacing -->\n <tr>\n <td class=\"desktop-spacer\" height=\"20\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"660\">\n <tbody>\n <tr>\n <td><!-- Start of left column -->\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"330\">\n <tbody><!-- image -->\n <tr>\n <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>\n </tr>\n <!-- /image -->\n </tbody>\n </table>\n <!-- end of left column --><!-- spacing for mobile devices-->\n\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mobilespacing\">\n <tbody>\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n </tbody>\n </table>\n <!-- end of for mobile devices--><!-- start of right column -->\n\n <table align=\"right\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidthmob\" width=\"310\">\n <tbody>\n <tr>\n <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>\n </tr>\n <!-- end of title --><!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing --><!-- content -->\n <tr>\n <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\n tempor incididunt ut labore et dolore magna </span></td>\n </tr>\n <tr>\n <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>\n </tr>\n <!-- /button --><!-- end of content -->\n </tbody>\n </table>\n <!-- end of right column --></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td height=\"15\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\" width=\"100%\"> </td>\n </tr>\n <!-- /Spacing -->\n <tr>\n <td style=\"padding: 15px;\">\n <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>\n </td>\n </tr>\n <!-- Spacing -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- /story four -->\n\n <!-- footer -->\n\n <!-- End of footer --><!-- Start of postfooter -->\n <table bgcolor=\"#d8d8d8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"backgroundTable\" st-sortable=\"footer\" width=\"100%\">\n <tbody>\n <tr>\n <td>\n <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table align=\"center\" bgcolor=\"#89c66b\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"devicewidth\" width=\"700\">\n <tbody><!-- Spacing -->\n <tr>\n <td height=\"10\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td><!-- logo -->\n <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"250\">\n <tbody>\n <tr>\n <td width=\"20\"> </td>\n <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>\n </tr>\n <tr>\n <td width=\"20\"> </td>\n <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>\n </tr>\n </tbody>\n </table>\n <!-- end of logo --><!-- start of social icons -->\n <table align=\"right\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"40\" vaalign=\"middle\" width=\"60\">\n <tbody>\n <tr>\n <td align=\"left\" height=\"22\" width=\"22\">\n <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>\n <td align=\"left\" style=\"font-size:1px; line-height:1px;\" width=\"10\"> </td>\n <td align=\"right\" height=\"22\" width=\"22\">\n <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>\n </td>\n <td align=\"left\" style=\"font-size:1px; line-height:1px;\" width=\"20\"> </td>\n </tr>\n </tbody>\n </table>\n <!-- end of social icons --></td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td height=\"10\" style=\"font-size:1px; line-height:1px; mso-line-height-rule: exactly;\"> </td>\n </tr>\n <!-- Spacing -->\n <tr>\n <td bgcolor=\"#80C457\" height=\"10\" width=\"100%\"> </td>\n </tr>\n <!-- Spacing -->\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n <!-- End of footer -->\n </body>\n</html>\n',1,NULL,NULL,1,0,0,NULL); @@ -5479,173 +5481,167 @@ INSERT INTO `civicrm_navigation` (`id`, `domain_id`, `label`, `name`, `url`, `ic (82,1,'New Price Set','New Price Set','civicrm/admin/price/edit?reset=1&action=add',NULL,'access CiviMember,administer CiviCRM','AND',75,0,NULL,7), (83,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1',NULL,'access CiviMember,administer CiviCRM','AND',75,1,NULL,8), (84,1,'Campaigns','Campaigns',NULL,'crm-i fa-bullhorn','interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts','OR',NULL,1,NULL,70), - (85,1,'Dashboard','Dashboard','civicrm/campaign?reset=1',NULL,'manage campaign,administer CiviCampaign','OR',84,1,NULL,1), - (86,1,'Surveys','Survey Dashboard','civicrm/campaign?reset=1&subPage=survey',NULL,'manage campaign,administer CiviCampaign','OR',85,1,NULL,1), - (87,1,'Petitions','Petition Dashboard','civicrm/campaign?reset=1&subPage=petition',NULL,'manage campaign,administer CiviCampaign','OR',85,1,NULL,2), - (88,1,'Campaigns','Campaign Dashboard','civicrm/campaign?reset=1&subPage=campaign',NULL,'manage campaign,administer CiviCampaign','OR',85,1,NULL,3), - (89,1,'New Campaign','New Campaign','civicrm/campaign/add?reset=1',NULL,'manage campaign,administer CiviCampaign','OR',84,1,NULL,2), - (90,1,'New Survey','New Survey','civicrm/survey/add?reset=1',NULL,'manage campaign,administer CiviCampaign','OR',84,1,NULL,3), - (91,1,'New Petition','New Petition','civicrm/petition/add?reset=1',NULL,'manage campaign,administer CiviCampaign','OR',84,1,NULL,4), - (92,1,'Reserve Respondents','Reserve Respondents','civicrm/survey/search?reset=1&op=reserve',NULL,'administer CiviCampaign,manage campaign,reserve campaign contacts','OR',84,1,NULL,5), - (93,1,'Interview Respondents','Interview Respondents','civicrm/survey/search?reset=1&op=interview',NULL,'administer CiviCampaign,manage campaign,interview campaign contacts','OR',84,1,NULL,6), - (94,1,'Release Respondents','Release Respondents','civicrm/survey/search?reset=1&op=release',NULL,'administer CiviCampaign,manage campaign,release campaign contacts','OR',84,1,NULL,7), - (95,1,'Campaign Reports','Campaign Reports','civicrm/report/list?compid=9&reset=1',NULL,'interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts','OR',84,1,1,8), - (96,1,'Conduct Survey','Conduct Survey','civicrm/campaign/vote?reset=1',NULL,'administer CiviCampaign,manage campaign,reserve campaign contacts,interview campaign contacts','OR',84,1,NULL,9), - (97,1,'GOTV (Voter Tracking)','Voter Listing','civicrm/campaign/gotv?reset=1',NULL,'administer CiviCampaign,manage campaign,release campaign contacts,gotv campaign contacts','OR',84,1,NULL,10), - (98,1,'Cases','Cases',NULL,'crm-i fa-folder-open-o','access my cases and activities,access all cases and activities','OR',NULL,1,NULL,80), - (99,1,'Dashboard','Dashboard','civicrm/case?reset=1',NULL,'access my cases and activities,access all cases and activities','OR',98,1,NULL,1), - (100,1,'New Case','New Case','civicrm/case/add?reset=1&action=add&atype=13&context=standalone',NULL,'add cases,access all cases and activities','OR',98,1,NULL,2), - (101,1,'Find Cases','Find Cases','civicrm/case/search?reset=1',NULL,'access my cases and activities,access all cases and activities','OR',98,1,1,3), - (102,1,'Case Reports','Case Reports','civicrm/report/list?compid=7&reset=1',NULL,'access my cases and activities,access all cases and activities,administer CiviCase','OR',98,1,0,4), - (103,1,'Administer','Administer',NULL,'crm-i fa-gears','administer CiviCRM','',NULL,1,NULL,100), - (104,1,'Administration Console','Administration Console','civicrm/admin?reset=1',NULL,'administer CiviCRM','',103,1,NULL,1), - (105,1,'System Status','System Status','civicrm/a/#/status',NULL,'administer CiviCRM','',104,1,NULL,0), - (106,1,'Configuration Checklist','Configuration Checklist','civicrm/admin/configtask?reset=1',NULL,'administer CiviCRM','',104,1,NULL,1), - (107,1,'Customize Data and Screens','Customize Data and Screens',NULL,NULL,'administer CiviCRM','',103,1,NULL,3), - (108,1,'Custom Fields','Custom Fields','civicrm/admin/custom/group?reset=1',NULL,'administer CiviCRM','',107,1,NULL,1), - (109,1,'Profiles','Profiles','civicrm/admin/uf/group?reset=1',NULL,'administer CiviCRM','',107,1,NULL,2), - (110,1,'Tags','Tags (Categories)','civicrm/tag?reset=1',NULL,'administer CiviCRM','',107,1,NULL,3), - (111,1,'Activity Types','Activity Types','civicrm/admin/options/activity_type?reset=1',NULL,'administer CiviCRM','',107,1,NULL,4), - (112,1,'Relationship Types','Relationship Types','civicrm/admin/reltype?reset=1',NULL,'administer CiviCRM','',107,1,NULL,5), - (113,1,'Contact Types','Contact Types','civicrm/admin/options/subtype?reset=1',NULL,'administer CiviCRM','',107,1,NULL,6), - (114,1,'Display Preferences','Display Preferences','civicrm/admin/setting/preferences/display?reset=1',NULL,'administer CiviCRM','',107,1,NULL,9), - (115,1,'Search Preferences','Search Preferences','civicrm/admin/setting/search?reset=1',NULL,'administer CiviCRM','',107,1,NULL,10), - (116,1,'Date Preferences','Date Preferences','civicrm/admin/setting/preferences/date?reset=1',NULL,'administer CiviCRM','',107,1,NULL,11), - (117,1,'Navigation Menu','Navigation Menu','civicrm/admin/menu?reset=1',NULL,'administer CiviCRM','',107,1,NULL,12), - (118,1,'Word Replacements','Word Replacements','civicrm/admin/options/wordreplacements?reset=1',NULL,'administer CiviCRM','',107,1,NULL,13), - (119,1,'Dropdown Options','Dropdown Options','civicrm/admin/options?action=browse&reset=1',NULL,'administer CiviCRM','',107,1,NULL,8), - (120,1,'Gender Options','Gender Options','civicrm/admin/options/gender?reset=1',NULL,'administer CiviCRM','',119,1,NULL,1), - (121,1,'Individual Prefixes (Ms, Mr...)','Individual Prefixes (Ms, Mr...)','civicrm/admin/options/individual_prefix?reset=1',NULL,'administer CiviCRM','',119,1,NULL,2), - (122,1,'Individual Suffixes (Jr, Sr...)','Individual Suffixes (Jr, Sr...)','civicrm/admin/options/individual_suffix?reset=1',NULL,'administer CiviCRM','',119,1,NULL,3), - (123,1,'Instant Messenger Services','Instant Messenger Services','civicrm/admin/options/instant_messenger_service?reset=1',NULL,'administer CiviCRM','',119,1,NULL,4), - (124,1,'Location Types (Home, Work...)','Location Types (Home, Work...)','civicrm/admin/locationType?reset=1',NULL,'administer CiviCRM','',119,1,NULL,5), - (125,1,'Mobile Phone Providers','Mobile Phone Providers','civicrm/admin/options/mobile_provider?reset=1',NULL,'administer CiviCRM','',119,1,NULL,6), - (126,1,'Phone Types','Phone Types','civicrm/admin/options/phone_type?reset=1',NULL,'administer CiviCRM','',119,1,NULL,7), - (127,1,'Website Types','Website Types','civicrm/admin/options/website_type?reset=1',NULL,'administer CiviCRM','',119,1,NULL,8), - (128,1,'Communications','Communications',NULL,NULL,'administer CiviCRM','',103,1,NULL,4), - (129,1,'Organization Address and Contact Info','Organization Address and Contact Info','civicrm/admin/domain?action=update&reset=1',NULL,'administer CiviCRM','',128,1,NULL,1), - (130,1,'FROM Email Addresses','FROM Email Addresses','civicrm/admin/options/from_email_address?reset=1',NULL,'administer CiviCRM','',128,1,NULL,2), - (131,1,'Message Templates','Message Templates','civicrm/admin/messageTemplates?reset=1',NULL,'administer CiviCRM','',128,1,NULL,3), - (132,1,'Schedule Reminders','Schedule Reminders','civicrm/admin/scheduleReminders?reset=1',NULL,'administer CiviCRM','',128,1,NULL,4), - (133,1,'Preferred Communication Methods','Preferred Communication Methods','civicrm/admin/options/preferred_communication_method?reset=1',NULL,'administer CiviCRM','',128,1,NULL,5), - (134,1,'Label Formats','Label Formats','civicrm/admin/labelFormats?reset=1',NULL,'administer CiviCRM','',128,1,NULL,6), - (135,1,'Print Page (PDF) Formats','Print Page (PDF) Formats','civicrm/admin/pdfFormats?reset=1',NULL,'administer CiviCRM','',128,1,NULL,7), - (136,1,'Communication Style Options','Communication Style Options','civicrm/admin/options/communication_style?reset=1',NULL,'administer CiviCRM','',128,1,NULL,8), - (137,1,'Email Greeting Formats','Email Greeting Formats','civicrm/admin/options/email_greeting?reset=1',NULL,'administer CiviCRM','',128,1,NULL,9), - (138,1,'Postal Greeting Formats','Postal Greeting Formats','civicrm/admin/options/postal_greeting?reset=1',NULL,'administer CiviCRM','',128,1,NULL,10), - (139,1,'Addressee Formats','Addressee Formats','civicrm/admin/options/addressee?reset=1',NULL,'administer CiviCRM','',128,1,NULL,11), - (140,1,'Localization','Localization',NULL,NULL,'administer CiviCRM','',103,1,NULL,6), - (141,1,'Languages, Currency, Locations','Languages, Currency, Locations','civicrm/admin/setting/localization?reset=1',NULL,'administer CiviCRM','',140,1,NULL,1), - (142,1,'Address Settings','Address Settings','civicrm/admin/setting/preferences/address?reset=1',NULL,'administer CiviCRM','',140,1,NULL,2), - (143,1,'Date Formats','Date Formats','civicrm/admin/setting/date?reset=1',NULL,'administer CiviCRM','',140,1,NULL,3), - (144,1,'Preferred Language Options','Preferred Language Options','civicrm/admin/options/languages?reset=1',NULL,'administer CiviCRM','',140,1,NULL,4), - (145,1,'Users and Permissions','Users and Permissions',NULL,NULL,'administer CiviCRM','',103,1,NULL,7), - (146,1,'Access Control Lists','Permissions (Access Control)','civicrm/admin/access?reset=1',NULL,'administer CiviCRM','',145,1,NULL,5), - (147,1,'Synchronize Users to Contacts','Synchronize Users to Contacts','civicrm/admin/synchUser?reset=1',NULL,'administer CiviCRM','',145,1,NULL,10), - (148,1,'System Settings','System Settings',NULL,NULL,'administer CiviCRM','',103,1,NULL,8), - (149,1,'Components','Enable Components','civicrm/admin/setting/component?reset=1',NULL,'administer CiviCRM','',148,1,NULL,1), - (150,1,'Extensions','Manage Extensions','civicrm/admin/extensions?reset=1',NULL,'administer CiviCRM','',148,1,1,3), - (151,1,'Cleanup Caches and Update Paths','Cleanup Caches and Update Paths','civicrm/admin/setting/updateConfigBackend?reset=1',NULL,'administer CiviCRM','',148,1,NULL,4), - (152,1,'CMS Database Integration','CMS Integration','civicrm/admin/setting/uf?reset=1',NULL,'administer CiviCRM','',148,1,NULL,5), - (153,1,'Debugging and Error Handling','Debugging and Error Handling','civicrm/admin/setting/debug?reset=1',NULL,'administer CiviCRM','',148,1,NULL,6), - (154,1,'Directories','Directories','civicrm/admin/setting/path?reset=1',NULL,'administer CiviCRM','',148,1,NULL,7), - (155,1,'Import/Export Mappings','Import/Export Mappings','civicrm/admin/mapping?reset=1',NULL,'administer CiviCRM','',148,1,NULL,8), - (156,1,'Mapping and Geocoding','Mapping and Geocoding','civicrm/admin/setting/mapping?reset=1',NULL,'administer CiviCRM','',148,1,NULL,9), - (157,1,'Misc (Undelete, PDFs, Limits, Logging, etc.)','misc_admin_settings','civicrm/admin/setting/misc?reset=1',NULL,'administer CiviCRM','',148,1,NULL,10), - (158,1,'Multi Site Settings','Multi Site Settings','civicrm/admin/setting/preferences/multisite?reset=1',NULL,'administer CiviCRM','',148,1,NULL,11), - (159,1,'Option Groups','Option Groups','civicrm/admin/options?reset=1',NULL,'administer CiviCRM','',148,1,NULL,12), - (160,1,'Outbound Email (SMTP/Sendmail)','Outbound Email','civicrm/admin/setting/smtp?reset=1',NULL,'administer CiviCRM','',148,1,NULL,13), - (161,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1',NULL,'administer CiviCRM','',148,1,NULL,14), - (162,1,'Resource URLs','Resource URLs','civicrm/admin/setting/url?reset=1',NULL,'administer CiviCRM','',148,1,NULL,15), - (163,1,'Safe File Extensions','Safe File Extensions','civicrm/admin/options/safe_file_extension?reset=1',NULL,'administer CiviCRM','',148,1,NULL,16), - (164,1,'Scheduled Jobs','Scheduled Jobs','civicrm/admin/job?reset=1',NULL,'administer CiviCRM','',148,1,NULL,17), - (165,1,'SMS Providers','SMS Providers','civicrm/admin/sms/provider?reset=1',NULL,'administer CiviCRM','',148,1,NULL,18), - (166,1,'CiviCampaign','CiviCampaign',NULL,NULL,'administer CiviCampaign,administer CiviCRM','AND',103,1,NULL,9), - (167,1,'Survey Types','Survey Types','civicrm/admin/campaign/surveyType?reset=1',NULL,'administer CiviCampaign','',166,1,NULL,1), - (168,1,'Campaign Types','Campaign Types','civicrm/admin/options/campaign_type?reset=1',NULL,'administer CiviCampaign','',166,1,NULL,2), - (169,1,'Campaign Status','Campaign Status','civicrm/admin/options/campaign_status?reset=1',NULL,'administer CiviCampaign','',166,1,NULL,3), - (170,1,'Engagement Index','Engagement Index','civicrm/admin/options/engagement_index?reset=1',NULL,'administer CiviCampaign','',166,1,NULL,4), - (171,1,'CiviCampaign Component Settings','CiviCampaign Component Settings','civicrm/admin/setting/preferences/campaign?reset=1',NULL,'administer CiviCampaign','',166,1,NULL,5), - (172,1,'CiviCase','CiviCase',NULL,NULL,'administer CiviCase',NULL,103,1,NULL,10), - (173,1,'CiviCase Settings','CiviCase Settings','civicrm/admin/setting/case?reset=1',NULL,'administer CiviCase',NULL,172,1,NULL,1), - (174,1,'Case Types','Case Types','civicrm/a/#/caseType',NULL,'administer CiviCase',NULL,172,1,NULL,2), - (175,1,'Redaction Rules','Redaction Rules','civicrm/admin/options/redaction_rule?reset=1',NULL,'administer CiviCase',NULL,172,1,NULL,3), - (176,1,'Case Statuses','Case Statuses','civicrm/admin/options/case_status?reset=1',NULL,'administer CiviCase',NULL,172,1,NULL,4), - (177,1,'Encounter Medium','Encounter Medium','civicrm/admin/options/encounter_medium?reset=1',NULL,'administer CiviCase',NULL,172,1,NULL,5), - (178,1,'CiviContribute','CiviContribute',NULL,NULL,'access CiviContribute,administer CiviCRM','AND',103,1,NULL,11), - (179,1,'New Contribution Page','New Contribution Page','civicrm/admin/contribute?reset=1&action=add',NULL,'access CiviContribute,administer CiviCRM','AND',178,1,NULL,6), - (180,1,'Manage Contribution Pages','Manage Contribution Pages','civicrm/admin/contribute?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',178,1,1,7), - (181,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=contribute',NULL,'access CiviContribute,administer CiviCRM','AND',178,1,NULL,8), - (182,1,'Premiums (Thank-you Gifts)','Premiums','civicrm/admin/contribute/managePremiums?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',178,1,1,9), - (183,1,'Financial Types','Financial Types','civicrm/admin/financial/financialType?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',178,1,NULL,10), - (184,1,'Financial Accounts','Financial Accounts','civicrm/admin/financial/financialAccount?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',178,1,NULL,11), - (185,1,'Payment Methods','Payment Instruments','civicrm/admin/options/payment_instrument?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',178,1,NULL,12), - (186,1,'Accepted Credit Cards','Accepted Credit Cards','civicrm/admin/options/accept_creditcard?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',178,1,NULL,13), - (187,1,'Soft Credit Types','Soft Credit Types','civicrm/admin/options/soft_credit_type?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',178,1,1,14), - (188,1,'New Price Set','New Price Set','civicrm/admin/price/edit?reset=1&action=add',NULL,'access CiviContribute,administer CiviCRM','AND',178,0,NULL,15), - (189,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',178,1,NULL,16), - (190,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1',NULL,'administer CiviCRM','',178,1,NULL,17), - (191,1,'CiviContribute Component Settings','CiviContribute Component Settings','civicrm/admin/setting/preferences/contribute?reset=1',NULL,'administer CiviCRM','',178,1,NULL,18), - (192,1,'CiviEvent','CiviEvent',NULL,NULL,'access CiviEvent,administer CiviCRM','AND',103,1,NULL,12), - (193,1,'New Event','New Event','civicrm/event/add?reset=1&action=add',NULL,'access CiviEvent,administer CiviCRM','AND',192,1,NULL,1), - (194,1,'Manage Events','Manage Events','civicrm/event/manage?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',192,1,1,2), - (195,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=event',NULL,'access CiviEvent,administer CiviCRM','AND',192,1,1,3), - (196,1,'Event Templates','Event Templates','civicrm/admin/eventTemplate?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',192,1,1,4), - (197,1,'New Price Set','New Price Set','civicrm/admin/price/edit?reset=1&action=add',NULL,'access CiviEvent,administer CiviCRM','AND',192,0,NULL,5), - (198,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',192,1,1,6), - (199,1,'Event Types','Event Types','civicrm/admin/options/event_type?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',192,1,NULL,7), - (200,1,'Participant Statuses','Participant Statuses','civicrm/admin/participant_status?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',192,1,NULL,8), - (201,1,'Participant Roles','Participant Roles','civicrm/admin/options/participant_role?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',192,1,NULL,9), - (202,1,'Participant Listing Options','Participant Listing Options','civicrm/admin/options/participant_listing?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',192,1,NULL,10), - (203,1,'Event Name Badge Layouts','Event Name Badge Layouts','civicrm/admin/badgelayout?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',192,1,NULL,11), - (204,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1',NULL,'administer CiviCRM','',192,1,NULL,12), - (205,1,'CiviEvent Component Settings','CiviEvent Component Settings','civicrm/admin/setting/preferences/event?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',192,1,NULL,13), - (206,1,'CiviMail','CiviMail',NULL,NULL,'access CiviMail,administer CiviCRM','AND',103,1,NULL,14), - (207,1,'Headers, Footers, and Automated Messages','Headers, Footers, and Automated Messages','civicrm/admin/component?reset=1',NULL,'access CiviMail,administer CiviCRM','AND',206,1,NULL,1), - (208,1,'Message Templates','Message Templates','civicrm/admin/messageTemplates?reset=1',NULL,'administer CiviCRM','',206,1,NULL,2), - (209,1,'From Email Addresses','From Email Addresses','civicrm/admin/options/from_email_address?reset=1',NULL,'administer CiviCRM','',206,1,NULL,3), - (210,1,'Mail Accounts','Mail Accounts','civicrm/admin/mailSettings?reset=1',NULL,'access CiviMail,administer CiviCRM','AND',206,1,NULL,4), - (211,1,'Mailer Settings','Mailer Settings','civicrm/admin/mail?reset=1',NULL,'access CiviMail,administer CiviCRM','AND',206,1,NULL,5), - (212,1,'CiviMail Component Settings','CiviMail Component Settings','civicrm/admin/setting/preferences/mailing?reset=1',NULL,'access CiviMail,administer CiviCRM','AND',206,1,NULL,6), - (213,1,'CiviMember','CiviMember',NULL,NULL,'access CiviMember,administer CiviCRM','AND',103,1,NULL,15), - (214,1,'Membership Types','Membership Types','civicrm/admin/member/membershipType?reset=1',NULL,'access CiviMember,administer CiviCRM','AND',213,1,NULL,1), - (215,1,'Membership Status Rules','Membership Status Rules','civicrm/admin/member/membershipStatus?reset=1',NULL,'access CiviMember,administer CiviCRM','AND',213,1,1,2), - (216,1,'New Price Set','New Price Set','civicrm/admin/price/edit?reset=1&action=add',NULL,'access CiviMember,administer CiviCRM','AND',213,1,NULL,3), - (217,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1',NULL,'access CiviMember,administer CiviCRM','AND',213,1,NULL,4), - (218,1,'CiviMember Component Settings','CiviMember Component Settings','civicrm/admin/setting/preferences/member?reset=1',NULL,'access CiviMember,administer CiviCRM','AND',213,1,NULL,5), - (219,1,'CiviReport','CiviReport',NULL,NULL,'access CiviReport,administer CiviCRM','AND',103,1,NULL,16), - (220,1,'All Reports','All Reports','civicrm/report/list?reset=1',NULL,'access CiviReport','',219,1,NULL,1), - (221,1,'Create New Report from Template','Create New Report from Template','civicrm/admin/report/template/list?reset=1',NULL,'administer Reports','',219,1,NULL,2), - (222,1,'Manage Templates','Manage Templates','civicrm/admin/report/options/report_template?reset=1',NULL,'administer Reports','',219,1,NULL,3), - (223,1,'Register Report','Register Report','civicrm/admin/report/register?reset=1',NULL,'administer Reports','',219,1,NULL,4), - (224,1,'Support','Support',NULL,'crm-i fa-life-ring',NULL,'',NULL,1,NULL,110), - (225,1,'User Guide','User Guide','https://docs.civicrm.org/user/?src=iam',NULL,NULL,'AND',224,1,NULL,1), - (226,1,'Get Help','Get Help','https://civicrm.org/help?src=iam',NULL,NULL,'AND',224,1,NULL,2), - (227,1,'About CiviCRM','About CiviCRM','https://civicrm.org/about?src=iam',NULL,NULL,'AND',224,1,1,3), - (228,1,'Register Your Site','Register Your Site','https://civicrm.org/register-your-site?src=iam&sid={sid}',NULL,NULL,'AND',224,1,NULL,4), - (229,1,'Join CiviCRM','Join CiviCRM','https://civicrm.org/become-a-member?src=iam&sid={sid}',NULL,NULL,'AND',224,1,NULL,5), - (230,1,'Developer','Developer',NULL,NULL,'administer CiviCRM','',224,1,1,6), - (231,1,'Api Explorer v3','API Explorer','civicrm/api3',NULL,'administer CiviCRM','',230,1,NULL,1), - (232,1,'Api Explorer v4','Api Explorer v4','civicrm/api4#/explorer',NULL,'administer CiviCRM','',230,1,NULL,2), - (233,1,'Developer Docs','Developer Docs','https://civicrm.org/developer-documentation?src=iam',NULL,'administer CiviCRM','',230,1,NULL,3), - (234,1,'Reports','Reports',NULL,'crm-i fa-bar-chart','access CiviReport','',NULL,1,NULL,95), - (235,1,'Contact Reports','Contact Reports','civicrm/report/list?compid=99&reset=1',NULL,'administer CiviCRM','',234,1,0,1), - (236,1,'Contribution Reports','Contribution Reports','civicrm/report/list?compid=2&reset=1',NULL,'access CiviContribute','',234,1,0,2), - (237,1,'Pledge Reports','Pledge Reports','civicrm/report/list?compid=6&reset=1',NULL,'access CiviPledge','',234,1,0,3), - (238,1,'Event Reports','Event Reports','civicrm/report/list?compid=1&reset=1',NULL,'access CiviEvent','',234,1,0,4), - (239,1,'Mailing Reports','Mailing Reports','civicrm/report/list?compid=4&reset=1',NULL,'access CiviMail','',234,1,0,5), - (240,1,'Membership Reports','Membership Reports','civicrm/report/list?compid=3&reset=1',NULL,'access CiviMember','',234,1,0,6), - (241,1,'Campaign Reports','Campaign Reports','civicrm/report/list?compid=9&reset=1',NULL,'interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts','OR',234,1,0,7), - (242,1,'Case Reports','Case Reports','civicrm/report/list?compid=7&reset=1',NULL,'access my cases and activities,access all cases and activities,administer CiviCase','OR',234,1,0,8), - (243,1,'All Reports','All Reports','civicrm/report/list?reset=1',NULL,'access CiviReport','',234,1,1,10), - (244,1,'My Reports','My Reports','civicrm/report/list?myreports=1&reset=1',NULL,'access CiviReport','',234,1,1,11), - (245,1,'New Student','New Student','civicrm/contact/add?ct=Individual&cst=Student&reset=1',NULL,'add contacts','',14,1,NULL,1), - (246,1,'New Parent','New Parent','civicrm/contact/add?ct=Individual&cst=Parent&reset=1',NULL,'add contacts','',14,1,NULL,2), - (247,1,'New Staff','New Staff','civicrm/contact/add?ct=Individual&cst=Staff&reset=1',NULL,'add contacts','',14,1,NULL,3), - (248,1,'New Team','New Team','civicrm/contact/add?ct=Organization&cst=Team&reset=1',NULL,'add contacts','',16,1,NULL,1), - (249,1,'New Sponsor','New Sponsor','civicrm/contact/add?ct=Organization&cst=Sponsor&reset=1',NULL,'add contacts','',16,1,NULL,2), - (250,1,'Custom Searches','Custom Searches','civicrm/contact/search/custom/list?reset=1',NULL,NULL,'OR',2,1,2,12), - (251,1,'Manage Custom Searches','Manage Custom Searches','civicrm/admin/options/custom_search?reset=1',NULL,'administer CiviCRM','OR',107,1,0,14); + (85,1,'New Campaign','New Campaign','civicrm/campaign/add?reset=1',NULL,'manage campaign,administer CiviCampaign','OR',84,1,NULL,2), + (86,1,'New Survey','New Survey','civicrm/survey/add?reset=1',NULL,'manage campaign,administer CiviCampaign','OR',84,1,NULL,3), + (87,1,'New Petition','New Petition','civicrm/petition/add?reset=1',NULL,'manage campaign,administer CiviCampaign','OR',84,1,NULL,4), + (88,1,'Reserve Respondents','Reserve Respondents','civicrm/survey/search?reset=1&op=reserve',NULL,'administer CiviCampaign,manage campaign,reserve campaign contacts','OR',84,1,NULL,5), + (89,1,'Interview Respondents','Interview Respondents','civicrm/survey/search?reset=1&op=interview',NULL,'administer CiviCampaign,manage campaign,interview campaign contacts','OR',84,1,NULL,6), + (90,1,'Release Respondents','Release Respondents','civicrm/survey/search?reset=1&op=release',NULL,'administer CiviCampaign,manage campaign,release campaign contacts','OR',84,1,NULL,7), + (91,1,'Campaign Reports','Campaign Reports','civicrm/report/list?compid=9&reset=1',NULL,'interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts','OR',84,1,1,8), + (92,1,'Conduct Survey','Conduct Survey','civicrm/campaign/vote?reset=1',NULL,'administer CiviCampaign,manage campaign,reserve campaign contacts,interview campaign contacts','OR',84,1,NULL,9), + (93,1,'GOTV (Voter Tracking)','Voter Listing','civicrm/campaign/gotv?reset=1',NULL,'administer CiviCampaign,manage campaign,release campaign contacts,gotv campaign contacts','OR',84,1,NULL,10), + (94,1,'Cases','Cases',NULL,'crm-i fa-folder-open-o','access my cases and activities,access all cases and activities','OR',NULL,1,NULL,80), + (95,1,'Dashboard','Dashboard','civicrm/case?reset=1',NULL,'access my cases and activities,access all cases and activities','OR',94,1,NULL,1), + (96,1,'New Case','New Case','civicrm/case/add?reset=1&action=add&atype=13&context=standalone',NULL,'add cases,access all cases and activities','OR',94,1,NULL,2), + (97,1,'Find Cases','Find Cases','civicrm/case/search?reset=1',NULL,'access my cases and activities,access all cases and activities','OR',94,1,1,3), + (98,1,'Case Reports','Case Reports','civicrm/report/list?compid=7&reset=1',NULL,'access my cases and activities,access all cases and activities,administer CiviCase','OR',94,1,0,4), + (99,1,'Administer','Administer',NULL,'crm-i fa-gears','administer CiviCRM','',NULL,1,NULL,100), + (100,1,'Administration Console','Administration Console','civicrm/admin?reset=1',NULL,'administer CiviCRM','',99,1,NULL,1), + (101,1,'System Status','System Status','civicrm/a/#/status',NULL,'administer CiviCRM','',100,1,NULL,0), + (102,1,'Configuration Checklist','Configuration Checklist','civicrm/admin/configtask?reset=1',NULL,'administer CiviCRM','',100,1,NULL,1), + (103,1,'Customize Data and Screens','Customize Data and Screens',NULL,NULL,'administer CiviCRM','',99,1,NULL,3), + (104,1,'Custom Fields','Custom Fields','civicrm/admin/custom/group?reset=1',NULL,'administer CiviCRM','',103,1,NULL,1), + (105,1,'Profiles','Profiles','civicrm/admin/uf/group?reset=1',NULL,'administer CiviCRM','',103,1,NULL,2), + (106,1,'Tags','Tags (Categories)','civicrm/tag?reset=1',NULL,'administer CiviCRM','',103,1,NULL,3), + (107,1,'Activity Types','Activity Types','civicrm/admin/options/activity_type?reset=1',NULL,'administer CiviCRM','',103,1,NULL,4), + (108,1,'Relationship Types','Relationship Types','civicrm/admin/reltype?reset=1',NULL,'administer CiviCRM','',103,1,NULL,5), + (109,1,'Contact Types','Contact Types','civicrm/admin/options/subtype?reset=1',NULL,'administer CiviCRM','',103,1,NULL,6), + (110,1,'Display Preferences','Display Preferences','civicrm/admin/setting/preferences/display?reset=1',NULL,'administer CiviCRM','',103,1,NULL,9), + (111,1,'Search Preferences','Search Preferences','civicrm/admin/setting/search?reset=1',NULL,'administer CiviCRM','',103,1,NULL,10), + (112,1,'Date Preferences','Date Preferences','civicrm/admin/setting/preferences/date?reset=1',NULL,'administer CiviCRM','',103,1,NULL,11), + (113,1,'Navigation Menu','Navigation Menu','civicrm/admin/menu?reset=1',NULL,'administer CiviCRM','',103,1,NULL,12), + (114,1,'Word Replacements','Word Replacements','civicrm/admin/options/wordreplacements?reset=1',NULL,'administer CiviCRM','',103,1,NULL,13), + (115,1,'Dropdown Options','Dropdown Options','civicrm/admin/options?action=browse&reset=1',NULL,'administer CiviCRM','',103,1,NULL,8), + (116,1,'Gender Options','Gender Options','civicrm/admin/options/gender?reset=1',NULL,'administer CiviCRM','',115,1,NULL,1), + (117,1,'Individual Prefixes (Ms, Mr...)','Individual Prefixes (Ms, Mr...)','civicrm/admin/options/individual_prefix?reset=1',NULL,'administer CiviCRM','',115,1,NULL,2), + (118,1,'Individual Suffixes (Jr, Sr...)','Individual Suffixes (Jr, Sr...)','civicrm/admin/options/individual_suffix?reset=1',NULL,'administer CiviCRM','',115,1,NULL,3), + (119,1,'Instant Messenger Services','Instant Messenger Services','civicrm/admin/options/instant_messenger_service?reset=1',NULL,'administer CiviCRM','',115,1,NULL,4), + (120,1,'Location Types (Home, Work...)','Location Types (Home, Work...)','civicrm/admin/locationType?reset=1',NULL,'administer CiviCRM','',115,1,NULL,5), + (121,1,'Mobile Phone Providers','Mobile Phone Providers','civicrm/admin/options/mobile_provider?reset=1',NULL,'administer CiviCRM','',115,1,NULL,6), + (122,1,'Phone Types','Phone Types','civicrm/admin/options/phone_type?reset=1',NULL,'administer CiviCRM','',115,1,NULL,7), + (123,1,'Website Types','Website Types','civicrm/admin/options/website_type?reset=1',NULL,'administer CiviCRM','',115,1,NULL,8), + (124,1,'Communications','Communications',NULL,NULL,'administer CiviCRM','',99,1,NULL,4), + (125,1,'Organization Address and Contact Info','Organization Address and Contact Info','civicrm/admin/domain?action=update&reset=1',NULL,'administer CiviCRM','',124,1,NULL,1), + (126,1,'FROM Email Addresses','FROM Email Addresses','civicrm/admin/options/from_email_address?reset=1',NULL,'administer CiviCRM','',124,1,NULL,2), + (127,1,'Message Templates','Message Templates','civicrm/admin/messageTemplates?reset=1',NULL,'administer CiviCRM','',124,1,NULL,3), + (128,1,'Schedule Reminders','Schedule Reminders','civicrm/admin/scheduleReminders?reset=1',NULL,'administer CiviCRM','',124,1,NULL,4), + (129,1,'Preferred Communication Methods','Preferred Communication Methods','civicrm/admin/options/preferred_communication_method?reset=1',NULL,'administer CiviCRM','',124,1,NULL,5), + (130,1,'Label Formats','Label Formats','civicrm/admin/labelFormats?reset=1',NULL,'administer CiviCRM','',124,1,NULL,6), + (131,1,'Print Page (PDF) Formats','Print Page (PDF) Formats','civicrm/admin/pdfFormats?reset=1',NULL,'administer CiviCRM','',124,1,NULL,7), + (132,1,'Communication Style Options','Communication Style Options','civicrm/admin/options/communication_style?reset=1',NULL,'administer CiviCRM','',124,1,NULL,8), + (133,1,'Email Greeting Formats','Email Greeting Formats','civicrm/admin/options/email_greeting?reset=1',NULL,'administer CiviCRM','',124,1,NULL,9), + (134,1,'Postal Greeting Formats','Postal Greeting Formats','civicrm/admin/options/postal_greeting?reset=1',NULL,'administer CiviCRM','',124,1,NULL,10), + (135,1,'Addressee Formats','Addressee Formats','civicrm/admin/options/addressee?reset=1',NULL,'administer CiviCRM','',124,1,NULL,11), + (136,1,'Localization','Localization',NULL,NULL,'administer CiviCRM','',99,1,NULL,6), + (137,1,'Languages, Currency, Locations','Languages, Currency, Locations','civicrm/admin/setting/localization?reset=1',NULL,'administer CiviCRM','',136,1,NULL,1), + (138,1,'Address Settings','Address Settings','civicrm/admin/setting/preferences/address?reset=1',NULL,'administer CiviCRM','',136,1,NULL,2), + (139,1,'Date Formats','Date Formats','civicrm/admin/setting/date?reset=1',NULL,'administer CiviCRM','',136,1,NULL,3), + (140,1,'Preferred Language Options','Preferred Language Options','civicrm/admin/options/languages?reset=1',NULL,'administer CiviCRM','',136,1,NULL,4), + (141,1,'Users and Permissions','Users and Permissions',NULL,NULL,'administer CiviCRM','',99,1,NULL,7), + (142,1,'Access Control Lists','Permissions (Access Control)','civicrm/admin/access?reset=1',NULL,'administer CiviCRM','',141,1,NULL,5), + (143,1,'Synchronize Users to Contacts','Synchronize Users to Contacts','civicrm/admin/synchUser?reset=1',NULL,'administer CiviCRM','',141,1,NULL,10), + (144,1,'System Settings','System Settings',NULL,NULL,'administer CiviCRM','',99,1,NULL,8), + (145,1,'Components','Enable Components','civicrm/admin/setting/component?reset=1',NULL,'administer CiviCRM','',144,1,NULL,1), + (146,1,'Extensions','Manage Extensions','civicrm/admin/extensions?reset=1',NULL,'administer CiviCRM','',144,1,1,3), + (147,1,'Cleanup Caches and Update Paths','Cleanup Caches and Update Paths','civicrm/admin/setting/updateConfigBackend?reset=1',NULL,'administer CiviCRM','',144,1,NULL,4), + (148,1,'CMS Database Integration','CMS Integration','civicrm/admin/setting/uf?reset=1',NULL,'administer CiviCRM','',144,1,NULL,5), + (149,1,'Debugging and Error Handling','Debugging and Error Handling','civicrm/admin/setting/debug?reset=1',NULL,'administer CiviCRM','',144,1,NULL,6), + (150,1,'Directories','Directories','civicrm/admin/setting/path?reset=1',NULL,'administer CiviCRM','',144,1,NULL,7), + (151,1,'Import/Export Mappings','Import/Export Mappings','civicrm/admin/mapping?reset=1',NULL,'administer CiviCRM','',144,1,NULL,8), + (152,1,'Mapping and Geocoding','Mapping and Geocoding','civicrm/admin/setting/mapping?reset=1',NULL,'administer CiviCRM','',144,1,NULL,9), + (153,1,'Misc (Undelete, PDFs, Limits, Logging, etc.)','misc_admin_settings','civicrm/admin/setting/misc?reset=1',NULL,'administer CiviCRM','',144,1,NULL,10), + (154,1,'Multi Site Settings','Multi Site Settings','civicrm/admin/setting/preferences/multisite?reset=1',NULL,'administer CiviCRM','',144,1,NULL,11), + (155,1,'Option Groups','Option Groups','civicrm/admin/options?reset=1',NULL,'administer CiviCRM','',144,1,NULL,12), + (156,1,'Outbound Email (SMTP/Sendmail)','Outbound Email','civicrm/admin/setting/smtp?reset=1',NULL,'administer CiviCRM','',144,1,NULL,13), + (157,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1',NULL,'administer CiviCRM','',144,1,NULL,14), + (158,1,'Resource URLs','Resource URLs','civicrm/admin/setting/url?reset=1',NULL,'administer CiviCRM','',144,1,NULL,15), + (159,1,'Safe File Extensions','Safe File Extensions','civicrm/admin/options/safe_file_extension?reset=1',NULL,'administer CiviCRM','',144,1,NULL,16), + (160,1,'Scheduled Jobs','Scheduled Jobs','civicrm/admin/job?reset=1',NULL,'administer CiviCRM','',144,1,NULL,17), + (161,1,'SMS Providers','SMS Providers','civicrm/admin/sms/provider?reset=1',NULL,'administer CiviCRM','',144,1,NULL,18), + (162,1,'CiviCampaign','CiviCampaign',NULL,NULL,'administer CiviCampaign,administer CiviCRM','AND',99,1,NULL,9), + (163,1,'Survey Types','Survey Types','civicrm/admin/campaign/surveyType?reset=1',NULL,'administer CiviCampaign','',162,1,NULL,1), + (164,1,'Campaign Types','Campaign Types','civicrm/admin/options/campaign_type?reset=1',NULL,'administer CiviCampaign','',162,1,NULL,2), + (165,1,'Campaign Status','Campaign Status','civicrm/admin/options/campaign_status?reset=1',NULL,'administer CiviCampaign','',162,1,NULL,3), + (166,1,'Engagement Index','Engagement Index','civicrm/admin/options/engagement_index?reset=1',NULL,'administer CiviCampaign','',162,1,NULL,4), + (167,1,'CiviCampaign Component Settings','CiviCampaign Component Settings','civicrm/admin/setting/preferences/campaign?reset=1',NULL,'administer CiviCampaign','',162,1,NULL,5), + (168,1,'CiviCase','CiviCase',NULL,NULL,'administer CiviCase',NULL,99,1,NULL,10), + (169,1,'CiviCase Settings','CiviCase Settings','civicrm/admin/setting/case?reset=1',NULL,'administer CiviCase',NULL,168,1,NULL,1), + (170,1,'Case Types','Case Types','civicrm/a/#/caseType',NULL,'administer CiviCase',NULL,168,1,NULL,2), + (171,1,'Redaction Rules','Redaction Rules','civicrm/admin/options/redaction_rule?reset=1',NULL,'administer CiviCase',NULL,168,1,NULL,3), + (172,1,'Case Statuses','Case Statuses','civicrm/admin/options/case_status?reset=1',NULL,'administer CiviCase',NULL,168,1,NULL,4), + (173,1,'Encounter Medium','Encounter Medium','civicrm/admin/options/encounter_medium?reset=1',NULL,'administer CiviCase',NULL,168,1,NULL,5), + (174,1,'CiviContribute','CiviContribute',NULL,NULL,'access CiviContribute,administer CiviCRM','AND',99,1,NULL,11), + (175,1,'New Contribution Page','New Contribution Page','civicrm/admin/contribute?reset=1&action=add',NULL,'access CiviContribute,administer CiviCRM','AND',174,1,NULL,6), + (176,1,'Manage Contribution Pages','Manage Contribution Pages','civicrm/admin/contribute?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',174,1,1,7), + (177,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=contribute',NULL,'access CiviContribute,administer CiviCRM','AND',174,1,NULL,8), + (178,1,'Premiums (Thank-you Gifts)','Premiums','civicrm/admin/contribute/managePremiums?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',174,1,1,9), + (179,1,'Financial Types','Financial Types','civicrm/admin/financial/financialType?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',174,1,NULL,10), + (180,1,'Financial Accounts','Financial Accounts','civicrm/admin/financial/financialAccount?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',174,1,NULL,11), + (181,1,'Payment Methods','Payment Instruments','civicrm/admin/options/payment_instrument?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',174,1,NULL,12), + (182,1,'Accepted Credit Cards','Accepted Credit Cards','civicrm/admin/options/accept_creditcard?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',174,1,NULL,13), + (183,1,'Soft Credit Types','Soft Credit Types','civicrm/admin/options/soft_credit_type?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',174,1,1,14), + (184,1,'New Price Set','New Price Set','civicrm/admin/price/edit?reset=1&action=add',NULL,'access CiviContribute,administer CiviCRM','AND',174,0,NULL,15), + (185,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1',NULL,'access CiviContribute,administer CiviCRM','AND',174,1,NULL,16), + (186,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1',NULL,'administer CiviCRM','',174,1,NULL,17), + (187,1,'CiviContribute Component Settings','CiviContribute Component Settings','civicrm/admin/setting/preferences/contribute?reset=1',NULL,'administer CiviCRM','',174,1,NULL,18), + (188,1,'CiviEvent','CiviEvent',NULL,NULL,'access CiviEvent,administer CiviCRM','AND',99,1,NULL,12), + (189,1,'New Event','New Event','civicrm/event/add?reset=1&action=add',NULL,'access CiviEvent,administer CiviCRM','AND',188,1,NULL,1), + (190,1,'Manage Events','Manage Events','civicrm/event/manage?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',188,1,1,2), + (191,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=event',NULL,'access CiviEvent,administer CiviCRM','AND',188,1,1,3), + (192,1,'Event Templates','Event Templates','civicrm/admin/eventTemplate?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',188,1,1,4), + (193,1,'New Price Set','New Price Set','civicrm/admin/price/edit?reset=1&action=add',NULL,'access CiviEvent,administer CiviCRM','AND',188,0,NULL,5), + (194,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',188,1,1,6), + (195,1,'Event Types','Event Types','civicrm/admin/options/event_type?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',188,1,NULL,7), + (196,1,'Participant Statuses','Participant Statuses','civicrm/admin/participant_status?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',188,1,NULL,8), + (197,1,'Participant Roles','Participant Roles','civicrm/admin/options/participant_role?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',188,1,NULL,9), + (198,1,'Participant Listing Options','Participant Listing Options','civicrm/admin/options/participant_listing?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',188,1,NULL,10), + (199,1,'Event Name Badge Layouts','Event Name Badge Layouts','civicrm/admin/badgelayout?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',188,1,NULL,11), + (200,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1',NULL,'administer CiviCRM','',188,1,NULL,12), + (201,1,'CiviEvent Component Settings','CiviEvent Component Settings','civicrm/admin/setting/preferences/event?reset=1',NULL,'access CiviEvent,administer CiviCRM','AND',188,1,NULL,13), + (202,1,'CiviMail','CiviMail',NULL,NULL,'access CiviMail,administer CiviCRM','AND',99,1,NULL,14), + (203,1,'Headers, Footers, and Automated Messages','Headers, Footers, and Automated Messages','civicrm/admin/component?reset=1',NULL,'access CiviMail,administer CiviCRM','AND',202,1,NULL,1), + (204,1,'Message Templates','Message Templates','civicrm/admin/messageTemplates?reset=1',NULL,'administer CiviCRM','',202,1,NULL,2), + (205,1,'From Email Addresses','From Email Addresses','civicrm/admin/options/from_email_address?reset=1',NULL,'administer CiviCRM','',202,1,NULL,3), + (206,1,'Mail Accounts','Mail Accounts','civicrm/admin/mailSettings?reset=1',NULL,'access CiviMail,administer CiviCRM','AND',202,1,NULL,4), + (207,1,'Mailer Settings','Mailer Settings','civicrm/admin/mail?reset=1',NULL,'access CiviMail,administer CiviCRM','AND',202,1,NULL,5), + (208,1,'CiviMail Component Settings','CiviMail Component Settings','civicrm/admin/setting/preferences/mailing?reset=1',NULL,'access CiviMail,administer CiviCRM','AND',202,1,NULL,6), + (209,1,'CiviMember','CiviMember',NULL,NULL,'access CiviMember,administer CiviCRM','AND',99,1,NULL,15), + (210,1,'Membership Types','Membership Types','civicrm/admin/member/membershipType?reset=1',NULL,'access CiviMember,administer CiviCRM','AND',209,1,NULL,1), + (211,1,'Membership Status Rules','Membership Status Rules','civicrm/admin/member/membershipStatus?reset=1',NULL,'access CiviMember,administer CiviCRM','AND',209,1,1,2), + (212,1,'New Price Set','New Price Set','civicrm/admin/price/edit?reset=1&action=add',NULL,'access CiviMember,administer CiviCRM','AND',209,1,NULL,3), + (213,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1',NULL,'access CiviMember,administer CiviCRM','AND',209,1,NULL,4), + (214,1,'CiviMember Component Settings','CiviMember Component Settings','civicrm/admin/setting/preferences/member?reset=1',NULL,'access CiviMember,administer CiviCRM','AND',209,1,NULL,5), + (215,1,'CiviReport','CiviReport',NULL,NULL,'access CiviReport,administer CiviCRM','AND',99,1,NULL,16), + (216,1,'All Reports','All Reports','civicrm/report/list?reset=1',NULL,'access CiviReport','',215,1,NULL,1), + (217,1,'Create New Report from Template','Create New Report from Template','civicrm/admin/report/template/list?reset=1',NULL,'administer Reports','',215,1,NULL,2), + (218,1,'Manage Templates','Manage Templates','civicrm/admin/report/options/report_template?reset=1',NULL,'administer Reports','',215,1,NULL,3), + (219,1,'Register Report','Register Report','civicrm/admin/report/register?reset=1',NULL,'administer Reports','',215,1,NULL,4), + (220,1,'Support','Support',NULL,'crm-i fa-life-ring',NULL,'',NULL,1,NULL,110), + (221,1,'User Guide','User Guide','https://docs.civicrm.org/user/?src=iam',NULL,NULL,'AND',220,1,NULL,1), + (222,1,'Get Help','Get Help','https://civicrm.org/help?src=iam',NULL,NULL,'AND',220,1,NULL,2), + (223,1,'About CiviCRM','About CiviCRM','https://civicrm.org/about?src=iam',NULL,NULL,'AND',220,1,1,3), + (224,1,'Register Your Site','Register Your Site','https://civicrm.org/register-your-site?src=iam&sid={sid}',NULL,NULL,'AND',220,1,NULL,4), + (225,1,'Join CiviCRM','Join CiviCRM','https://civicrm.org/become-a-member?src=iam&sid={sid}',NULL,NULL,'AND',220,1,NULL,5), + (226,1,'Developer','Developer',NULL,NULL,'administer CiviCRM','',220,1,1,6), + (227,1,'Api Explorer v3','API Explorer','civicrm/api3',NULL,'administer CiviCRM','',226,1,NULL,1), + (228,1,'Api Explorer v4','Api Explorer v4','civicrm/api4#/explorer',NULL,'administer CiviCRM','',226,1,NULL,2), + (229,1,'Developer Docs','Developer Docs','https://civicrm.org/developer-documentation?src=iam',NULL,'administer CiviCRM','',226,1,NULL,3), + (230,1,'Reports','Reports',NULL,'crm-i fa-bar-chart','access CiviReport','',NULL,1,NULL,95), + (231,1,'Contact Reports','Contact Reports','civicrm/report/list?compid=99&reset=1',NULL,'administer CiviCRM','',230,1,0,1), + (232,1,'Contribution Reports','Contribution Reports','civicrm/report/list?compid=2&reset=1',NULL,'access CiviContribute','',230,1,0,2), + (233,1,'Pledge Reports','Pledge Reports','civicrm/report/list?compid=6&reset=1',NULL,'access CiviPledge','',230,1,0,3), + (234,1,'Event Reports','Event Reports','civicrm/report/list?compid=1&reset=1',NULL,'access CiviEvent','',230,1,0,4), + (235,1,'Mailing Reports','Mailing Reports','civicrm/report/list?compid=4&reset=1',NULL,'access CiviMail','',230,1,0,5), + (236,1,'Membership Reports','Membership Reports','civicrm/report/list?compid=3&reset=1',NULL,'access CiviMember','',230,1,0,6), + (237,1,'Campaign Reports','Campaign Reports','civicrm/report/list?compid=9&reset=1',NULL,'interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts','OR',230,1,0,7), + (238,1,'Case Reports','Case Reports','civicrm/report/list?compid=7&reset=1',NULL,'access my cases and activities,access all cases and activities,administer CiviCase','OR',230,1,0,8), + (239,1,'All Reports','All Reports','civicrm/report/list?reset=1',NULL,'access CiviReport','',230,1,1,10), + (240,1,'My Reports','My Reports','civicrm/report/list?myreports=1&reset=1',NULL,'access CiviReport','',230,1,1,11), + (241,1,'New Student','New Student','civicrm/contact/add?ct=Individual&cst=Student&reset=1',NULL,'add contacts','',14,1,NULL,1), + (242,1,'New Parent','New Parent','civicrm/contact/add?ct=Individual&cst=Parent&reset=1',NULL,'add contacts','',14,1,NULL,2), + (243,1,'New Staff','New Staff','civicrm/contact/add?ct=Individual&cst=Staff&reset=1',NULL,'add contacts','',14,1,NULL,3), + (244,1,'New Team','New Team','civicrm/contact/add?ct=Organization&cst=Team&reset=1',NULL,'add contacts','',16,1,NULL,1), + (245,1,'New Sponsor','New Sponsor','civicrm/contact/add?ct=Organization&cst=Sponsor&reset=1',NULL,'add contacts','',16,1,NULL,2); /*!40000 ALTER TABLE `civicrm_navigation` ENABLE KEYS */; UNLOCK TABLES; @@ -5656,26 +5652,26 @@ UNLOCK TABLES; LOCK TABLES `civicrm_note` WRITE; /*!40000 ALTER TABLE `civicrm_note` DISABLE KEYS */; INSERT INTO `civicrm_note` (`id`, `entity_table`, `entity_id`, `note`, `contact_id`, `note_date`, `created_date`, `modified_date`, `subject`, `privacy`) VALUES - (1,'civicrm_contact',121,'Reminder screening of \"Black\" on next Friday',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2023-09-02 04:10:25',NULL,'0'), - (2,'civicrm_contact',96,'Arrange collection of funds from members',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2022-09-17 18:05:34',NULL,'0'), - (3,'civicrm_contact',123,'Arrange for cricket match with Sunil Gavaskar',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2023-02-28 08:21:34',NULL,'0'), - (4,'civicrm_contact',33,'Invite members for the Steve Prefontaine 10k dream run',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2022-11-13 18:10:15',NULL,'0'), - (5,'civicrm_contact',96,'Connect for presentation',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2023-03-28 19:47:44',NULL,'0'), - (6,'civicrm_contact',104,'Reminder screening of \"Black\" on next Friday',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2023-04-26 17:15:39',NULL,'0'), - (7,'civicrm_contact',122,'Connect for presentation',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2022-09-17 20:50:36',NULL,'0'), - (8,'civicrm_contact',152,'Reminder screening of \"Black\" on next Friday',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2022-11-23 17:03:55',NULL,'0'), - (9,'civicrm_contact',71,'Send newsletter for April 2005',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2022-12-29 14:00:17',NULL,'0'), - (10,'civicrm_contact',163,'Send reminder for annual dinner',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2022-12-16 08:42:43',NULL,'0'), - (11,'civicrm_contact',15,'Get the registration done for NGO status',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2023-08-17 17:34:29',NULL,'0'), - (12,'civicrm_contact',95,'Connect for presentation',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2022-12-11 01:57:11',NULL,'0'), - (13,'civicrm_contact',131,'Get the registration done for NGO status',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2023-02-19 04:50:53',NULL,'0'), - (14,'civicrm_contact',132,'Contact the Commissioner of Charities',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2023-07-29 18:56:37',NULL,'0'), - (15,'civicrm_contact',58,'Arrange for cricket match with Sunil Gavaskar',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2023-06-15 08:32:05',NULL,'0'), - (16,'civicrm_contact',163,'Send newsletter for April 2005',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2023-01-23 22:02:08',NULL,'0'), - (17,'civicrm_contact',185,'Arrange for cricket match with Sunil Gavaskar',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2023-01-16 12:31:03',NULL,'0'), - (18,'civicrm_contact',11,'Send newsletter for April 2005',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2022-09-13 22:39:15',NULL,'0'), - (19,'civicrm_contact',192,'Send reminder for annual dinner',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2023-02-14 08:40:24',NULL,'0'), - (20,'civicrm_contact',33,'Get the registration done for NGO status',1,'2023-09-06 22:52:18','2023-09-06 22:52:18','2022-11-17 05:34:06',NULL,'0'); + (1,'civicrm_contact',183,'Send newsletter for April 2005',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-09-17 21:35:11',NULL,'0'), + (2,'civicrm_contact',9,'Organize the Terry Fox run',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2022-10-29 06:16:48',NULL,'0'), + (3,'civicrm_contact',183,'Get the registration done for NGO status',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-05-22 07:40:08',NULL,'0'), + (4,'civicrm_contact',76,'Invite members for the Steve Prefontaine 10k dream run',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-03-16 12:45:10',NULL,'0'), + (5,'civicrm_contact',3,'Send newsletter for April 2005',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2022-11-03 18:40:45',NULL,'0'), + (6,'civicrm_contact',64,'Connect for presentation',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2022-11-19 00:33:50',NULL,'0'), + (7,'civicrm_contact',151,'Arrange for cricket match with Sunil Gavaskar',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-03-01 19:56:31',NULL,'0'), + (8,'civicrm_contact',167,'Send newsletter for April 2005',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2022-12-03 16:06:54',NULL,'0'), + (9,'civicrm_contact',149,'Send reminder for annual dinner',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-06-25 09:28:58',NULL,'0'), + (10,'civicrm_contact',47,'Reminder screening of \"Black\" on next Friday',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-04-21 10:56:44',NULL,'0'), + (11,'civicrm_contact',176,'Organize the Terry Fox run',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-04-13 07:09:04',NULL,'0'), + (12,'civicrm_contact',175,'Arrange collection of funds from members',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-09-19 02:55:32',NULL,'0'), + (13,'civicrm_contact',161,'Get the registration done for NGO status',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-08-19 21:42:17',NULL,'0'), + (14,'civicrm_contact',140,'Invite members for the Steve Prefontaine 10k dream run',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2022-10-30 11:23:44',NULL,'0'), + (15,'civicrm_contact',81,'Arrange for cricket match with Sunil Gavaskar',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-07-04 07:00:20',NULL,'0'), + (16,'civicrm_contact',52,'Send newsletter for April 2005',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-01-01 04:09:42',NULL,'0'), + (17,'civicrm_contact',150,'Reminder screening of \"Black\" on next Friday',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2022-10-14 15:49:05',NULL,'0'), + (18,'civicrm_contact',70,'Contact the Commissioner of Charities',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-06-17 10:56:50',NULL,'0'), + (19,'civicrm_contact',90,'Send reminder for annual dinner',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-02-19 21:13:07',NULL,'0'), + (20,'civicrm_contact',40,'Arrange collection of funds from members',1,'2023-10-07 01:51:35','2023-10-07 01:51:35','2023-01-13 21:47:53',NULL,'0'); /*!40000 ALTER TABLE `civicrm_note` ENABLE KEYS */; UNLOCK TABLES; @@ -6063,9 +6059,9 @@ INSERT INTO `civicrm_option_value` (`id`, `option_group_id`, `label`, `value`, ` (259,33,'Fax','3','Fax',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), (260,33,'Pager','4','Pager',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), (261,33,'Voicemail','5','Voicemail',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (262,34,'Participants (Role)','1','ParticipantRole','role_id',0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (263,34,'Participants (Event Name)','2','ParticipantEventName','event_id',0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (264,34,'Participants (Event Type)','3','ParticipantEventType','event_id.event_type_id',0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (262,34,'Role','1','ParticipantRole','role_id',0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (263,34,'Event Name','2','ParticipantEventName','event_id',0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (264,34,'Event Type','3','ParticipantEventType','event_id.event_type_id',0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), (265,35,'Public','1','public',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), (266,35,'Admin','2','admin',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), (267,36,'IMAP','1','IMAP',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), @@ -6171,506 +6167,507 @@ INSERT INTO `civicrm_option_value` (`id`, `option_group_id`, `label`, `value`, ` (367,47,'Relationships','civicrm_relationship','Relationship',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), (368,47,'Participants','civicrm_participant','Participant',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), (369,47,'Contributions','civicrm_contribution','Contribution',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (370,48,'USD ($)','USD','USD',NULL,0,1,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (371,48,'CAD ($)','CAD','CAD',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (372,48,'EUR (€)','EUR','EUR',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (373,48,'GBP (£)','GBP','GBP',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (374,48,'JPY (Â¥)','JPY','JPY',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (375,49,'Name Only','1','CRM_Event_Badge_Simple',NULL,0,0,1,'Simple Event Name Badge',0,1,1,NULL,NULL,NULL,NULL,NULL), - (376,49,'Name Tent','2','CRM_Event_Badge_NameTent',NULL,0,0,2,'Name Tent',0,1,1,NULL,NULL,NULL,NULL,NULL), - (377,49,'With Logo','3','CRM_Event_Badge_Logo',NULL,0,0,3,'You can set your own background image',0,1,1,NULL,NULL,NULL,NULL,NULL), - (378,49,'5395 with Logo','4','CRM_Event_Badge_Logo5395',NULL,0,0,4,'Avery 5395 compatible labels with logo (4 up by 2, 59.2mm x 85.7mm)',0,1,1,NULL,NULL,NULL,NULL,NULL), - (379,50,'None','0','None',NULL,0,1,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (380,50,'Author Only','1','Author Only',NULL,0,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (381,51,'Direct Mail','1','Direct Mail',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (382,51,'Referral Program','2','Referral Program',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (383,51,'Constituent Engagement','3','Constituent Engagement',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (384,52,'Planned','1','Planned',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (385,52,'In Progress','2','In Progress',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (386,52,'Completed','3','Completed',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (387,52,'Cancelled','4','Cancelled',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (388,54,'Approved','1','Approved',NULL,0,1,1,NULL,0,1,1,4,1,NULL,NULL,NULL), - (389,54,'Rejected','2','Rejected',NULL,0,0,2,NULL,0,1,1,4,1,NULL,NULL,NULL), - (390,54,'None','3','None',NULL,0,0,3,NULL,0,1,1,4,1,NULL,NULL,NULL), - (391,55,'1','1','1',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (392,55,'2','2','2',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (393,55,'3','3','3',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (394,55,'4','4','4',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (395,55,'5','5','5',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (396,56,'Survey','Survey','civicrm_survey',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (397,56,'Cases','Case','civicrm_case','case_type_id',0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (398,57,'Letter','{\"metric\":\"in\",\"width\":8.5,\"height\":11}','letter',NULL,NULL,1,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (399,57,'Legal','{\"metric\":\"in\",\"width\":8.5,\"height\":14}','legal',NULL,NULL,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (400,57,'Ledger','{\"metric\":\"in\",\"width\":17,\"height\":11}','ledger',NULL,NULL,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (401,57,'Tabloid','{\"metric\":\"in\",\"width\":11,\"height\":17}','tabloid',NULL,NULL,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (402,57,'Executive','{\"metric\":\"in\",\"width\":7.25,\"height\":10.5}','executive',NULL,NULL,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (403,57,'Folio','{\"metric\":\"in\",\"width\":8.5,\"height\":13}','folio',NULL,NULL,0,6,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (404,57,'Envelope #9','{\"metric\":\"pt\",\"width\":638.93,\"height\":278.93}','envelope-9',NULL,NULL,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (405,57,'Envelope #10','{\"metric\":\"pt\",\"width\":684,\"height\":297}','envelope-10',NULL,NULL,0,8,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (406,57,'Envelope #11','{\"metric\":\"pt\",\"width\":747,\"height\":324}','envelope-11',NULL,NULL,0,9,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (407,57,'Envelope #12','{\"metric\":\"pt\",\"width\":792,\"height\":342}','envelope-12',NULL,NULL,0,10,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (408,57,'Envelope #14','{\"metric\":\"pt\",\"width\":828,\"height\":360}','envelope-14',NULL,NULL,0,11,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (409,57,'Envelope ISO B4','{\"metric\":\"pt\",\"width\":1000.63,\"height\":708.66}','envelope-b4',NULL,NULL,0,12,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (410,57,'Envelope ISO B5','{\"metric\":\"pt\",\"width\":708.66,\"height\":498.9}','envelope-b5',NULL,NULL,0,13,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (411,57,'Envelope ISO B6','{\"metric\":\"pt\",\"width\":498.9,\"height\":354.33}','envelope-b6',NULL,NULL,0,14,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (412,57,'Envelope ISO C3','{\"metric\":\"pt\",\"width\":1298.27,\"height\":918.42}','envelope-c3',NULL,NULL,0,15,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (413,57,'Envelope ISO C4','{\"metric\":\"pt\",\"width\":918.42,\"height\":649.13}','envelope-c4',NULL,NULL,0,16,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (414,57,'Envelope ISO C5','{\"metric\":\"pt\",\"width\":649.13,\"height\":459.21}','envelope-c5',NULL,NULL,0,17,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (415,57,'Envelope ISO C6','{\"metric\":\"pt\",\"width\":459.21,\"height\":323.15}','envelope-c6',NULL,NULL,0,18,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (416,57,'Envelope ISO DL','{\"metric\":\"pt\",\"width\":623.622,\"height\":311.811}','envelope-dl',NULL,NULL,0,19,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (417,57,'ISO A0','{\"metric\":\"pt\",\"width\":2383.94,\"height\":3370.39}','a0',NULL,NULL,0,20,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (418,57,'ISO A1','{\"metric\":\"pt\",\"width\":1683.78,\"height\":2383.94}','a1',NULL,NULL,0,21,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (419,57,'ISO A2','{\"metric\":\"pt\",\"width\":1190.55,\"height\":1683.78}','a2',NULL,NULL,0,22,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (420,57,'ISO A3','{\"metric\":\"pt\",\"width\":841.89,\"height\":1190.55}','a3',NULL,NULL,0,23,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (421,57,'ISO A4','{\"metric\":\"pt\",\"width\":595.28,\"height\":841.89}','a4',NULL,NULL,0,24,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (422,57,'ISO A5','{\"metric\":\"pt\",\"width\":419.53,\"height\":595.28}','a5',NULL,NULL,0,25,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (423,57,'ISO A6','{\"metric\":\"pt\",\"width\":297.64,\"height\":419.53}','a6',NULL,NULL,0,26,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (424,57,'ISO A7','{\"metric\":\"pt\",\"width\":209.76,\"height\":297.64}','a7',NULL,NULL,0,27,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (425,57,'ISO A8','{\"metric\":\"pt\",\"width\":147.4,\"height\":209.76}','a8',NULL,NULL,0,28,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (426,57,'ISO A9','{\"metric\":\"pt\",\"width\":104.88,\"height\":147.4}','a9',NULL,NULL,0,29,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (427,57,'ISO A10','{\"metric\":\"pt\",\"width\":73.7,\"height\":104.88}','a10',NULL,NULL,0,30,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (428,57,'ISO B0','{\"metric\":\"pt\",\"width\":2834.65,\"height\":4008.19}','b0',NULL,NULL,0,31,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (429,57,'ISO B1','{\"metric\":\"pt\",\"width\":2004.09,\"height\":2834.65}','b1',NULL,NULL,0,32,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (430,57,'ISO B2','{\"metric\":\"pt\",\"width\":1417.32,\"height\":2004.09}','b2',NULL,NULL,0,33,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (431,57,'ISO B3','{\"metric\":\"pt\",\"width\":1000.63,\"height\":1417.32}','b3',NULL,NULL,0,34,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (432,57,'ISO B4','{\"metric\":\"pt\",\"width\":708.66,\"height\":1000.63}','b4',NULL,NULL,0,35,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (433,57,'ISO B5','{\"metric\":\"pt\",\"width\":498.9,\"height\":708.66}','b5',NULL,NULL,0,36,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (434,57,'ISO B6','{\"metric\":\"pt\",\"width\":354.33,\"height\":498.9}','b6',NULL,NULL,0,37,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (435,57,'ISO B7','{\"metric\":\"pt\",\"width\":249.45,\"height\":354.33}','b7',NULL,NULL,0,38,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (436,57,'ISO B8','{\"metric\":\"pt\",\"width\":175.75,\"height\":249.45}','b8',NULL,NULL,0,39,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (437,57,'ISO B9','{\"metric\":\"pt\",\"width\":124.72,\"height\":175.75}','b9',NULL,NULL,0,40,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (438,57,'ISO B10','{\"metric\":\"pt\",\"width\":87.87,\"height\":124.72}','b10',NULL,NULL,0,41,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (439,57,'ISO C0','{\"metric\":\"pt\",\"width\":2599.37,\"height\":3676.54}','c0',NULL,NULL,0,42,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (440,57,'ISO C1','{\"metric\":\"pt\",\"width\":1836.85,\"height\":2599.37}','c1',NULL,NULL,0,43,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (441,57,'ISO C2','{\"metric\":\"pt\",\"width\":1298.27,\"height\":1836.85}','c2',NULL,NULL,0,44,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (442,57,'ISO C3','{\"metric\":\"pt\",\"width\":918.43,\"height\":1298.27}','c3',NULL,NULL,0,45,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (443,57,'ISO C4','{\"metric\":\"pt\",\"width\":649.13,\"height\":918.43}','c4',NULL,NULL,0,46,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (444,57,'ISO C5','{\"metric\":\"pt\",\"width\":459.21,\"height\":649.13}','c5',NULL,NULL,0,47,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (445,57,'ISO C6','{\"metric\":\"pt\",\"width\":323.15,\"height\":459.21}','c6',NULL,NULL,0,48,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (446,57,'ISO C7','{\"metric\":\"pt\",\"width\":229.61,\"height\":323.15}','c7',NULL,NULL,0,49,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (447,57,'ISO C8','{\"metric\":\"pt\",\"width\":161.57,\"height\":229.61}','c8',NULL,NULL,0,50,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (448,57,'ISO C9','{\"metric\":\"pt\",\"width\":113.39,\"height\":161.57}','c9',NULL,NULL,0,51,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (449,57,'ISO C10','{\"metric\":\"pt\",\"width\":79.37,\"height\":113.39}','c10',NULL,NULL,0,52,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (450,57,'ISO RA0','{\"metric\":\"pt\",\"width\":2437.8,\"height\":3458.27}','ra0',NULL,NULL,0,53,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (451,57,'ISO RA1','{\"metric\":\"pt\",\"width\":1729.13,\"height\":2437.8}','ra1',NULL,NULL,0,54,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (452,57,'ISO RA2','{\"metric\":\"pt\",\"width\":1218.9,\"height\":1729.13}','ra2',NULL,NULL,0,55,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (453,57,'ISO RA3','{\"metric\":\"pt\",\"width\":864.57,\"height\":1218.9}','ra3',NULL,NULL,0,56,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (454,57,'ISO RA4','{\"metric\":\"pt\",\"width\":609.45,\"height\":864.57}','ra4',NULL,NULL,0,57,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (455,57,'ISO SRA0','{\"metric\":\"pt\",\"width\":2551.18,\"height\":3628.35}','sra0',NULL,NULL,0,58,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (456,57,'ISO SRA1','{\"metric\":\"pt\",\"width\":1814.17,\"height\":2551.18}','sra1',NULL,NULL,0,59,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (457,57,'ISO SRA2','{\"metric\":\"pt\",\"width\":1275.59,\"height\":1814.17}','sra2',NULL,NULL,0,60,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (458,57,'ISO SRA3','{\"metric\":\"pt\",\"width\":907.09,\"height\":1275.59}','sra3',NULL,NULL,0,61,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (459,57,'ISO SRA4','{\"metric\":\"pt\",\"width\":637.8,\"height\":907.09}','sra4',NULL,NULL,0,62,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (460,58,'Invoice PDF Format','{\"metric\":\"px\",\"margin_top\":10,\"margin_bottom\":0,\"margin_left\":65,\"margin_right\":0}','default_invoice_pdf_format',NULL,0,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (461,59,'Avery 3475','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":10,\"font-style\":\"\",\"metric\":\"mm\",\"lMargin\":0,\"tMargin\":5,\"NX\":3,\"NY\":8,\"SpaceX\":0,\"SpaceY\":0,\"width\":70,\"height\":36,\"lPadding\":5.08,\"tPadding\":5.08}','3475','Avery',NULL,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (462,59,'Avery 5160','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":8,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.21975,\"tMargin\":0.5,\"NX\":3,\"NY\":10,\"SpaceX\":0.14,\"SpaceY\":0,\"width\":2.5935,\"height\":1,\"lPadding\":0.20,\"tPadding\":0.20}','5160','Avery',NULL,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (463,59,'Avery 5161','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":8,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.175,\"tMargin\":0.5,\"NX\":2,\"NY\":10,\"SpaceX\":0.15625,\"SpaceY\":0,\"width\":4,\"height\":1,\"lPadding\":0.20,\"tPadding\":0.20}','5161','Avery',NULL,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (464,59,'Avery 5162','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":8,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.1525,\"tMargin\":0.88,\"NX\":2,\"NY\":7,\"SpaceX\":0.195,\"SpaceY\":0,\"width\":4,\"height\":1.33,\"lPadding\":0.20,\"tPadding\":0.20}','5162','Avery',NULL,0,4,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (465,59,'Avery 5163','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":8,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.18,\"tMargin\":0.5,\"NX\":2,\"NY\":5,\"SpaceX\":0.14,\"SpaceY\":0,\"width\":4,\"height\":2,\"lPadding\":0.20,\"tPadding\":0.20}','5163','Avery',NULL,0,5,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (466,59,'Avery 5164','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":12,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.156,\"tMargin\":0.5,\"NX\":2,\"NY\":3,\"SpaceX\":0.1875,\"SpaceY\":0,\"width\":4,\"height\":3.33,\"lPadding\":0.20,\"tPadding\":0.20}','5164','Avery',NULL,0,6,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (467,59,'Avery 8600','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":8,\"font-style\":\"\",\"metric\":\"mm\",\"lMargin\":7.1,\"tMargin\":19,\"NX\":3,\"NY\":10,\"SpaceX\":9.5,\"SpaceY\":3.1,\"width\":66.6,\"height\":25.4,\"lPadding\":5.08,\"tPadding\":5.08}','8600','Avery',NULL,0,7,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (468,59,'Avery L7160','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":9,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.28,\"tMargin\":0.6,\"NX\":3,\"NY\":7,\"SpaceX\":0.1,\"SpaceY\":0,\"width\":2.5,\"height\":1.5,\"lPadding\":0.20,\"tPadding\":0.20}','L7160','Avery',NULL,0,8,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (469,59,'Avery L7161','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":9,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.28,\"tMargin\":0.35,\"NX\":3,\"NY\":6,\"SpaceX\":0.1,\"SpaceY\":0,\"width\":2.5,\"height\":1.83,\"lPadding\":0.20,\"tPadding\":0.20}','L7161','Avery',NULL,0,9,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (470,59,'Avery L7162','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":9,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.18,\"tMargin\":0.51,\"NX\":2,\"NY\":8,\"SpaceX\":0.1,\"SpaceY\":0,\"width\":3.9,\"height\":1.33,\"lPadding\":0.20,\"tPadding\":0.20}','L7162','Avery',NULL,0,10,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (471,59,'Avery L7163','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":9,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.18,\"tMargin\":0.6,\"NX\":2,\"NY\":7,\"SpaceX\":0.1,\"SpaceY\":0,\"width\":3.9,\"height\":1.5,\"lPadding\":0.20,\"tPadding\":0.20}','L7163','Avery',NULL,0,11,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (472,60,'Activity Assignees','1','Activity Assignees',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (473,60,'Activity Source','2','Activity Source',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (474,60,'Activity Targets','3','Activity Targets',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (475,61,'Income Account is','1','Income Account is',NULL,0,1,1,'Income Account is',0,1,1,2,NULL,NULL,NULL,NULL), - (476,61,'Credit/Contra Revenue Account is','2','Credit/Contra Revenue Account is',NULL,0,0,2,'Credit/Contra Revenue Account is',0,1,1,2,NULL,NULL,NULL,NULL), - (477,61,'Accounts Receivable Account is','3','Accounts Receivable Account is',NULL,0,0,3,'Accounts Receivable Account is',0,1,1,2,NULL,NULL,NULL,NULL), - (478,61,'Credit Liability Account is','4','Credit Liability Account is',NULL,0,0,4,'Credit Liability Account is',0,1,0,2,NULL,NULL,NULL,NULL), - (479,61,'Expense Account is','5','Expense Account is',NULL,0,0,5,'Expense Account is',0,1,1,2,NULL,NULL,NULL,NULL), - (480,61,'Asset Account is','6','Asset Account is',NULL,0,0,6,'Asset Account is',0,1,1,2,NULL,NULL,NULL,NULL), - (481,61,'Cost of Sales Account is','7','Cost of Sales Account is',NULL,0,0,7,'Cost of Sales Account is',0,1,1,2,NULL,NULL,NULL,NULL), - (482,61,'Premiums Inventory Account is','8','Premiums Inventory Account is',NULL,0,0,8,'Premiums Inventory Account is',0,1,1,2,NULL,NULL,NULL,NULL), - (483,61,'Discounts Account is','9','Discounts Account is',NULL,0,0,9,'Discounts Account is',0,1,1,2,NULL,NULL,NULL,NULL), - (484,61,'Sales Tax Account is','10','Sales Tax Account is',NULL,0,0,10,'Sales Tax Account is',0,1,1,2,NULL,NULL,NULL,NULL), - (485,61,'Chargeback Account is','11','Chargeback Account is',NULL,0,0,11,'Chargeback Account is',0,1,1,2,NULL,NULL,NULL,NULL), - (486,61,'Deferred Revenue Account is','12','Deferred Revenue Account is',NULL,0,0,12,'Deferred Revenue Account is',0,1,1,2,NULL,NULL,NULL,NULL), - (487,62,'Participant Role','1','participant_role',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (488,63,'Morning Sessions','1','Morning Sessions',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (489,63,'Evening Sessions','2','Evening Sessions',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (490,64,'Contribution','1','Contribution',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (491,64,'Membership','2','Membership',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (492,64,'Pledge Payment','3','Pledge Payment',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (493,65,'Manual Batch','1','Manual Batch',NULL,0,0,1,'Manual Batch',0,1,1,2,NULL,NULL,NULL,NULL), - (494,65,'Automatic Batch','2','Automatic Batch',NULL,0,0,2,'Automatic Batch',0,1,1,2,NULL,NULL,NULL,NULL), - (495,66,'Open','1','Open',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (496,66,'Closed','2','Closed',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (497,66,'Data Entry','3','Data Entry',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (498,66,'Reopened','4','Reopened',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (499,66,'Exported','5','Exported',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (500,67,'http','1','http',NULL,NULL,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (501,67,'xml','2','xml',NULL,NULL,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (502,67,'smtp','3','smtp',NULL,NULL,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (503,69,'Renewal Reminder (non-auto-renew memberships only)','1','Renewal Reminder (non-auto-renew memberships only)',NULL,0,NULL,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (504,69,'Auto-renew Memberships Only','2','Auto-renew Memberships Only',NULL,0,NULL,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (505,69,'Reminder for Both','3','Reminder for Both',NULL,0,NULL,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (506,70,'Asset','1','Asset',NULL,0,0,1,'Things you own',0,1,1,2,NULL,NULL,NULL,NULL), - (507,70,'Liability','2','Liability',NULL,0,0,2,'Things you owe, like a grant still to be disbursed',0,1,1,2,NULL,NULL,NULL,NULL), - (508,70,'Revenue','3','Revenue',NULL,0,1,3,'Income from contributions and sales of tickets and memberships',0,1,1,2,NULL,NULL,NULL,NULL), - (509,70,'Cost of Sales','4','Cost of Sales',NULL,0,0,4,'Costs incurred to get revenue, e.g. premiums for donations, dinner for a fundraising dinner ticket',0,1,1,2,NULL,NULL,NULL,NULL), - (510,70,'Expenses','5','Expenses',NULL,0,0,5,'Things that are paid for that are consumable, e.g. grants disbursed',0,1,1,2,NULL,NULL,NULL,NULL), - (511,71,'Paid','1','Paid',NULL,0,0,1,'Paid',0,1,1,2,NULL,NULL,NULL,NULL), - (512,71,'Unpaid','3','Unpaid',NULL,0,0,1,'Unpaid',0,1,1,2,NULL,NULL,NULL,NULL), - (513,71,'Partially paid','2','Partially paid',NULL,0,0,2,'Partially paid',0,1,1,2,NULL,NULL,NULL,NULL), - (514,72,'Event Badge','1','Event Badge',NULL,0,NULL,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (515,73,'Avery 5395','{\"name\":\"Avery 5395\",\"paper-size\":\"a4\",\"metric\":\"mm\",\"lMargin\":15,\"tMargin\":26,\"NX\":2,\"NY\":4,\"SpaceX\":10,\"SpaceY\":5,\"width\":83,\"height\":57,\"font-size\":12,\"orientation\":\"portrait\",\"font-name\":\"helvetica\",\"font-style\":\"\",\"lPadding\":3,\"tPadding\":3}','Avery 5395',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (516,73,'A6 Badge Portrait 150x106','{\"paper-size\":\"a4\",\"orientation\":\"landscape\",\"font-name\":\"times\",\"font-size\":6,\"font-style\":\"\",\"NX\":2,\"NY\":1,\"metric\":\"mm\",\"lMargin\":25,\"tMargin\":27,\"SpaceX\":0,\"SpaceY\":35,\"width\":106,\"height\":150,\"lPadding\":5,\"tPadding\":5}','A6 Badge Portrait 150x106',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (517,73,'Fattorini Name Badge 100x65','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"times\",\"font-size\":6,\"font-style\":\"\",\"NX\":2,\"NY\":4,\"metric\":\"mm\",\"lMargin\":6,\"tMargin\":19,\"SpaceX\":0,\"SpaceY\":0,\"width\":100,\"height\":65,\"lPadding\":0,\"tPadding\":0}','Fattorini Name Badge 100x65',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (518,73,'Hanging Badge 3-3/4\" x 4-3\"/4','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"times\",\"font-size\":6,\"font-style\":\"\",\"NX\":2,\"NY\":2,\"metric\":\"mm\",\"lMargin\":10,\"tMargin\":28,\"SpaceX\":0,\"SpaceY\":0,\"width\":96,\"height\":121,\"lPadding\":5,\"tPadding\":5}','Hanging Badge 3-3/4\" x 4-3\"/4',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (519,74,'Formal','1','formal',NULL,0,1,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (520,74,'Familiar','2','familiar',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (521,75,'Email','Email','Email',NULL,0,1,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (522,75,'SMS','SMS','SMS',NULL,0,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (523,75,'User Preference','User_Preference','User Preference',NULL,0,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (524,76,'Actual date only','1','Actual date only',NULL,NULL,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (525,76,'Each anniversary','2','Each anniversary',NULL,NULL,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (526,77,'Default','1','default',NULL,NULL,1,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (527,77,'CiviMail','2','civimail',NULL,NULL,0,2,NULL,0,1,1,4,NULL,NULL,NULL,NULL), - (528,77,'CiviEvent','3','civievent',NULL,NULL,0,3,NULL,0,1,1,1,NULL,NULL,NULL,NULL), - (529,78,'Today','this.day','this.day',NULL,NULL,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (530,78,'This week','this.week','this.week',NULL,NULL,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (531,78,'This calendar month','this.month','this.month',NULL,NULL,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (532,78,'This quarter','this.quarter','this.quarter',NULL,NULL,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (533,78,'This fiscal year','this.fiscal_year','this.fiscal_year',NULL,NULL,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (534,78,'This calendar year','this.year','this.year',NULL,NULL,0,6,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (535,78,'Yesterday','previous.day','previous.day',NULL,NULL,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (536,78,'Previous week','previous.week','previous.week',NULL,NULL,0,8,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (537,78,'Previous calendar month','previous.month','previous.month',NULL,NULL,0,9,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (538,78,'Previous quarter','previous.quarter','previous.quarter',NULL,NULL,0,10,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (539,78,'Previous fiscal year','previous.fiscal_year','previous.fiscal_year',NULL,NULL,0,11,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (540,78,'Previous calendar year','previous.year','previous.year',NULL,NULL,0,12,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (541,78,'Last 7 days including today','ending.week','ending.week',NULL,NULL,0,13,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (542,78,'Last 30 days including today','ending_30.day','ending.month',NULL,NULL,0,14,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (543,78,'Last 60 days including today','ending_60.day','ending_2.month',NULL,NULL,0,15,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (544,78,'Last 90 days including today','ending_90.day','ending.quarter',NULL,NULL,0,16,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (545,78,'Last 12 months including today','ending.year','ending.year',NULL,NULL,0,17,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (546,78,'Last 2 years including today','ending_2.year','ending_2.year',NULL,NULL,0,18,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (547,78,'Last 3 years including today','ending_3.year','ending_3.year',NULL,NULL,0,19,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (548,78,'Tomorrow','starting.day','starting.day',NULL,NULL,0,20,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (549,78,'Next week','next.week','next.week',NULL,NULL,0,21,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (550,78,'Next calendar month','next.month','next.month',NULL,NULL,0,22,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (551,78,'Next quarter','next.quarter','next.quarter',NULL,NULL,0,23,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (552,78,'Next fiscal year','next.fiscal_year','next.fiscal_year',NULL,NULL,0,24,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (553,78,'Next calendar year','next.year','next.year',NULL,NULL,0,25,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (554,78,'Next 7 days including today','starting.week','starting.week',NULL,NULL,0,26,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (555,78,'Next 30 days including today','starting.month','starting.month',NULL,NULL,0,27,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (556,78,'Next 60 days including today','starting_2.month','starting_2.month',NULL,NULL,0,28,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (557,78,'Next 90 days including today','starting.quarter','starting.quarter',NULL,NULL,0,29,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (558,78,'Next 12 months including today','starting.year','starting.year',NULL,NULL,0,30,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (559,78,'Current week to-date','current.week','current.week',NULL,NULL,0,31,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (560,78,'Current calendar month to-date','current.month','current.month',NULL,NULL,0,32,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (561,78,'Current quarter to-date','current.quarter','current.quarter',NULL,NULL,0,33,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (562,78,'Current calendar year to-date','current.year','current.year',NULL,NULL,0,34,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (563,78,'To end of yesterday','earlier.day','earlier.day',NULL,NULL,0,35,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (564,78,'To end of previous week','earlier.week','earlier.week',NULL,NULL,0,36,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (565,78,'To end of previous calendar month','earlier.month','earlier.month',NULL,NULL,0,37,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (566,78,'To end of previous quarter','earlier.quarter','earlier.quarter',NULL,NULL,0,38,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (567,78,'To end of previous calendar year','earlier.year','earlier.year',NULL,NULL,0,39,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (568,78,'From start of current day','greater.day','greater.day',NULL,NULL,0,40,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (569,78,'From start of current week','greater.week','greater.week',NULL,NULL,0,41,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (570,78,'From start of current calendar month','greater.month','greater.month',NULL,NULL,0,42,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (571,78,'From start of current quarter','greater.quarter','greater.quarter',NULL,NULL,0,43,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (572,78,'From start of current calendar year','greater.year','greater.year',NULL,NULL,0,44,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (573,78,'To end of current week','less.week','less.week',NULL,NULL,0,45,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (574,78,'To end of current calendar month','less.month','less.month',NULL,NULL,0,46,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (575,78,'To end of current quarter','less.quarter','less.quarter',NULL,NULL,0,47,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (576,78,'To end of current calendar year','less.year','less.year',NULL,NULL,0,48,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (577,78,'Previous 2 days','previous_2.day','previous_2.day',NULL,NULL,0,49,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (578,78,'Previous 2 weeks','previous_2.week','previous_2.week',NULL,NULL,0,50,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (579,78,'Previous 2 calendar months','previous_2.month','previous_2.month',NULL,NULL,0,51,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (580,78,'Previous 2 quarters','previous_2.quarter','previous_2.quarter',NULL,NULL,0,52,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (581,78,'Previous 2 calendar years','previous_2.year','previous_2.year',NULL,NULL,0,53,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (582,78,'Previous 2 fiscal years','previous_2.fiscal_year','previous_2.fiscal_year',NULL,NULL,0,54,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (583,78,'Day prior to yesterday','previous_before.day','previous_before.day',NULL,NULL,0,55,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (584,78,'Week prior to previous week','previous_before.week','previous_before.week',NULL,NULL,0,56,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (585,78,'Month prior to previous calendar month','previous_before.month','previous_before.month',NULL,NULL,NULL,57,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (586,78,'Quarter prior to previous quarter','previous_before.quarter','previous_before.quarter',NULL,NULL,0,58,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (587,78,'Year prior to previous calendar year','previous_before.year','previous_before.year',NULL,NULL,0,59,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (588,78,'Fiscal year prior to previous fiscal year','previous_before.fiscal_year','previous_before.fiscal_year',NULL,NULL,0,60,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (589,78,'From end of previous week','greater_previous.week','greater_previous.week',NULL,NULL,0,61,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (590,78,'From end of previous calendar month','greater_previous.month','greater_previous.month',NULL,NULL,0,62,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (591,78,'From end of previous quarter','greater_previous.quarter','greater_previous.quarter',NULL,NULL,0,63,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (592,78,'From end of previous calendar year','greater_previous.year','greater_previous.year',NULL,NULL,0,64,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (593,79,'Completed','1','Completed',NULL,0,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (594,79,'Pending','2','Pending',NULL,0,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (595,79,'Cancelled','3','Cancelled',NULL,0,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (596,79,'In Progress','5','In Progress',NULL,0,0,4,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (597,79,'Overdue','6','Overdue',NULL,0,0,5,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (598,80,'Completed','1','Completed',NULL,0,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (599,80,'Pending','2','Pending',NULL,0,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (600,80,'Cancelled','3','Cancelled',NULL,0,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (601,80,'Failed','4','Failed',NULL,0,0,4,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (602,80,'In Progress','5','In Progress',NULL,0,0,5,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (603,80,'Overdue','6','Overdue',NULL,0,0,6,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (604,80,'Processing','7','Processing',NULL,0,0,7,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (605,80,'Failing','8','Failing',NULL,0,0,8,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (606,81,'Production','Production','Production',NULL,NULL,1,1,'Production Environment',0,1,1,NULL,NULL,NULL,NULL,NULL), - (607,81,'Staging','Staging','Staging',NULL,NULL,0,2,'Staging Environment',0,1,1,NULL,NULL,NULL,NULL,NULL), - (608,81,'Development','Development','Development',NULL,NULL,0,3,'Development Environment',0,1,1,NULL,NULL,NULL,NULL,NULL), - (609,82,'None','1','NONE',NULL,0,1,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (610,82,'By relationship to case client','2','BY_RELATIONSHIP',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (611,82,'Specific contact','3','SPECIFIC_CONTACT',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (612,82,'User creating the case','4','USER_CREATING_THE_CASE',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (613,83,'Financial Transactions','civicrm_financial_trxn','civicrm_financial_trxn',NULL,0,1,1,NULL,0,0,1,2,NULL,NULL,NULL,NULL), - (614,85,'Abkhaz','ab','ab_GE',NULL,0,0,1,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (615,85,'Afar','aa','aa_ET',NULL,0,0,2,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (616,85,'Afrikaans','af','af_ZA',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (617,85,'Akan','ak','ak_GH',NULL,0,0,4,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (618,85,'Albanian','sq','sq_AL',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (619,85,'Amharic','am','am_ET',NULL,0,0,6,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (620,85,'Arabic','ar','ar_EG',NULL,0,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (621,85,'Aragonese','an','an_ES',NULL,0,0,8,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (622,85,'Armenian','hy','hy_AM',NULL,0,0,9,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (623,85,'Assamese','as','as_IN',NULL,0,0,10,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (624,85,'Avaric','av','av_RU',NULL,0,0,11,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (625,85,'Avestan','ae','ae_XX',NULL,0,0,12,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (626,85,'Aymara','ay','ay_BO',NULL,0,0,13,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (627,85,'Azerbaijani','az','az_AZ',NULL,0,0,14,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (628,85,'Bambara','bm','bm_ML',NULL,0,0,15,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (629,85,'Bashkir','ba','ba_RU',NULL,0,0,16,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (630,85,'Basque','eu','eu_ES',NULL,0,0,17,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (631,85,'Belarusian','be','be_BY',NULL,0,0,18,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (632,85,'Bengali','bn','bn_BD',NULL,0,0,19,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (633,85,'Bihari','bh','bh_IN',NULL,0,0,20,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (634,85,'Bislama','bi','bi_VU',NULL,0,0,21,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (635,85,'Bosnian','bs','bs_BA',NULL,0,0,22,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (636,85,'Breton','br','br_FR',NULL,0,0,23,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (637,85,'Bulgarian','bg','bg_BG',NULL,0,0,24,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (638,85,'Burmese','my','my_MM',NULL,0,0,25,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (639,85,'Catalan; Valencian','ca','ca_ES',NULL,0,0,26,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (640,85,'Chamorro','ch','ch_GU',NULL,0,0,27,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (641,85,'Chechen','ce','ce_RU',NULL,0,0,28,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (642,85,'Chichewa; Chewa; Nyanja','ny','ny_MW',NULL,0,0,29,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (643,85,'Chinese (China)','zh','zh_CN',NULL,0,0,30,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (644,85,'Chinese (Taiwan)','zh','zh_TW',NULL,0,0,31,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (645,85,'Chuvash','cv','cv_RU',NULL,0,0,32,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (646,85,'Cornish','kw','kw_GB',NULL,0,0,33,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (647,85,'Corsican','co','co_FR',NULL,0,0,34,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (648,85,'Cree','cr','cr_CA',NULL,0,0,35,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (649,85,'Croatian','hr','hr_HR',NULL,0,0,36,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (650,85,'Czech','cs','cs_CZ',NULL,0,0,37,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (651,85,'Danish','da','da_DK',NULL,0,0,38,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (652,85,'Divehi; Dhivehi; Maldivian;','dv','dv_MV',NULL,0,0,39,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (653,85,'Dutch (Netherlands)','nl','nl_NL',NULL,0,0,40,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (654,85,'Dutch (Belgium)','nl','nl_BE',NULL,0,0,41,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (655,85,'Dzongkha','dz','dz_BT',NULL,0,0,42,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (656,85,'English (Australia)','en','en_AU',NULL,0,0,43,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (657,85,'English (Canada)','en','en_CA',NULL,0,0,44,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (658,85,'English (United Kingdom)','en','en_GB',NULL,0,0,45,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (659,85,'English (United States)','en','en_US',NULL,0,1,46,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (660,85,'Esperanto','eo','eo_XX',NULL,0,0,47,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (661,85,'Estonian','et','et_EE',NULL,0,0,48,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (662,85,'Ewe','ee','ee_GH',NULL,0,0,49,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (663,85,'Faroese','fo','fo_FO',NULL,0,0,50,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (664,85,'Fijian','fj','fj_FJ',NULL,0,0,51,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (665,85,'Finnish','fi','fi_FI',NULL,0,0,52,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (666,85,'French (Canada)','fr','fr_CA',NULL,0,0,53,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (667,85,'French (France)','fr','fr_FR',NULL,0,0,54,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (668,85,'Fula; Fulah; Pulaar; Pular','ff','ff_SN',NULL,0,0,55,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (669,85,'Galician','gl','gl_ES',NULL,0,0,56,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (670,85,'Georgian','ka','ka_GE',NULL,0,0,57,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (671,85,'German','de','de_DE',NULL,0,0,58,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (672,85,'German (Swiss)','de','de_CH',NULL,0,0,59,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (673,85,'Greek, Modern','el','el_GR',NULL,0,0,60,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (674,85,'GuaraniÂ','gn','gn_PY',NULL,0,0,61,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (675,85,'Gujarati','gu','gu_IN',NULL,0,0,62,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (676,85,'Haitian; Haitian Creole','ht','ht_HT',NULL,0,0,63,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (677,85,'Hausa','ha','ha_NG',NULL,0,0,64,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (678,85,'Hebrew (modern)','he','he_IL',NULL,0,0,65,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (679,85,'Herero','hz','hz_NA',NULL,0,0,66,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (680,85,'Hindi','hi','hi_IN',NULL,0,0,67,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (681,85,'Hiri Motu','ho','ho_PG',NULL,0,0,68,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (682,85,'Hungarian','hu','hu_HU',NULL,0,0,69,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (683,85,'Interlingua','ia','ia_XX',NULL,0,0,70,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (684,85,'Indonesian','id','id_ID',NULL,0,0,71,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (685,85,'Interlingue','ie','ie_XX',NULL,0,0,72,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (686,85,'Irish','ga','ga_IE',NULL,0,0,73,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (687,85,'Igbo','ig','ig_NG',NULL,0,0,74,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (688,85,'Inupiaq','ik','ik_US',NULL,0,0,75,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (689,85,'Ido','io','io_XX',NULL,0,0,76,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (690,85,'Icelandic','is','is_IS',NULL,0,0,77,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (691,85,'Italian','it','it_IT',NULL,0,0,78,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (692,85,'Inuktitut','iu','iu_CA',NULL,0,0,79,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (693,85,'Japanese','ja','ja_JP',NULL,0,0,80,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (694,85,'Javanese','jv','jv_ID',NULL,0,0,81,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (695,85,'Kalaallisut, Greenlandic','kl','kl_GL',NULL,0,0,82,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (696,85,'Kannada','kn','kn_IN',NULL,0,0,83,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (697,85,'Kanuri','kr','kr_NE',NULL,0,0,84,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (698,85,'Kashmiri','ks','ks_IN',NULL,0,0,85,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (699,85,'Kazakh','kk','kk_KZ',NULL,0,0,86,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (700,85,'Khmer','km','km_KH',NULL,0,0,87,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (701,85,'Kikuyu, Gikuyu','ki','ki_KE',NULL,0,0,88,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (702,85,'Kinyarwanda','rw','rw_RW',NULL,0,0,89,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (703,85,'Kirghiz, Kyrgyz','ky','ky_KG',NULL,0,0,90,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (704,85,'Komi','kv','kv_RU',NULL,0,0,91,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (705,85,'Kongo','kg','kg_CD',NULL,0,0,92,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (706,85,'Korean','ko','ko_KR',NULL,0,0,93,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (707,85,'Kurdish','ku','ku_IQ',NULL,0,0,94,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (708,85,'Kwanyama, Kuanyama','kj','kj_NA',NULL,0,0,95,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (709,85,'Latin','la','la_VA',NULL,0,0,96,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (710,85,'Luxembourgish, Letzeburgesch','lb','lb_LU',NULL,0,0,97,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (711,85,'Luganda','lg','lg_UG',NULL,0,0,98,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (712,85,'Limburgish, Limburgan, Limburger','li','li_NL',NULL,0,0,99,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (713,85,'Lingala','ln','ln_CD',NULL,0,0,100,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (714,85,'Lao','lo','lo_LA',NULL,0,0,101,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (715,85,'Lithuanian','lt','lt_LT',NULL,0,0,102,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (716,85,'Luba-Katanga','lu','lu_CD',NULL,0,0,103,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (717,85,'Latvian','lv','lv_LV',NULL,0,0,104,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (718,85,'Manx','gv','gv_IM',NULL,0,0,105,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (719,85,'Macedonian','mk','mk_MK',NULL,0,0,106,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (720,85,'Malagasy','mg','mg_MG',NULL,0,0,107,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (721,85,'Malay','ms','ms_MY',NULL,0,0,108,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (722,85,'Malayalam','ml','ml_IN',NULL,0,0,109,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (723,85,'Maltese','mt','mt_MT',NULL,0,0,110,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (724,85,'MÄori','mi','mi_NZ',NULL,0,0,111,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (725,85,'Marathi','mr','mr_IN',NULL,0,0,112,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (726,85,'Marshallese','mh','mh_MH',NULL,0,0,113,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (727,85,'Mongolian','mn','mn_MN',NULL,0,0,114,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (728,85,'Nauru','na','na_NR',NULL,0,0,115,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (729,85,'Navajo, Navaho','nv','nv_US',NULL,0,0,116,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (730,85,'Norwegian BokmÃ¥l','nb','nb_NO',NULL,0,0,117,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (731,85,'North Ndebele','nd','nd_ZW',NULL,0,0,118,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (732,85,'Nepali','ne','ne_NP',NULL,0,0,119,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (733,85,'Ndonga','ng','ng_NA',NULL,0,0,120,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (734,85,'Norwegian Nynorsk','nn','nn_NO',NULL,0,0,121,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (735,85,'Norwegian','no','no_NO',NULL,0,0,122,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (736,85,'Nuosu','ii','ii_CN',NULL,0,0,123,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (737,85,'South Ndebele','nr','nr_ZA',NULL,0,0,124,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (738,85,'Occitan (after 1500)','oc','oc_FR',NULL,0,0,125,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (739,85,'Ojibwa','oj','oj_CA',NULL,0,0,126,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (740,85,'Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic','cu','cu_BG',NULL,0,0,127,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (741,85,'Oromo','om','om_ET',NULL,0,0,128,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (742,85,'Oriya','or','or_IN',NULL,0,0,129,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (743,85,'Ossetian, Ossetic','os','os_GE',NULL,0,0,130,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (744,85,'Panjabi, Punjabi','pa','pa_IN',NULL,0,0,131,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (745,85,'Pali','pi','pi_KH',NULL,0,0,132,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (746,85,'Persian (Iran)','fa','fa_IR',NULL,0,0,133,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (747,85,'Polish','pl','pl_PL',NULL,0,0,134,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (748,85,'Pashto, Pushto','ps','ps_AF',NULL,0,0,135,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (749,85,'Portuguese (Brazil)','pt','pt_BR',NULL,0,0,136,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (750,85,'Portuguese (Portugal)','pt','pt_PT',NULL,0,0,137,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (751,85,'Quechua','qu','qu_PE',NULL,0,0,138,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (752,85,'Romansh','rm','rm_CH',NULL,0,0,139,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (753,85,'Kirundi','rn','rn_BI',NULL,0,0,140,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (754,85,'Romanian, Moldavian, Moldovan','ro','ro_RO',NULL,0,0,141,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (755,85,'Russian','ru','ru_RU',NULL,0,0,142,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (756,85,'Sanskrit','sa','sa_IN',NULL,0,0,143,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (757,85,'Sardinian','sc','sc_IT',NULL,0,0,144,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (758,85,'Sindhi','sd','sd_IN',NULL,0,0,145,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (759,85,'Northern Sami','se','se_NO',NULL,0,0,146,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (760,85,'Samoan','sm','sm_WS',NULL,0,0,147,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (761,85,'Sango','sg','sg_CF',NULL,0,0,148,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (762,85,'Serbian','sr','sr_RS',NULL,0,0,149,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (763,85,'Scottish Gaelic; Gaelic','gd','gd_GB',NULL,0,0,150,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (764,85,'Shona','sn','sn_ZW',NULL,0,0,151,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (765,85,'Sinhala, Sinhalese','si','si_LK',NULL,0,0,152,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (766,85,'Slovak','sk','sk_SK',NULL,0,0,153,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (767,85,'Slovene','sl','sl_SI',NULL,0,0,154,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (768,85,'Somali','so','so_SO',NULL,0,0,155,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (769,85,'Southern Sotho','st','st_ZA',NULL,0,0,156,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (770,85,'Spanish; Castilian (Spain)','es','es_ES',NULL,0,0,157,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (771,85,'Spanish; Castilian (Mexico)','es','es_MX',NULL,0,0,158,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (772,85,'Spanish; Castilian (Puerto Rico)','es','es_PR',NULL,0,0,159,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (773,85,'Sundanese','su','su_ID',NULL,0,0,160,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (774,85,'Swahili','sw','sw_TZ',NULL,0,0,161,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (775,85,'Swati','ss','ss_ZA',NULL,0,0,162,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (776,85,'Swedish','sv','sv_SE',NULL,0,0,163,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (777,85,'Tamil','ta','ta_IN',NULL,0,0,164,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (778,85,'Telugu','te','te_IN',NULL,0,0,165,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (779,85,'Tajik','tg','tg_TJ',NULL,0,0,166,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (780,85,'Thai','th','th_TH',NULL,0,0,167,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (781,85,'Tigrinya','ti','ti_ET',NULL,0,0,168,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (782,85,'Tibetan Standard, Tibetan, Central','bo','bo_CN',NULL,0,0,169,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (783,85,'Turkmen','tk','tk_TM',NULL,0,0,170,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (784,85,'Tagalog','tl','tl_PH',NULL,0,0,171,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (785,85,'Tswana','tn','tn_ZA',NULL,0,0,172,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (786,85,'Tonga (Tonga Islands)','to','to_TO',NULL,0,0,173,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (787,85,'Turkish','tr','tr_TR',NULL,0,0,174,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (788,85,'Tsonga','ts','ts_ZA',NULL,0,0,175,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (789,85,'Tatar','tt','tt_RU',NULL,0,0,176,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (790,85,'Twi','tw','tw_GH',NULL,0,0,177,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (791,85,'Tahitian','ty','ty_PF',NULL,0,0,178,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (792,85,'Uighur, Uyghur','ug','ug_CN',NULL,0,0,179,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (793,85,'Ukrainian','uk','uk_UA',NULL,0,0,180,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (794,85,'Urdu','ur','ur_PK',NULL,0,0,181,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (795,85,'Uzbek','uz','uz_UZ',NULL,0,0,182,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (796,85,'Venda','ve','ve_ZA',NULL,0,0,183,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (797,85,'Vietnamese','vi','vi_VN',NULL,0,0,184,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (798,85,'Volapük','vo','vo_XX',NULL,0,0,185,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (799,85,'Walloon','wa','wa_BE',NULL,0,0,186,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (800,85,'Welsh','cy','cy_GB',NULL,0,0,187,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (801,85,'Wolof','wo','wo_SN',NULL,0,0,188,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (802,85,'Western Frisian','fy','fy_NL',NULL,0,0,189,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (803,85,'Xhosa','xh','xh_ZA',NULL,0,0,190,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (804,85,'Yiddish','yi','yi_US',NULL,0,0,191,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (805,85,'Yoruba','yo','yo_NG',NULL,0,0,192,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (806,85,'Zhuang, Chuang','za','za_CN',NULL,0,0,193,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (807,85,'Zulu','zu','zu_ZA',NULL,0,0,194,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), - (808,86,'In Person','1','in_person',NULL,0,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (809,86,'Phone','2','phone',NULL,0,1,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (810,86,'Email','3','email',NULL,0,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (811,86,'Fax','4','fax',NULL,0,0,4,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (812,86,'Letter Mail','5','letter_mail',NULL,0,0,5,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (813,87,'Cases - Send Copy of an Activity','1','case_activity',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (814,88,'Contributions - Duplicate Organization Alert','1','contribution_dupalert',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (815,88,'Contributions - Receipt (off-line)','2','contribution_offline_receipt',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (816,88,'Contributions - Receipt (on-line)','3','contribution_online_receipt',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (817,88,'Contributions - Invoice','4','contribution_invoice_receipt',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (818,88,'Contributions - Recurring Start and End Notification','5','contribution_recurring_notify',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (819,88,'Contributions - Recurring Cancellation Notification','6','contribution_recurring_cancelled',NULL,0,0,6,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (820,88,'Contributions - Recurring Billing Updates','7','contribution_recurring_billing',NULL,0,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (821,88,'Contributions - Recurring Updates','8','contribution_recurring_edit',NULL,0,0,8,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (822,88,'Personal Campaign Pages - Admin Notification','9','pcp_notify',NULL,0,0,9,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (823,88,'Personal Campaign Pages - Supporter Status Change Notification','10','pcp_status_change',NULL,0,0,10,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (824,88,'Personal Campaign Pages - Supporter Welcome','11','pcp_supporter_notify',NULL,0,0,11,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (825,88,'Personal Campaign Pages - Owner Notification','12','pcp_owner_notify',NULL,0,0,12,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (826,88,'Additional Payment Receipt or Refund Notification','13','payment_or_refund_notification',NULL,0,0,13,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (827,89,'Events - Registration Confirmation and Receipt (off-line)','1','event_offline_receipt',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (828,89,'Events - Registration Confirmation and Receipt (on-line)','2','event_online_receipt',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (829,89,'Events - Receipt only','3','event_registration_receipt',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (830,89,'Events - Registration Cancellation Notice','4','participant_cancelled',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (831,89,'Events - Registration Confirmation Invite','5','participant_confirm',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (832,89,'Events - Pending Registration Expiration Notice','6','participant_expired',NULL,0,0,6,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (833,89,'Events - Registration Transferred Notice','7','participant_transferred',NULL,0,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (834,90,'Tell-a-Friend Email','1','friend',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (835,91,'Memberships - Signup and Renewal Receipts (off-line)','1','membership_offline_receipt',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (836,91,'Memberships - Receipt (on-line)','2','membership_online_receipt',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (837,91,'Memberships - Auto-renew Cancellation Notification','3','membership_autorenew_cancelled',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (838,91,'Memberships - Auto-renew Billing Updates','4','membership_autorenew_billing',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (839,92,'Test-drive - Receipt Header','1','test_preview',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (840,93,'Pledges - Acknowledgement','1','pledge_acknowledge',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (841,93,'Pledges - Payment Reminder','2','pledge_reminder',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (842,94,'Profiles - Admin Notification','1','uf_notify',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (843,95,'Petition - signature added','1','petition_sign',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (844,95,'Petition - need verification','2','petition_confirmation_needed',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (845,96,'In Honor of','1','in_honor_of',NULL,0,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (846,96,'In Memory of','2','in_memory_of',NULL,0,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (847,96,'Solicited','3','solicited',NULL,0,1,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (848,96,'Household','4','household',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (849,96,'Workplace Giving','5','workplace',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (850,96,'Foundation Affiliate','6','foundation_affiliate',NULL,0,0,6,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (851,96,'3rd-party Service','7','3rd-party_service',NULL,0,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (852,96,'Donor-advised Fund','8','donor-advised_fund',NULL,0,0,8,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (853,96,'Matched Gift','9','matched_gift',NULL,0,0,9,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), - (854,96,'Personal Campaign Page','10','pcp',NULL,0,0,10,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (855,96,'Gift','11','gift',NULL,0,0,11,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), - (856,97,'Contacts','Contact','Contact',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (857,97,'Relationships','Relationship','Relationship',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (858,97,'Activities','Activity','Activity',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (859,97,'Notes','Note','Note',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (860,97,'Groups','Group','Group',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (861,97,'Cases','Case','Case',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (862,97,'Contributions','Contribution','Contribution',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (863,97,'Participants','Participant','Participant',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (864,97,'Memberships','Membership','Membership',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (865,97,'Pledges','Pledge','Pledge',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (866,97,'Events','Event','Event',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (867,97,'Campaigns','Campaign','Campaign',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), - (868,2,'Interview','56','Interview',NULL,0,NULL,56,'Conduct a phone or in person interview.',0,0,1,NULL,NULL,NULL,'fa-comment-o',NULL), - (869,8,'Advisory Board','3','Advisory Board',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL); + (370,47,'Notes','civicrm_note','Note',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (371,48,'USD ($)','USD','USD',NULL,0,1,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (372,48,'CAD ($)','CAD','CAD',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (373,48,'EUR (€)','EUR','EUR',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (374,48,'GBP (£)','GBP','GBP',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (375,48,'JPY (Â¥)','JPY','JPY',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (376,49,'Name Only','1','CRM_Event_Badge_Simple',NULL,0,0,1,'Simple Event Name Badge',0,1,1,NULL,NULL,NULL,NULL,NULL), + (377,49,'Name Tent','2','CRM_Event_Badge_NameTent',NULL,0,0,2,'Name Tent',0,1,1,NULL,NULL,NULL,NULL,NULL), + (378,49,'With Logo','3','CRM_Event_Badge_Logo',NULL,0,0,3,'You can set your own background image',0,1,1,NULL,NULL,NULL,NULL,NULL), + (379,49,'5395 with Logo','4','CRM_Event_Badge_Logo5395',NULL,0,0,4,'Avery 5395 compatible labels with logo (4 up by 2, 59.2mm x 85.7mm)',0,1,1,NULL,NULL,NULL,NULL,NULL), + (380,50,'None','0','None',NULL,0,1,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (381,50,'Author Only','1','Author Only',NULL,0,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (382,51,'Direct Mail','1','Direct Mail',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (383,51,'Referral Program','2','Referral Program',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (384,51,'Constituent Engagement','3','Constituent Engagement',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (385,52,'Planned','1','Planned',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (386,52,'In Progress','2','In Progress',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (387,52,'Completed','3','Completed',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (388,52,'Cancelled','4','Cancelled',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (389,54,'Approved','1','Approved',NULL,0,1,1,NULL,0,1,1,4,1,NULL,NULL,NULL), + (390,54,'Rejected','2','Rejected',NULL,0,0,2,NULL,0,1,1,4,1,NULL,NULL,NULL), + (391,54,'None','3','None',NULL,0,0,3,NULL,0,1,1,4,1,NULL,NULL,NULL), + (392,55,'1','1','1',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (393,55,'2','2','2',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (394,55,'3','3','3',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (395,55,'4','4','4',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (396,55,'5','5','5',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (397,56,'Survey','Survey','civicrm_survey',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (398,56,'Cases','Case','civicrm_case','case_type_id',0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (399,57,'Letter','{\"metric\":\"in\",\"width\":8.5,\"height\":11}','letter',NULL,NULL,1,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (400,57,'Legal','{\"metric\":\"in\",\"width\":8.5,\"height\":14}','legal',NULL,NULL,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (401,57,'Ledger','{\"metric\":\"in\",\"width\":17,\"height\":11}','ledger',NULL,NULL,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (402,57,'Tabloid','{\"metric\":\"in\",\"width\":11,\"height\":17}','tabloid',NULL,NULL,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (403,57,'Executive','{\"metric\":\"in\",\"width\":7.25,\"height\":10.5}','executive',NULL,NULL,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (404,57,'Folio','{\"metric\":\"in\",\"width\":8.5,\"height\":13}','folio',NULL,NULL,0,6,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (405,57,'Envelope #9','{\"metric\":\"pt\",\"width\":638.93,\"height\":278.93}','envelope-9',NULL,NULL,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (406,57,'Envelope #10','{\"metric\":\"pt\",\"width\":684,\"height\":297}','envelope-10',NULL,NULL,0,8,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (407,57,'Envelope #11','{\"metric\":\"pt\",\"width\":747,\"height\":324}','envelope-11',NULL,NULL,0,9,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (408,57,'Envelope #12','{\"metric\":\"pt\",\"width\":792,\"height\":342}','envelope-12',NULL,NULL,0,10,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (409,57,'Envelope #14','{\"metric\":\"pt\",\"width\":828,\"height\":360}','envelope-14',NULL,NULL,0,11,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (410,57,'Envelope ISO B4','{\"metric\":\"pt\",\"width\":1000.63,\"height\":708.66}','envelope-b4',NULL,NULL,0,12,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (411,57,'Envelope ISO B5','{\"metric\":\"pt\",\"width\":708.66,\"height\":498.9}','envelope-b5',NULL,NULL,0,13,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (412,57,'Envelope ISO B6','{\"metric\":\"pt\",\"width\":498.9,\"height\":354.33}','envelope-b6',NULL,NULL,0,14,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (413,57,'Envelope ISO C3','{\"metric\":\"pt\",\"width\":1298.27,\"height\":918.42}','envelope-c3',NULL,NULL,0,15,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (414,57,'Envelope ISO C4','{\"metric\":\"pt\",\"width\":918.42,\"height\":649.13}','envelope-c4',NULL,NULL,0,16,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (415,57,'Envelope ISO C5','{\"metric\":\"pt\",\"width\":649.13,\"height\":459.21}','envelope-c5',NULL,NULL,0,17,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (416,57,'Envelope ISO C6','{\"metric\":\"pt\",\"width\":459.21,\"height\":323.15}','envelope-c6',NULL,NULL,0,18,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (417,57,'Envelope ISO DL','{\"metric\":\"pt\",\"width\":623.622,\"height\":311.811}','envelope-dl',NULL,NULL,0,19,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (418,57,'ISO A0','{\"metric\":\"pt\",\"width\":2383.94,\"height\":3370.39}','a0',NULL,NULL,0,20,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (419,57,'ISO A1','{\"metric\":\"pt\",\"width\":1683.78,\"height\":2383.94}','a1',NULL,NULL,0,21,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (420,57,'ISO A2','{\"metric\":\"pt\",\"width\":1190.55,\"height\":1683.78}','a2',NULL,NULL,0,22,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (421,57,'ISO A3','{\"metric\":\"pt\",\"width\":841.89,\"height\":1190.55}','a3',NULL,NULL,0,23,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (422,57,'ISO A4','{\"metric\":\"pt\",\"width\":595.28,\"height\":841.89}','a4',NULL,NULL,0,24,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (423,57,'ISO A5','{\"metric\":\"pt\",\"width\":419.53,\"height\":595.28}','a5',NULL,NULL,0,25,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (424,57,'ISO A6','{\"metric\":\"pt\",\"width\":297.64,\"height\":419.53}','a6',NULL,NULL,0,26,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (425,57,'ISO A7','{\"metric\":\"pt\",\"width\":209.76,\"height\":297.64}','a7',NULL,NULL,0,27,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (426,57,'ISO A8','{\"metric\":\"pt\",\"width\":147.4,\"height\":209.76}','a8',NULL,NULL,0,28,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (427,57,'ISO A9','{\"metric\":\"pt\",\"width\":104.88,\"height\":147.4}','a9',NULL,NULL,0,29,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (428,57,'ISO A10','{\"metric\":\"pt\",\"width\":73.7,\"height\":104.88}','a10',NULL,NULL,0,30,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (429,57,'ISO B0','{\"metric\":\"pt\",\"width\":2834.65,\"height\":4008.19}','b0',NULL,NULL,0,31,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (430,57,'ISO B1','{\"metric\":\"pt\",\"width\":2004.09,\"height\":2834.65}','b1',NULL,NULL,0,32,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (431,57,'ISO B2','{\"metric\":\"pt\",\"width\":1417.32,\"height\":2004.09}','b2',NULL,NULL,0,33,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (432,57,'ISO B3','{\"metric\":\"pt\",\"width\":1000.63,\"height\":1417.32}','b3',NULL,NULL,0,34,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (433,57,'ISO B4','{\"metric\":\"pt\",\"width\":708.66,\"height\":1000.63}','b4',NULL,NULL,0,35,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (434,57,'ISO B5','{\"metric\":\"pt\",\"width\":498.9,\"height\":708.66}','b5',NULL,NULL,0,36,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (435,57,'ISO B6','{\"metric\":\"pt\",\"width\":354.33,\"height\":498.9}','b6',NULL,NULL,0,37,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (436,57,'ISO B7','{\"metric\":\"pt\",\"width\":249.45,\"height\":354.33}','b7',NULL,NULL,0,38,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (437,57,'ISO B8','{\"metric\":\"pt\",\"width\":175.75,\"height\":249.45}','b8',NULL,NULL,0,39,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (438,57,'ISO B9','{\"metric\":\"pt\",\"width\":124.72,\"height\":175.75}','b9',NULL,NULL,0,40,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (439,57,'ISO B10','{\"metric\":\"pt\",\"width\":87.87,\"height\":124.72}','b10',NULL,NULL,0,41,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (440,57,'ISO C0','{\"metric\":\"pt\",\"width\":2599.37,\"height\":3676.54}','c0',NULL,NULL,0,42,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (441,57,'ISO C1','{\"metric\":\"pt\",\"width\":1836.85,\"height\":2599.37}','c1',NULL,NULL,0,43,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (442,57,'ISO C2','{\"metric\":\"pt\",\"width\":1298.27,\"height\":1836.85}','c2',NULL,NULL,0,44,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (443,57,'ISO C3','{\"metric\":\"pt\",\"width\":918.43,\"height\":1298.27}','c3',NULL,NULL,0,45,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (444,57,'ISO C4','{\"metric\":\"pt\",\"width\":649.13,\"height\":918.43}','c4',NULL,NULL,0,46,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (445,57,'ISO C5','{\"metric\":\"pt\",\"width\":459.21,\"height\":649.13}','c5',NULL,NULL,0,47,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (446,57,'ISO C6','{\"metric\":\"pt\",\"width\":323.15,\"height\":459.21}','c6',NULL,NULL,0,48,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (447,57,'ISO C7','{\"metric\":\"pt\",\"width\":229.61,\"height\":323.15}','c7',NULL,NULL,0,49,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (448,57,'ISO C8','{\"metric\":\"pt\",\"width\":161.57,\"height\":229.61}','c8',NULL,NULL,0,50,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (449,57,'ISO C9','{\"metric\":\"pt\",\"width\":113.39,\"height\":161.57}','c9',NULL,NULL,0,51,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (450,57,'ISO C10','{\"metric\":\"pt\",\"width\":79.37,\"height\":113.39}','c10',NULL,NULL,0,52,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (451,57,'ISO RA0','{\"metric\":\"pt\",\"width\":2437.8,\"height\":3458.27}','ra0',NULL,NULL,0,53,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (452,57,'ISO RA1','{\"metric\":\"pt\",\"width\":1729.13,\"height\":2437.8}','ra1',NULL,NULL,0,54,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (453,57,'ISO RA2','{\"metric\":\"pt\",\"width\":1218.9,\"height\":1729.13}','ra2',NULL,NULL,0,55,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (454,57,'ISO RA3','{\"metric\":\"pt\",\"width\":864.57,\"height\":1218.9}','ra3',NULL,NULL,0,56,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (455,57,'ISO RA4','{\"metric\":\"pt\",\"width\":609.45,\"height\":864.57}','ra4',NULL,NULL,0,57,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (456,57,'ISO SRA0','{\"metric\":\"pt\",\"width\":2551.18,\"height\":3628.35}','sra0',NULL,NULL,0,58,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (457,57,'ISO SRA1','{\"metric\":\"pt\",\"width\":1814.17,\"height\":2551.18}','sra1',NULL,NULL,0,59,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (458,57,'ISO SRA2','{\"metric\":\"pt\",\"width\":1275.59,\"height\":1814.17}','sra2',NULL,NULL,0,60,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (459,57,'ISO SRA3','{\"metric\":\"pt\",\"width\":907.09,\"height\":1275.59}','sra3',NULL,NULL,0,61,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (460,57,'ISO SRA4','{\"metric\":\"pt\",\"width\":637.8,\"height\":907.09}','sra4',NULL,NULL,0,62,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (461,58,'Invoice PDF Format','{\"metric\":\"px\",\"margin_top\":10,\"margin_bottom\":0,\"margin_left\":65,\"margin_right\":0}','default_invoice_pdf_format',NULL,0,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (462,59,'Avery 3475','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":10,\"font-style\":\"\",\"metric\":\"mm\",\"lMargin\":0,\"tMargin\":5,\"NX\":3,\"NY\":8,\"SpaceX\":0,\"SpaceY\":0,\"width\":70,\"height\":36,\"lPadding\":5.08,\"tPadding\":5.08}','3475','Avery',NULL,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (463,59,'Avery 5160','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":8,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.21975,\"tMargin\":0.5,\"NX\":3,\"NY\":10,\"SpaceX\":0.14,\"SpaceY\":0,\"width\":2.5935,\"height\":1,\"lPadding\":0.20,\"tPadding\":0.20}','5160','Avery',NULL,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (464,59,'Avery 5161','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":8,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.175,\"tMargin\":0.5,\"NX\":2,\"NY\":10,\"SpaceX\":0.15625,\"SpaceY\":0,\"width\":4,\"height\":1,\"lPadding\":0.20,\"tPadding\":0.20}','5161','Avery',NULL,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (465,59,'Avery 5162','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":8,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.1525,\"tMargin\":0.88,\"NX\":2,\"NY\":7,\"SpaceX\":0.195,\"SpaceY\":0,\"width\":4,\"height\":1.33,\"lPadding\":0.20,\"tPadding\":0.20}','5162','Avery',NULL,0,4,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (466,59,'Avery 5163','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":8,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.18,\"tMargin\":0.5,\"NX\":2,\"NY\":5,\"SpaceX\":0.14,\"SpaceY\":0,\"width\":4,\"height\":2,\"lPadding\":0.20,\"tPadding\":0.20}','5163','Avery',NULL,0,5,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (467,59,'Avery 5164','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":12,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.156,\"tMargin\":0.5,\"NX\":2,\"NY\":3,\"SpaceX\":0.1875,\"SpaceY\":0,\"width\":4,\"height\":3.33,\"lPadding\":0.20,\"tPadding\":0.20}','5164','Avery',NULL,0,6,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (468,59,'Avery 8600','{\"paper-size\":\"letter\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":8,\"font-style\":\"\",\"metric\":\"mm\",\"lMargin\":7.1,\"tMargin\":19,\"NX\":3,\"NY\":10,\"SpaceX\":9.5,\"SpaceY\":3.1,\"width\":66.6,\"height\":25.4,\"lPadding\":5.08,\"tPadding\":5.08}','8600','Avery',NULL,0,7,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (469,59,'Avery L7160','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":9,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.28,\"tMargin\":0.6,\"NX\":3,\"NY\":7,\"SpaceX\":0.1,\"SpaceY\":0,\"width\":2.5,\"height\":1.5,\"lPadding\":0.20,\"tPadding\":0.20}','L7160','Avery',NULL,0,8,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (470,59,'Avery L7161','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":9,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.28,\"tMargin\":0.35,\"NX\":3,\"NY\":6,\"SpaceX\":0.1,\"SpaceY\":0,\"width\":2.5,\"height\":1.83,\"lPadding\":0.20,\"tPadding\":0.20}','L7161','Avery',NULL,0,9,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (471,59,'Avery L7162','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":9,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.18,\"tMargin\":0.51,\"NX\":2,\"NY\":8,\"SpaceX\":0.1,\"SpaceY\":0,\"width\":3.9,\"height\":1.33,\"lPadding\":0.20,\"tPadding\":0.20}','L7162','Avery',NULL,0,10,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (472,59,'Avery L7163','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"dejavusans\",\"font-size\":9,\"font-style\":\"\",\"metric\":\"in\",\"lMargin\":0.18,\"tMargin\":0.6,\"NX\":2,\"NY\":7,\"SpaceX\":0.1,\"SpaceY\":0,\"width\":3.9,\"height\":1.5,\"lPadding\":0.20,\"tPadding\":0.20}','L7163','Avery',NULL,0,11,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (473,60,'Activity Assignees','1','Activity Assignees',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (474,60,'Activity Source','2','Activity Source',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (475,60,'Activity Targets','3','Activity Targets',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (476,61,'Income Account is','1','Income Account is',NULL,0,1,1,'Income Account is',0,1,1,2,NULL,NULL,NULL,NULL), + (477,61,'Credit/Contra Revenue Account is','2','Credit/Contra Revenue Account is',NULL,0,0,2,'Credit/Contra Revenue Account is',0,1,1,2,NULL,NULL,NULL,NULL), + (478,61,'Accounts Receivable Account is','3','Accounts Receivable Account is',NULL,0,0,3,'Accounts Receivable Account is',0,1,1,2,NULL,NULL,NULL,NULL), + (479,61,'Credit Liability Account is','4','Credit Liability Account is',NULL,0,0,4,'Credit Liability Account is',0,1,0,2,NULL,NULL,NULL,NULL), + (480,61,'Expense Account is','5','Expense Account is',NULL,0,0,5,'Expense Account is',0,1,1,2,NULL,NULL,NULL,NULL), + (481,61,'Asset Account is','6','Asset Account is',NULL,0,0,6,'Asset Account is',0,1,1,2,NULL,NULL,NULL,NULL), + (482,61,'Cost of Sales Account is','7','Cost of Sales Account is',NULL,0,0,7,'Cost of Sales Account is',0,1,1,2,NULL,NULL,NULL,NULL), + (483,61,'Premiums Inventory Account is','8','Premiums Inventory Account is',NULL,0,0,8,'Premiums Inventory Account is',0,1,1,2,NULL,NULL,NULL,NULL), + (484,61,'Discounts Account is','9','Discounts Account is',NULL,0,0,9,'Discounts Account is',0,1,1,2,NULL,NULL,NULL,NULL), + (485,61,'Sales Tax Account is','10','Sales Tax Account is',NULL,0,0,10,'Sales Tax Account is',0,1,1,2,NULL,NULL,NULL,NULL), + (486,61,'Chargeback Account is','11','Chargeback Account is',NULL,0,0,11,'Chargeback Account is',0,1,1,2,NULL,NULL,NULL,NULL), + (487,61,'Deferred Revenue Account is','12','Deferred Revenue Account is',NULL,0,0,12,'Deferred Revenue Account is',0,1,1,2,NULL,NULL,NULL,NULL), + (488,62,'Participant Role','1','participant_role',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (489,63,'Morning Sessions','1','Morning Sessions',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (490,63,'Evening Sessions','2','Evening Sessions',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (491,64,'Contribution','1','Contribution',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (492,64,'Membership','2','Membership',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (493,64,'Pledge Payment','3','Pledge Payment',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (494,65,'Manual Batch','1','Manual Batch',NULL,0,0,1,'Manual Batch',0,1,1,2,NULL,NULL,NULL,NULL), + (495,65,'Automatic Batch','2','Automatic Batch',NULL,0,0,2,'Automatic Batch',0,1,1,2,NULL,NULL,NULL,NULL), + (496,66,'Open','1','Open',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (497,66,'Closed','2','Closed',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (498,66,'Data Entry','3','Data Entry',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (499,66,'Reopened','4','Reopened',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (500,66,'Exported','5','Exported',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (501,67,'http','1','http',NULL,NULL,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (502,67,'xml','2','xml',NULL,NULL,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (503,67,'smtp','3','smtp',NULL,NULL,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (504,69,'Renewal Reminder (non-auto-renew memberships only)','1','Renewal Reminder (non-auto-renew memberships only)',NULL,0,NULL,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (505,69,'Auto-renew Memberships Only','2','Auto-renew Memberships Only',NULL,0,NULL,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (506,69,'Reminder for Both','3','Reminder for Both',NULL,0,NULL,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (507,70,'Asset','1','Asset',NULL,0,0,1,'Things you own',0,1,1,2,NULL,NULL,NULL,NULL), + (508,70,'Liability','2','Liability',NULL,0,0,2,'Things you owe, like a grant still to be disbursed',0,1,1,2,NULL,NULL,NULL,NULL), + (509,70,'Revenue','3','Revenue',NULL,0,1,3,'Income from contributions and sales of tickets and memberships',0,1,1,2,NULL,NULL,NULL,NULL), + (510,70,'Cost of Sales','4','Cost of Sales',NULL,0,0,4,'Costs incurred to get revenue, e.g. premiums for donations, dinner for a fundraising dinner ticket',0,1,1,2,NULL,NULL,NULL,NULL), + (511,70,'Expenses','5','Expenses',NULL,0,0,5,'Things that are paid for that are consumable, e.g. grants disbursed',0,1,1,2,NULL,NULL,NULL,NULL), + (512,71,'Paid','1','Paid',NULL,0,0,1,'Paid',0,1,1,2,NULL,NULL,NULL,NULL), + (513,71,'Unpaid','3','Unpaid',NULL,0,0,1,'Unpaid',0,1,1,2,NULL,NULL,NULL,NULL), + (514,71,'Partially paid','2','Partially paid',NULL,0,0,2,'Partially paid',0,1,1,2,NULL,NULL,NULL,NULL), + (515,72,'Event Badge','1','Event Badge',NULL,0,NULL,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (516,73,'Avery 5395','{\"name\":\"Avery 5395\",\"paper-size\":\"a4\",\"metric\":\"mm\",\"lMargin\":15,\"tMargin\":26,\"NX\":2,\"NY\":4,\"SpaceX\":10,\"SpaceY\":5,\"width\":83,\"height\":57,\"font-size\":12,\"orientation\":\"portrait\",\"font-name\":\"helvetica\",\"font-style\":\"\",\"lPadding\":3,\"tPadding\":3}','Avery 5395',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (517,73,'A6 Badge Portrait 150x106','{\"paper-size\":\"a4\",\"orientation\":\"landscape\",\"font-name\":\"times\",\"font-size\":6,\"font-style\":\"\",\"NX\":2,\"NY\":1,\"metric\":\"mm\",\"lMargin\":25,\"tMargin\":27,\"SpaceX\":0,\"SpaceY\":35,\"width\":106,\"height\":150,\"lPadding\":5,\"tPadding\":5}','A6 Badge Portrait 150x106',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (518,73,'Fattorini Name Badge 100x65','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"times\",\"font-size\":6,\"font-style\":\"\",\"NX\":2,\"NY\":4,\"metric\":\"mm\",\"lMargin\":6,\"tMargin\":19,\"SpaceX\":0,\"SpaceY\":0,\"width\":100,\"height\":65,\"lPadding\":0,\"tPadding\":0}','Fattorini Name Badge 100x65',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (519,73,'Hanging Badge 3-3/4\" x 4-3\"/4','{\"paper-size\":\"a4\",\"orientation\":\"portrait\",\"font-name\":\"times\",\"font-size\":6,\"font-style\":\"\",\"NX\":2,\"NY\":2,\"metric\":\"mm\",\"lMargin\":10,\"tMargin\":28,\"SpaceX\":0,\"SpaceY\":0,\"width\":96,\"height\":121,\"lPadding\":5,\"tPadding\":5}','Hanging Badge 3-3/4\" x 4-3\"/4',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (520,74,'Formal','1','formal',NULL,0,1,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (521,74,'Familiar','2','familiar',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (522,75,'Email','Email','Email',NULL,0,1,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (523,75,'SMS','SMS','SMS',NULL,0,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (524,75,'User Preference','User_Preference','User Preference',NULL,0,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (525,76,'Actual date only','1','Actual date only',NULL,NULL,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (526,76,'Each anniversary','2','Each anniversary',NULL,NULL,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (527,77,'Default','1','default',NULL,NULL,1,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (528,77,'CiviMail','2','civimail',NULL,NULL,0,2,NULL,0,1,1,4,NULL,NULL,NULL,NULL), + (529,77,'CiviEvent','3','civievent',NULL,NULL,0,3,NULL,0,1,1,1,NULL,NULL,NULL,NULL), + (530,78,'Today','this.day','this.day',NULL,NULL,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (531,78,'This week','this.week','this.week',NULL,NULL,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (532,78,'This calendar month','this.month','this.month',NULL,NULL,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (533,78,'This quarter','this.quarter','this.quarter',NULL,NULL,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (534,78,'This fiscal year','this.fiscal_year','this.fiscal_year',NULL,NULL,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (535,78,'This calendar year','this.year','this.year',NULL,NULL,0,6,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (536,78,'Yesterday','previous.day','previous.day',NULL,NULL,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (537,78,'Previous week','previous.week','previous.week',NULL,NULL,0,8,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (538,78,'Previous calendar month','previous.month','previous.month',NULL,NULL,0,9,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (539,78,'Previous quarter','previous.quarter','previous.quarter',NULL,NULL,0,10,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (540,78,'Previous fiscal year','previous.fiscal_year','previous.fiscal_year',NULL,NULL,0,11,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (541,78,'Previous calendar year','previous.year','previous.year',NULL,NULL,0,12,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (542,78,'Last 7 days including today','ending.week','ending.week',NULL,NULL,0,13,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (543,78,'Last 30 days including today','ending_30.day','ending.month',NULL,NULL,0,14,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (544,78,'Last 60 days including today','ending_60.day','ending_2.month',NULL,NULL,0,15,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (545,78,'Last 90 days including today','ending_90.day','ending.quarter',NULL,NULL,0,16,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (546,78,'Last 12 months including today','ending.year','ending.year',NULL,NULL,0,17,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (547,78,'Last 2 years including today','ending_2.year','ending_2.year',NULL,NULL,0,18,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (548,78,'Last 3 years including today','ending_3.year','ending_3.year',NULL,NULL,0,19,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (549,78,'Tomorrow','starting.day','starting.day',NULL,NULL,0,20,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (550,78,'Next week','next.week','next.week',NULL,NULL,0,21,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (551,78,'Next calendar month','next.month','next.month',NULL,NULL,0,22,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (552,78,'Next quarter','next.quarter','next.quarter',NULL,NULL,0,23,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (553,78,'Next fiscal year','next.fiscal_year','next.fiscal_year',NULL,NULL,0,24,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (554,78,'Next calendar year','next.year','next.year',NULL,NULL,0,25,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (555,78,'Next 7 days including today','starting.week','starting.week',NULL,NULL,0,26,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (556,78,'Next 30 days including today','starting.month','starting.month',NULL,NULL,0,27,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (557,78,'Next 60 days including today','starting_2.month','starting_2.month',NULL,NULL,0,28,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (558,78,'Next 90 days including today','starting.quarter','starting.quarter',NULL,NULL,0,29,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (559,78,'Next 12 months including today','starting.year','starting.year',NULL,NULL,0,30,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (560,78,'Current week to-date','current.week','current.week',NULL,NULL,0,31,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (561,78,'Current calendar month to-date','current.month','current.month',NULL,NULL,0,32,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (562,78,'Current quarter to-date','current.quarter','current.quarter',NULL,NULL,0,33,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (563,78,'Current calendar year to-date','current.year','current.year',NULL,NULL,0,34,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (564,78,'To end of yesterday','earlier.day','earlier.day',NULL,NULL,0,35,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (565,78,'To end of previous week','earlier.week','earlier.week',NULL,NULL,0,36,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (566,78,'To end of previous calendar month','earlier.month','earlier.month',NULL,NULL,0,37,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (567,78,'To end of previous quarter','earlier.quarter','earlier.quarter',NULL,NULL,0,38,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (568,78,'To end of previous calendar year','earlier.year','earlier.year',NULL,NULL,0,39,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (569,78,'From start of current day','greater.day','greater.day',NULL,NULL,0,40,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (570,78,'From start of current week','greater.week','greater.week',NULL,NULL,0,41,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (571,78,'From start of current calendar month','greater.month','greater.month',NULL,NULL,0,42,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (572,78,'From start of current quarter','greater.quarter','greater.quarter',NULL,NULL,0,43,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (573,78,'From start of current calendar year','greater.year','greater.year',NULL,NULL,0,44,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (574,78,'To end of current week','less.week','less.week',NULL,NULL,0,45,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (575,78,'To end of current calendar month','less.month','less.month',NULL,NULL,0,46,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (576,78,'To end of current quarter','less.quarter','less.quarter',NULL,NULL,0,47,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (577,78,'To end of current calendar year','less.year','less.year',NULL,NULL,0,48,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (578,78,'Previous 2 days','previous_2.day','previous_2.day',NULL,NULL,0,49,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (579,78,'Previous 2 weeks','previous_2.week','previous_2.week',NULL,NULL,0,50,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (580,78,'Previous 2 calendar months','previous_2.month','previous_2.month',NULL,NULL,0,51,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (581,78,'Previous 2 quarters','previous_2.quarter','previous_2.quarter',NULL,NULL,0,52,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (582,78,'Previous 2 calendar years','previous_2.year','previous_2.year',NULL,NULL,0,53,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (583,78,'Previous 2 fiscal years','previous_2.fiscal_year','previous_2.fiscal_year',NULL,NULL,0,54,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (584,78,'Day prior to yesterday','previous_before.day','previous_before.day',NULL,NULL,0,55,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (585,78,'Week prior to previous week','previous_before.week','previous_before.week',NULL,NULL,0,56,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (586,78,'Month prior to previous calendar month','previous_before.month','previous_before.month',NULL,NULL,NULL,57,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (587,78,'Quarter prior to previous quarter','previous_before.quarter','previous_before.quarter',NULL,NULL,0,58,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (588,78,'Year prior to previous calendar year','previous_before.year','previous_before.year',NULL,NULL,0,59,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (589,78,'Fiscal year prior to previous fiscal year','previous_before.fiscal_year','previous_before.fiscal_year',NULL,NULL,0,60,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (590,78,'From end of previous week','greater_previous.week','greater_previous.week',NULL,NULL,0,61,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (591,78,'From end of previous calendar month','greater_previous.month','greater_previous.month',NULL,NULL,0,62,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (592,78,'From end of previous quarter','greater_previous.quarter','greater_previous.quarter',NULL,NULL,0,63,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (593,78,'From end of previous calendar year','greater_previous.year','greater_previous.year',NULL,NULL,0,64,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (594,79,'Completed','1','Completed',NULL,0,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (595,79,'Pending','2','Pending',NULL,0,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (596,79,'Cancelled','3','Cancelled',NULL,0,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (597,79,'In Progress','5','In Progress',NULL,0,0,4,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (598,79,'Overdue','6','Overdue',NULL,0,0,5,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (599,80,'Completed','1','Completed',NULL,0,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (600,80,'Pending','2','Pending',NULL,0,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (601,80,'Cancelled','3','Cancelled',NULL,0,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (602,80,'Failed','4','Failed',NULL,0,0,4,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (603,80,'In Progress','5','In Progress',NULL,0,0,5,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (604,80,'Overdue','6','Overdue',NULL,0,0,6,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (605,80,'Processing','7','Processing',NULL,0,0,7,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (606,80,'Failing','8','Failing',NULL,0,0,8,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (607,81,'Production','Production','Production',NULL,NULL,1,1,'Production Environment',0,1,1,NULL,NULL,NULL,NULL,NULL), + (608,81,'Staging','Staging','Staging',NULL,NULL,0,2,'Staging Environment',0,1,1,NULL,NULL,NULL,NULL,NULL), + (609,81,'Development','Development','Development',NULL,NULL,0,3,'Development Environment',0,1,1,NULL,NULL,NULL,NULL,NULL), + (610,82,'None','1','NONE',NULL,0,1,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (611,82,'By relationship to case client','2','BY_RELATIONSHIP',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (612,82,'Specific contact','3','SPECIFIC_CONTACT',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (613,82,'User creating the case','4','USER_CREATING_THE_CASE',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (614,83,'Financial Transactions','civicrm_financial_trxn','civicrm_financial_trxn',NULL,0,1,1,NULL,0,0,1,2,NULL,NULL,NULL,NULL), + (615,85,'Abkhaz','ab','ab_GE',NULL,0,0,1,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (616,85,'Afar','aa','aa_ET',NULL,0,0,2,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (617,85,'Afrikaans','af','af_ZA',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (618,85,'Akan','ak','ak_GH',NULL,0,0,4,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (619,85,'Albanian','sq','sq_AL',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (620,85,'Amharic','am','am_ET',NULL,0,0,6,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (621,85,'Arabic','ar','ar_EG',NULL,0,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (622,85,'Aragonese','an','an_ES',NULL,0,0,8,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (623,85,'Armenian','hy','hy_AM',NULL,0,0,9,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (624,85,'Assamese','as','as_IN',NULL,0,0,10,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (625,85,'Avaric','av','av_RU',NULL,0,0,11,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (626,85,'Avestan','ae','ae_XX',NULL,0,0,12,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (627,85,'Aymara','ay','ay_BO',NULL,0,0,13,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (628,85,'Azerbaijani','az','az_AZ',NULL,0,0,14,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (629,85,'Bambara','bm','bm_ML',NULL,0,0,15,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (630,85,'Bashkir','ba','ba_RU',NULL,0,0,16,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (631,85,'Basque','eu','eu_ES',NULL,0,0,17,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (632,85,'Belarusian','be','be_BY',NULL,0,0,18,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (633,85,'Bengali','bn','bn_BD',NULL,0,0,19,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (634,85,'Bihari','bh','bh_IN',NULL,0,0,20,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (635,85,'Bislama','bi','bi_VU',NULL,0,0,21,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (636,85,'Bosnian','bs','bs_BA',NULL,0,0,22,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (637,85,'Breton','br','br_FR',NULL,0,0,23,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (638,85,'Bulgarian','bg','bg_BG',NULL,0,0,24,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (639,85,'Burmese','my','my_MM',NULL,0,0,25,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (640,85,'Catalan; Valencian','ca','ca_ES',NULL,0,0,26,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (641,85,'Chamorro','ch','ch_GU',NULL,0,0,27,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (642,85,'Chechen','ce','ce_RU',NULL,0,0,28,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (643,85,'Chichewa; Chewa; Nyanja','ny','ny_MW',NULL,0,0,29,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (644,85,'Chinese (China)','zh','zh_CN',NULL,0,0,30,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (645,85,'Chinese (Taiwan)','zh','zh_TW',NULL,0,0,31,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (646,85,'Chuvash','cv','cv_RU',NULL,0,0,32,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (647,85,'Cornish','kw','kw_GB',NULL,0,0,33,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (648,85,'Corsican','co','co_FR',NULL,0,0,34,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (649,85,'Cree','cr','cr_CA',NULL,0,0,35,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (650,85,'Croatian','hr','hr_HR',NULL,0,0,36,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (651,85,'Czech','cs','cs_CZ',NULL,0,0,37,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (652,85,'Danish','da','da_DK',NULL,0,0,38,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (653,85,'Divehi; Dhivehi; Maldivian;','dv','dv_MV',NULL,0,0,39,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (654,85,'Dutch (Netherlands)','nl','nl_NL',NULL,0,0,40,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (655,85,'Dutch (Belgium)','nl','nl_BE',NULL,0,0,41,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (656,85,'Dzongkha','dz','dz_BT',NULL,0,0,42,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (657,85,'English (Australia)','en','en_AU',NULL,0,0,43,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (658,85,'English (Canada)','en','en_CA',NULL,0,0,44,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (659,85,'English (United Kingdom)','en','en_GB',NULL,0,0,45,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (660,85,'English (United States)','en','en_US',NULL,0,1,46,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (661,85,'Esperanto','eo','eo_XX',NULL,0,0,47,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (662,85,'Estonian','et','et_EE',NULL,0,0,48,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (663,85,'Ewe','ee','ee_GH',NULL,0,0,49,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (664,85,'Faroese','fo','fo_FO',NULL,0,0,50,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (665,85,'Fijian','fj','fj_FJ',NULL,0,0,51,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (666,85,'Finnish','fi','fi_FI',NULL,0,0,52,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (667,85,'French (Canada)','fr','fr_CA',NULL,0,0,53,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (668,85,'French (France)','fr','fr_FR',NULL,0,0,54,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (669,85,'Fula; Fulah; Pulaar; Pular','ff','ff_SN',NULL,0,0,55,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (670,85,'Galician','gl','gl_ES',NULL,0,0,56,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (671,85,'Georgian','ka','ka_GE',NULL,0,0,57,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (672,85,'German','de','de_DE',NULL,0,0,58,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (673,85,'German (Swiss)','de','de_CH',NULL,0,0,59,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (674,85,'Greek, Modern','el','el_GR',NULL,0,0,60,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (675,85,'GuaraniÂ','gn','gn_PY',NULL,0,0,61,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (676,85,'Gujarati','gu','gu_IN',NULL,0,0,62,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (677,85,'Haitian; Haitian Creole','ht','ht_HT',NULL,0,0,63,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (678,85,'Hausa','ha','ha_NG',NULL,0,0,64,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (679,85,'Hebrew (modern)','he','he_IL',NULL,0,0,65,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (680,85,'Herero','hz','hz_NA',NULL,0,0,66,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (681,85,'Hindi','hi','hi_IN',NULL,0,0,67,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (682,85,'Hiri Motu','ho','ho_PG',NULL,0,0,68,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (683,85,'Hungarian','hu','hu_HU',NULL,0,0,69,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (684,85,'Interlingua','ia','ia_XX',NULL,0,0,70,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (685,85,'Indonesian','id','id_ID',NULL,0,0,71,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (686,85,'Interlingue','ie','ie_XX',NULL,0,0,72,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (687,85,'Irish','ga','ga_IE',NULL,0,0,73,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (688,85,'Igbo','ig','ig_NG',NULL,0,0,74,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (689,85,'Inupiaq','ik','ik_US',NULL,0,0,75,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (690,85,'Ido','io','io_XX',NULL,0,0,76,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (691,85,'Icelandic','is','is_IS',NULL,0,0,77,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (692,85,'Italian','it','it_IT',NULL,0,0,78,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (693,85,'Inuktitut','iu','iu_CA',NULL,0,0,79,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (694,85,'Japanese','ja','ja_JP',NULL,0,0,80,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (695,85,'Javanese','jv','jv_ID',NULL,0,0,81,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (696,85,'Kalaallisut, Greenlandic','kl','kl_GL',NULL,0,0,82,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (697,85,'Kannada','kn','kn_IN',NULL,0,0,83,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (698,85,'Kanuri','kr','kr_NE',NULL,0,0,84,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (699,85,'Kashmiri','ks','ks_IN',NULL,0,0,85,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (700,85,'Kazakh','kk','kk_KZ',NULL,0,0,86,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (701,85,'Khmer','km','km_KH',NULL,0,0,87,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (702,85,'Kikuyu, Gikuyu','ki','ki_KE',NULL,0,0,88,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (703,85,'Kinyarwanda','rw','rw_RW',NULL,0,0,89,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (704,85,'Kirghiz, Kyrgyz','ky','ky_KG',NULL,0,0,90,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (705,85,'Komi','kv','kv_RU',NULL,0,0,91,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (706,85,'Kongo','kg','kg_CD',NULL,0,0,92,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (707,85,'Korean','ko','ko_KR',NULL,0,0,93,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (708,85,'Kurdish','ku','ku_IQ',NULL,0,0,94,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (709,85,'Kwanyama, Kuanyama','kj','kj_NA',NULL,0,0,95,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (710,85,'Latin','la','la_VA',NULL,0,0,96,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (711,85,'Luxembourgish, Letzeburgesch','lb','lb_LU',NULL,0,0,97,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (712,85,'Luganda','lg','lg_UG',NULL,0,0,98,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (713,85,'Limburgish, Limburgan, Limburger','li','li_NL',NULL,0,0,99,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (714,85,'Lingala','ln','ln_CD',NULL,0,0,100,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (715,85,'Lao','lo','lo_LA',NULL,0,0,101,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (716,85,'Lithuanian','lt','lt_LT',NULL,0,0,102,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (717,85,'Luba-Katanga','lu','lu_CD',NULL,0,0,103,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (718,85,'Latvian','lv','lv_LV',NULL,0,0,104,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (719,85,'Manx','gv','gv_IM',NULL,0,0,105,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (720,85,'Macedonian','mk','mk_MK',NULL,0,0,106,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (721,85,'Malagasy','mg','mg_MG',NULL,0,0,107,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (722,85,'Malay','ms','ms_MY',NULL,0,0,108,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (723,85,'Malayalam','ml','ml_IN',NULL,0,0,109,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (724,85,'Maltese','mt','mt_MT',NULL,0,0,110,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (725,85,'MÄori','mi','mi_NZ',NULL,0,0,111,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (726,85,'Marathi','mr','mr_IN',NULL,0,0,112,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (727,85,'Marshallese','mh','mh_MH',NULL,0,0,113,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (728,85,'Mongolian','mn','mn_MN',NULL,0,0,114,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (729,85,'Nauru','na','na_NR',NULL,0,0,115,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (730,85,'Navajo, Navaho','nv','nv_US',NULL,0,0,116,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (731,85,'Norwegian BokmÃ¥l','nb','nb_NO',NULL,0,0,117,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (732,85,'North Ndebele','nd','nd_ZW',NULL,0,0,118,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (733,85,'Nepali','ne','ne_NP',NULL,0,0,119,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (734,85,'Ndonga','ng','ng_NA',NULL,0,0,120,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (735,85,'Norwegian Nynorsk','nn','nn_NO',NULL,0,0,121,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (736,85,'Norwegian','no','no_NO',NULL,0,0,122,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (737,85,'Nuosu','ii','ii_CN',NULL,0,0,123,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (738,85,'South Ndebele','nr','nr_ZA',NULL,0,0,124,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (739,85,'Occitan (after 1500)','oc','oc_FR',NULL,0,0,125,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (740,85,'Ojibwa','oj','oj_CA',NULL,0,0,126,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (741,85,'Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic','cu','cu_BG',NULL,0,0,127,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (742,85,'Oromo','om','om_ET',NULL,0,0,128,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (743,85,'Oriya','or','or_IN',NULL,0,0,129,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (744,85,'Ossetian, Ossetic','os','os_GE',NULL,0,0,130,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (745,85,'Panjabi, Punjabi','pa','pa_IN',NULL,0,0,131,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (746,85,'Pali','pi','pi_KH',NULL,0,0,132,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (747,85,'Persian (Iran)','fa','fa_IR',NULL,0,0,133,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (748,85,'Polish','pl','pl_PL',NULL,0,0,134,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (749,85,'Pashto, Pushto','ps','ps_AF',NULL,0,0,135,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (750,85,'Portuguese (Brazil)','pt','pt_BR',NULL,0,0,136,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (751,85,'Portuguese (Portugal)','pt','pt_PT',NULL,0,0,137,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (752,85,'Quechua','qu','qu_PE',NULL,0,0,138,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (753,85,'Romansh','rm','rm_CH',NULL,0,0,139,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (754,85,'Kirundi','rn','rn_BI',NULL,0,0,140,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (755,85,'Romanian, Moldavian, Moldovan','ro','ro_RO',NULL,0,0,141,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (756,85,'Russian','ru','ru_RU',NULL,0,0,142,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (757,85,'Sanskrit','sa','sa_IN',NULL,0,0,143,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (758,85,'Sardinian','sc','sc_IT',NULL,0,0,144,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (759,85,'Sindhi','sd','sd_IN',NULL,0,0,145,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (760,85,'Northern Sami','se','se_NO',NULL,0,0,146,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (761,85,'Samoan','sm','sm_WS',NULL,0,0,147,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (762,85,'Sango','sg','sg_CF',NULL,0,0,148,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (763,85,'Serbian','sr','sr_RS',NULL,0,0,149,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (764,85,'Scottish Gaelic; Gaelic','gd','gd_GB',NULL,0,0,150,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (765,85,'Shona','sn','sn_ZW',NULL,0,0,151,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (766,85,'Sinhala, Sinhalese','si','si_LK',NULL,0,0,152,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (767,85,'Slovak','sk','sk_SK',NULL,0,0,153,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (768,85,'Slovene','sl','sl_SI',NULL,0,0,154,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (769,85,'Somali','so','so_SO',NULL,0,0,155,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (770,85,'Southern Sotho','st','st_ZA',NULL,0,0,156,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (771,85,'Spanish; Castilian (Spain)','es','es_ES',NULL,0,0,157,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (772,85,'Spanish; Castilian (Mexico)','es','es_MX',NULL,0,0,158,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (773,85,'Spanish; Castilian (Puerto Rico)','es','es_PR',NULL,0,0,159,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (774,85,'Sundanese','su','su_ID',NULL,0,0,160,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (775,85,'Swahili','sw','sw_TZ',NULL,0,0,161,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (776,85,'Swati','ss','ss_ZA',NULL,0,0,162,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (777,85,'Swedish','sv','sv_SE',NULL,0,0,163,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (778,85,'Tamil','ta','ta_IN',NULL,0,0,164,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (779,85,'Telugu','te','te_IN',NULL,0,0,165,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (780,85,'Tajik','tg','tg_TJ',NULL,0,0,166,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (781,85,'Thai','th','th_TH',NULL,0,0,167,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (782,85,'Tigrinya','ti','ti_ET',NULL,0,0,168,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (783,85,'Tibetan Standard, Tibetan, Central','bo','bo_CN',NULL,0,0,169,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (784,85,'Turkmen','tk','tk_TM',NULL,0,0,170,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (785,85,'Tagalog','tl','tl_PH',NULL,0,0,171,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (786,85,'Tswana','tn','tn_ZA',NULL,0,0,172,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (787,85,'Tonga (Tonga Islands)','to','to_TO',NULL,0,0,173,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (788,85,'Turkish','tr','tr_TR',NULL,0,0,174,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (789,85,'Tsonga','ts','ts_ZA',NULL,0,0,175,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (790,85,'Tatar','tt','tt_RU',NULL,0,0,176,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (791,85,'Twi','tw','tw_GH',NULL,0,0,177,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (792,85,'Tahitian','ty','ty_PF',NULL,0,0,178,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (793,85,'Uighur, Uyghur','ug','ug_CN',NULL,0,0,179,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (794,85,'Ukrainian','uk','uk_UA',NULL,0,0,180,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (795,85,'Urdu','ur','ur_PK',NULL,0,0,181,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (796,85,'Uzbek','uz','uz_UZ',NULL,0,0,182,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (797,85,'Venda','ve','ve_ZA',NULL,0,0,183,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (798,85,'Vietnamese','vi','vi_VN',NULL,0,0,184,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (799,85,'Volapük','vo','vo_XX',NULL,0,0,185,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (800,85,'Walloon','wa','wa_BE',NULL,0,0,186,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (801,85,'Welsh','cy','cy_GB',NULL,0,0,187,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (802,85,'Wolof','wo','wo_SN',NULL,0,0,188,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (803,85,'Western Frisian','fy','fy_NL',NULL,0,0,189,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (804,85,'Xhosa','xh','xh_ZA',NULL,0,0,190,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (805,85,'Yiddish','yi','yi_US',NULL,0,0,191,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (806,85,'Yoruba','yo','yo_NG',NULL,0,0,192,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (807,85,'Zhuang, Chuang','za','za_CN',NULL,0,0,193,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (808,85,'Zulu','zu','zu_ZA',NULL,0,0,194,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL), + (809,86,'In Person','1','in_person',NULL,0,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (810,86,'Phone','2','phone',NULL,0,1,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (811,86,'Email','3','email',NULL,0,0,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (812,86,'Fax','4','fax',NULL,0,0,4,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (813,86,'Letter Mail','5','letter_mail',NULL,0,0,5,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (814,87,'Cases - Send Copy of an Activity','1','case_activity',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (815,88,'Contributions - Duplicate Organization Alert','1','contribution_dupalert',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (816,88,'Contributions - Receipt (off-line)','2','contribution_offline_receipt',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (817,88,'Contributions - Receipt (on-line)','3','contribution_online_receipt',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (818,88,'Contributions - Invoice','4','contribution_invoice_receipt',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (819,88,'Contributions - Recurring Start and End Notification','5','contribution_recurring_notify',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (820,88,'Contributions - Recurring Cancellation Notification','6','contribution_recurring_cancelled',NULL,0,0,6,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (821,88,'Contributions - Recurring Billing Updates','7','contribution_recurring_billing',NULL,0,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (822,88,'Contributions - Recurring Updates','8','contribution_recurring_edit',NULL,0,0,8,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (823,88,'Personal Campaign Pages - Admin Notification','9','pcp_notify',NULL,0,0,9,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (824,88,'Personal Campaign Pages - Supporter Status Change Notification','10','pcp_status_change',NULL,0,0,10,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (825,88,'Personal Campaign Pages - Supporter Welcome','11','pcp_supporter_notify',NULL,0,0,11,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (826,88,'Personal Campaign Pages - Owner Notification','12','pcp_owner_notify',NULL,0,0,12,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (827,88,'Additional Payment Receipt or Refund Notification','13','payment_or_refund_notification',NULL,0,0,13,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (828,89,'Events - Registration Confirmation and Receipt (off-line)','1','event_offline_receipt',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (829,89,'Events - Registration Confirmation and Receipt (on-line)','2','event_online_receipt',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (830,89,'Events - Receipt only','3','event_registration_receipt',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (831,89,'Events - Registration Cancellation Notice','4','participant_cancelled',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (832,89,'Events - Registration Confirmation Invite','5','participant_confirm',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (833,89,'Events - Pending Registration Expiration Notice','6','participant_expired',NULL,0,0,6,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (834,89,'Events - Registration Transferred Notice','7','participant_transferred',NULL,0,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (835,90,'Tell-a-Friend Email','1','friend',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (836,91,'Memberships - Signup and Renewal Receipts (off-line)','1','membership_offline_receipt',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (837,91,'Memberships - Receipt (on-line)','2','membership_online_receipt',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (838,91,'Memberships - Auto-renew Cancellation Notification','3','membership_autorenew_cancelled',NULL,0,0,3,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (839,91,'Memberships - Auto-renew Billing Updates','4','membership_autorenew_billing',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (840,92,'Test-drive - Receipt Header','1','test_preview',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (841,93,'Pledges - Acknowledgement','1','pledge_acknowledge',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (842,93,'Pledges - Payment Reminder','2','pledge_reminder',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (843,94,'Profiles - Admin Notification','1','uf_notify',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (844,95,'Petition - signature added','1','petition_sign',NULL,0,0,1,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (845,95,'Petition - need verification','2','petition_confirmation_needed',NULL,0,0,2,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (846,96,'In Honor of','1','in_honor_of',NULL,0,0,1,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (847,96,'In Memory of','2','in_memory_of',NULL,0,0,2,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (848,96,'Solicited','3','solicited',NULL,0,1,3,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (849,96,'Household','4','household',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (850,96,'Workplace Giving','5','workplace',NULL,0,0,5,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (851,96,'Foundation Affiliate','6','foundation_affiliate',NULL,0,0,6,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (852,96,'3rd-party Service','7','3rd-party_service',NULL,0,0,7,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (853,96,'Donor-advised Fund','8','donor-advised_fund',NULL,0,0,8,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (854,96,'Matched Gift','9','matched_gift',NULL,0,0,9,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL), + (855,96,'Personal Campaign Page','10','pcp',NULL,0,0,10,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (856,96,'Gift','11','gift',NULL,0,0,11,NULL,0,1,1,NULL,NULL,NULL,NULL,NULL), + (857,97,'Contacts','Contact','Contact',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (858,97,'Relationships','Relationship','Relationship',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (859,97,'Activities','Activity','Activity',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (860,97,'Notes','Note','Note',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (861,97,'Groups','Group','Group',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (862,97,'Cases','Case','Case',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (863,97,'Contributions','Contribution','Contribution',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (864,97,'Participants','Participant','Participant',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (865,97,'Memberships','Membership','Membership',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (866,97,'Pledges','Pledge','Pledge',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (867,97,'Events','Event','Event',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (868,97,'Campaigns','Campaign','Campaign',NULL,NULL,0,1,'',0,1,1,NULL,NULL,NULL,NULL,NULL), + (869,2,'Interview','56','Interview',NULL,0,NULL,56,'Conduct a phone or in person interview.',0,0,1,NULL,NULL,NULL,'fa-comment-o',NULL), + (870,8,'Advisory Board','3','Advisory Board',NULL,0,0,4,NULL,0,0,1,NULL,NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `civicrm_option_value` ENABLE KEYS */; UNLOCK TABLES; @@ -6681,56 +6678,56 @@ UNLOCK TABLES; LOCK TABLES `civicrm_participant` WRITE; /*!40000 ALTER TABLE `civicrm_participant` DISABLE KEYS */; INSERT INTO `civicrm_participant` (`id`, `contact_id`, `event_id`, `status_id`, `role_id`, `register_date`, `source`, `fee_level`, `is_test`, `is_pay_later`, `fee_amount`, `registered_by_id`, `discount_id`, `fee_currency`, `campaign_id`, `discount_amount`, `cart_id`, `must_wait`, `transferred_to_contact_id`, `created_id`) VALUES - (1,102,1,1,'1','2009-01-21 00:00:00','Check','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (2,181,2,2,'2','2008-05-07 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (3,184,3,3,'3','2008-05-05 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (4,119,1,4,'4','2008-10-21 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (5,123,2,1,'1','2008-01-10 00:00:00','Check','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (6,88,3,2,'2','2008-03-05 00:00:00','Direct Transfer','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (7,149,1,3,'3','2009-07-21 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (8,137,2,4,'4','2009-03-07 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (9,56,3,1,'1','2008-02-05 00:00:00','Direct Transfer','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (10,153,1,2,'2','2008-02-01 00:00:00','Check','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (11,47,2,3,'3','2009-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (12,133,3,4,'4','2009-03-06 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (13,29,1,1,'2','2008-06-04 00:00:00','Credit Card','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (14,43,2,2,'3','2008-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (15,145,3,4,'1','2008-07-04 00:00:00','Check','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (16,194,1,4,'2','2009-01-21 00:00:00','Credit Card','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (17,142,2,2,'3','2008-01-10 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (18,63,3,3,'1','2009-03-05 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (19,92,1,2,'1','2008-10-21 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (20,91,2,4,'1','2009-01-10 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (21,132,3,1,'4','2008-03-25 00:00:00','Check','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (22,38,1,2,'3','2009-10-21 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (23,76,2,4,'1','2008-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (24,174,3,3,'1','2008-03-11 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (25,3,3,2,'2','2008-04-05 00:00:00','Direct Transfer','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (26,167,1,1,'1','2009-01-21 00:00:00','Check','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (27,170,2,2,'2','2008-05-07 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (28,128,3,3,'3','2009-12-12 00:00:00','Direct Transfer','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (29,9,1,4,'4','2009-12-13 00:00:00','Credit Card','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (30,94,2,1,'1','2009-12-14 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (31,186,3,2,'2','2009-12-15 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (32,178,1,3,'3','2009-07-21 00:00:00','Check','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (33,127,2,4,'4','2009-03-07 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (34,177,3,1,'1','2009-12-15 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (35,90,1,2,'2','2009-12-13 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (36,159,2,3,'3','2009-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (37,195,3,4,'4','2009-03-06 00:00:00','Check','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (38,151,1,1,'2','2009-12-13 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (39,131,2,2,'3','2008-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (40,104,3,4,'1','2009-12-14 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (41,161,1,4,'2','2009-01-21 00:00:00','Credit Card','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (42,11,2,2,'3','2009-12-15 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (43,115,3,3,'1','2009-03-05 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (44,50,1,2,'1','2009-12-13 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (45,199,2,4,'1','2009-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (46,37,3,1,'4','2009-12-13 00:00:00','Check','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (47,42,1,2,'3','2009-10-21 00:00:00','Credit Card','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (48,68,2,4,'1','2009-12-10 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (49,2,3,3,'1','2009-03-11 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), - (50,193,3,2,'2','2009-04-05 00:00:00','Check','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL); + (1,188,1,1,'1','2009-01-21 00:00:00','Check','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (2,85,2,2,'2','2008-05-07 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (3,37,3,3,'3','2008-05-05 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (4,101,1,4,'4','2008-10-21 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (5,111,2,1,'1','2008-01-10 00:00:00','Check','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (6,32,3,2,'2','2008-03-05 00:00:00','Direct Transfer','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (7,53,1,3,'3','2009-07-21 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (8,160,2,4,'4','2009-03-07 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (9,134,3,1,'1','2008-02-05 00:00:00','Direct Transfer','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (10,118,1,2,'2','2008-02-01 00:00:00','Check','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (11,29,2,3,'3','2009-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (12,172,3,4,'4','2009-03-06 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (13,13,1,1,'2','2008-06-04 00:00:00','Credit Card','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (14,152,2,2,'3','2008-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (15,54,3,4,'1','2008-07-04 00:00:00','Check','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (16,79,1,4,'2','2009-01-21 00:00:00','Credit Card','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (17,102,2,2,'3','2008-01-10 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (18,1,3,3,'1','2009-03-05 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (19,100,1,2,'1','2008-10-21 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (20,64,2,4,'1','2009-01-10 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (21,61,3,1,'4','2008-03-25 00:00:00','Check','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (22,121,1,2,'3','2009-10-21 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (23,81,2,4,'1','2008-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (24,126,3,3,'1','2008-03-11 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (25,150,3,2,'2','2008-04-05 00:00:00','Direct Transfer','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (26,141,1,1,'1','2009-01-21 00:00:00','Check','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (27,168,2,2,'2','2008-05-07 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (28,63,3,3,'3','2009-12-12 00:00:00','Direct Transfer','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (29,165,1,4,'4','2009-12-13 00:00:00','Credit Card','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (30,93,2,1,'1','2009-12-14 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (31,50,3,2,'2','2009-12-15 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (32,69,1,3,'3','2009-07-21 00:00:00','Check','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (33,89,2,4,'4','2009-03-07 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (34,122,3,1,'1','2009-12-15 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (35,10,1,2,'2','2009-12-13 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (36,195,2,3,'3','2009-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (37,112,3,4,'4','2009-03-06 00:00:00','Check','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (38,7,1,1,'2','2009-12-13 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (39,114,2,2,'3','2008-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (40,181,3,4,'1','2009-12-14 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (41,200,1,4,'2','2009-01-21 00:00:00','Credit Card','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (42,95,2,2,'3','2009-12-15 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (43,169,3,3,'1','2009-03-05 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (44,147,1,2,'1','2009-12-13 00:00:00','Direct Transfer','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (45,14,2,4,'1','2009-01-10 00:00:00','Direct Transfer','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (46,190,3,1,'4','2009-12-13 00:00:00','Check','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (47,27,1,2,'3','2009-10-21 00:00:00','Credit Card','Single',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (48,175,2,4,'1','2009-12-10 00:00:00','Credit Card','Soprano',0,0,50.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (49,78,3,3,'1','2009-03-11 00:00:00','Credit Card','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL), + (50,17,3,2,'2','2009-04-05 00:00:00','Check','Tiny-tots (ages 5-8)',0,0,800.00,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `civicrm_participant` ENABLE KEYS */; UNLOCK TABLES; @@ -6741,56 +6738,56 @@ UNLOCK TABLES; LOCK TABLES `civicrm_participant_payment` WRITE; /*!40000 ALTER TABLE `civicrm_participant_payment` DISABLE KEYS */; INSERT INTO `civicrm_participant_payment` (`id`, `participant_id`, `contribution_id`) VALUES - (1,1,63), - (2,2,64), - (3,3,65), - (4,4,66), - (5,5,67), - (6,6,68), - (7,7,69), - (8,8,70), - (9,9,71), - (10,10,72), - (11,11,73), - (12,12,74), - (13,13,75), - (14,14,76), - (15,15,77), - (16,16,78), - (17,17,79), - (18,18,80), - (19,19,81), - (20,20,82), - (21,21,83), - (22,22,84), - (23,23,85), - (24,24,86), - (25,25,87), - (26,26,88), - (27,27,89), - (28,28,90), - (29,29,91), - (30,30,92), - (31,31,93), - (32,32,94), - (33,33,95), - (34,34,96), - (35,35,97), - (36,36,98), - (37,37,99), - (38,38,100), - (39,39,101), - (40,40,102), - (41,41,103), - (42,42,104), + (1,18,63), + (2,38,64), + (3,35,65), + (4,13,66), + (5,45,67), + (6,50,68), + (7,47,69), + (8,11,70), + (9,6,71), + (10,3,72), + (11,31,73), + (12,7,74), + (13,15,75), + (14,21,76), + (15,28,77), + (16,20,78), + (17,32,79), + (18,49,80), + (19,16,81), + (20,23,82), + (21,2,83), + (22,33,84), + (23,30,85), + (24,42,86), + (25,19,87), + (26,4,88), + (27,17,89), + (28,5,90), + (29,37,91), + (30,39,92), + (31,10,93), + (32,22,94), + (33,34,95), + (34,24,96), + (35,9,97), + (36,26,98), + (37,44,99), + (38,25,100), + (39,14,101), + (40,8,102), + (41,29,103), + (42,27,104), (43,43,105), - (44,44,106), - (45,45,107), - (46,46,108), - (47,47,109), - (48,48,110), - (49,49,111), - (50,50,112); + (44,12,106), + (45,48,107), + (46,40,108), + (47,1,109), + (48,46,110), + (49,36,111), + (50,41,112); /*!40000 ALTER TABLE `civicrm_participant_payment` ENABLE KEYS */; UNLOCK TABLES; @@ -6863,7 +6860,7 @@ UNLOCK TABLES; LOCK TABLES `civicrm_pcp` WRITE; /*!40000 ALTER TABLE `civicrm_pcp` DISABLE KEYS */; INSERT INTO `civicrm_pcp` (`id`, `contact_id`, `status_id`, `title`, `intro_text`, `page_text`, `donate_link_text`, `page_id`, `page_type`, `pcp_block_id`, `is_thermometer`, `is_honor_roll`, `goal_amount`, `currency`, `is_active`, `is_notify`) VALUES - (1,171,2,'My Personal Civi Fundraiser','I\'m on a mission to get all my friends and family to help support my favorite open-source civic sector CRM.','<p>Friends and family - please help build much needed infrastructure for the civic sector by supporting my personal campaign!</p>\r\n<p><a href=\"https://civicrm.org\">You can learn more about CiviCRM here</a>.</p>\r\n<p>Then click the <strong>Contribute Now</strong> button to go to our easy-to-use online contribution form.</p>','Contribute Now',1,'contribute',1,1,1,5000.00,'USD',1,1); + (1,113,2,'My Personal Civi Fundraiser','I\'m on a mission to get all my friends and family to help support my favorite open-source civic sector CRM.','<p>Friends and family - please help build much needed infrastructure for the civic sector by supporting my personal campaign!</p>\r\n<p><a href=\"https://civicrm.org\">You can learn more about CiviCRM here</a>.</p>\r\n<p>Then click the <strong>Contribute Now</strong> button to go to our easy-to-use online contribution form.</p>','Contribute Now',1,'contribute',1,1,1,5000.00,'USD',1,1); /*!40000 ALTER TABLE `civicrm_pcp` ENABLE KEYS */; UNLOCK TABLES; @@ -6885,170 +6882,181 @@ UNLOCK TABLES; LOCK TABLES `civicrm_phone` WRITE; /*!40000 ALTER TABLE `civicrm_phone` DISABLE KEYS */; INSERT INTO `civicrm_phone` (`id`, `contact_id`, `location_type_id`, `is_primary`, `is_billing`, `mobile_provider_id`, `phone`, `phone_ext`, `phone_numeric`, `phone_type_id`) VALUES - (1,41,1,1,0,NULL,'(289) 519-6054',NULL,'2895196054',1), - (2,34,1,1,0,NULL,'520-4215',NULL,'5204215',2), - (3,171,1,1,0,NULL,'(611) 494-7031',NULL,'6114947031',2), - (4,123,1,1,0,NULL,'824-9212',NULL,'8249212',2), - (5,123,1,0,0,NULL,'706-2985',NULL,'7062985',1), - (6,24,1,1,0,NULL,'328-3172',NULL,'3283172',1), - (7,24,1,0,0,NULL,'(567) 566-6529',NULL,'5675666529',2), - (8,146,1,1,0,NULL,'809-5931',NULL,'8095931',1), - (9,4,1,1,0,NULL,'810-4044',NULL,'8104044',1), - (10,37,1,1,0,NULL,'(462) 381-8201',NULL,'4623818201',2), - (11,37,1,0,0,NULL,'(863) 769-7521',NULL,'8637697521',1), - (12,33,1,1,0,NULL,'620-3654',NULL,'6203654',2), - (13,160,1,1,0,NULL,'666-8895',NULL,'6668895',1), - (14,160,1,0,0,NULL,'(815) 384-2755',NULL,'8153842755',2), - (15,148,1,1,0,NULL,'(315) 306-7997',NULL,'3153067997',2), - (16,145,1,1,0,NULL,'809-5669',NULL,'8095669',1), - (17,145,1,0,0,NULL,'552-9847',NULL,'5529847',2), - (18,102,1,1,0,NULL,'(362) 321-5371',NULL,'3623215371',1), - (19,117,1,1,0,NULL,'408-1033',NULL,'4081033',1), - (20,117,1,0,0,NULL,'433-5455',NULL,'4335455',1), - (21,28,1,1,0,NULL,'321-5248',NULL,'3215248',2), - (22,40,1,1,0,NULL,'659-5852',NULL,'6595852',1), - (23,26,1,1,0,NULL,'881-3571',NULL,'8813571',1), - (24,192,1,1,0,NULL,'(470) 372-7457',NULL,'4703727457',2), - (25,141,1,1,0,NULL,'(255) 561-2330',NULL,'2555612330',2), - (26,59,1,1,0,NULL,'(696) 607-6846',NULL,'6966076846',2), - (27,100,1,1,0,NULL,'(333) 790-5892',NULL,'3337905892',1), - (28,11,1,1,0,NULL,'878-9420',NULL,'8789420',1), - (29,11,1,0,0,NULL,'(834) 794-8983',NULL,'8347948983',2), - (30,47,1,1,0,NULL,'389-7833',NULL,'3897833',1), - (31,47,1,0,0,NULL,'568-2506',NULL,'5682506',2), - (32,22,1,1,0,NULL,'207-1069',NULL,'2071069',1), - (33,75,1,1,0,NULL,'308-4515',NULL,'3084515',1), - (34,75,1,0,0,NULL,'(366) 266-5652',NULL,'3662665652',2), - (35,182,1,1,0,NULL,'(231) 601-4939',NULL,'2316014939',2), - (36,132,1,1,0,NULL,'211-8137',NULL,'2118137',1), - (37,132,1,0,0,NULL,'(632) 471-3546',NULL,'6324713546',2), - (38,136,1,1,0,NULL,'478-7361',NULL,'4787361',1), - (39,136,1,0,0,NULL,'(393) 756-6446',NULL,'3937566446',2), - (40,172,1,1,0,NULL,'(816) 420-6539',NULL,'8164206539',2), - (41,172,1,0,0,NULL,'332-7598',NULL,'3327598',2), - (42,90,1,1,0,NULL,'554-4992',NULL,'5544992',1), - (43,90,1,0,0,NULL,'740-1806',NULL,'7401806',2), - (44,120,1,1,0,NULL,'(562) 332-2740',NULL,'5623322740',2), - (45,109,1,1,0,NULL,'(444) 519-9615',NULL,'4445199615',2), - (46,69,1,1,0,NULL,'719-8366',NULL,'7198366',1), - (47,69,1,0,0,NULL,'(570) 383-4080',NULL,'5703834080',1), - (48,96,1,1,0,NULL,'(850) 588-2618',NULL,'8505882618',2), - (49,96,1,0,0,NULL,'(590) 786-3934',NULL,'5907863934',1), - (50,159,1,1,0,NULL,'711-8388',NULL,'7118388',1), - (51,78,1,1,0,NULL,'882-4369',NULL,'8824369',1), - (52,70,1,1,0,NULL,'(208) 588-4365',NULL,'2085884365',2), - (53,70,1,0,0,NULL,'330-3371',NULL,'3303371',1), - (54,103,1,1,0,NULL,'(301) 301-6529',NULL,'3013016529',1), - (55,84,1,1,0,NULL,'388-1082',NULL,'3881082',2), - (56,71,1,1,0,NULL,'632-8191',NULL,'6328191',1), - (57,115,1,1,0,NULL,'(768) 546-1445',NULL,'7685461445',1), - (58,115,1,0,0,NULL,'(240) 323-4439',NULL,'2403234439',1), - (59,56,1,1,0,NULL,'804-4284',NULL,'8044284',1), - (60,56,1,0,0,NULL,'604-3082',NULL,'6043082',2), - (61,196,1,1,0,NULL,'581-1053',NULL,'5811053',2), - (62,62,1,1,0,NULL,'(444) 529-6168',NULL,'4445296168',2), - (63,121,1,1,0,NULL,'538-7666',NULL,'5387666',1), - (64,121,1,0,0,NULL,'(649) 838-6012',NULL,'6498386012',1), - (65,114,1,1,0,NULL,'(491) 697-4292',NULL,'4916974292',2), - (66,114,1,0,0,NULL,'(402) 806-4331',NULL,'4028064331',2), - (67,143,1,1,0,NULL,'684-2929',NULL,'6842929',2), - (68,143,1,0,0,NULL,'504-9030',NULL,'5049030',1), - (69,39,1,1,0,NULL,'(745) 784-2855',NULL,'7457842855',2), - (70,13,1,1,0,NULL,'405-6241',NULL,'4056241',1), - (71,53,1,1,0,NULL,'(259) 503-4581',NULL,'2595034581',2), - (72,53,1,0,0,NULL,'(270) 454-3150',NULL,'2704543150',1), - (73,23,1,1,0,NULL,'590-6821',NULL,'5906821',2), - (74,23,1,0,0,NULL,'822-3359',NULL,'8223359',1), - (75,151,1,1,0,NULL,'484-6640',NULL,'4846640',1), - (76,151,1,0,0,NULL,'(460) 842-2951',NULL,'4608422951',1), - (77,20,1,1,0,NULL,'295-6660',NULL,'2956660',2), - (78,20,1,0,0,NULL,'232-6904',NULL,'2326904',2), - (79,30,1,1,0,NULL,'(541) 276-1336',NULL,'5412761336',1), - (80,50,1,1,0,NULL,'(260) 460-6723',NULL,'2604606723',2), - (81,194,1,1,0,NULL,'297-5015',NULL,'2975015',1), - (82,194,1,0,0,NULL,'869-8221',NULL,'8698221',1), - (83,140,1,1,0,NULL,'(570) 504-9344',NULL,'5705049344',1), - (84,140,1,0,0,NULL,'(294) 614-9255',NULL,'2946149255',1), - (85,87,1,1,0,NULL,'(276) 458-3484',NULL,'2764583484',2), - (86,18,1,1,0,NULL,'445-7801',NULL,'4457801',2), - (87,18,1,0,0,NULL,'674-8715',NULL,'6748715',1), - (88,63,1,1,0,NULL,'(876) 484-7201',NULL,'8764847201',2), - (89,63,1,0,0,NULL,'(661) 579-4735',NULL,'6615794735',2), - (90,8,1,1,0,NULL,'335-3207',NULL,'3353207',2), - (91,80,1,1,0,NULL,'(897) 792-7837',NULL,'8977927837',2), - (92,104,1,1,0,NULL,'(494) 804-4620',NULL,'4948044620',2), - (93,104,1,0,0,NULL,'(866) 813-7362',NULL,'8668137362',1), - (94,137,1,1,0,NULL,'462-1248',NULL,'4621248',2), - (95,137,1,0,0,NULL,'803-4098',NULL,'8034098',2), - (96,163,1,1,0,NULL,'(479) 206-8560',NULL,'4792068560',2), - (97,27,1,1,0,NULL,'546-7688',NULL,'5467688',2), - (98,27,1,0,0,NULL,'(742) 619-4578',NULL,'7426194578',2), - (99,35,1,1,0,NULL,'229-1377',NULL,'2291377',1), - (100,35,1,0,0,NULL,'444-2114',NULL,'4442114',1), - (101,3,1,1,0,NULL,'710-7788',NULL,'7107788',1), - (102,3,1,0,0,NULL,'(712) 717-7402',NULL,'7127177402',1), - (103,147,1,1,0,NULL,'221-2010',NULL,'2212010',1), - (104,147,1,0,0,NULL,'378-7886',NULL,'3787886',1), - (105,191,1,1,0,NULL,'(848) 215-4760',NULL,'8482154760',1), - (106,191,1,0,0,NULL,'(451) 690-4689',NULL,'4516904689',1), - (107,16,1,1,0,NULL,'(721) 823-7187',NULL,'7218237187',2), - (108,81,1,1,0,NULL,'434-9644',NULL,'4349644',2), - (109,81,1,0,0,NULL,'(400) 235-8825',NULL,'4002358825',2), - (110,127,1,1,0,NULL,'(237) 287-9540',NULL,'2372879540',1), - (111,127,1,0,0,NULL,'(877) 890-6177',NULL,'8778906177',1), - (112,95,1,1,0,NULL,'(245) 812-5457',NULL,'2458125457',2), - (113,72,1,1,0,NULL,'434-3213',NULL,'4343213',1), - (114,125,1,1,0,NULL,'(521) 657-1085',NULL,'5216571085',1), - (115,125,1,0,0,NULL,'220-9619',NULL,'2209619',1), - (116,173,1,1,0,NULL,'778-3377',NULL,'7783377',1), - (117,173,1,0,0,NULL,'402-8034',NULL,'4028034',1), - (118,139,1,1,0,NULL,'239-6190',NULL,'2396190',2), - (119,139,1,0,0,NULL,'210-8531',NULL,'2108531',2), - (120,77,1,1,0,NULL,'(892) 444-7958',NULL,'8924447958',2), - (121,31,1,1,0,NULL,'(528) 665-5024',NULL,'5286655024',1), - (122,31,1,0,0,NULL,'(213) 448-5903',NULL,'2134485903',1), - (123,116,1,1,0,NULL,'324-5380',NULL,'3245380',2), - (124,116,1,0,0,NULL,'(569) 828-7641',NULL,'5698287641',1), - (125,29,1,1,0,NULL,'307-6855',NULL,'3076855',1), - (126,29,1,0,0,NULL,'(748) 447-7864',NULL,'7484477864',1), - (127,60,1,1,0,NULL,'(533) 276-2337',NULL,'5332762337',1), - (128,60,1,0,0,NULL,'693-7759',NULL,'6937759',2), - (129,170,1,1,0,NULL,'628-1484',NULL,'6281484',2), - (130,170,1,0,0,NULL,'(503) 245-5623',NULL,'5032455623',2), - (131,7,1,1,0,NULL,'(684) 261-2691',NULL,'6842612691',1), - (132,7,1,0,0,NULL,'(671) 716-3868',NULL,'6717163868',1), - (133,65,1,1,0,NULL,'248-6201',NULL,'2486201',1), - (134,94,1,1,0,NULL,'262-5737',NULL,'2625737',2), - (135,195,1,1,0,NULL,'589-1822',NULL,'5891822',2), - (136,195,1,0,0,NULL,'344-7467',NULL,'3447467',2), - (137,45,1,1,0,NULL,'(732) 256-6124',NULL,'7322566124',2), - (138,176,1,1,0,NULL,'(571) 304-4319',NULL,'5713044319',1), - (139,176,1,0,0,NULL,'(826) 209-3476',NULL,'8262093476',2), - (140,36,1,1,0,NULL,'234-5012',NULL,'2345012',1), - (141,36,1,0,0,NULL,'(525) 650-9890',NULL,'5256509890',1), - (142,133,1,1,0,NULL,'(368) 362-9079',NULL,'3683629079',1), - (143,133,1,0,0,NULL,'(207) 546-6030',NULL,'2075466030',2), - (144,19,1,1,0,NULL,'(496) 763-9847',NULL,'4967639847',1), - (145,97,1,1,0,NULL,'(643) 444-9060',NULL,'6434449060',2), - (146,97,1,0,0,NULL,'896-1424',NULL,'8961424',1), - (147,46,1,1,0,NULL,'(300) 237-3631',NULL,'3002373631',2), - (148,46,1,0,0,NULL,'476-6631',NULL,'4766631',1), - (149,93,1,1,0,NULL,'311-6393',NULL,'3116393',2), - (150,76,1,1,0,NULL,'254-5604',NULL,'2545604',2), - (151,187,1,1,0,NULL,'(796) 242-6495',NULL,'7962426495',2), - (152,74,1,1,0,NULL,'(443) 855-6494',NULL,'4438556494',2), - (153,74,1,0,0,NULL,'243-8653',NULL,'2438653',2), - (154,185,1,1,0,NULL,'508-6226',NULL,'5086226',1), - (155,119,1,1,0,NULL,'893-1349',NULL,'8931349',1), - (156,119,1,0,0,NULL,'(554) 844-9642',NULL,'5548449642',1), - (157,2,1,1,0,NULL,'741-2314',NULL,'7412314',2), - (158,57,1,1,0,NULL,'(374) 203-8158',NULL,'3742038158',2), - (159,110,1,1,0,NULL,'(355) 658-8825',NULL,'3556588825',1), - (160,89,1,1,0,NULL,'869-3052',NULL,'8693052',2), - (161,54,1,1,0,NULL,'502-2841',NULL,'5022841',1), - (162,NULL,1,0,0,NULL,'204 222-1000',NULL,'2042221000',1), - (163,NULL,1,0,0,NULL,'204 223-1000',NULL,'2042231000',1), - (164,NULL,1,0,0,NULL,'303 323-1000',NULL,'3033231000',1); + (1,26,1,1,0,NULL,'626-4452',NULL,'6264452',1), + (2,201,1,1,0,NULL,'(601) 877-3596',NULL,'6018773596',1), + (3,201,1,0,0,NULL,'516-4306',NULL,'5164306',2), + (4,153,1,1,0,NULL,'(358) 601-7395',NULL,'3586017395',1), + (5,153,1,0,0,NULL,'308-1097',NULL,'3081097',1), + (6,81,1,1,0,NULL,'645-2038',NULL,'6452038',2), + (7,61,1,1,0,NULL,'(249) 569-3805',NULL,'2495693805',2), + (8,5,1,1,0,NULL,'(339) 424-4730',NULL,'3394244730',2), + (9,78,1,1,0,NULL,'(852) 800-1134',NULL,'8528001134',2), + (10,182,1,1,0,NULL,'(308) 606-9887',NULL,'3086069887',2), + (11,182,1,0,0,NULL,'406-2390',NULL,'4062390',1), + (12,109,1,1,0,NULL,'(721) 755-7020',NULL,'7217557020',2), + (13,125,1,1,0,NULL,'(777) 747-4203',NULL,'7777474203',2), + (14,33,1,1,0,NULL,'(522) 513-5343',NULL,'5225135343',1), + (15,33,1,0,0,NULL,'246-4005',NULL,'2464005',2), + (16,72,1,1,0,NULL,'302-9143',NULL,'3029143',1), + (17,72,1,0,0,NULL,'248-8006',NULL,'2488006',2), + (18,129,1,1,0,NULL,'440-9856',NULL,'4409856',2), + (19,129,1,0,0,NULL,'(882) 427-5654',NULL,'8824275654',1), + (20,185,1,1,0,NULL,'(651) 851-4106',NULL,'6518514106',1), + (21,185,1,0,0,NULL,'(668) 892-3651',NULL,'6688923651',1), + (22,44,1,1,0,NULL,'482-8124',NULL,'4828124',2), + (23,44,1,0,0,NULL,'270-9054',NULL,'2709054',2), + (24,169,1,1,0,NULL,'(599) 556-8363',NULL,'5995568363',1), + (25,169,1,0,0,NULL,'203-1147',NULL,'2031147',1), + (26,96,1,1,0,NULL,'(812) 562-6926',NULL,'8125626926',1), + (27,96,1,0,0,NULL,'766-4045',NULL,'7664045',1), + (28,114,1,1,0,NULL,'(327) 206-1159',NULL,'3272061159',1), + (29,160,1,1,0,NULL,'803-3643',NULL,'8033643',1), + (30,160,1,0,0,NULL,'(402) 532-8458',NULL,'4025328458',1), + (31,95,1,1,0,NULL,'(615) 382-3038',NULL,'6153823038',2), + (32,95,1,0,0,NULL,'361-7641',NULL,'3617641',1), + (33,106,1,1,0,NULL,'526-4509',NULL,'5264509',1), + (34,106,1,0,0,NULL,'523-8678',NULL,'5238678',2), + (35,100,1,1,0,NULL,'(783) 848-5368',NULL,'7838485368',2), + (36,100,1,0,0,NULL,'827-7185',NULL,'8277185',1), + (37,155,1,1,0,NULL,'666-4681',NULL,'6664681',2), + (38,155,1,0,0,NULL,'267-3399',NULL,'2673399',2), + (39,197,1,1,0,NULL,'706-3696',NULL,'7063696',2), + (40,142,1,1,0,NULL,'(815) 428-7800',NULL,'8154287800',1), + (41,97,1,1,0,NULL,'(611) 631-6002',NULL,'6116316002',1), + (42,97,1,0,0,NULL,'(735) 209-4377',NULL,'7352094377',2), + (43,105,1,1,0,NULL,'271-4577',NULL,'2714577',1), + (44,43,1,1,0,NULL,'(822) 378-7074',NULL,'8223787074',1), + (45,70,1,1,0,NULL,'575-9967',NULL,'5759967',2), + (46,70,1,0,0,NULL,'(474) 708-2621',NULL,'4747082621',1), + (47,16,1,1,0,NULL,'660-6224',NULL,'6606224',2), + (48,47,1,1,0,NULL,'(818) 576-3760',NULL,'8185763760',2), + (49,47,1,0,0,NULL,'(379) 438-1039',NULL,'3794381039',2), + (50,199,1,1,0,NULL,'567-8499',NULL,'5678499',1), + (51,199,1,0,0,NULL,'(393) 220-2518',NULL,'3932202518',1), + (52,165,1,1,0,NULL,'(476) 227-4887',NULL,'4762274887',1), + (53,165,1,0,0,NULL,'(343) 783-2679',NULL,'3437832679',2), + (54,188,1,1,0,NULL,'(346) 565-8167',NULL,'3465658167',2), + (55,54,1,1,0,NULL,'667-8248',NULL,'6678248',1), + (56,164,1,1,0,NULL,'(650) 339-7133',NULL,'6503397133',1), + (57,164,1,0,0,NULL,'323-7421',NULL,'3237421',2), + (58,170,1,1,0,NULL,'791-9346',NULL,'7919346',1), + (59,138,1,1,0,NULL,'(303) 823-1661',NULL,'3038231661',2), + (60,156,1,1,0,NULL,'(614) 548-1388',NULL,'6145481388',2), + (61,156,1,0,0,NULL,'(578) 580-9693',NULL,'5785809693',1), + (62,177,1,1,0,NULL,'(830) 835-8328',NULL,'8308358328',1), + (63,177,1,0,0,NULL,'272-7601',NULL,'2727601',2), + (64,7,1,1,0,NULL,'495-7276',NULL,'4957276',1), + (65,7,1,0,0,NULL,'554-6513',NULL,'5546513',1), + (66,143,1,1,0,NULL,'313-2230',NULL,'3132230',1), + (67,143,1,0,0,NULL,'443-8070',NULL,'4438070',2), + (68,122,1,1,0,NULL,'872-1807',NULL,'8721807',2), + (69,122,1,0,0,NULL,'201-4413',NULL,'2014413',2), + (70,196,1,1,0,NULL,'548-1138',NULL,'5481138',1), + (71,196,1,0,0,NULL,'(593) 258-8785',NULL,'5932588785',1), + (72,198,1,1,0,NULL,'(546) 798-8341',NULL,'5467988341',1), + (73,198,1,0,0,NULL,'(556) 293-5499',NULL,'5562935499',2), + (74,181,1,1,0,NULL,'(269) 523-5210',NULL,'2695235210',1), + (75,181,1,0,0,NULL,'760-3813',NULL,'7603813',1), + (76,167,1,1,0,NULL,'(555) 291-1194',NULL,'5552911194',1), + (77,167,1,0,0,NULL,'609-9136',NULL,'6099136',1), + (78,12,1,1,0,NULL,'(421) 498-6332',NULL,'4214986332',2), + (79,12,1,0,0,NULL,'341-9113',NULL,'3419113',2), + (80,195,1,1,0,NULL,'(383) 636-3232',NULL,'3836363232',1), + (81,36,1,1,0,NULL,'(279) 241-7027',NULL,'2792417027',1), + (82,36,1,0,0,NULL,'443-1835',NULL,'4431835',2), + (83,32,1,1,0,NULL,'256-5859',NULL,'2565859',1), + (84,37,1,1,0,NULL,'594-8325',NULL,'5948325',2), + (85,37,1,0,0,NULL,'400-3124',NULL,'4003124',2), + (86,123,1,1,0,NULL,'690-3904',NULL,'6903904',2), + (87,123,1,0,0,NULL,'744-4576',NULL,'7444576',2), + (88,163,1,1,0,NULL,'310-5682',NULL,'3105682',2), + (89,163,1,0,0,NULL,'795-3038',NULL,'7953038',2), + (90,46,1,1,0,NULL,'428-6045',NULL,'4286045',2), + (91,66,1,1,0,NULL,'(301) 737-9585',NULL,'3017379585',2), + (92,149,1,1,0,NULL,'(784) 358-2801',NULL,'7843582801',1), + (93,149,1,0,0,NULL,'(452) 586-4393',NULL,'4525864393',1), + (94,18,1,1,0,NULL,'(500) 830-8578',NULL,'5008308578',1), + (95,18,1,0,0,NULL,'824-4374',NULL,'8244374',2), + (96,184,1,1,0,NULL,'(492) 602-6601',NULL,'4926026601',2), + (97,10,1,1,0,NULL,'748-1140',NULL,'7481140',1), + (98,63,1,1,0,NULL,'(525) 886-6876',NULL,'5258866876',2), + (99,63,1,0,0,NULL,'795-1814',NULL,'7951814',1), + (100,57,1,1,0,NULL,'280-4050',NULL,'2804050',1), + (101,175,1,1,0,NULL,'(225) 327-4446',NULL,'2253274446',1), + (102,175,1,0,0,NULL,'(836) 875-2003',NULL,'8368752003',1), + (103,93,1,1,0,NULL,'286-3814',NULL,'2863814',2), + (104,29,1,1,0,NULL,'791-6883',NULL,'7916883',2), + (105,29,1,0,0,NULL,'847-2190',NULL,'8472190',2), + (106,101,1,1,0,NULL,'487-6713',NULL,'4876713',2), + (107,40,1,1,0,NULL,'755-2296',NULL,'7552296',2), + (108,40,1,0,0,NULL,'245-5267',NULL,'2455267',1), + (109,136,1,1,0,NULL,'515-8076',NULL,'5158076',2), + (110,85,1,1,0,NULL,'269-5707',NULL,'2695707',2), + (111,162,1,1,0,NULL,'(732) 342-4533',NULL,'7323424533',1), + (112,103,1,1,0,NULL,'659-6791',NULL,'6596791',2), + (113,103,1,0,0,NULL,'(337) 260-7949',NULL,'3372607949',1), + (114,58,1,1,0,NULL,'(689) 711-1407',NULL,'6897111407',2), + (115,84,1,1,0,NULL,'(720) 688-3131',NULL,'7206883131',2), + (116,84,1,0,0,NULL,'804-6332',NULL,'8046332',1), + (117,60,1,1,0,NULL,'202-5712',NULL,'2025712',1), + (118,60,1,0,0,NULL,'(397) 533-8934',NULL,'3975338934',1), + (119,65,1,1,0,NULL,'(320) 201-3967',NULL,'3202013967',1), + (120,99,1,1,0,NULL,'704-3868',NULL,'7043868',2), + (121,99,1,0,0,NULL,'(858) 886-3121',NULL,'8588863121',2), + (122,82,1,1,0,NULL,'(480) 443-8208',NULL,'4804438208',2), + (123,186,1,1,0,NULL,'259-1752',NULL,'2591752',1), + (124,186,1,0,0,NULL,'(871) 414-6154',NULL,'8714146154',2), + (125,80,1,1,0,NULL,'(799) 712-3640',NULL,'7997123640',2), + (126,48,1,1,0,NULL,'(388) 583-9146',NULL,'3885839146',2), + (127,141,1,1,0,NULL,'832-7394',NULL,'8327394',2), + (128,141,1,0,0,NULL,'607-1851',NULL,'6071851',2), + (129,128,1,1,0,NULL,'(716) 406-7646',NULL,'7164067646',2), + (130,8,1,1,0,NULL,'(502) 493-4962',NULL,'5024934962',1), + (131,8,1,0,0,NULL,'(411) 824-5904',NULL,'4118245904',1), + (132,144,1,1,0,NULL,'(482) 437-3978',NULL,'4824373978',2), + (133,144,1,0,0,NULL,'631-8441',NULL,'6318441',1), + (134,4,1,1,0,NULL,'205-1528',NULL,'2051528',1), + (135,178,1,1,0,NULL,'(596) 650-9099',NULL,'5966509099',1), + (136,178,1,0,0,NULL,'560-4777',NULL,'5604777',2), + (137,127,1,1,0,NULL,'(238) 449-1118',NULL,'2384491118',1), + (138,127,1,0,0,NULL,'292-5458',NULL,'2925458',1), + (139,67,1,1,0,NULL,'366-9985',NULL,'3669985',1), + (140,67,1,0,0,NULL,'(778) 800-1139',NULL,'7788001139',2), + (141,56,1,1,0,NULL,'362-2510',NULL,'3622510',1), + (142,56,1,0,0,NULL,'474-4970',NULL,'4744970',2), + (143,34,1,1,0,NULL,'(545) 780-9250',NULL,'5457809250',2), + (144,34,1,0,0,NULL,'(798) 772-6598',NULL,'7987726598',1), + (145,193,1,1,0,NULL,'(696) 639-7693',NULL,'6966397693',1), + (146,77,1,1,0,NULL,'(709) 304-5994',NULL,'7093045994',1), + (147,77,1,0,0,NULL,'397-4425',NULL,'3974425',2), + (148,39,1,1,0,NULL,'(398) 727-2939',NULL,'3987272939',2), + (149,79,1,1,0,NULL,'657-8933',NULL,'6578933',1), + (150,172,1,1,0,NULL,'(337) 793-6277',NULL,'3377936277',1), + (151,172,1,0,0,NULL,'(747) 298-3682',NULL,'7472983682',1), + (152,173,1,1,0,NULL,'(206) 468-8799',NULL,'2064688799',1), + (153,27,1,1,0,NULL,'(704) 709-2944',NULL,'7047092944',2), + (154,27,1,0,0,NULL,'579-9306',NULL,'5799306',2), + (155,108,1,1,0,NULL,'478-3752',NULL,'4783752',1), + (156,75,1,1,0,NULL,'(465) 877-2813',NULL,'4658772813',2), + (157,42,1,1,0,NULL,'216-9882',NULL,'2169882',2), + (158,42,1,0,0,NULL,'290-9531',NULL,'2909531',1), + (159,38,1,1,0,NULL,'632-2241',NULL,'6322241',1), + (160,151,1,1,0,NULL,'564-5887',NULL,'5645887',2), + (161,151,1,0,0,NULL,'784-3769',NULL,'7843769',2), + (162,145,1,1,0,NULL,'(457) 598-5893',NULL,'4575985893',2), + (163,191,1,1,0,NULL,'279-5915',NULL,'2795915',2), + (164,13,1,1,0,NULL,'(514) 748-4814',NULL,'5147484814',1), + (165,13,1,0,0,NULL,'(632) 471-6768',NULL,'6324716768',1), + (166,41,1,1,0,NULL,'(521) 447-9220',NULL,'5214479220',1), + (167,41,1,0,0,NULL,'276-7516',NULL,'2767516',2), + (168,71,1,1,0,NULL,'640-5187',NULL,'6405187',1), + (169,25,1,1,0,NULL,'852-7798',NULL,'8527798',1), + (170,25,1,0,0,NULL,'277-7950',NULL,'2777950',1), + (171,92,1,1,0,NULL,'(475) 443-2769',NULL,'4754432769',1), + (172,92,1,0,0,NULL,'645-2329',NULL,'6452329',2), + (173,NULL,1,0,0,NULL,'204 222-1000',NULL,'2042221000',1), + (174,NULL,1,0,0,NULL,'204 223-1000',NULL,'2042231000',1), + (175,NULL,1,0,0,NULL,'303 323-1000',NULL,'3033231000',1); /*!40000 ALTER TABLE `civicrm_phone` ENABLE KEYS */; UNLOCK TABLES; @@ -7283,224 +7291,223 @@ UNLOCK TABLES; LOCK TABLES `civicrm_relationship` WRITE; /*!40000 ALTER TABLE `civicrm_relationship` DISABLE KEYS */; INSERT INTO `civicrm_relationship` (`id`, `contact_id_a`, `contact_id_b`, `relationship_type_id`, `start_date`, `end_date`, `is_active`, `description`, `is_permission_a_b`, `is_permission_b_a`, `case_id`, `created_date`, `modified_date`) VALUES - (1,13,190,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (2,53,190,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (3,13,85,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (4,53,85,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (5,53,13,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (6,85,10,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (7,13,10,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (8,53,10,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (9,190,10,7,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (10,85,190,2,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (11,154,58,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (12,23,58,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (13,154,106,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (14,23,106,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (15,23,154,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (16,106,156,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (17,154,156,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (18,23,156,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (19,58,156,7,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (20,106,58,2,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (21,30,151,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (22,15,151,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (23,30,20,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (24,15,20,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (25,15,30,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (26,20,131,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (27,30,131,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (28,15,131,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (29,151,131,7,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (30,20,151,2,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (31,140,50,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (32,87,50,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (33,140,194,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (34,87,194,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (35,87,140,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (36,194,118,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (37,140,118,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (38,87,118,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (39,50,118,7,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (40,194,50,2,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (41,8,18,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (42,189,18,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (43,8,63,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (44,189,63,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (45,189,8,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (46,63,5,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (47,8,5,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (48,189,5,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (49,18,5,7,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (50,63,18,2,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (51,137,80,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (52,126,80,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (53,137,104,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (54,126,104,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (55,126,137,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (56,104,113,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (57,137,113,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (58,126,113,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (59,80,113,7,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (60,104,80,2,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (61,35,163,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (62,3,163,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (63,35,27,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (64,3,27,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (65,3,35,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (66,27,149,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (67,35,149,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (68,3,149,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (69,163,149,7,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (70,27,163,2,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (71,191,147,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (72,122,147,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (73,191,164,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (74,122,164,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (75,122,191,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (76,164,134,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (77,191,134,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (78,122,134,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (79,147,134,7,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (80,164,147,2,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (81,150,16,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (82,127,16,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (83,150,81,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (84,127,81,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (85,127,150,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (86,81,92,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (87,150,92,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (88,127,92,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (89,16,92,7,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (90,81,16,2,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (91,125,95,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (92,17,95,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (93,125,72,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (94,17,72,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (95,17,125,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (96,72,14,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (97,125,14,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (98,17,14,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (99,95,14,7,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (100,72,95,2,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (101,88,173,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (102,77,173,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (103,88,139,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (104,77,139,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (105,77,88,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (106,139,201,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (107,88,201,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (108,77,201,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (109,173,201,7,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (110,139,173,2,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (111,116,31,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (112,29,31,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (113,116,99,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (114,29,99,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (115,29,116,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (116,99,161,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (117,116,161,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (118,29,161,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (119,31,161,7,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (120,99,31,2,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (121,170,86,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (122,38,86,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (123,170,60,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (124,38,60,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (125,38,170,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (126,60,68,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (127,170,68,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (128,38,68,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (129,86,68,7,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (130,60,86,2,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (131,94,7,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (132,195,7,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (133,94,65,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (134,195,65,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (135,195,94,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (136,65,52,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (137,94,52,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (138,195,52,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (139,7,52,7,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (140,65,7,2,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (141,176,45,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (142,36,45,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (143,176,42,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (144,36,42,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (145,36,176,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (146,42,6,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (147,176,6,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (148,36,6,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (149,45,6,7,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (150,42,45,2,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (151,19,133,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (152,97,133,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (153,19,25,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (154,97,25,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (155,97,19,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (156,25,111,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (157,19,111,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (158,97,111,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (159,133,111,7,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (160,25,133,2,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (161,76,46,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (162,187,46,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (163,76,93,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (164,187,93,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (165,187,76,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (166,93,138,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (167,76,138,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (168,187,138,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (169,46,138,7,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (170,93,46,2,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (171,185,74,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (172,197,74,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (173,185,179,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (174,197,179,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (175,197,185,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (176,179,168,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (177,185,168,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (178,197,168,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (179,74,168,7,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (180,179,74,2,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (181,2,184,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (182,57,184,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (183,2,119,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (184,57,119,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (185,57,2,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (186,119,142,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (187,2,142,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (188,57,142,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (189,184,142,7,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (190,119,184,2,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (191,89,110,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (192,54,110,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (193,89,9,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (194,54,9,1,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (195,54,89,4,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (196,9,12,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:17','2023-09-06 22:52:17'), - (197,89,12,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (198,54,12,8,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (199,110,12,7,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (200,9,110,2,NULL,NULL,0,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (201,145,43,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (202,27,48,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (203,76,51,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (204,165,67,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (205,166,73,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (206,154,91,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (207,39,101,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (208,53,105,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (209,3,128,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (210,96,129,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (211,60,135,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (212,26,152,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (213,82,153,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (214,172,157,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (215,183,169,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (216,50,177,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (217,121,188,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'), - (218,28,193,5,NULL,NULL,1,NULL,0,0,NULL,'2023-09-06 22:52:18','2023-09-06 22:52:18'); + (1,66,163,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (2,149,163,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (3,66,46,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (4,149,46,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (5,149,66,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (6,46,200,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (7,66,200,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (8,149,200,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (9,163,200,7,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (10,46,163,2,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (11,10,18,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (12,152,18,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (13,10,184,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (14,152,184,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (15,152,10,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (16,184,14,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (17,10,14,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (18,152,14,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (19,18,14,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (20,184,18,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (21,57,63,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (22,126,63,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (23,57,87,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (24,126,87,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (25,126,57,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (26,87,52,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (27,57,52,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (28,126,52,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (29,63,52,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (30,87,63,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (31,93,23,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (32,29,23,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (33,93,175,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (34,29,175,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (35,29,93,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (36,175,6,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (37,93,6,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (38,29,6,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (39,23,6,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (40,175,23,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (41,40,194,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (42,136,194,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (43,40,101,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (44,136,101,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (45,136,40,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (46,101,11,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (47,40,11,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (48,136,11,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (49,194,11,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (50,101,194,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (51,154,85,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (52,162,85,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (53,154,62,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (54,162,62,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (55,162,154,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (56,62,139,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (57,154,139,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (58,162,139,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (59,85,139,7,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (60,62,85,2,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (61,58,103,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (62,131,103,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (63,58,3,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (64,131,3,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (65,131,58,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (66,3,130,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (67,58,130,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (68,131,130,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (69,103,130,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (70,3,103,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (71,60,84,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (72,158,84,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (73,60,22,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (74,158,22,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (75,158,60,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (76,22,124,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (77,60,124,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (78,158,124,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (79,84,124,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (80,22,84,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (81,99,65,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (82,9,65,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (83,99,73,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (84,9,73,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (85,9,99,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (86,73,147,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (87,99,147,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (88,9,147,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (89,65,147,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (90,73,65,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (91,80,82,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (92,159,82,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (93,80,186,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (94,159,186,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (95,159,80,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (96,186,107,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (97,80,107,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (98,159,107,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (99,82,107,7,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (100,186,82,2,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (101,187,45,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (102,141,45,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (103,187,48,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (104,141,48,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (105,141,187,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (106,48,161,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (107,187,161,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (108,141,161,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (109,45,161,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (110,48,45,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (111,8,157,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (112,140,157,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (113,8,128,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (114,140,128,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (115,140,8,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (116,128,59,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (117,8,59,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (118,140,59,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (119,157,59,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (120,128,157,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (121,178,144,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (122,127,144,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (123,178,4,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (124,127,4,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (125,127,178,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (126,4,117,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (127,178,117,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (128,127,117,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (129,144,117,7,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (130,4,144,2,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (131,34,67,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (132,193,67,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (133,34,56,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (134,193,56,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (135,193,34,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (136,56,88,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (137,34,88,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (138,193,88,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (139,67,88,7,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (140,56,67,2,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (141,79,77,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (142,49,77,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (143,79,39,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (144,49,39,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (145,49,79,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (146,39,135,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (147,79,135,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (148,49,135,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (149,77,135,7,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (150,39,77,2,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (151,173,172,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (152,27,172,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (153,173,137,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (154,27,137,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (155,27,173,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (156,137,132,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (157,173,132,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (158,27,132,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (159,172,132,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (160,137,172,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (161,134,69,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (162,75,69,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (163,134,108,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (164,75,108,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (165,75,134,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (166,108,76,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (167,134,76,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (168,75,76,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (169,69,76,7,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (170,108,69,2,NULL,NULL,0,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (171,151,42,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (172,176,42,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (173,151,38,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (174,176,38,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (175,176,151,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (176,38,21,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:32','2023-10-07 01:51:32'), + (177,151,21,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (178,176,21,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (179,42,21,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (180,38,42,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (181,13,145,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (182,41,145,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (183,13,191,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (184,41,191,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (185,41,13,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (186,191,183,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (187,13,183,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (188,41,183,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (189,145,183,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (190,191,145,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (191,28,71,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (192,92,71,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (193,28,25,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (194,92,25,1,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (195,92,28,4,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (196,25,148,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (197,28,148,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (198,92,148,8,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (199,71,148,7,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (200,25,71,2,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (201,57,17,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (202,69,19,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (203,194,31,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (204,75,51,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (205,180,53,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (206,120,64,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (207,159,74,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (208,45,111,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (209,136,112,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (210,12,118,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (211,58,121,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (212,104,133,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (213,79,150,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (214,54,166,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (215,169,171,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (216,187,174,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'), + (217,122,190,5,NULL,NULL,1,NULL,0,0,NULL,'2023-10-07 01:51:33','2023-10-07 01:51:33'); /*!40000 ALTER TABLE `civicrm_relationship` ENABLE KEYS */; UNLOCK TABLES; @@ -7511,442 +7518,440 @@ UNLOCK TABLES; LOCK TABLES `civicrm_relationship_cache` WRITE; /*!40000 ALTER TABLE `civicrm_relationship_cache` DISABLE KEYS */; INSERT INTO `civicrm_relationship_cache` (`id`, `relationship_id`, `relationship_type_id`, `orientation`, `near_contact_id`, `near_relation`, `far_contact_id`, `far_relation`, `is_active`, `start_date`, `end_date`, `case_id`) VALUES - (1,1,1,'a_b',13,'Child of',190,'Parent of',1,NULL,NULL,NULL), - (2,1,1,'b_a',190,'Parent of',13,'Child of',1,NULL,NULL,NULL), - (3,2,1,'a_b',53,'Child of',190,'Parent of',1,NULL,NULL,NULL), - (4,2,1,'b_a',190,'Parent of',53,'Child of',1,NULL,NULL,NULL), - (5,3,1,'a_b',13,'Child of',85,'Parent of',1,NULL,NULL,NULL), - (6,3,1,'b_a',85,'Parent of',13,'Child of',1,NULL,NULL,NULL), - (7,4,1,'a_b',53,'Child of',85,'Parent of',1,NULL,NULL,NULL), - (8,4,1,'b_a',85,'Parent of',53,'Child of',1,NULL,NULL,NULL), - (9,5,4,'a_b',53,'Sibling of',13,'Sibling of',1,NULL,NULL,NULL), - (10,5,4,'b_a',13,'Sibling of',53,'Sibling of',1,NULL,NULL,NULL), - (11,6,8,'a_b',85,'Household Member of',10,'Household Member is',1,NULL,NULL,NULL), - (12,6,8,'b_a',10,'Household Member is',85,'Household Member of',1,NULL,NULL,NULL), - (13,7,8,'a_b',13,'Household Member of',10,'Household Member is',1,NULL,NULL,NULL), - (14,7,8,'b_a',10,'Household Member is',13,'Household Member of',1,NULL,NULL,NULL), - (15,8,8,'a_b',53,'Household Member of',10,'Household Member is',1,NULL,NULL,NULL), - (16,8,8,'b_a',10,'Household Member is',53,'Household Member of',1,NULL,NULL,NULL), - (17,9,7,'a_b',190,'Head of Household for',10,'Head of Household is',0,NULL,NULL,NULL), - (18,9,7,'b_a',10,'Head of Household is',190,'Head of Household for',0,NULL,NULL,NULL), - (19,10,2,'a_b',85,'Spouse of',190,'Spouse of',0,NULL,NULL,NULL), - (20,10,2,'b_a',190,'Spouse of',85,'Spouse of',0,NULL,NULL,NULL), - (21,11,1,'a_b',154,'Child of',58,'Parent of',1,NULL,NULL,NULL), - (22,11,1,'b_a',58,'Parent of',154,'Child of',1,NULL,NULL,NULL), - (23,12,1,'a_b',23,'Child of',58,'Parent of',1,NULL,NULL,NULL), - (24,12,1,'b_a',58,'Parent of',23,'Child of',1,NULL,NULL,NULL), - (25,13,1,'a_b',154,'Child of',106,'Parent of',1,NULL,NULL,NULL), - (26,13,1,'b_a',106,'Parent of',154,'Child of',1,NULL,NULL,NULL), - (27,14,1,'a_b',23,'Child of',106,'Parent of',1,NULL,NULL,NULL), - (28,14,1,'b_a',106,'Parent of',23,'Child of',1,NULL,NULL,NULL), - (29,15,4,'a_b',23,'Sibling of',154,'Sibling of',1,NULL,NULL,NULL), - (30,15,4,'b_a',154,'Sibling of',23,'Sibling of',1,NULL,NULL,NULL), - (31,16,8,'a_b',106,'Household Member of',156,'Household Member is',1,NULL,NULL,NULL), - (32,16,8,'b_a',156,'Household Member is',106,'Household Member of',1,NULL,NULL,NULL), - (33,17,8,'a_b',154,'Household Member of',156,'Household Member is',1,NULL,NULL,NULL), - (34,17,8,'b_a',156,'Household Member is',154,'Household Member of',1,NULL,NULL,NULL), - (35,18,8,'a_b',23,'Household Member of',156,'Household Member is',1,NULL,NULL,NULL), - (36,18,8,'b_a',156,'Household Member is',23,'Household Member of',1,NULL,NULL,NULL), - (37,19,7,'a_b',58,'Head of Household for',156,'Head of Household is',1,NULL,NULL,NULL), - (38,19,7,'b_a',156,'Head of Household is',58,'Head of Household for',1,NULL,NULL,NULL), - (39,20,2,'a_b',106,'Spouse of',58,'Spouse of',1,NULL,NULL,NULL), - (40,20,2,'b_a',58,'Spouse of',106,'Spouse of',1,NULL,NULL,NULL), - (41,21,1,'a_b',30,'Child of',151,'Parent of',1,NULL,NULL,NULL), - (42,21,1,'b_a',151,'Parent of',30,'Child of',1,NULL,NULL,NULL), - (43,22,1,'a_b',15,'Child of',151,'Parent of',1,NULL,NULL,NULL), - (44,22,1,'b_a',151,'Parent of',15,'Child of',1,NULL,NULL,NULL), - (45,23,1,'a_b',30,'Child of',20,'Parent of',1,NULL,NULL,NULL), - (46,23,1,'b_a',20,'Parent of',30,'Child of',1,NULL,NULL,NULL), - (47,24,1,'a_b',15,'Child of',20,'Parent of',1,NULL,NULL,NULL), - (48,24,1,'b_a',20,'Parent of',15,'Child of',1,NULL,NULL,NULL), - (49,25,4,'a_b',15,'Sibling of',30,'Sibling of',1,NULL,NULL,NULL), - (50,25,4,'b_a',30,'Sibling of',15,'Sibling of',1,NULL,NULL,NULL), - (51,26,8,'a_b',20,'Household Member of',131,'Household Member is',1,NULL,NULL,NULL), - (52,26,8,'b_a',131,'Household Member is',20,'Household Member of',1,NULL,NULL,NULL), - (53,27,8,'a_b',30,'Household Member of',131,'Household Member is',1,NULL,NULL,NULL), - (54,27,8,'b_a',131,'Household Member is',30,'Household Member of',1,NULL,NULL,NULL), - (55,28,8,'a_b',15,'Household Member of',131,'Household Member is',1,NULL,NULL,NULL), - (56,28,8,'b_a',131,'Household Member is',15,'Household Member of',1,NULL,NULL,NULL), - (57,29,7,'a_b',151,'Head of Household for',131,'Head of Household is',0,NULL,NULL,NULL), - (58,29,7,'b_a',131,'Head of Household is',151,'Head of Household for',0,NULL,NULL,NULL), - (59,30,2,'a_b',20,'Spouse of',151,'Spouse of',0,NULL,NULL,NULL), - (60,30,2,'b_a',151,'Spouse of',20,'Spouse of',0,NULL,NULL,NULL), - (61,31,1,'a_b',140,'Child of',50,'Parent of',1,NULL,NULL,NULL), - (62,31,1,'b_a',50,'Parent of',140,'Child of',1,NULL,NULL,NULL), - (63,32,1,'a_b',87,'Child of',50,'Parent of',1,NULL,NULL,NULL), - (64,32,1,'b_a',50,'Parent of',87,'Child of',1,NULL,NULL,NULL), - (65,33,1,'a_b',140,'Child of',194,'Parent of',1,NULL,NULL,NULL), - (66,33,1,'b_a',194,'Parent of',140,'Child of',1,NULL,NULL,NULL), - (67,34,1,'a_b',87,'Child of',194,'Parent of',1,NULL,NULL,NULL), - (68,34,1,'b_a',194,'Parent of',87,'Child of',1,NULL,NULL,NULL), - (69,35,4,'a_b',87,'Sibling of',140,'Sibling of',1,NULL,NULL,NULL), - (70,35,4,'b_a',140,'Sibling of',87,'Sibling of',1,NULL,NULL,NULL), - (71,36,8,'a_b',194,'Household Member of',118,'Household Member is',1,NULL,NULL,NULL), - (72,36,8,'b_a',118,'Household Member is',194,'Household Member of',1,NULL,NULL,NULL), - (73,37,8,'a_b',140,'Household Member of',118,'Household Member is',1,NULL,NULL,NULL), - (74,37,8,'b_a',118,'Household Member is',140,'Household Member of',1,NULL,NULL,NULL), - (75,38,8,'a_b',87,'Household Member of',118,'Household Member is',1,NULL,NULL,NULL), - (76,38,8,'b_a',118,'Household Member is',87,'Household Member of',1,NULL,NULL,NULL), - (77,39,7,'a_b',50,'Head of Household for',118,'Head of Household is',0,NULL,NULL,NULL), - (78,39,7,'b_a',118,'Head of Household is',50,'Head of Household for',0,NULL,NULL,NULL), - (79,40,2,'a_b',194,'Spouse of',50,'Spouse of',0,NULL,NULL,NULL), - (80,40,2,'b_a',50,'Spouse of',194,'Spouse of',0,NULL,NULL,NULL), - (81,41,1,'a_b',8,'Child of',18,'Parent of',1,NULL,NULL,NULL), - (82,41,1,'b_a',18,'Parent of',8,'Child of',1,NULL,NULL,NULL), - (83,42,1,'a_b',189,'Child of',18,'Parent of',1,NULL,NULL,NULL), - (84,42,1,'b_a',18,'Parent of',189,'Child of',1,NULL,NULL,NULL), - (85,43,1,'a_b',8,'Child of',63,'Parent of',1,NULL,NULL,NULL), - (86,43,1,'b_a',63,'Parent of',8,'Child of',1,NULL,NULL,NULL), - (87,44,1,'a_b',189,'Child of',63,'Parent of',1,NULL,NULL,NULL), - (88,44,1,'b_a',63,'Parent of',189,'Child of',1,NULL,NULL,NULL), - (89,45,4,'a_b',189,'Sibling of',8,'Sibling of',1,NULL,NULL,NULL), - (90,45,4,'b_a',8,'Sibling of',189,'Sibling of',1,NULL,NULL,NULL), - (91,46,8,'a_b',63,'Household Member of',5,'Household Member is',1,NULL,NULL,NULL), - (92,46,8,'b_a',5,'Household Member is',63,'Household Member of',1,NULL,NULL,NULL), - (93,47,8,'a_b',8,'Household Member of',5,'Household Member is',1,NULL,NULL,NULL), - (94,47,8,'b_a',5,'Household Member is',8,'Household Member of',1,NULL,NULL,NULL), - (95,48,8,'a_b',189,'Household Member of',5,'Household Member is',1,NULL,NULL,NULL), - (96,48,8,'b_a',5,'Household Member is',189,'Household Member of',1,NULL,NULL,NULL), - (97,49,7,'a_b',18,'Head of Household for',5,'Head of Household is',0,NULL,NULL,NULL), - (98,49,7,'b_a',5,'Head of Household is',18,'Head of Household for',0,NULL,NULL,NULL), - (99,50,2,'a_b',63,'Spouse of',18,'Spouse of',0,NULL,NULL,NULL), - (100,50,2,'b_a',18,'Spouse of',63,'Spouse of',0,NULL,NULL,NULL), - (101,51,1,'a_b',137,'Child of',80,'Parent of',1,NULL,NULL,NULL), - (102,51,1,'b_a',80,'Parent of',137,'Child of',1,NULL,NULL,NULL), - (103,52,1,'a_b',126,'Child of',80,'Parent of',1,NULL,NULL,NULL), - (104,52,1,'b_a',80,'Parent of',126,'Child of',1,NULL,NULL,NULL), - (105,53,1,'a_b',137,'Child of',104,'Parent of',1,NULL,NULL,NULL), - (106,53,1,'b_a',104,'Parent of',137,'Child of',1,NULL,NULL,NULL), - (107,54,1,'a_b',126,'Child of',104,'Parent of',1,NULL,NULL,NULL), - (108,54,1,'b_a',104,'Parent of',126,'Child of',1,NULL,NULL,NULL), - (109,55,4,'a_b',126,'Sibling of',137,'Sibling of',1,NULL,NULL,NULL), - (110,55,4,'b_a',137,'Sibling of',126,'Sibling of',1,NULL,NULL,NULL), - (111,56,8,'a_b',104,'Household Member of',113,'Household Member is',1,NULL,NULL,NULL), - (112,56,8,'b_a',113,'Household Member is',104,'Household Member of',1,NULL,NULL,NULL), - (113,57,8,'a_b',137,'Household Member of',113,'Household Member is',1,NULL,NULL,NULL), - (114,57,8,'b_a',113,'Household Member is',137,'Household Member of',1,NULL,NULL,NULL), - (115,58,8,'a_b',126,'Household Member of',113,'Household Member is',1,NULL,NULL,NULL), - (116,58,8,'b_a',113,'Household Member is',126,'Household Member of',1,NULL,NULL,NULL), - (117,59,7,'a_b',80,'Head of Household for',113,'Head of Household is',0,NULL,NULL,NULL), - (118,59,7,'b_a',113,'Head of Household is',80,'Head of Household for',0,NULL,NULL,NULL), - (119,60,2,'a_b',104,'Spouse of',80,'Spouse of',0,NULL,NULL,NULL), - (120,60,2,'b_a',80,'Spouse of',104,'Spouse of',0,NULL,NULL,NULL), - (121,61,1,'a_b',35,'Child of',163,'Parent of',1,NULL,NULL,NULL), - (122,61,1,'b_a',163,'Parent of',35,'Child of',1,NULL,NULL,NULL), - (123,62,1,'a_b',3,'Child of',163,'Parent of',1,NULL,NULL,NULL), - (124,62,1,'b_a',163,'Parent of',3,'Child of',1,NULL,NULL,NULL), - (125,63,1,'a_b',35,'Child of',27,'Parent of',1,NULL,NULL,NULL), - (126,63,1,'b_a',27,'Parent of',35,'Child of',1,NULL,NULL,NULL), - (127,64,1,'a_b',3,'Child of',27,'Parent of',1,NULL,NULL,NULL), - (128,64,1,'b_a',27,'Parent of',3,'Child of',1,NULL,NULL,NULL), - (129,65,4,'a_b',3,'Sibling of',35,'Sibling of',1,NULL,NULL,NULL), - (130,65,4,'b_a',35,'Sibling of',3,'Sibling of',1,NULL,NULL,NULL), - (131,66,8,'a_b',27,'Household Member of',149,'Household Member is',1,NULL,NULL,NULL), - (132,66,8,'b_a',149,'Household Member is',27,'Household Member of',1,NULL,NULL,NULL), - (133,67,8,'a_b',35,'Household Member of',149,'Household Member is',1,NULL,NULL,NULL), - (134,67,8,'b_a',149,'Household Member is',35,'Household Member of',1,NULL,NULL,NULL), - (135,68,8,'a_b',3,'Household Member of',149,'Household Member is',1,NULL,NULL,NULL), - (136,68,8,'b_a',149,'Household Member is',3,'Household Member of',1,NULL,NULL,NULL), - (137,69,7,'a_b',163,'Head of Household for',149,'Head of Household is',0,NULL,NULL,NULL), - (138,69,7,'b_a',149,'Head of Household is',163,'Head of Household for',0,NULL,NULL,NULL), - (139,70,2,'a_b',27,'Spouse of',163,'Spouse of',0,NULL,NULL,NULL), - (140,70,2,'b_a',163,'Spouse of',27,'Spouse of',0,NULL,NULL,NULL), - (141,71,1,'a_b',191,'Child of',147,'Parent of',1,NULL,NULL,NULL), - (142,71,1,'b_a',147,'Parent of',191,'Child of',1,NULL,NULL,NULL), - (143,72,1,'a_b',122,'Child of',147,'Parent of',1,NULL,NULL,NULL), - (144,72,1,'b_a',147,'Parent of',122,'Child of',1,NULL,NULL,NULL), - (145,73,1,'a_b',191,'Child of',164,'Parent of',1,NULL,NULL,NULL), - (146,73,1,'b_a',164,'Parent of',191,'Child of',1,NULL,NULL,NULL), - (147,74,1,'a_b',122,'Child of',164,'Parent of',1,NULL,NULL,NULL), - (148,74,1,'b_a',164,'Parent of',122,'Child of',1,NULL,NULL,NULL), - (149,75,4,'a_b',122,'Sibling of',191,'Sibling of',1,NULL,NULL,NULL), - (150,75,4,'b_a',191,'Sibling of',122,'Sibling of',1,NULL,NULL,NULL), - (151,76,8,'a_b',164,'Household Member of',134,'Household Member is',1,NULL,NULL,NULL), - (152,76,8,'b_a',134,'Household Member is',164,'Household Member of',1,NULL,NULL,NULL), - (153,77,8,'a_b',191,'Household Member of',134,'Household Member is',1,NULL,NULL,NULL), - (154,77,8,'b_a',134,'Household Member is',191,'Household Member of',1,NULL,NULL,NULL), - (155,78,8,'a_b',122,'Household Member of',134,'Household Member is',1,NULL,NULL,NULL), - (156,78,8,'b_a',134,'Household Member is',122,'Household Member of',1,NULL,NULL,NULL), - (157,79,7,'a_b',147,'Head of Household for',134,'Head of Household is',1,NULL,NULL,NULL), - (158,79,7,'b_a',134,'Head of Household is',147,'Head of Household for',1,NULL,NULL,NULL), - (159,80,2,'a_b',164,'Spouse of',147,'Spouse of',1,NULL,NULL,NULL), - (160,80,2,'b_a',147,'Spouse of',164,'Spouse of',1,NULL,NULL,NULL), - (161,81,1,'a_b',150,'Child of',16,'Parent of',1,NULL,NULL,NULL), - (162,81,1,'b_a',16,'Parent of',150,'Child of',1,NULL,NULL,NULL), - (163,82,1,'a_b',127,'Child of',16,'Parent of',1,NULL,NULL,NULL), - (164,82,1,'b_a',16,'Parent of',127,'Child of',1,NULL,NULL,NULL), - (165,83,1,'a_b',150,'Child of',81,'Parent of',1,NULL,NULL,NULL), - (166,83,1,'b_a',81,'Parent of',150,'Child of',1,NULL,NULL,NULL), - (167,84,1,'a_b',127,'Child of',81,'Parent of',1,NULL,NULL,NULL), - (168,84,1,'b_a',81,'Parent of',127,'Child of',1,NULL,NULL,NULL), - (169,85,4,'a_b',127,'Sibling of',150,'Sibling of',1,NULL,NULL,NULL), - (170,85,4,'b_a',150,'Sibling of',127,'Sibling of',1,NULL,NULL,NULL), - (171,86,8,'a_b',81,'Household Member of',92,'Household Member is',1,NULL,NULL,NULL), - (172,86,8,'b_a',92,'Household Member is',81,'Household Member of',1,NULL,NULL,NULL), - (173,87,8,'a_b',150,'Household Member of',92,'Household Member is',1,NULL,NULL,NULL), - (174,87,8,'b_a',92,'Household Member is',150,'Household Member of',1,NULL,NULL,NULL), - (175,88,8,'a_b',127,'Household Member of',92,'Household Member is',1,NULL,NULL,NULL), - (176,88,8,'b_a',92,'Household Member is',127,'Household Member of',1,NULL,NULL,NULL), - (177,89,7,'a_b',16,'Head of Household for',92,'Head of Household is',1,NULL,NULL,NULL), - (178,89,7,'b_a',92,'Head of Household is',16,'Head of Household for',1,NULL,NULL,NULL), - (179,90,2,'a_b',81,'Spouse of',16,'Spouse of',1,NULL,NULL,NULL), - (180,90,2,'b_a',16,'Spouse of',81,'Spouse of',1,NULL,NULL,NULL), - (181,91,1,'a_b',125,'Child of',95,'Parent of',1,NULL,NULL,NULL), - (182,91,1,'b_a',95,'Parent of',125,'Child of',1,NULL,NULL,NULL), - (183,92,1,'a_b',17,'Child of',95,'Parent of',1,NULL,NULL,NULL), - (184,92,1,'b_a',95,'Parent of',17,'Child of',1,NULL,NULL,NULL), - (185,93,1,'a_b',125,'Child of',72,'Parent of',1,NULL,NULL,NULL), - (186,93,1,'b_a',72,'Parent of',125,'Child of',1,NULL,NULL,NULL), - (187,94,1,'a_b',17,'Child of',72,'Parent of',1,NULL,NULL,NULL), - (188,94,1,'b_a',72,'Parent of',17,'Child of',1,NULL,NULL,NULL), - (189,95,4,'a_b',17,'Sibling of',125,'Sibling of',1,NULL,NULL,NULL), - (190,95,4,'b_a',125,'Sibling of',17,'Sibling of',1,NULL,NULL,NULL), - (191,96,8,'a_b',72,'Household Member of',14,'Household Member is',1,NULL,NULL,NULL), - (192,96,8,'b_a',14,'Household Member is',72,'Household Member of',1,NULL,NULL,NULL), - (193,97,8,'a_b',125,'Household Member of',14,'Household Member is',1,NULL,NULL,NULL), - (194,97,8,'b_a',14,'Household Member is',125,'Household Member of',1,NULL,NULL,NULL), - (195,98,8,'a_b',17,'Household Member of',14,'Household Member is',1,NULL,NULL,NULL), - (196,98,8,'b_a',14,'Household Member is',17,'Household Member of',1,NULL,NULL,NULL), - (197,99,7,'a_b',95,'Head of Household for',14,'Head of Household is',0,NULL,NULL,NULL), - (198,99,7,'b_a',14,'Head of Household is',95,'Head of Household for',0,NULL,NULL,NULL), - (199,100,2,'a_b',72,'Spouse of',95,'Spouse of',0,NULL,NULL,NULL), - (200,100,2,'b_a',95,'Spouse of',72,'Spouse of',0,NULL,NULL,NULL), - (201,101,1,'a_b',88,'Child of',173,'Parent of',1,NULL,NULL,NULL), - (202,101,1,'b_a',173,'Parent of',88,'Child of',1,NULL,NULL,NULL), - (203,102,1,'a_b',77,'Child of',173,'Parent of',1,NULL,NULL,NULL), - (204,102,1,'b_a',173,'Parent of',77,'Child of',1,NULL,NULL,NULL), - (205,103,1,'a_b',88,'Child of',139,'Parent of',1,NULL,NULL,NULL), - (206,103,1,'b_a',139,'Parent of',88,'Child of',1,NULL,NULL,NULL), - (207,104,1,'a_b',77,'Child of',139,'Parent of',1,NULL,NULL,NULL), - (208,104,1,'b_a',139,'Parent of',77,'Child of',1,NULL,NULL,NULL), - (209,105,4,'a_b',77,'Sibling of',88,'Sibling of',1,NULL,NULL,NULL), - (210,105,4,'b_a',88,'Sibling of',77,'Sibling of',1,NULL,NULL,NULL), - (211,106,8,'a_b',139,'Household Member of',201,'Household Member is',1,NULL,NULL,NULL), - (212,106,8,'b_a',201,'Household Member is',139,'Household Member of',1,NULL,NULL,NULL), - (213,107,8,'a_b',88,'Household Member of',201,'Household Member is',1,NULL,NULL,NULL), - (214,107,8,'b_a',201,'Household Member is',88,'Household Member of',1,NULL,NULL,NULL), - (215,108,8,'a_b',77,'Household Member of',201,'Household Member is',1,NULL,NULL,NULL), - (216,108,8,'b_a',201,'Household Member is',77,'Household Member of',1,NULL,NULL,NULL), - (217,109,7,'a_b',173,'Head of Household for',201,'Head of Household is',1,NULL,NULL,NULL), - (218,109,7,'b_a',201,'Head of Household is',173,'Head of Household for',1,NULL,NULL,NULL), - (219,110,2,'a_b',139,'Spouse of',173,'Spouse of',1,NULL,NULL,NULL), - (220,110,2,'b_a',173,'Spouse of',139,'Spouse of',1,NULL,NULL,NULL), - (221,111,1,'a_b',116,'Child of',31,'Parent of',1,NULL,NULL,NULL), - (222,111,1,'b_a',31,'Parent of',116,'Child of',1,NULL,NULL,NULL), - (223,112,1,'a_b',29,'Child of',31,'Parent of',1,NULL,NULL,NULL), - (224,112,1,'b_a',31,'Parent of',29,'Child of',1,NULL,NULL,NULL), - (225,113,1,'a_b',116,'Child of',99,'Parent of',1,NULL,NULL,NULL), - (226,113,1,'b_a',99,'Parent of',116,'Child of',1,NULL,NULL,NULL), - (227,114,1,'a_b',29,'Child of',99,'Parent of',1,NULL,NULL,NULL), - (228,114,1,'b_a',99,'Parent of',29,'Child of',1,NULL,NULL,NULL), - (229,115,4,'a_b',29,'Sibling of',116,'Sibling of',1,NULL,NULL,NULL), - (230,115,4,'b_a',116,'Sibling of',29,'Sibling of',1,NULL,NULL,NULL), - (231,116,8,'a_b',99,'Household Member of',161,'Household Member is',1,NULL,NULL,NULL), - (232,116,8,'b_a',161,'Household Member is',99,'Household Member of',1,NULL,NULL,NULL), - (233,117,8,'a_b',116,'Household Member of',161,'Household Member is',1,NULL,NULL,NULL), - (234,117,8,'b_a',161,'Household Member is',116,'Household Member of',1,NULL,NULL,NULL), - (235,118,8,'a_b',29,'Household Member of',161,'Household Member is',1,NULL,NULL,NULL), - (236,118,8,'b_a',161,'Household Member is',29,'Household Member of',1,NULL,NULL,NULL), - (237,119,7,'a_b',31,'Head of Household for',161,'Head of Household is',0,NULL,NULL,NULL), - (238,119,7,'b_a',161,'Head of Household is',31,'Head of Household for',0,NULL,NULL,NULL), - (239,120,2,'a_b',99,'Spouse of',31,'Spouse of',0,NULL,NULL,NULL), - (240,120,2,'b_a',31,'Spouse of',99,'Spouse of',0,NULL,NULL,NULL), - (241,121,1,'a_b',170,'Child of',86,'Parent of',1,NULL,NULL,NULL), - (242,121,1,'b_a',86,'Parent of',170,'Child of',1,NULL,NULL,NULL), - (243,122,1,'a_b',38,'Child of',86,'Parent of',1,NULL,NULL,NULL), - (244,122,1,'b_a',86,'Parent of',38,'Child of',1,NULL,NULL,NULL), - (245,123,1,'a_b',170,'Child of',60,'Parent of',1,NULL,NULL,NULL), - (246,123,1,'b_a',60,'Parent of',170,'Child of',1,NULL,NULL,NULL), - (247,124,1,'a_b',38,'Child of',60,'Parent of',1,NULL,NULL,NULL), - (248,124,1,'b_a',60,'Parent of',38,'Child of',1,NULL,NULL,NULL), - (249,125,4,'a_b',38,'Sibling of',170,'Sibling of',1,NULL,NULL,NULL), - (250,125,4,'b_a',170,'Sibling of',38,'Sibling of',1,NULL,NULL,NULL), - (251,126,8,'a_b',60,'Household Member of',68,'Household Member is',1,NULL,NULL,NULL), - (252,126,8,'b_a',68,'Household Member is',60,'Household Member of',1,NULL,NULL,NULL), - (253,127,8,'a_b',170,'Household Member of',68,'Household Member is',1,NULL,NULL,NULL), - (254,127,8,'b_a',68,'Household Member is',170,'Household Member of',1,NULL,NULL,NULL), - (255,128,8,'a_b',38,'Household Member of',68,'Household Member is',1,NULL,NULL,NULL), - (256,128,8,'b_a',68,'Household Member is',38,'Household Member of',1,NULL,NULL,NULL), - (257,129,7,'a_b',86,'Head of Household for',68,'Head of Household is',1,NULL,NULL,NULL), - (258,129,7,'b_a',68,'Head of Household is',86,'Head of Household for',1,NULL,NULL,NULL), - (259,130,2,'a_b',60,'Spouse of',86,'Spouse of',1,NULL,NULL,NULL), - (260,130,2,'b_a',86,'Spouse of',60,'Spouse of',1,NULL,NULL,NULL), - (261,131,1,'a_b',94,'Child of',7,'Parent of',1,NULL,NULL,NULL), - (262,131,1,'b_a',7,'Parent of',94,'Child of',1,NULL,NULL,NULL), - (263,132,1,'a_b',195,'Child of',7,'Parent of',1,NULL,NULL,NULL), - (264,132,1,'b_a',7,'Parent of',195,'Child of',1,NULL,NULL,NULL), - (265,133,1,'a_b',94,'Child of',65,'Parent of',1,NULL,NULL,NULL), - (266,133,1,'b_a',65,'Parent of',94,'Child of',1,NULL,NULL,NULL), - (267,134,1,'a_b',195,'Child of',65,'Parent of',1,NULL,NULL,NULL), - (268,134,1,'b_a',65,'Parent of',195,'Child of',1,NULL,NULL,NULL), - (269,135,4,'a_b',195,'Sibling of',94,'Sibling of',1,NULL,NULL,NULL), - (270,135,4,'b_a',94,'Sibling of',195,'Sibling of',1,NULL,NULL,NULL), - (271,136,8,'a_b',65,'Household Member of',52,'Household Member is',1,NULL,NULL,NULL), - (272,136,8,'b_a',52,'Household Member is',65,'Household Member of',1,NULL,NULL,NULL), - (273,137,8,'a_b',94,'Household Member of',52,'Household Member is',1,NULL,NULL,NULL), - (274,137,8,'b_a',52,'Household Member is',94,'Household Member of',1,NULL,NULL,NULL), - (275,138,8,'a_b',195,'Household Member of',52,'Household Member is',1,NULL,NULL,NULL), - (276,138,8,'b_a',52,'Household Member is',195,'Household Member of',1,NULL,NULL,NULL), - (277,139,7,'a_b',7,'Head of Household for',52,'Head of Household is',0,NULL,NULL,NULL), - (278,139,7,'b_a',52,'Head of Household is',7,'Head of Household for',0,NULL,NULL,NULL), - (279,140,2,'a_b',65,'Spouse of',7,'Spouse of',0,NULL,NULL,NULL), - (280,140,2,'b_a',7,'Spouse of',65,'Spouse of',0,NULL,NULL,NULL), - (281,141,1,'a_b',176,'Child of',45,'Parent of',1,NULL,NULL,NULL), - (282,141,1,'b_a',45,'Parent of',176,'Child of',1,NULL,NULL,NULL), - (283,142,1,'a_b',36,'Child of',45,'Parent of',1,NULL,NULL,NULL), - (284,142,1,'b_a',45,'Parent of',36,'Child of',1,NULL,NULL,NULL), - (285,143,1,'a_b',176,'Child of',42,'Parent of',1,NULL,NULL,NULL), - (286,143,1,'b_a',42,'Parent of',176,'Child of',1,NULL,NULL,NULL), - (287,144,1,'a_b',36,'Child of',42,'Parent of',1,NULL,NULL,NULL), - (288,144,1,'b_a',42,'Parent of',36,'Child of',1,NULL,NULL,NULL), - (289,145,4,'a_b',36,'Sibling of',176,'Sibling of',1,NULL,NULL,NULL), - (290,145,4,'b_a',176,'Sibling of',36,'Sibling of',1,NULL,NULL,NULL), - (291,146,8,'a_b',42,'Household Member of',6,'Household Member is',1,NULL,NULL,NULL), - (292,146,8,'b_a',6,'Household Member is',42,'Household Member of',1,NULL,NULL,NULL), - (293,147,8,'a_b',176,'Household Member of',6,'Household Member is',1,NULL,NULL,NULL), - (294,147,8,'b_a',6,'Household Member is',176,'Household Member of',1,NULL,NULL,NULL), - (295,148,8,'a_b',36,'Household Member of',6,'Household Member is',1,NULL,NULL,NULL), - (296,148,8,'b_a',6,'Household Member is',36,'Household Member of',1,NULL,NULL,NULL), - (297,149,7,'a_b',45,'Head of Household for',6,'Head of Household is',1,NULL,NULL,NULL), - (298,149,7,'b_a',6,'Head of Household is',45,'Head of Household for',1,NULL,NULL,NULL), - (299,150,2,'a_b',42,'Spouse of',45,'Spouse of',1,NULL,NULL,NULL), - (300,150,2,'b_a',45,'Spouse of',42,'Spouse of',1,NULL,NULL,NULL), - (301,151,1,'a_b',19,'Child of',133,'Parent of',1,NULL,NULL,NULL), - (302,151,1,'b_a',133,'Parent of',19,'Child of',1,NULL,NULL,NULL), - (303,152,1,'a_b',97,'Child of',133,'Parent of',1,NULL,NULL,NULL), - (304,152,1,'b_a',133,'Parent of',97,'Child of',1,NULL,NULL,NULL), - (305,153,1,'a_b',19,'Child of',25,'Parent of',1,NULL,NULL,NULL), - (306,153,1,'b_a',25,'Parent of',19,'Child of',1,NULL,NULL,NULL), - (307,154,1,'a_b',97,'Child of',25,'Parent of',1,NULL,NULL,NULL), - (308,154,1,'b_a',25,'Parent of',97,'Child of',1,NULL,NULL,NULL), - (309,155,4,'a_b',97,'Sibling of',19,'Sibling of',1,NULL,NULL,NULL), - (310,155,4,'b_a',19,'Sibling of',97,'Sibling of',1,NULL,NULL,NULL), - (311,156,8,'a_b',25,'Household Member of',111,'Household Member is',1,NULL,NULL,NULL), - (312,156,8,'b_a',111,'Household Member is',25,'Household Member of',1,NULL,NULL,NULL), - (313,157,8,'a_b',19,'Household Member of',111,'Household Member is',1,NULL,NULL,NULL), - (314,157,8,'b_a',111,'Household Member is',19,'Household Member of',1,NULL,NULL,NULL), - (315,158,8,'a_b',97,'Household Member of',111,'Household Member is',1,NULL,NULL,NULL), - (316,158,8,'b_a',111,'Household Member is',97,'Household Member of',1,NULL,NULL,NULL), - (317,159,7,'a_b',133,'Head of Household for',111,'Head of Household is',1,NULL,NULL,NULL), - (318,159,7,'b_a',111,'Head of Household is',133,'Head of Household for',1,NULL,NULL,NULL), - (319,160,2,'a_b',25,'Spouse of',133,'Spouse of',1,NULL,NULL,NULL), - (320,160,2,'b_a',133,'Spouse of',25,'Spouse of',1,NULL,NULL,NULL), - (321,161,1,'a_b',76,'Child of',46,'Parent of',1,NULL,NULL,NULL), - (322,161,1,'b_a',46,'Parent of',76,'Child of',1,NULL,NULL,NULL), - (323,162,1,'a_b',187,'Child of',46,'Parent of',1,NULL,NULL,NULL), - (324,162,1,'b_a',46,'Parent of',187,'Child of',1,NULL,NULL,NULL), - (325,163,1,'a_b',76,'Child of',93,'Parent of',1,NULL,NULL,NULL), - (326,163,1,'b_a',93,'Parent of',76,'Child of',1,NULL,NULL,NULL), - (327,164,1,'a_b',187,'Child of',93,'Parent of',1,NULL,NULL,NULL), - (328,164,1,'b_a',93,'Parent of',187,'Child of',1,NULL,NULL,NULL), - (329,165,4,'a_b',187,'Sibling of',76,'Sibling of',1,NULL,NULL,NULL), - (330,165,4,'b_a',76,'Sibling of',187,'Sibling of',1,NULL,NULL,NULL), - (331,166,8,'a_b',93,'Household Member of',138,'Household Member is',1,NULL,NULL,NULL), - (332,166,8,'b_a',138,'Household Member is',93,'Household Member of',1,NULL,NULL,NULL), - (333,167,8,'a_b',76,'Household Member of',138,'Household Member is',1,NULL,NULL,NULL), - (334,167,8,'b_a',138,'Household Member is',76,'Household Member of',1,NULL,NULL,NULL), - (335,168,8,'a_b',187,'Household Member of',138,'Household Member is',1,NULL,NULL,NULL), - (336,168,8,'b_a',138,'Household Member is',187,'Household Member of',1,NULL,NULL,NULL), - (337,169,7,'a_b',46,'Head of Household for',138,'Head of Household is',1,NULL,NULL,NULL), - (338,169,7,'b_a',138,'Head of Household is',46,'Head of Household for',1,NULL,NULL,NULL), - (339,170,2,'a_b',93,'Spouse of',46,'Spouse of',1,NULL,NULL,NULL), - (340,170,2,'b_a',46,'Spouse of',93,'Spouse of',1,NULL,NULL,NULL), - (341,171,1,'a_b',185,'Child of',74,'Parent of',1,NULL,NULL,NULL), - (342,171,1,'b_a',74,'Parent of',185,'Child of',1,NULL,NULL,NULL), - (343,172,1,'a_b',197,'Child of',74,'Parent of',1,NULL,NULL,NULL), - (344,172,1,'b_a',74,'Parent of',197,'Child of',1,NULL,NULL,NULL), - (345,173,1,'a_b',185,'Child of',179,'Parent of',1,NULL,NULL,NULL), - (346,173,1,'b_a',179,'Parent of',185,'Child of',1,NULL,NULL,NULL), - (347,174,1,'a_b',197,'Child of',179,'Parent of',1,NULL,NULL,NULL), - (348,174,1,'b_a',179,'Parent of',197,'Child of',1,NULL,NULL,NULL), - (349,175,4,'a_b',197,'Sibling of',185,'Sibling of',1,NULL,NULL,NULL), - (350,175,4,'b_a',185,'Sibling of',197,'Sibling of',1,NULL,NULL,NULL), - (351,176,8,'a_b',179,'Household Member of',168,'Household Member is',1,NULL,NULL,NULL), - (352,176,8,'b_a',168,'Household Member is',179,'Household Member of',1,NULL,NULL,NULL), - (353,177,8,'a_b',185,'Household Member of',168,'Household Member is',1,NULL,NULL,NULL), - (354,177,8,'b_a',168,'Household Member is',185,'Household Member of',1,NULL,NULL,NULL), - (355,178,8,'a_b',197,'Household Member of',168,'Household Member is',1,NULL,NULL,NULL), - (356,178,8,'b_a',168,'Household Member is',197,'Household Member of',1,NULL,NULL,NULL), - (357,179,7,'a_b',74,'Head of Household for',168,'Head of Household is',0,NULL,NULL,NULL), - (358,179,7,'b_a',168,'Head of Household is',74,'Head of Household for',0,NULL,NULL,NULL), - (359,180,2,'a_b',179,'Spouse of',74,'Spouse of',0,NULL,NULL,NULL), - (360,180,2,'b_a',74,'Spouse of',179,'Spouse of',0,NULL,NULL,NULL), - (361,181,1,'a_b',2,'Child of',184,'Parent of',1,NULL,NULL,NULL), - (362,181,1,'b_a',184,'Parent of',2,'Child of',1,NULL,NULL,NULL), - (363,182,1,'a_b',57,'Child of',184,'Parent of',1,NULL,NULL,NULL), - (364,182,1,'b_a',184,'Parent of',57,'Child of',1,NULL,NULL,NULL), - (365,183,1,'a_b',2,'Child of',119,'Parent of',1,NULL,NULL,NULL), - (366,183,1,'b_a',119,'Parent of',2,'Child of',1,NULL,NULL,NULL), - (367,184,1,'a_b',57,'Child of',119,'Parent of',1,NULL,NULL,NULL), - (368,184,1,'b_a',119,'Parent of',57,'Child of',1,NULL,NULL,NULL), - (369,185,4,'a_b',57,'Sibling of',2,'Sibling of',1,NULL,NULL,NULL), - (370,185,4,'b_a',2,'Sibling of',57,'Sibling of',1,NULL,NULL,NULL), - (371,186,8,'a_b',119,'Household Member of',142,'Household Member is',1,NULL,NULL,NULL), - (372,186,8,'b_a',142,'Household Member is',119,'Household Member of',1,NULL,NULL,NULL), - (373,187,8,'a_b',2,'Household Member of',142,'Household Member is',1,NULL,NULL,NULL), - (374,187,8,'b_a',142,'Household Member is',2,'Household Member of',1,NULL,NULL,NULL), - (375,188,8,'a_b',57,'Household Member of',142,'Household Member is',1,NULL,NULL,NULL), - (376,188,8,'b_a',142,'Household Member is',57,'Household Member of',1,NULL,NULL,NULL), - (377,189,7,'a_b',184,'Head of Household for',142,'Head of Household is',1,NULL,NULL,NULL), - (378,189,7,'b_a',142,'Head of Household is',184,'Head of Household for',1,NULL,NULL,NULL), - (379,190,2,'a_b',119,'Spouse of',184,'Spouse of',1,NULL,NULL,NULL), - (380,190,2,'b_a',184,'Spouse of',119,'Spouse of',1,NULL,NULL,NULL), - (381,191,1,'a_b',89,'Child of',110,'Parent of',1,NULL,NULL,NULL), - (382,191,1,'b_a',110,'Parent of',89,'Child of',1,NULL,NULL,NULL), - (383,192,1,'a_b',54,'Child of',110,'Parent of',1,NULL,NULL,NULL), - (384,192,1,'b_a',110,'Parent of',54,'Child of',1,NULL,NULL,NULL), - (385,193,1,'a_b',89,'Child of',9,'Parent of',1,NULL,NULL,NULL), - (386,193,1,'b_a',9,'Parent of',89,'Child of',1,NULL,NULL,NULL), - (387,194,1,'a_b',54,'Child of',9,'Parent of',1,NULL,NULL,NULL), - (388,194,1,'b_a',9,'Parent of',54,'Child of',1,NULL,NULL,NULL), - (389,195,4,'a_b',54,'Sibling of',89,'Sibling of',1,NULL,NULL,NULL), - (390,195,4,'b_a',89,'Sibling of',54,'Sibling of',1,NULL,NULL,NULL), - (391,196,8,'a_b',9,'Household Member of',12,'Household Member is',1,NULL,NULL,NULL), - (392,196,8,'b_a',12,'Household Member is',9,'Household Member of',1,NULL,NULL,NULL), - (393,197,8,'a_b',89,'Household Member of',12,'Household Member is',1,NULL,NULL,NULL), - (394,197,8,'b_a',12,'Household Member is',89,'Household Member of',1,NULL,NULL,NULL), - (395,198,8,'a_b',54,'Household Member of',12,'Household Member is',1,NULL,NULL,NULL), - (396,198,8,'b_a',12,'Household Member is',54,'Household Member of',1,NULL,NULL,NULL), - (397,199,7,'a_b',110,'Head of Household for',12,'Head of Household is',0,NULL,NULL,NULL), - (398,199,7,'b_a',12,'Head of Household is',110,'Head of Household for',0,NULL,NULL,NULL), - (399,200,2,'a_b',9,'Spouse of',110,'Spouse of',0,NULL,NULL,NULL), - (400,200,2,'b_a',110,'Spouse of',9,'Spouse of',0,NULL,NULL,NULL), - (401,201,5,'a_b',145,'Employee of',43,'Employer of',1,NULL,NULL,NULL), - (402,201,5,'b_a',43,'Employer of',145,'Employee of',1,NULL,NULL,NULL), - (403,202,5,'a_b',27,'Employee of',48,'Employer of',1,NULL,NULL,NULL), - (404,202,5,'b_a',48,'Employer of',27,'Employee of',1,NULL,NULL,NULL), - (405,203,5,'a_b',76,'Employee of',51,'Employer of',1,NULL,NULL,NULL), - (406,203,5,'b_a',51,'Employer of',76,'Employee of',1,NULL,NULL,NULL), - (407,204,5,'a_b',165,'Employee of',67,'Employer of',1,NULL,NULL,NULL), - (408,204,5,'b_a',67,'Employer of',165,'Employee of',1,NULL,NULL,NULL), - (409,205,5,'a_b',166,'Employee of',73,'Employer of',1,NULL,NULL,NULL), - (410,205,5,'b_a',73,'Employer of',166,'Employee of',1,NULL,NULL,NULL), - (411,206,5,'a_b',154,'Employee of',91,'Employer of',1,NULL,NULL,NULL), - (412,206,5,'b_a',91,'Employer of',154,'Employee of',1,NULL,NULL,NULL), - (413,207,5,'a_b',39,'Employee of',101,'Employer of',1,NULL,NULL,NULL), - (414,207,5,'b_a',101,'Employer of',39,'Employee of',1,NULL,NULL,NULL), - (415,208,5,'a_b',53,'Employee of',105,'Employer of',1,NULL,NULL,NULL), - (416,208,5,'b_a',105,'Employer of',53,'Employee of',1,NULL,NULL,NULL), - (417,209,5,'a_b',3,'Employee of',128,'Employer of',1,NULL,NULL,NULL), - (418,209,5,'b_a',128,'Employer of',3,'Employee of',1,NULL,NULL,NULL), - (419,210,5,'a_b',96,'Employee of',129,'Employer of',1,NULL,NULL,NULL), - (420,210,5,'b_a',129,'Employer of',96,'Employee of',1,NULL,NULL,NULL), - (421,211,5,'a_b',60,'Employee of',135,'Employer of',1,NULL,NULL,NULL), - (422,211,5,'b_a',135,'Employer of',60,'Employee of',1,NULL,NULL,NULL), - (423,212,5,'a_b',26,'Employee of',152,'Employer of',1,NULL,NULL,NULL), - (424,212,5,'b_a',152,'Employer of',26,'Employee of',1,NULL,NULL,NULL), - (425,213,5,'a_b',82,'Employee of',153,'Employer of',1,NULL,NULL,NULL), - (426,213,5,'b_a',153,'Employer of',82,'Employee of',1,NULL,NULL,NULL), - (427,214,5,'a_b',172,'Employee of',157,'Employer of',1,NULL,NULL,NULL), - (428,214,5,'b_a',157,'Employer of',172,'Employee of',1,NULL,NULL,NULL), - (429,215,5,'a_b',183,'Employee of',169,'Employer of',1,NULL,NULL,NULL), - (430,215,5,'b_a',169,'Employer of',183,'Employee of',1,NULL,NULL,NULL), - (431,216,5,'a_b',50,'Employee of',177,'Employer of',1,NULL,NULL,NULL), - (432,216,5,'b_a',177,'Employer of',50,'Employee of',1,NULL,NULL,NULL), - (433,217,5,'a_b',121,'Employee of',188,'Employer of',1,NULL,NULL,NULL), - (434,217,5,'b_a',188,'Employer of',121,'Employee of',1,NULL,NULL,NULL), - (435,218,5,'a_b',28,'Employee of',193,'Employer of',1,NULL,NULL,NULL), - (436,218,5,'b_a',193,'Employer of',28,'Employee of',1,NULL,NULL,NULL); + (1,1,1,'a_b',66,'Child of',163,'Parent of',1,NULL,NULL,NULL), + (2,1,1,'b_a',163,'Parent of',66,'Child of',1,NULL,NULL,NULL), + (3,2,1,'a_b',149,'Child of',163,'Parent of',1,NULL,NULL,NULL), + (4,2,1,'b_a',163,'Parent of',149,'Child of',1,NULL,NULL,NULL), + (5,3,1,'a_b',66,'Child of',46,'Parent of',1,NULL,NULL,NULL), + (6,3,1,'b_a',46,'Parent of',66,'Child of',1,NULL,NULL,NULL), + (7,4,1,'a_b',149,'Child of',46,'Parent of',1,NULL,NULL,NULL), + (8,4,1,'b_a',46,'Parent of',149,'Child of',1,NULL,NULL,NULL), + (9,5,4,'a_b',149,'Sibling of',66,'Sibling of',1,NULL,NULL,NULL), + (10,5,4,'b_a',66,'Sibling of',149,'Sibling of',1,NULL,NULL,NULL), + (11,6,8,'a_b',46,'Household Member of',200,'Household Member is',1,NULL,NULL,NULL), + (12,6,8,'b_a',200,'Household Member is',46,'Household Member of',1,NULL,NULL,NULL), + (13,7,8,'a_b',66,'Household Member of',200,'Household Member is',1,NULL,NULL,NULL), + (14,7,8,'b_a',200,'Household Member is',66,'Household Member of',1,NULL,NULL,NULL), + (15,8,8,'a_b',149,'Household Member of',200,'Household Member is',1,NULL,NULL,NULL), + (16,8,8,'b_a',200,'Household Member is',149,'Household Member of',1,NULL,NULL,NULL), + (17,9,7,'a_b',163,'Head of Household for',200,'Head of Household is',0,NULL,NULL,NULL), + (18,9,7,'b_a',200,'Head of Household is',163,'Head of Household for',0,NULL,NULL,NULL), + (19,10,2,'a_b',46,'Spouse of',163,'Spouse of',0,NULL,NULL,NULL), + (20,10,2,'b_a',163,'Spouse of',46,'Spouse of',0,NULL,NULL,NULL), + (21,11,1,'a_b',10,'Child of',18,'Parent of',1,NULL,NULL,NULL), + (22,11,1,'b_a',18,'Parent of',10,'Child of',1,NULL,NULL,NULL), + (23,12,1,'a_b',152,'Child of',18,'Parent of',1,NULL,NULL,NULL), + (24,12,1,'b_a',18,'Parent of',152,'Child of',1,NULL,NULL,NULL), + (25,13,1,'a_b',10,'Child of',184,'Parent of',1,NULL,NULL,NULL), + (26,13,1,'b_a',184,'Parent of',10,'Child of',1,NULL,NULL,NULL), + (27,14,1,'a_b',152,'Child of',184,'Parent of',1,NULL,NULL,NULL), + (28,14,1,'b_a',184,'Parent of',152,'Child of',1,NULL,NULL,NULL), + (29,15,4,'a_b',152,'Sibling of',10,'Sibling of',1,NULL,NULL,NULL), + (30,15,4,'b_a',10,'Sibling of',152,'Sibling of',1,NULL,NULL,NULL), + (31,16,8,'a_b',184,'Household Member of',14,'Household Member is',1,NULL,NULL,NULL), + (32,16,8,'b_a',14,'Household Member is',184,'Household Member of',1,NULL,NULL,NULL), + (33,17,8,'a_b',10,'Household Member of',14,'Household Member is',1,NULL,NULL,NULL), + (34,17,8,'b_a',14,'Household Member is',10,'Household Member of',1,NULL,NULL,NULL), + (35,18,8,'a_b',152,'Household Member of',14,'Household Member is',1,NULL,NULL,NULL), + (36,18,8,'b_a',14,'Household Member is',152,'Household Member of',1,NULL,NULL,NULL), + (37,19,7,'a_b',18,'Head of Household for',14,'Head of Household is',1,NULL,NULL,NULL), + (38,19,7,'b_a',14,'Head of Household is',18,'Head of Household for',1,NULL,NULL,NULL), + (39,20,2,'a_b',184,'Spouse of',18,'Spouse of',1,NULL,NULL,NULL), + (40,20,2,'b_a',18,'Spouse of',184,'Spouse of',1,NULL,NULL,NULL), + (41,21,1,'a_b',57,'Child of',63,'Parent of',1,NULL,NULL,NULL), + (42,21,1,'b_a',63,'Parent of',57,'Child of',1,NULL,NULL,NULL), + (43,22,1,'a_b',126,'Child of',63,'Parent of',1,NULL,NULL,NULL), + (44,22,1,'b_a',63,'Parent of',126,'Child of',1,NULL,NULL,NULL), + (45,23,1,'a_b',57,'Child of',87,'Parent of',1,NULL,NULL,NULL), + (46,23,1,'b_a',87,'Parent of',57,'Child of',1,NULL,NULL,NULL), + (47,24,1,'a_b',126,'Child of',87,'Parent of',1,NULL,NULL,NULL), + (48,24,1,'b_a',87,'Parent of',126,'Child of',1,NULL,NULL,NULL), + (49,25,4,'a_b',126,'Sibling of',57,'Sibling of',1,NULL,NULL,NULL), + (50,25,4,'b_a',57,'Sibling of',126,'Sibling of',1,NULL,NULL,NULL), + (51,26,8,'a_b',87,'Household Member of',52,'Household Member is',1,NULL,NULL,NULL), + (52,26,8,'b_a',52,'Household Member is',87,'Household Member of',1,NULL,NULL,NULL), + (53,27,8,'a_b',57,'Household Member of',52,'Household Member is',1,NULL,NULL,NULL), + (54,27,8,'b_a',52,'Household Member is',57,'Household Member of',1,NULL,NULL,NULL), + (55,28,8,'a_b',126,'Household Member of',52,'Household Member is',1,NULL,NULL,NULL), + (56,28,8,'b_a',52,'Household Member is',126,'Household Member of',1,NULL,NULL,NULL), + (57,29,7,'a_b',63,'Head of Household for',52,'Head of Household is',1,NULL,NULL,NULL), + (58,29,7,'b_a',52,'Head of Household is',63,'Head of Household for',1,NULL,NULL,NULL), + (59,30,2,'a_b',87,'Spouse of',63,'Spouse of',1,NULL,NULL,NULL), + (60,30,2,'b_a',63,'Spouse of',87,'Spouse of',1,NULL,NULL,NULL), + (61,31,1,'a_b',93,'Child of',23,'Parent of',1,NULL,NULL,NULL), + (62,31,1,'b_a',23,'Parent of',93,'Child of',1,NULL,NULL,NULL), + (63,32,1,'a_b',29,'Child of',23,'Parent of',1,NULL,NULL,NULL), + (64,32,1,'b_a',23,'Parent of',29,'Child of',1,NULL,NULL,NULL), + (65,33,1,'a_b',93,'Child of',175,'Parent of',1,NULL,NULL,NULL), + (66,33,1,'b_a',175,'Parent of',93,'Child of',1,NULL,NULL,NULL), + (67,34,1,'a_b',29,'Child of',175,'Parent of',1,NULL,NULL,NULL), + (68,34,1,'b_a',175,'Parent of',29,'Child of',1,NULL,NULL,NULL), + (69,35,4,'a_b',29,'Sibling of',93,'Sibling of',1,NULL,NULL,NULL), + (70,35,4,'b_a',93,'Sibling of',29,'Sibling of',1,NULL,NULL,NULL), + (71,36,8,'a_b',175,'Household Member of',6,'Household Member is',1,NULL,NULL,NULL), + (72,36,8,'b_a',6,'Household Member is',175,'Household Member of',1,NULL,NULL,NULL), + (73,37,8,'a_b',93,'Household Member of',6,'Household Member is',1,NULL,NULL,NULL), + (74,37,8,'b_a',6,'Household Member is',93,'Household Member of',1,NULL,NULL,NULL), + (75,38,8,'a_b',29,'Household Member of',6,'Household Member is',1,NULL,NULL,NULL), + (76,38,8,'b_a',6,'Household Member is',29,'Household Member of',1,NULL,NULL,NULL), + (77,39,7,'a_b',23,'Head of Household for',6,'Head of Household is',1,NULL,NULL,NULL), + (78,39,7,'b_a',6,'Head of Household is',23,'Head of Household for',1,NULL,NULL,NULL), + (79,40,2,'a_b',175,'Spouse of',23,'Spouse of',1,NULL,NULL,NULL), + (80,40,2,'b_a',23,'Spouse of',175,'Spouse of',1,NULL,NULL,NULL), + (81,41,1,'a_b',40,'Child of',194,'Parent of',1,NULL,NULL,NULL), + (82,41,1,'b_a',194,'Parent of',40,'Child of',1,NULL,NULL,NULL), + (83,42,1,'a_b',136,'Child of',194,'Parent of',1,NULL,NULL,NULL), + (84,42,1,'b_a',194,'Parent of',136,'Child of',1,NULL,NULL,NULL), + (85,43,1,'a_b',40,'Child of',101,'Parent of',1,NULL,NULL,NULL), + (86,43,1,'b_a',101,'Parent of',40,'Child of',1,NULL,NULL,NULL), + (87,44,1,'a_b',136,'Child of',101,'Parent of',1,NULL,NULL,NULL), + (88,44,1,'b_a',101,'Parent of',136,'Child of',1,NULL,NULL,NULL), + (89,45,4,'a_b',136,'Sibling of',40,'Sibling of',1,NULL,NULL,NULL), + (90,45,4,'b_a',40,'Sibling of',136,'Sibling of',1,NULL,NULL,NULL), + (91,46,8,'a_b',101,'Household Member of',11,'Household Member is',1,NULL,NULL,NULL), + (92,46,8,'b_a',11,'Household Member is',101,'Household Member of',1,NULL,NULL,NULL), + (93,47,8,'a_b',40,'Household Member of',11,'Household Member is',1,NULL,NULL,NULL), + (94,47,8,'b_a',11,'Household Member is',40,'Household Member of',1,NULL,NULL,NULL), + (95,48,8,'a_b',136,'Household Member of',11,'Household Member is',1,NULL,NULL,NULL), + (96,48,8,'b_a',11,'Household Member is',136,'Household Member of',1,NULL,NULL,NULL), + (97,49,7,'a_b',194,'Head of Household for',11,'Head of Household is',1,NULL,NULL,NULL), + (98,49,7,'b_a',11,'Head of Household is',194,'Head of Household for',1,NULL,NULL,NULL), + (99,50,2,'a_b',101,'Spouse of',194,'Spouse of',1,NULL,NULL,NULL), + (100,50,2,'b_a',194,'Spouse of',101,'Spouse of',1,NULL,NULL,NULL), + (101,51,1,'a_b',154,'Child of',85,'Parent of',1,NULL,NULL,NULL), + (102,51,1,'b_a',85,'Parent of',154,'Child of',1,NULL,NULL,NULL), + (103,52,1,'a_b',162,'Child of',85,'Parent of',1,NULL,NULL,NULL), + (104,52,1,'b_a',85,'Parent of',162,'Child of',1,NULL,NULL,NULL), + (105,53,1,'a_b',154,'Child of',62,'Parent of',1,NULL,NULL,NULL), + (106,53,1,'b_a',62,'Parent of',154,'Child of',1,NULL,NULL,NULL), + (107,54,1,'a_b',162,'Child of',62,'Parent of',1,NULL,NULL,NULL), + (108,54,1,'b_a',62,'Parent of',162,'Child of',1,NULL,NULL,NULL), + (109,55,4,'a_b',162,'Sibling of',154,'Sibling of',1,NULL,NULL,NULL), + (110,55,4,'b_a',154,'Sibling of',162,'Sibling of',1,NULL,NULL,NULL), + (111,56,8,'a_b',62,'Household Member of',139,'Household Member is',1,NULL,NULL,NULL), + (112,56,8,'b_a',139,'Household Member is',62,'Household Member of',1,NULL,NULL,NULL), + (113,57,8,'a_b',154,'Household Member of',139,'Household Member is',1,NULL,NULL,NULL), + (114,57,8,'b_a',139,'Household Member is',154,'Household Member of',1,NULL,NULL,NULL), + (115,58,8,'a_b',162,'Household Member of',139,'Household Member is',1,NULL,NULL,NULL), + (116,58,8,'b_a',139,'Household Member is',162,'Household Member of',1,NULL,NULL,NULL), + (117,59,7,'a_b',85,'Head of Household for',139,'Head of Household is',0,NULL,NULL,NULL), + (118,59,7,'b_a',139,'Head of Household is',85,'Head of Household for',0,NULL,NULL,NULL), + (119,60,2,'a_b',62,'Spouse of',85,'Spouse of',0,NULL,NULL,NULL), + (120,60,2,'b_a',85,'Spouse of',62,'Spouse of',0,NULL,NULL,NULL), + (121,61,1,'a_b',58,'Child of',103,'Parent of',1,NULL,NULL,NULL), + (122,61,1,'b_a',103,'Parent of',58,'Child of',1,NULL,NULL,NULL), + (123,62,1,'a_b',131,'Child of',103,'Parent of',1,NULL,NULL,NULL), + (124,62,1,'b_a',103,'Parent of',131,'Child of',1,NULL,NULL,NULL), + (125,63,1,'a_b',58,'Child of',3,'Parent of',1,NULL,NULL,NULL), + (126,63,1,'b_a',3,'Parent of',58,'Child of',1,NULL,NULL,NULL), + (127,64,1,'a_b',131,'Child of',3,'Parent of',1,NULL,NULL,NULL), + (128,64,1,'b_a',3,'Parent of',131,'Child of',1,NULL,NULL,NULL), + (129,65,4,'a_b',131,'Sibling of',58,'Sibling of',1,NULL,NULL,NULL), + (130,65,4,'b_a',58,'Sibling of',131,'Sibling of',1,NULL,NULL,NULL), + (131,66,8,'a_b',3,'Household Member of',130,'Household Member is',1,NULL,NULL,NULL), + (132,66,8,'b_a',130,'Household Member is',3,'Household Member of',1,NULL,NULL,NULL), + (133,67,8,'a_b',58,'Household Member of',130,'Household Member is',1,NULL,NULL,NULL), + (134,67,8,'b_a',130,'Household Member is',58,'Household Member of',1,NULL,NULL,NULL), + (135,68,8,'a_b',131,'Household Member of',130,'Household Member is',1,NULL,NULL,NULL), + (136,68,8,'b_a',130,'Household Member is',131,'Household Member of',1,NULL,NULL,NULL), + (137,69,7,'a_b',103,'Head of Household for',130,'Head of Household is',1,NULL,NULL,NULL), + (138,69,7,'b_a',130,'Head of Household is',103,'Head of Household for',1,NULL,NULL,NULL), + (139,70,2,'a_b',3,'Spouse of',103,'Spouse of',1,NULL,NULL,NULL), + (140,70,2,'b_a',103,'Spouse of',3,'Spouse of',1,NULL,NULL,NULL), + (141,71,1,'a_b',60,'Child of',84,'Parent of',1,NULL,NULL,NULL), + (142,71,1,'b_a',84,'Parent of',60,'Child of',1,NULL,NULL,NULL), + (143,72,1,'a_b',158,'Child of',84,'Parent of',1,NULL,NULL,NULL), + (144,72,1,'b_a',84,'Parent of',158,'Child of',1,NULL,NULL,NULL), + (145,73,1,'a_b',60,'Child of',22,'Parent of',1,NULL,NULL,NULL), + (146,73,1,'b_a',22,'Parent of',60,'Child of',1,NULL,NULL,NULL), + (147,74,1,'a_b',158,'Child of',22,'Parent of',1,NULL,NULL,NULL), + (148,74,1,'b_a',22,'Parent of',158,'Child of',1,NULL,NULL,NULL), + (149,75,4,'a_b',158,'Sibling of',60,'Sibling of',1,NULL,NULL,NULL), + (150,75,4,'b_a',60,'Sibling of',158,'Sibling of',1,NULL,NULL,NULL), + (151,76,8,'a_b',22,'Household Member of',124,'Household Member is',1,NULL,NULL,NULL), + (152,76,8,'b_a',124,'Household Member is',22,'Household Member of',1,NULL,NULL,NULL), + (153,77,8,'a_b',60,'Household Member of',124,'Household Member is',1,NULL,NULL,NULL), + (154,77,8,'b_a',124,'Household Member is',60,'Household Member of',1,NULL,NULL,NULL), + (155,78,8,'a_b',158,'Household Member of',124,'Household Member is',1,NULL,NULL,NULL), + (156,78,8,'b_a',124,'Household Member is',158,'Household Member of',1,NULL,NULL,NULL), + (157,79,7,'a_b',84,'Head of Household for',124,'Head of Household is',1,NULL,NULL,NULL), + (158,79,7,'b_a',124,'Head of Household is',84,'Head of Household for',1,NULL,NULL,NULL), + (159,80,2,'a_b',22,'Spouse of',84,'Spouse of',1,NULL,NULL,NULL), + (160,80,2,'b_a',84,'Spouse of',22,'Spouse of',1,NULL,NULL,NULL), + (161,81,1,'a_b',99,'Child of',65,'Parent of',1,NULL,NULL,NULL), + (162,81,1,'b_a',65,'Parent of',99,'Child of',1,NULL,NULL,NULL), + (163,82,1,'a_b',9,'Child of',65,'Parent of',1,NULL,NULL,NULL), + (164,82,1,'b_a',65,'Parent of',9,'Child of',1,NULL,NULL,NULL), + (165,83,1,'a_b',99,'Child of',73,'Parent of',1,NULL,NULL,NULL), + (166,83,1,'b_a',73,'Parent of',99,'Child of',1,NULL,NULL,NULL), + (167,84,1,'a_b',9,'Child of',73,'Parent of',1,NULL,NULL,NULL), + (168,84,1,'b_a',73,'Parent of',9,'Child of',1,NULL,NULL,NULL), + (169,85,4,'a_b',9,'Sibling of',99,'Sibling of',1,NULL,NULL,NULL), + (170,85,4,'b_a',99,'Sibling of',9,'Sibling of',1,NULL,NULL,NULL), + (171,86,8,'a_b',73,'Household Member of',147,'Household Member is',1,NULL,NULL,NULL), + (172,86,8,'b_a',147,'Household Member is',73,'Household Member of',1,NULL,NULL,NULL), + (173,87,8,'a_b',99,'Household Member of',147,'Household Member is',1,NULL,NULL,NULL), + (174,87,8,'b_a',147,'Household Member is',99,'Household Member of',1,NULL,NULL,NULL), + (175,88,8,'a_b',9,'Household Member of',147,'Household Member is',1,NULL,NULL,NULL), + (176,88,8,'b_a',147,'Household Member is',9,'Household Member of',1,NULL,NULL,NULL), + (177,89,7,'a_b',65,'Head of Household for',147,'Head of Household is',1,NULL,NULL,NULL), + (178,89,7,'b_a',147,'Head of Household is',65,'Head of Household for',1,NULL,NULL,NULL), + (179,90,2,'a_b',73,'Spouse of',65,'Spouse of',1,NULL,NULL,NULL), + (180,90,2,'b_a',65,'Spouse of',73,'Spouse of',1,NULL,NULL,NULL), + (181,91,1,'a_b',80,'Child of',82,'Parent of',1,NULL,NULL,NULL), + (182,91,1,'b_a',82,'Parent of',80,'Child of',1,NULL,NULL,NULL), + (183,92,1,'a_b',159,'Child of',82,'Parent of',1,NULL,NULL,NULL), + (184,92,1,'b_a',82,'Parent of',159,'Child of',1,NULL,NULL,NULL), + (185,93,1,'a_b',80,'Child of',186,'Parent of',1,NULL,NULL,NULL), + (186,93,1,'b_a',186,'Parent of',80,'Child of',1,NULL,NULL,NULL), + (187,94,1,'a_b',159,'Child of',186,'Parent of',1,NULL,NULL,NULL), + (188,94,1,'b_a',186,'Parent of',159,'Child of',1,NULL,NULL,NULL), + (189,95,4,'a_b',159,'Sibling of',80,'Sibling of',1,NULL,NULL,NULL), + (190,95,4,'b_a',80,'Sibling of',159,'Sibling of',1,NULL,NULL,NULL), + (191,96,8,'a_b',186,'Household Member of',107,'Household Member is',1,NULL,NULL,NULL), + (192,96,8,'b_a',107,'Household Member is',186,'Household Member of',1,NULL,NULL,NULL), + (193,97,8,'a_b',80,'Household Member of',107,'Household Member is',1,NULL,NULL,NULL), + (194,97,8,'b_a',107,'Household Member is',80,'Household Member of',1,NULL,NULL,NULL), + (195,98,8,'a_b',159,'Household Member of',107,'Household Member is',1,NULL,NULL,NULL), + (196,98,8,'b_a',107,'Household Member is',159,'Household Member of',1,NULL,NULL,NULL), + (197,99,7,'a_b',82,'Head of Household for',107,'Head of Household is',0,NULL,NULL,NULL), + (198,99,7,'b_a',107,'Head of Household is',82,'Head of Household for',0,NULL,NULL,NULL), + (199,100,2,'a_b',186,'Spouse of',82,'Spouse of',0,NULL,NULL,NULL), + (200,100,2,'b_a',82,'Spouse of',186,'Spouse of',0,NULL,NULL,NULL), + (201,101,1,'a_b',187,'Child of',45,'Parent of',1,NULL,NULL,NULL), + (202,101,1,'b_a',45,'Parent of',187,'Child of',1,NULL,NULL,NULL), + (203,102,1,'a_b',141,'Child of',45,'Parent of',1,NULL,NULL,NULL), + (204,102,1,'b_a',45,'Parent of',141,'Child of',1,NULL,NULL,NULL), + (205,103,1,'a_b',187,'Child of',48,'Parent of',1,NULL,NULL,NULL), + (206,103,1,'b_a',48,'Parent of',187,'Child of',1,NULL,NULL,NULL), + (207,104,1,'a_b',141,'Child of',48,'Parent of',1,NULL,NULL,NULL), + (208,104,1,'b_a',48,'Parent of',141,'Child of',1,NULL,NULL,NULL), + (209,105,4,'a_b',141,'Sibling of',187,'Sibling of',1,NULL,NULL,NULL), + (210,105,4,'b_a',187,'Sibling of',141,'Sibling of',1,NULL,NULL,NULL), + (211,106,8,'a_b',48,'Household Member of',161,'Household Member is',1,NULL,NULL,NULL), + (212,106,8,'b_a',161,'Household Member is',48,'Household Member of',1,NULL,NULL,NULL), + (213,107,8,'a_b',187,'Household Member of',161,'Household Member is',1,NULL,NULL,NULL), + (214,107,8,'b_a',161,'Household Member is',187,'Household Member of',1,NULL,NULL,NULL), + (215,108,8,'a_b',141,'Household Member of',161,'Household Member is',1,NULL,NULL,NULL), + (216,108,8,'b_a',161,'Household Member is',141,'Household Member of',1,NULL,NULL,NULL), + (217,109,7,'a_b',45,'Head of Household for',161,'Head of Household is',1,NULL,NULL,NULL), + (218,109,7,'b_a',161,'Head of Household is',45,'Head of Household for',1,NULL,NULL,NULL), + (219,110,2,'a_b',48,'Spouse of',45,'Spouse of',1,NULL,NULL,NULL), + (220,110,2,'b_a',45,'Spouse of',48,'Spouse of',1,NULL,NULL,NULL), + (221,111,1,'a_b',8,'Child of',157,'Parent of',1,NULL,NULL,NULL), + (222,111,1,'b_a',157,'Parent of',8,'Child of',1,NULL,NULL,NULL), + (223,112,1,'a_b',140,'Child of',157,'Parent of',1,NULL,NULL,NULL), + (224,112,1,'b_a',157,'Parent of',140,'Child of',1,NULL,NULL,NULL), + (225,113,1,'a_b',8,'Child of',128,'Parent of',1,NULL,NULL,NULL), + (226,113,1,'b_a',128,'Parent of',8,'Child of',1,NULL,NULL,NULL), + (227,114,1,'a_b',140,'Child of',128,'Parent of',1,NULL,NULL,NULL), + (228,114,1,'b_a',128,'Parent of',140,'Child of',1,NULL,NULL,NULL), + (229,115,4,'a_b',140,'Sibling of',8,'Sibling of',1,NULL,NULL,NULL), + (230,115,4,'b_a',8,'Sibling of',140,'Sibling of',1,NULL,NULL,NULL), + (231,116,8,'a_b',128,'Household Member of',59,'Household Member is',1,NULL,NULL,NULL), + (232,116,8,'b_a',59,'Household Member is',128,'Household Member of',1,NULL,NULL,NULL), + (233,117,8,'a_b',8,'Household Member of',59,'Household Member is',1,NULL,NULL,NULL), + (234,117,8,'b_a',59,'Household Member is',8,'Household Member of',1,NULL,NULL,NULL), + (235,118,8,'a_b',140,'Household Member of',59,'Household Member is',1,NULL,NULL,NULL), + (236,118,8,'b_a',59,'Household Member is',140,'Household Member of',1,NULL,NULL,NULL), + (237,119,7,'a_b',157,'Head of Household for',59,'Head of Household is',1,NULL,NULL,NULL), + (238,119,7,'b_a',59,'Head of Household is',157,'Head of Household for',1,NULL,NULL,NULL), + (239,120,2,'a_b',128,'Spouse of',157,'Spouse of',1,NULL,NULL,NULL), + (240,120,2,'b_a',157,'Spouse of',128,'Spouse of',1,NULL,NULL,NULL), + (241,121,1,'a_b',178,'Child of',144,'Parent of',1,NULL,NULL,NULL), + (242,121,1,'b_a',144,'Parent of',178,'Child of',1,NULL,NULL,NULL), + (243,122,1,'a_b',127,'Child of',144,'Parent of',1,NULL,NULL,NULL), + (244,122,1,'b_a',144,'Parent of',127,'Child of',1,NULL,NULL,NULL), + (245,123,1,'a_b',178,'Child of',4,'Parent of',1,NULL,NULL,NULL), + (246,123,1,'b_a',4,'Parent of',178,'Child of',1,NULL,NULL,NULL), + (247,124,1,'a_b',127,'Child of',4,'Parent of',1,NULL,NULL,NULL), + (248,124,1,'b_a',4,'Parent of',127,'Child of',1,NULL,NULL,NULL), + (249,125,4,'a_b',127,'Sibling of',178,'Sibling of',1,NULL,NULL,NULL), + (250,125,4,'b_a',178,'Sibling of',127,'Sibling of',1,NULL,NULL,NULL), + (251,126,8,'a_b',4,'Household Member of',117,'Household Member is',1,NULL,NULL,NULL), + (252,126,8,'b_a',117,'Household Member is',4,'Household Member of',1,NULL,NULL,NULL), + (253,127,8,'a_b',178,'Household Member of',117,'Household Member is',1,NULL,NULL,NULL), + (254,127,8,'b_a',117,'Household Member is',178,'Household Member of',1,NULL,NULL,NULL), + (255,128,8,'a_b',127,'Household Member of',117,'Household Member is',1,NULL,NULL,NULL), + (256,128,8,'b_a',117,'Household Member is',127,'Household Member of',1,NULL,NULL,NULL), + (257,129,7,'a_b',144,'Head of Household for',117,'Head of Household is',0,NULL,NULL,NULL), + (258,129,7,'b_a',117,'Head of Household is',144,'Head of Household for',0,NULL,NULL,NULL), + (259,130,2,'a_b',4,'Spouse of',144,'Spouse of',0,NULL,NULL,NULL), + (260,130,2,'b_a',144,'Spouse of',4,'Spouse of',0,NULL,NULL,NULL), + (261,131,1,'a_b',34,'Child of',67,'Parent of',1,NULL,NULL,NULL), + (262,131,1,'b_a',67,'Parent of',34,'Child of',1,NULL,NULL,NULL), + (263,132,1,'a_b',193,'Child of',67,'Parent of',1,NULL,NULL,NULL), + (264,132,1,'b_a',67,'Parent of',193,'Child of',1,NULL,NULL,NULL), + (265,133,1,'a_b',34,'Child of',56,'Parent of',1,NULL,NULL,NULL), + (266,133,1,'b_a',56,'Parent of',34,'Child of',1,NULL,NULL,NULL), + (267,134,1,'a_b',193,'Child of',56,'Parent of',1,NULL,NULL,NULL), + (268,134,1,'b_a',56,'Parent of',193,'Child of',1,NULL,NULL,NULL), + (269,135,4,'a_b',193,'Sibling of',34,'Sibling of',1,NULL,NULL,NULL), + (270,135,4,'b_a',34,'Sibling of',193,'Sibling of',1,NULL,NULL,NULL), + (271,136,8,'a_b',56,'Household Member of',88,'Household Member is',1,NULL,NULL,NULL), + (272,136,8,'b_a',88,'Household Member is',56,'Household Member of',1,NULL,NULL,NULL), + (273,137,8,'a_b',34,'Household Member of',88,'Household Member is',1,NULL,NULL,NULL), + (274,137,8,'b_a',88,'Household Member is',34,'Household Member of',1,NULL,NULL,NULL), + (275,138,8,'a_b',193,'Household Member of',88,'Household Member is',1,NULL,NULL,NULL), + (276,138,8,'b_a',88,'Household Member is',193,'Household Member of',1,NULL,NULL,NULL), + (277,139,7,'a_b',67,'Head of Household for',88,'Head of Household is',0,NULL,NULL,NULL), + (278,139,7,'b_a',88,'Head of Household is',67,'Head of Household for',0,NULL,NULL,NULL), + (279,140,2,'a_b',56,'Spouse of',67,'Spouse of',0,NULL,NULL,NULL), + (280,140,2,'b_a',67,'Spouse of',56,'Spouse of',0,NULL,NULL,NULL), + (281,141,1,'a_b',79,'Child of',77,'Parent of',1,NULL,NULL,NULL), + (282,141,1,'b_a',77,'Parent of',79,'Child of',1,NULL,NULL,NULL), + (283,142,1,'a_b',49,'Child of',77,'Parent of',1,NULL,NULL,NULL), + (284,142,1,'b_a',77,'Parent of',49,'Child of',1,NULL,NULL,NULL), + (285,143,1,'a_b',79,'Child of',39,'Parent of',1,NULL,NULL,NULL), + (286,143,1,'b_a',39,'Parent of',79,'Child of',1,NULL,NULL,NULL), + (287,144,1,'a_b',49,'Child of',39,'Parent of',1,NULL,NULL,NULL), + (288,144,1,'b_a',39,'Parent of',49,'Child of',1,NULL,NULL,NULL), + (289,145,4,'a_b',49,'Sibling of',79,'Sibling of',1,NULL,NULL,NULL), + (290,145,4,'b_a',79,'Sibling of',49,'Sibling of',1,NULL,NULL,NULL), + (291,146,8,'a_b',39,'Household Member of',135,'Household Member is',1,NULL,NULL,NULL), + (292,146,8,'b_a',135,'Household Member is',39,'Household Member of',1,NULL,NULL,NULL), + (293,147,8,'a_b',79,'Household Member of',135,'Household Member is',1,NULL,NULL,NULL), + (294,147,8,'b_a',135,'Household Member is',79,'Household Member of',1,NULL,NULL,NULL), + (295,148,8,'a_b',49,'Household Member of',135,'Household Member is',1,NULL,NULL,NULL), + (296,148,8,'b_a',135,'Household Member is',49,'Household Member of',1,NULL,NULL,NULL), + (297,149,7,'a_b',77,'Head of Household for',135,'Head of Household is',0,NULL,NULL,NULL), + (298,149,7,'b_a',135,'Head of Household is',77,'Head of Household for',0,NULL,NULL,NULL), + (299,150,2,'a_b',39,'Spouse of',77,'Spouse of',0,NULL,NULL,NULL), + (300,150,2,'b_a',77,'Spouse of',39,'Spouse of',0,NULL,NULL,NULL), + (301,151,1,'a_b',173,'Child of',172,'Parent of',1,NULL,NULL,NULL), + (302,151,1,'b_a',172,'Parent of',173,'Child of',1,NULL,NULL,NULL), + (303,152,1,'a_b',27,'Child of',172,'Parent of',1,NULL,NULL,NULL), + (304,152,1,'b_a',172,'Parent of',27,'Child of',1,NULL,NULL,NULL), + (305,153,1,'a_b',173,'Child of',137,'Parent of',1,NULL,NULL,NULL), + (306,153,1,'b_a',137,'Parent of',173,'Child of',1,NULL,NULL,NULL), + (307,154,1,'a_b',27,'Child of',137,'Parent of',1,NULL,NULL,NULL), + (308,154,1,'b_a',137,'Parent of',27,'Child of',1,NULL,NULL,NULL), + (309,155,4,'a_b',27,'Sibling of',173,'Sibling of',1,NULL,NULL,NULL), + (310,155,4,'b_a',173,'Sibling of',27,'Sibling of',1,NULL,NULL,NULL), + (311,156,8,'a_b',137,'Household Member of',132,'Household Member is',1,NULL,NULL,NULL), + (312,156,8,'b_a',132,'Household Member is',137,'Household Member of',1,NULL,NULL,NULL), + (313,157,8,'a_b',173,'Household Member of',132,'Household Member is',1,NULL,NULL,NULL), + (314,157,8,'b_a',132,'Household Member is',173,'Household Member of',1,NULL,NULL,NULL), + (315,158,8,'a_b',27,'Household Member of',132,'Household Member is',1,NULL,NULL,NULL), + (316,158,8,'b_a',132,'Household Member is',27,'Household Member of',1,NULL,NULL,NULL), + (317,159,7,'a_b',172,'Head of Household for',132,'Head of Household is',1,NULL,NULL,NULL), + (318,159,7,'b_a',132,'Head of Household is',172,'Head of Household for',1,NULL,NULL,NULL), + (319,160,2,'a_b',137,'Spouse of',172,'Spouse of',1,NULL,NULL,NULL), + (320,160,2,'b_a',172,'Spouse of',137,'Spouse of',1,NULL,NULL,NULL), + (321,161,1,'a_b',134,'Child of',69,'Parent of',1,NULL,NULL,NULL), + (322,161,1,'b_a',69,'Parent of',134,'Child of',1,NULL,NULL,NULL), + (323,162,1,'a_b',75,'Child of',69,'Parent of',1,NULL,NULL,NULL), + (324,162,1,'b_a',69,'Parent of',75,'Child of',1,NULL,NULL,NULL), + (325,163,1,'a_b',134,'Child of',108,'Parent of',1,NULL,NULL,NULL), + (326,163,1,'b_a',108,'Parent of',134,'Child of',1,NULL,NULL,NULL), + (327,164,1,'a_b',75,'Child of',108,'Parent of',1,NULL,NULL,NULL), + (328,164,1,'b_a',108,'Parent of',75,'Child of',1,NULL,NULL,NULL), + (329,165,4,'a_b',75,'Sibling of',134,'Sibling of',1,NULL,NULL,NULL), + (330,165,4,'b_a',134,'Sibling of',75,'Sibling of',1,NULL,NULL,NULL), + (331,166,8,'a_b',108,'Household Member of',76,'Household Member is',1,NULL,NULL,NULL), + (332,166,8,'b_a',76,'Household Member is',108,'Household Member of',1,NULL,NULL,NULL), + (333,167,8,'a_b',134,'Household Member of',76,'Household Member is',1,NULL,NULL,NULL), + (334,167,8,'b_a',76,'Household Member is',134,'Household Member of',1,NULL,NULL,NULL), + (335,168,8,'a_b',75,'Household Member of',76,'Household Member is',1,NULL,NULL,NULL), + (336,168,8,'b_a',76,'Household Member is',75,'Household Member of',1,NULL,NULL,NULL), + (337,169,7,'a_b',69,'Head of Household for',76,'Head of Household is',0,NULL,NULL,NULL), + (338,169,7,'b_a',76,'Head of Household is',69,'Head of Household for',0,NULL,NULL,NULL), + (339,170,2,'a_b',108,'Spouse of',69,'Spouse of',0,NULL,NULL,NULL), + (340,170,2,'b_a',69,'Spouse of',108,'Spouse of',0,NULL,NULL,NULL), + (341,171,1,'a_b',151,'Child of',42,'Parent of',1,NULL,NULL,NULL), + (342,171,1,'b_a',42,'Parent of',151,'Child of',1,NULL,NULL,NULL), + (343,172,1,'a_b',176,'Child of',42,'Parent of',1,NULL,NULL,NULL), + (344,172,1,'b_a',42,'Parent of',176,'Child of',1,NULL,NULL,NULL), + (345,173,1,'a_b',151,'Child of',38,'Parent of',1,NULL,NULL,NULL), + (346,173,1,'b_a',38,'Parent of',151,'Child of',1,NULL,NULL,NULL), + (347,174,1,'a_b',176,'Child of',38,'Parent of',1,NULL,NULL,NULL), + (348,174,1,'b_a',38,'Parent of',176,'Child of',1,NULL,NULL,NULL), + (349,175,4,'a_b',176,'Sibling of',151,'Sibling of',1,NULL,NULL,NULL), + (350,175,4,'b_a',151,'Sibling of',176,'Sibling of',1,NULL,NULL,NULL), + (351,176,8,'a_b',38,'Household Member of',21,'Household Member is',1,NULL,NULL,NULL), + (352,176,8,'b_a',21,'Household Member is',38,'Household Member of',1,NULL,NULL,NULL), + (353,177,8,'a_b',151,'Household Member of',21,'Household Member is',1,NULL,NULL,NULL), + (354,177,8,'b_a',21,'Household Member is',151,'Household Member of',1,NULL,NULL,NULL), + (355,178,8,'a_b',176,'Household Member of',21,'Household Member is',1,NULL,NULL,NULL), + (356,178,8,'b_a',21,'Household Member is',176,'Household Member of',1,NULL,NULL,NULL), + (357,179,7,'a_b',42,'Head of Household for',21,'Head of Household is',1,NULL,NULL,NULL), + (358,179,7,'b_a',21,'Head of Household is',42,'Head of Household for',1,NULL,NULL,NULL), + (359,180,2,'a_b',38,'Spouse of',42,'Spouse of',1,NULL,NULL,NULL), + (360,180,2,'b_a',42,'Spouse of',38,'Spouse of',1,NULL,NULL,NULL), + (361,181,1,'a_b',13,'Child of',145,'Parent of',1,NULL,NULL,NULL), + (362,181,1,'b_a',145,'Parent of',13,'Child of',1,NULL,NULL,NULL), + (363,182,1,'a_b',41,'Child of',145,'Parent of',1,NULL,NULL,NULL), + (364,182,1,'b_a',145,'Parent of',41,'Child of',1,NULL,NULL,NULL), + (365,183,1,'a_b',13,'Child of',191,'Parent of',1,NULL,NULL,NULL), + (366,183,1,'b_a',191,'Parent of',13,'Child of',1,NULL,NULL,NULL), + (367,184,1,'a_b',41,'Child of',191,'Parent of',1,NULL,NULL,NULL), + (368,184,1,'b_a',191,'Parent of',41,'Child of',1,NULL,NULL,NULL), + (369,185,4,'a_b',41,'Sibling of',13,'Sibling of',1,NULL,NULL,NULL), + (370,185,4,'b_a',13,'Sibling of',41,'Sibling of',1,NULL,NULL,NULL), + (371,186,8,'a_b',191,'Household Member of',183,'Household Member is',1,NULL,NULL,NULL), + (372,186,8,'b_a',183,'Household Member is',191,'Household Member of',1,NULL,NULL,NULL), + (373,187,8,'a_b',13,'Household Member of',183,'Household Member is',1,NULL,NULL,NULL), + (374,187,8,'b_a',183,'Household Member is',13,'Household Member of',1,NULL,NULL,NULL), + (375,188,8,'a_b',41,'Household Member of',183,'Household Member is',1,NULL,NULL,NULL), + (376,188,8,'b_a',183,'Household Member is',41,'Household Member of',1,NULL,NULL,NULL), + (377,189,7,'a_b',145,'Head of Household for',183,'Head of Household is',1,NULL,NULL,NULL), + (378,189,7,'b_a',183,'Head of Household is',145,'Head of Household for',1,NULL,NULL,NULL), + (379,190,2,'a_b',191,'Spouse of',145,'Spouse of',1,NULL,NULL,NULL), + (380,190,2,'b_a',145,'Spouse of',191,'Spouse of',1,NULL,NULL,NULL), + (381,191,1,'a_b',28,'Child of',71,'Parent of',1,NULL,NULL,NULL), + (382,191,1,'b_a',71,'Parent of',28,'Child of',1,NULL,NULL,NULL), + (383,192,1,'a_b',92,'Child of',71,'Parent of',1,NULL,NULL,NULL), + (384,192,1,'b_a',71,'Parent of',92,'Child of',1,NULL,NULL,NULL), + (385,193,1,'a_b',28,'Child of',25,'Parent of',1,NULL,NULL,NULL), + (386,193,1,'b_a',25,'Parent of',28,'Child of',1,NULL,NULL,NULL), + (387,194,1,'a_b',92,'Child of',25,'Parent of',1,NULL,NULL,NULL), + (388,194,1,'b_a',25,'Parent of',92,'Child of',1,NULL,NULL,NULL), + (389,195,4,'a_b',92,'Sibling of',28,'Sibling of',1,NULL,NULL,NULL), + (390,195,4,'b_a',28,'Sibling of',92,'Sibling of',1,NULL,NULL,NULL), + (391,196,8,'a_b',25,'Household Member of',148,'Household Member is',1,NULL,NULL,NULL), + (392,196,8,'b_a',148,'Household Member is',25,'Household Member of',1,NULL,NULL,NULL), + (393,197,8,'a_b',28,'Household Member of',148,'Household Member is',1,NULL,NULL,NULL), + (394,197,8,'b_a',148,'Household Member is',28,'Household Member of',1,NULL,NULL,NULL), + (395,198,8,'a_b',92,'Household Member of',148,'Household Member is',1,NULL,NULL,NULL), + (396,198,8,'b_a',148,'Household Member is',92,'Household Member of',1,NULL,NULL,NULL), + (397,199,7,'a_b',71,'Head of Household for',148,'Head of Household is',1,NULL,NULL,NULL), + (398,199,7,'b_a',148,'Head of Household is',71,'Head of Household for',1,NULL,NULL,NULL), + (399,200,2,'a_b',25,'Spouse of',71,'Spouse of',1,NULL,NULL,NULL), + (400,200,2,'b_a',71,'Spouse of',25,'Spouse of',1,NULL,NULL,NULL), + (401,201,5,'a_b',57,'Employee of',17,'Employer of',1,NULL,NULL,NULL), + (402,201,5,'b_a',17,'Employer of',57,'Employee of',1,NULL,NULL,NULL), + (403,202,5,'a_b',69,'Employee of',19,'Employer of',1,NULL,NULL,NULL), + (404,202,5,'b_a',19,'Employer of',69,'Employee of',1,NULL,NULL,NULL), + (405,203,5,'a_b',194,'Employee of',31,'Employer of',1,NULL,NULL,NULL), + (406,203,5,'b_a',31,'Employer of',194,'Employee of',1,NULL,NULL,NULL), + (407,204,5,'a_b',75,'Employee of',51,'Employer of',1,NULL,NULL,NULL), + (408,204,5,'b_a',51,'Employer of',75,'Employee of',1,NULL,NULL,NULL), + (409,205,5,'a_b',180,'Employee of',53,'Employer of',1,NULL,NULL,NULL), + (410,205,5,'b_a',53,'Employer of',180,'Employee of',1,NULL,NULL,NULL), + (411,206,5,'a_b',120,'Employee of',64,'Employer of',1,NULL,NULL,NULL), + (412,206,5,'b_a',64,'Employer of',120,'Employee of',1,NULL,NULL,NULL), + (413,207,5,'a_b',159,'Employee of',74,'Employer of',1,NULL,NULL,NULL), + (414,207,5,'b_a',74,'Employer of',159,'Employee of',1,NULL,NULL,NULL), + (415,208,5,'a_b',45,'Employee of',111,'Employer of',1,NULL,NULL,NULL), + (416,208,5,'b_a',111,'Employer of',45,'Employee of',1,NULL,NULL,NULL), + (417,209,5,'a_b',136,'Employee of',112,'Employer of',1,NULL,NULL,NULL), + (418,209,5,'b_a',112,'Employer of',136,'Employee of',1,NULL,NULL,NULL), + (419,210,5,'a_b',12,'Employee of',118,'Employer of',1,NULL,NULL,NULL), + (420,210,5,'b_a',118,'Employer of',12,'Employee of',1,NULL,NULL,NULL), + (421,211,5,'a_b',58,'Employee of',121,'Employer of',1,NULL,NULL,NULL), + (422,211,5,'b_a',121,'Employer of',58,'Employee of',1,NULL,NULL,NULL), + (423,212,5,'a_b',104,'Employee of',133,'Employer of',1,NULL,NULL,NULL), + (424,212,5,'b_a',133,'Employer of',104,'Employee of',1,NULL,NULL,NULL), + (425,213,5,'a_b',79,'Employee of',150,'Employer of',1,NULL,NULL,NULL), + (426,213,5,'b_a',150,'Employer of',79,'Employee of',1,NULL,NULL,NULL), + (427,214,5,'a_b',54,'Employee of',166,'Employer of',1,NULL,NULL,NULL), + (428,214,5,'b_a',166,'Employer of',54,'Employee of',1,NULL,NULL,NULL), + (429,215,5,'a_b',169,'Employee of',171,'Employer of',1,NULL,NULL,NULL), + (430,215,5,'b_a',171,'Employer of',169,'Employee of',1,NULL,NULL,NULL), + (431,216,5,'a_b',187,'Employee of',174,'Employer of',1,NULL,NULL,NULL), + (432,216,5,'b_a',174,'Employer of',187,'Employee of',1,NULL,NULL,NULL), + (433,217,5,'a_b',122,'Employee of',190,'Employer of',1,NULL,NULL,NULL), + (434,217,5,'b_a',190,'Employer of',122,'Employee of',1,NULL,NULL,NULL); /*!40000 ALTER TABLE `civicrm_relationship_cache` ENABLE KEYS */; UNLOCK TABLES; @@ -8022,7 +8027,9 @@ UNLOCK TABLES; LOCK TABLES `civicrm_saved_search` WRITE; /*!40000 ALTER TABLE `civicrm_saved_search` DISABLE KEYS */; INSERT INTO `civicrm_saved_search` (`id`, `name`, `label`, `form_values`, `mapping_id`, `search_custom_id`, `api_entity`, `api_params`, `created_id`, `modified_id`, `expires_date`, `created_date`, `modified_date`, `description`) VALUES - (1,'Email_Bounce_History','Email Bounce History',NULL,NULL,NULL,'MailingEventBounce','{\"version\":4,\"select\":[\"time_stamp\",\"bounce_type_id:label\",\"bounce_reason\",\"MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01_MailingJob_Mailing_mailing_id_01.name\"],\"orderBy\":[],\"where\":[],\"groupBy\":[],\"join\":[[\"MailingEventQueue AS MailingEventBounce_MailingEventQueue_event_queue_id_01\",\"INNER\",[\"event_queue_id\",\"=\",\"MailingEventBounce_MailingEventQueue_event_queue_id_01.id\"]],[\"MailingJob AS MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01\",\"INNER\",[\"MailingEventBounce_MailingEventQueue_event_queue_id_01.job_id\",\"=\",\"MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01.id\"]],[\"Mailing AS MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01_MailingJob_Mailing_mailing_id_01\",\"INNER\",[\"MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01.mailing_id\",\"=\",\"MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01_MailingJob_Mailing_mailing_id_01.id\"]]],\"having\":[]}',NULL,NULL,NULL,'2023-09-06 22:52:12','2023-09-06 22:52:12',NULL); + (1,'Email_Bounce_History','Email Bounce History',NULL,NULL,NULL,'MailingEventBounce','{\"version\":4,\"select\":[\"time_stamp\",\"bounce_type_id:label\",\"bounce_reason\",\"MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01_MailingJob_Mailing_mailing_id_01.name\"],\"orderBy\":[],\"where\":[],\"groupBy\":[],\"join\":[[\"MailingEventQueue AS MailingEventBounce_MailingEventQueue_event_queue_id_01\",\"INNER\",[\"event_queue_id\",\"=\",\"MailingEventBounce_MailingEventQueue_event_queue_id_01.id\"]],[\"MailingJob AS MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01\",\"INNER\",[\"MailingEventBounce_MailingEventQueue_event_queue_id_01.job_id\",\"=\",\"MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01.id\"]],[\"Mailing AS MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01_MailingJob_Mailing_mailing_id_01\",\"INNER\",[\"MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01.mailing_id\",\"=\",\"MailingEventBounce_MailingEventQueue_event_queue_id_01_MailingEventQueue_MailingJob_job_id_01_MailingJob_Mailing_mailing_id_01.id\"]]],\"having\":[]}',NULL,NULL,NULL,'2023-10-07 01:51:25','2023-10-07 01:51:25',NULL), + (2,'Contact_Summary_Notes','Contact Summary Notes',NULL,NULL,NULL,'Note','{\"version\":4,\"select\":[\"id\",\"subject\",\"note\",\"note_date\",\"modified_date\",\"contact_id.sort_name\",\"GROUP_CONCAT(UNIQUE Note_EntityFile_File_01.file_name) AS GROUP_CONCAT_Note_EntityFile_File_01_file_name\",\"COUNT(Note_Note_entity_id_01.id) AS COUNT_Note_Note_entity_id_01_id\"],\"orderBy\":[],\"where\":[],\"groupBy\":[\"id\"],\"join\":[[\"File AS Note_EntityFile_File_01\",\"LEFT\",\"EntityFile\",[\"id\",\"=\",\"Note_EntityFile_File_01.entity_id\"],[\"Note_EntityFile_File_01.entity_table\",\"=\",\"\'civicrm_note\'\"]],[\"Note AS Note_Note_entity_id_01\",\"LEFT\",[\"id\",\"=\",\"Note_Note_entity_id_01.entity_id\"],[\"Note_Note_entity_id_01.entity_table\",\"=\",\"\'civicrm_note\'\"]]],\"having\":[]}',NULL,NULL,NULL,'2023-10-07 01:51:25','2023-10-07 01:51:25',NULL), + (3,'Contact_Summary_Relationships','Contact Summary Relationships',NULL,NULL,NULL,'RelationshipCache','{\"version\":4,\"select\":[\"near_relation:label\",\"RelationshipCache_Contact_far_contact_id_01.display_name\",\"start_date\",\"end_date\",\"RelationshipCache_Contact_far_contact_id_01.address_primary.city\",\"RelationshipCache_Contact_far_contact_id_01.address_primary.state_province_id:label\",\"RelationshipCache_Contact_far_contact_id_01.email_primary.email\",\"RelationshipCache_Contact_far_contact_id_01.phone_primary.phone\",\"permission_near_to_far:label\",\"permission_far_to_near:label\",\"is_active\"],\"orderBy\":[],\"where\":[],\"groupBy\":[],\"join\":[[\"Contact AS RelationshipCache_Contact_far_contact_id_01\",\"LEFT\",[\"far_contact_id\",\"=\",\"RelationshipCache_Contact_far_contact_id_01.id\"]]],\"having\":[]}',NULL,NULL,NULL,'2023-10-07 01:51:25','2023-10-07 01:51:25',NULL); /*!40000 ALTER TABLE `civicrm_saved_search` ENABLE KEYS */; UNLOCK TABLES; @@ -8124,13 +8131,13 @@ INSERT INTO `civicrm_state_province` (`id`, `name`, `abbreviation`, `country_id` (1110,'Quebec','QC',1039,1), (1111,'Saskatchewan','SK',1039,1), (1112,'Yukon Territory','YT',1039,1), - (1200,'Maharashtra','MM',1101,1), + (1200,'Maharashtra','MH',1101,1), (1201,'Karnataka','KA',1101,1), (1202,'Andhra Pradesh','AP',1101,1), (1203,'Arunachal Pradesh','AR',1101,1), (1204,'Assam','AS',1101,1), (1205,'Bihar','BR',1101,1), - (1206,'Chhattisgarh','CH',1101,1), + (1206,'Chhattisgarh','CG',1101,1), (1207,'Goa','GA',1101,1), (1208,'Gujarat','GJ',1101,1), (1209,'Haryana','HR',1101,1), @@ -12125,90 +12132,90 @@ UNLOCK TABLES; LOCK TABLES `civicrm_subscription_history` WRITE; /*!40000 ALTER TABLE `civicrm_subscription_history` DISABLE KEYS */; INSERT INTO `civicrm_subscription_history` (`id`, `contact_id`, `group_id`, `date`, `method`, `status`, `tracking`) VALUES - (1,55,2,'2023-03-27 23:40:27','Admin','Added',NULL), - (2,41,2,'2023-05-15 09:36:15','Email','Added',NULL), - (3,34,2,'2022-10-17 14:49:10','Admin','Added',NULL), - (4,171,2,'2022-10-05 06:08:36','Email','Added',NULL), - (5,123,2,'2023-02-01 04:35:13','Email','Added',NULL), - (6,64,2,'2023-04-16 11:45:51','Email','Added',NULL), - (7,178,2,'2023-06-20 02:29:30','Email','Added',NULL), - (8,24,2,'2023-07-15 16:43:53','Admin','Added',NULL), - (9,146,2,'2023-07-06 13:22:30','Email','Added',NULL), - (10,4,2,'2023-02-20 05:44:43','Email','Added',NULL), - (11,37,2,'2022-12-25 01:43:33','Email','Added',NULL), - (12,181,2,'2023-05-08 04:49:33','Admin','Added',NULL), - (13,98,2,'2022-10-14 15:02:15','Admin','Added',NULL), - (14,33,2,'2023-01-03 06:58:10','Admin','Added',NULL), - (15,160,2,'2023-04-03 22:01:32','Admin','Added',NULL), - (16,148,2,'2022-11-09 02:24:10','Email','Added',NULL), - (17,79,2,'2023-06-08 21:47:46','Admin','Added',NULL), - (18,158,2,'2023-03-13 19:12:00','Email','Added',NULL), - (19,145,2,'2023-01-23 01:27:48','Admin','Added',NULL), - (20,82,2,'2023-03-06 19:32:57','Admin','Added',NULL), - (21,175,2,'2022-11-19 01:46:26','Email','Added',NULL), - (22,102,2,'2023-03-15 02:57:34','Email','Added',NULL), - (23,117,2,'2022-09-29 19:40:08','Admin','Added',NULL), - (24,124,2,'2022-09-09 14:13:27','Admin','Added',NULL), - (25,28,2,'2022-12-25 05:55:31','Admin','Added',NULL), - (26,40,2,'2022-11-03 19:06:20','Admin','Added',NULL), - (27,66,2,'2023-07-09 09:37:48','Email','Added',NULL), - (28,32,2,'2023-03-29 14:54:55','Admin','Added',NULL), - (29,162,2,'2023-03-03 18:41:30','Admin','Added',NULL), - (30,199,2,'2022-12-28 05:45:09','Email','Added',NULL), - (31,26,2,'2023-07-08 00:55:20','Admin','Added',NULL), - (32,180,2,'2023-08-20 13:20:08','Email','Added',NULL), - (33,192,2,'2022-10-02 20:42:51','Email','Added',NULL), - (34,141,2,'2023-06-14 09:31:05','Email','Added',NULL), - (35,59,2,'2023-05-05 00:54:37','Email','Added',NULL), - (36,100,2,'2023-03-27 10:10:05','Email','Added',NULL), - (37,11,2,'2023-05-06 09:39:47','Admin','Added',NULL), - (38,144,2,'2023-08-29 11:33:58','Admin','Added',NULL), - (39,200,2,'2023-02-21 23:16:00','Email','Added',NULL), - (40,47,2,'2023-06-24 19:14:47','Admin','Added',NULL), - (41,22,2,'2023-06-20 00:05:08','Admin','Added',NULL), - (42,75,2,'2023-08-19 08:57:17','Email','Added',NULL), - (43,112,2,'2023-07-18 18:08:14','Email','Added',NULL), - (44,182,2,'2023-08-28 06:45:21','Admin','Added',NULL), - (45,165,2,'2023-02-13 18:23:38','Email','Added',NULL), - (46,132,2,'2022-11-15 12:34:22','Email','Added',NULL), - (47,136,2,'2022-09-13 11:59:10','Admin','Added',NULL), - (48,172,2,'2022-12-19 20:03:57','Admin','Added',NULL), - (49,186,2,'2022-12-17 05:35:36','Admin','Added',NULL), - (50,90,2,'2023-06-24 01:31:38','Email','Added',NULL), - (51,83,2,'2022-10-06 23:17:30','Email','Added',NULL), - (52,120,2,'2022-10-18 15:48:03','Email','Added',NULL), - (53,174,2,'2023-05-31 06:57:30','Email','Added',NULL), - (54,109,2,'2023-02-09 21:58:02','Admin','Added',NULL), - (55,69,2,'2022-09-24 11:41:10','Email','Added',NULL), - (56,155,2,'2023-01-02 02:47:45','Email','Added',NULL), - (57,167,2,'2023-01-19 03:01:51','Admin','Added',NULL), - (58,96,2,'2023-03-16 07:14:58','Admin','Added',NULL), - (59,159,2,'2023-03-26 19:36:00','Admin','Added',NULL), - (60,108,2,'2023-01-24 16:22:18','Admin','Added',NULL), - (61,78,3,'2023-07-08 00:20:30','Admin','Added',NULL), - (62,70,3,'2023-08-19 22:28:12','Email','Added',NULL), - (63,103,3,'2023-05-07 22:42:56','Email','Added',NULL), - (64,107,3,'2022-11-22 03:40:46','Admin','Added',NULL), - (65,44,3,'2023-07-12 13:14:30','Email','Added',NULL), - (66,21,3,'2022-11-04 06:22:15','Admin','Added',NULL), - (67,84,3,'2022-09-25 22:10:00','Email','Added',NULL), - (68,71,3,'2023-07-29 07:00:25','Email','Added',NULL), - (69,115,3,'2023-04-06 02:33:36','Email','Added',NULL), - (70,56,3,'2022-10-19 01:13:53','Admin','Added',NULL), - (71,196,3,'2023-06-17 03:42:21','Email','Added',NULL), - (72,183,3,'2023-07-18 05:12:56','Admin','Added',NULL), - (73,62,3,'2023-07-05 09:29:36','Email','Added',NULL), - (74,121,3,'2022-11-17 00:46:36','Admin','Added',NULL), - (75,166,3,'2023-07-06 01:44:02','Admin','Added',NULL), - (76,55,4,'2023-09-03 13:34:26','Email','Added',NULL), - (77,24,4,'2023-05-01 19:09:28','Admin','Added',NULL), - (78,160,4,'2022-09-19 10:43:27','Email','Added',NULL), - (79,102,4,'2023-05-19 07:25:46','Email','Added',NULL), - (80,162,4,'2023-03-04 22:54:14','Admin','Added',NULL), - (81,100,4,'2022-10-29 22:57:36','Admin','Added',NULL), - (82,112,4,'2023-02-03 13:11:50','Admin','Added',NULL), - (83,90,4,'2022-10-20 14:02:49','Admin','Added',NULL), - (84,202,4,'2023-08-16 01:44:57','Email','Added',NULL); + (1,26,2,'2023-04-20 15:20:24','Admin','Added',NULL), + (2,35,2,'2022-12-29 13:22:54','Email','Added',NULL), + (3,201,2,'2023-05-04 04:59:42','Email','Added',NULL), + (4,113,2,'2023-02-04 07:50:04','Email','Added',NULL), + (5,153,2,'2023-06-29 03:06:25','Email','Added',NULL), + (6,81,2,'2022-12-26 10:32:20','Admin','Added',NULL), + (7,61,2,'2023-05-11 10:29:01','Admin','Added',NULL), + (8,5,2,'2023-04-29 02:30:56','Email','Added',NULL), + (9,98,2,'2023-02-18 06:14:47','Email','Added',NULL), + (10,78,2,'2023-05-14 09:18:40','Admin','Added',NULL), + (11,180,2,'2023-06-30 20:28:17','Email','Added',NULL), + (12,182,2,'2023-05-13 06:27:05','Email','Added',NULL), + (13,179,2,'2022-10-09 13:22:29','Admin','Added',NULL), + (14,109,2,'2023-05-12 02:48:06','Email','Added',NULL), + (15,83,2,'2023-01-26 10:07:20','Admin','Added',NULL), + (16,125,2,'2023-06-17 18:55:10','Admin','Added',NULL), + (17,33,2,'2023-02-23 06:35:07','Admin','Added',NULL), + (18,90,2,'2023-04-08 08:33:49','Admin','Added',NULL), + (19,72,2,'2023-01-27 11:48:04','Admin','Added',NULL), + (20,129,2,'2023-08-21 17:38:29','Admin','Added',NULL), + (21,185,2,'2023-05-23 17:29:53','Admin','Added',NULL), + (22,44,2,'2023-08-12 03:39:31','Email','Added',NULL), + (23,169,2,'2023-01-16 02:40:55','Admin','Added',NULL), + (24,96,2,'2023-02-05 13:55:55','Admin','Added',NULL), + (25,114,2,'2023-01-30 16:45:02','Email','Added',NULL), + (26,110,2,'2023-04-27 05:59:55','Admin','Added',NULL), + (27,160,2,'2023-08-18 10:25:14','Admin','Added',NULL), + (28,95,2,'2023-05-18 11:14:21','Admin','Added',NULL), + (29,106,2,'2023-01-19 03:23:23','Email','Added',NULL), + (30,100,2,'2023-06-21 05:46:50','Email','Added',NULL), + (31,20,2,'2022-11-24 04:59:29','Admin','Added',NULL), + (32,155,2,'2023-02-23 09:44:36','Email','Added',NULL), + (33,94,2,'2023-09-09 18:40:24','Admin','Added',NULL), + (34,197,2,'2023-07-21 04:23:19','Email','Added',NULL), + (35,55,2,'2023-06-11 08:01:30','Admin','Added',NULL), + (36,104,2,'2022-10-28 07:08:37','Admin','Added',NULL), + (37,142,2,'2023-05-24 13:50:40','Admin','Added',NULL), + (38,97,2,'2023-02-23 17:04:16','Email','Added',NULL), + (39,120,2,'2023-03-28 21:52:17','Email','Added',NULL), + (40,105,2,'2023-08-30 02:55:31','Email','Added',NULL), + (41,43,2,'2023-07-09 21:08:04','Admin','Added',NULL), + (42,70,2,'2023-07-20 03:49:54','Email','Added',NULL), + (43,119,2,'2023-08-06 12:54:27','Admin','Added',NULL), + (44,16,2,'2022-10-19 14:05:53','Email','Added',NULL), + (45,47,2,'2023-07-08 14:47:36','Email','Added',NULL), + (46,15,2,'2023-06-18 16:47:02','Email','Added',NULL), + (47,199,2,'2022-11-23 10:12:42','Email','Added',NULL), + (48,165,2,'2023-08-25 00:48:12','Email','Added',NULL), + (49,188,2,'2022-11-29 10:28:06','Email','Added',NULL), + (50,146,2,'2022-10-13 20:53:57','Email','Added',NULL), + (51,2,2,'2023-03-31 20:13:03','Email','Added',NULL), + (52,91,2,'2022-12-12 21:39:48','Admin','Added',NULL), + (53,54,2,'2023-09-20 09:33:32','Admin','Added',NULL), + (54,30,2,'2023-03-18 20:13:01','Admin','Added',NULL), + (55,164,2,'2023-09-22 02:14:57','Admin','Added',NULL), + (56,170,2,'2023-07-27 21:42:09','Admin','Added',NULL), + (57,138,2,'2023-06-26 12:02:03','Email','Added',NULL), + (58,156,2,'2022-11-17 19:58:19','Admin','Added',NULL), + (59,177,2,'2023-06-06 23:29:30','Admin','Added',NULL), + (60,7,2,'2023-08-17 04:14:53','Admin','Added',NULL), + (61,143,3,'2022-12-11 17:37:23','Email','Added',NULL), + (62,122,3,'2022-11-05 23:51:49','Email','Added',NULL), + (63,196,3,'2022-11-25 20:27:49','Admin','Added',NULL), + (64,198,3,'2022-12-29 02:48:57','Email','Added',NULL), + (65,181,3,'2022-12-16 16:42:05','Admin','Added',NULL), + (66,102,3,'2023-09-03 11:57:32','Admin','Added',NULL), + (67,167,3,'2023-10-03 22:50:37','Email','Added',NULL), + (68,68,3,'2023-04-07 19:31:00','Email','Added',NULL), + (69,189,3,'2023-08-25 09:59:16','Admin','Added',NULL), + (70,115,3,'2023-06-17 08:11:57','Email','Added',NULL), + (71,12,3,'2023-09-29 16:40:49','Email','Added',NULL), + (72,195,3,'2023-03-30 10:24:21','Email','Added',NULL), + (73,192,3,'2022-12-16 03:52:26','Email','Added',NULL), + (74,36,3,'2023-06-11 22:40:10','Email','Added',NULL), + (75,32,3,'2023-03-10 21:51:06','Email','Added',NULL), + (76,26,4,'2023-05-09 00:52:42','Email','Added',NULL), + (77,5,4,'2023-02-02 16:44:11','Admin','Added',NULL), + (78,83,4,'2023-04-17 01:20:53','Email','Added',NULL), + (79,44,4,'2023-03-06 22:53:03','Email','Added',NULL), + (80,106,4,'2023-08-14 13:42:11','Admin','Added',NULL), + (81,104,4,'2023-03-25 02:23:06','Email','Added',NULL), + (82,119,4,'2022-11-30 01:21:40','Admin','Added',NULL), + (83,146,4,'2023-08-02 09:07:22','Admin','Added',NULL), + (84,202,4,'2022-11-18 03:01:21','Admin','Added',NULL); /*!40000 ALTER TABLE `civicrm_subscription_history` ENABLE KEYS */; UNLOCK TABLES; @@ -12434,22 +12441,22 @@ UNLOCK TABLES; LOCK TABLES `civicrm_website` WRITE; /*!40000 ALTER TABLE `civicrm_website` DISABLE KEYS */; INSERT INTO `civicrm_website` (`id`, `contact_id`, `url`, `website_type_id`) VALUES - (1,48,'http://urbansustainability.org',1), - (2,43,'http://starenvironmental.org',1), - (3,169,'http://communityeducation.org',1), - (4,177,'http://localpoetryassociation.org',1), - (5,101,'http://mississippifood.org',1), - (6,153,'http://friendshealth.org',1), - (7,91,'http://arkansasliteracy.org',1), - (8,157,'http://creativeschool.org',1), - (9,129,'http://californiacollective.org',1), - (10,188,'http://dowleneducationcollective.org',1), - (11,193,'http://beechactionsystems.org',1), - (12,73,'http://surveyordevelopmentservices.org',1), - (13,61,'http://globaladvocacyinitiative.org',1), - (14,152,'http://thactioncollective.org',1), - (15,51,'http://dowlenpartnership.org',1), - (16,135,'http://delandactionsystems.org',1); + (1,31,'http://bfmusicassociation.org',1), + (2,150,'http://vnliteracysolutions.org',1), + (3,133,'http://texasculturealliance.org',1), + (4,168,'http://globalagriculture.org',1), + (5,174,'http://maplehealthfellowship.org',1), + (6,190,'http://floridatechnology.org',1), + (7,74,'http://longvilleactioncenter.org',1), + (8,89,'http://greenaction.org',1), + (9,171,'http://jacksonpeace.org',1), + (10,121,'http://californiacollective.org',1), + (11,50,'http://collegeadvocacy.org',1), + (12,112,'http://jamaicaarts.org',1), + (13,53,'http://communityeducationpartnership.org',1), + (14,111,'http://statesactionsystems.org',1), + (15,17,'http://lancastersustainability.org',1), + (16,51,'http://montierpeace.org',1); /*!40000 ALTER TABLE `civicrm_website` ENABLE KEYS */; UNLOCK TABLES; @@ -12481,13 +12488,12 @@ UNLOCK TABLES; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2023-09-07 8:52:22 +-- Dump completed on 2023-10-07 1:51:42 -- +--------------------------------------------------------------------+ -- | Copyright CiviCRM LLC. All rights reserved. | -- | | diff --git a/civicrm/sql/civicrm_navigation.mysql b/civicrm/sql/civicrm_navigation.mysql index f3077165d7..9970312bfd 100644 --- a/civicrm/sql/civicrm_navigation.mysql +++ b/civicrm/sql/civicrm_navigation.mysql @@ -211,14 +211,6 @@ SET @campaignlastID:=LAST_INSERT_ID(); INSERT INTO civicrm_navigation ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight ) VALUES - ( @domainID, 'civicrm/campaign?reset=1', 'Dashboard', 'Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 1 ); -SET @campaigndashboardlastID:=LAST_INSERT_ID(); -INSERT INTO civicrm_navigation - ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight ) -VALUES - ( @domainID, 'civicrm/campaign?reset=1&subPage=survey', 'Surveys', 'Survey Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 1 ), - ( @domainID, 'civicrm/campaign?reset=1&subPage=petition', 'Petitions', 'Petition Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 2 ), - ( @domainID, 'civicrm/campaign?reset=1&subPage=campaign', 'Campaigns', 'Campaign Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 3 ), ( @domainID, 'civicrm/campaign/add?reset=1', 'New Campaign', 'New Campaign', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 2 ), ( @domainID, 'civicrm/survey/add?reset=1', 'New Survey', 'New Survey', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 3 ), ( @domainID, 'civicrm/petition/add?reset=1', 'New Petition', 'New Petition', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 4 ), diff --git a/civicrm/templates/CRM/Activity/Form/Activity.tpl b/civicrm/templates/CRM/Activity/Form/Activity.tpl index f554bff1b4..bde0f91cb4 100644 --- a/civicrm/templates/CRM/Activity/Form/Activity.tpl +++ b/civicrm/templates/CRM/Activity/Form/Activity.tpl @@ -11,7 +11,7 @@ {if $action eq 4} <div class="crm-block crm-content-block crm-activity-view-block"> {else} - {if $activityTypeDescription } + {if $activityTypeDescription} <div class="help">{$activityTypeDescription}</div> {/if} <div class="crm-block crm-form-block crm-activity-form-block"> @@ -28,7 +28,7 @@ <table class="{if $action eq 4}crm-info-panel{else}form-layout{/if}"> {if $action eq 4} - {if $activityTypeDescription } + {if $activityTypeDescription} <div class="help">{$activityTypeDescription}</div> {/if} {else} @@ -147,7 +147,7 @@ <tr class="crm-activity-form-block-priority_id"> <td class="label">{$form.priority_id.label}</td><td class="view-value">{$form.priority_id.html}</td> </tr> - {if !empty($surveyActivity) } + {if !empty($surveyActivity)} <tr class="crm-activity-form-block-result"> <td class="label">{$form.result.label}</td><td class="view-value">{$form.result.html}</td> </tr> @@ -232,7 +232,7 @@ </table> <div class="crm-submit-buttons"> {if $action eq 4 && ($activityTypeNameAndLabel.machineName neq 'Inbound Email' || $allow_edit_inbound_emails == 1)} - {if !$context } + {if !$context} {assign var="context" value='activity'} {/if} {if $permission EQ 'edit'} diff --git a/civicrm/templates/CRM/Activity/Form/ActivityView.tpl b/civicrm/templates/CRM/Activity/Form/ActivityView.tpl index db41ef0a78..fa736453b2 100644 --- a/civicrm/templates/CRM/Activity/Form/ActivityView.tpl +++ b/civicrm/templates/CRM/Activity/Form/ActivityView.tpl @@ -41,7 +41,7 @@ {/if} <tr> - <td class="label">{ts}Date and Time{/ts}</td><td class="view-value">{$values.activity_date_time|crmDate }</td> + <td class="label">{ts}Date and Time{/ts}</td><td class="view-value">{$values.activity_date_time|crmDate}</td> </tr> {if (array_key_exists('mailingId', $values) && $values.mailingId)} <tr> diff --git a/civicrm/templates/CRM/Activity/Form/Search.tpl b/civicrm/templates/CRM/Activity/Form/Search.tpl index 9dd7bebde2..97d6869538 100644 --- a/civicrm/templates/CRM/Activity/Form/Search.tpl +++ b/civicrm/templates/CRM/Activity/Form/Search.tpl @@ -44,7 +44,7 @@ </div> </div> -{if $rowsEmpty || $rows } +{if $rowsEmpty || $rows} <div class="crm-content-block"> {if $rowsEmpty} <div class="crm-results-block crm-results-block-empty"> diff --git a/civicrm/templates/CRM/Activity/Form/Selector.tpl b/civicrm/templates/CRM/Activity/Form/Selector.tpl index a6ad72efe5..48d97a3b8f 100644 --- a/civicrm/templates/CRM/Activity/Form/Selector.tpl +++ b/civicrm/templates/CRM/Activity/Form/Selector.tpl @@ -16,7 +16,7 @@ <table class="selector row-highlight"> <thead class="sticky"> <tr> - {if !$single and $context eq 'Search' } + {if !$single and $context eq 'Search'} <th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th> {/if} {foreach from=$columnHeaders item=header} @@ -38,8 +38,8 @@ {counter start=0 skip=1 print=false} {foreach from=$rows item=row} <tr id='rowid{$row.activity_id}' class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}"> - {if !$single } - {if $context eq 'Search' } + {if !$single} + {if $context eq 'Search'} {assign var=cbName value=$row.checkbox} <td>{$form.$cbName.html}</td> {/if} diff --git a/civicrm/templates/CRM/Activity/Form/Task.tpl b/civicrm/templates/CRM/Activity/Form/Task.tpl index 9e8b505b1c..6b7b6ce6b7 100644 --- a/civicrm/templates/CRM/Activity/Form/Task.tpl +++ b/civicrm/templates/CRM/Activity/Form/Task.tpl @@ -9,7 +9,7 @@ *} {ts 1=$totalSelectedActivities}Number of selected Activities: %1{/ts} -{if $rows } +{if $rows} <div class="form-item"> <table width="30%"> <tr class="columnheader"> diff --git a/civicrm/templates/CRM/Activity/Form/Task/Print.tpl b/civicrm/templates/CRM/Activity/Form/Task/Print.tpl index d71d4408c4..d1dba9b8e3 100644 --- a/civicrm/templates/CRM/Activity/Form/Task/Print.tpl +++ b/civicrm/templates/CRM/Activity/Form/Task/Print.tpl @@ -9,7 +9,7 @@ *} <div class="crm-block crm-activity_task_print-form-block"> <p> -{if $rows } +{if $rows} <div class="crm-submit-buttons element-right"> {include file="CRM/common/formButtons.tpl" location="top"} </div> diff --git a/civicrm/templates/CRM/Admin/Form/ContactType.tpl b/civicrm/templates/CRM/Admin/Form/ContactType.tpl index 41f99a21d0..2f257d3894 100644 --- a/civicrm/templates/CRM/Admin/Form/ContactType.tpl +++ b/civicrm/templates/CRM/Admin/Form/ContactType.tpl @@ -19,7 +19,7 @@ <tr class="crm-contact-type-form-block-label"> <td class="label">{$form.label.label} {if $action eq 2} - {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='label' id= $cid } + {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='label' id=$cid} {/if} </td> <td>{$form.label.html}</td> @@ -48,7 +48,7 @@ <tr class="crm-contact-type-form-block-description"> <td class="label">{$form.description.label} {if $action eq 2} - {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='description' id= $cid} + {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='description' id=$cid} {/if} </td> <td>{$form.description.html}</td> diff --git a/civicrm/templates/CRM/Admin/Form/LabelFormats.tpl b/civicrm/templates/CRM/Admin/Form/LabelFormats.tpl index 1965a0a1f7..4c112cfb2a 100644 --- a/civicrm/templates/CRM/Admin/Form/LabelFormats.tpl +++ b/civicrm/templates/CRM/Admin/Form/LabelFormats.tpl @@ -120,7 +120,7 @@ selectPaper(document.getElementById('paper_size').value); function selectPaper(val) { - dataUrl = {/literal}"{crmURL p='civicrm/ajax/paperSize' h=0 }"{literal}; + dataUrl = {/literal}"{crmURL p='civicrm/ajax/paperSize' h=0}"{literal}; cj.post(dataUrl, {paperSizeName: val}, function (data) { cj("#paper_size").val(data.name); metric = document.getElementById('metric').value; diff --git a/civicrm/templates/CRM/Admin/Form/Mapping.tpl b/civicrm/templates/CRM/Admin/Form/Mapping.tpl index f71003752d..e27755b8af 100644 --- a/civicrm/templates/CRM/Admin/Form/Mapping.tpl +++ b/civicrm/templates/CRM/Admin/Form/Mapping.tpl @@ -9,7 +9,7 @@ *} {* this template is used for adding/editing a saved mapping *} <div class="crm-block crm-form-block crm-mapping-form-block"> - {if $action eq 1 or $action eq 2 } + {if $action eq 1 or $action eq 2} <table class="form-layout-compressed"> <tr class="crm-mapping-form-block-name"> <td class="label">{$form.name.label}</td> diff --git a/civicrm/templates/CRM/Admin/Form/MessageTemplates.tpl b/civicrm/templates/CRM/Admin/Form/MessageTemplates.tpl index 1ccf31f3c9..3750619f9b 100644 --- a/civicrm/templates/CRM/Admin/Form/MessageTemplates.tpl +++ b/civicrm/templates/CRM/Admin/Form/MessageTemplates.tpl @@ -42,7 +42,7 @@ <td> {$form.msg_subject.html|crmAddClass:huge} <input class="crm-token-selector big" data-field="msg_subject" /> - {help id="id-token-subject" tplFile=$tplFile isAdmin=$isAdmin file="CRM/Contact/Form/Task/Email.hlp"} + {help id="id-token-subject" tplFile=$tplFile file="CRM/Contact/Form/Task/Email.hlp"} </td> </tr> <tr> @@ -73,7 +73,7 @@ <div class="crm-accordion-body"> <div class="helpIcon" id="helphtml"> <input class="crm-token-selector big" data-field="msg_html" /> - {help id="id-token-html" tplFile=$tplFile isAdmin=$isAdmin file="CRM/Contact/Form/Task/Email.hlp"} + {help id="id-token-html" tplFile=$tplFile file="CRM/Contact/Form/Task/Email.hlp"} </div> <div class="clear"></div> <div class='html'> diff --git a/civicrm/templates/CRM/Admin/Form/PaymentProcessor.tpl b/civicrm/templates/CRM/Admin/Form/PaymentProcessor.tpl index 722f042447..cb79afabc7 100644 --- a/civicrm/templates/CRM/Admin/Form/PaymentProcessor.tpl +++ b/civicrm/templates/CRM/Admin/Form/PaymentProcessor.tpl @@ -55,41 +55,41 @@ <legend>{ts}Processor Details for Live Payments{/ts}</legend> <table class="form-layout-compressed"> <tr class="crm-paymentProcessor-form-block-user_name"> - <td class="label">{$form.user_name.label}</td><td>{$form.user_name.html} {help id=$ppTypeName|cat:'-live-user-name' title=$form.user_name.label}</td> + <td class="label">{$form.user_name.label}</td><td>{$form.user_name.html} {help id="$ppTypeName-live-user-name" title=$form.user_name.label}</td> </tr> {if !empty($form.password)} <tr class="crm-paymentProcessor-form-block-password"> - <td class="label">{$form.password.label}</td><td>{$form.password.html} {help id=$ppTypeName|cat:'-live-password' title=$form.password.label}</td> + <td class="label">{$form.password.label}</td><td>{$form.password.html} {help id="$ppTypeName-live-password" title=$form.password.label}</td> </tr> {/if} {if !empty($form.signature)} <tr class="crm-paymentProcessor-form-block-signature"> - <td class="label">{$form.signature.label}</td><td>{$form.signature.html} {help id=$ppTypeName|cat:'-live-signature' title=$form.signature.label}</td> + <td class="label">{$form.signature.label}</td><td>{$form.signature.html} {help id="$ppTypeName-live-signature" title=$form.signature.label}</td> </tr> {/if} {if !empty($form.subject)} <tr class="crm-paymentProcessor-form-block-subject"> - <td class="label">{$form.subject.label}</td><td>{$form.subject.html} {help id=$ppTypeName|cat:'-live-subject' title=$form.subject.label}</td> + <td class="label">{$form.subject.label}</td><td>{$form.subject.html} {help id="$ppTypeName-live-subject" title=$form.subject.label}</td> </tr> {/if} {if !empty($form.url_site)} <tr class="crm-paymentProcessor-form-block-url_site"> - <td class="label">{$form.url_site.label}</td><td>{$form.url_site.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-site' title=$form.url_site.label}</td> + <td class="label">{$form.url_site.label}</td><td>{$form.url_site.html|crmAddClass:huge} {help id="$ppTypeName-live-url-site" title=$form.url_site.label}</td> </tr> {/if} {if !empty($form.url_api)} <tr class="crm-paymentProcessor-form-block-url_api"> - <td class="label">{$form.url_api.label}</td><td>{$form.url_api.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-api' title=$form.url_api.label}</td> + <td class="label">{$form.url_api.label}</td><td>{$form.url_api.html|crmAddClass:huge} {help id="$ppTypeName-live-url-api" title=$form.url_api.label}</td> </tr> {/if} {if !empty($form.url_recur)} <tr class="crm-paymentProcessor-form-block-url_recur"> - <td class="label">{$form.url_recur.label}</td><td>{$form.url_recur.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-recur' title=$form.url_recur.label}</td> + <td class="label">{$form.url_recur.label}</td><td>{$form.url_recur.html|crmAddClass:huge} {help id="$ppTypeName-live-url-recur" title=$form.url_recur.label}</td> </tr> {/if} {if !empty($form.url_button)} <tr class="crm-paymentProcessor-form-block-url_button"> - <td class="label">{$form.url_button.label}</td><td>{$form.url_button.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-live-url-button' title=$form.url_button.label}</td> + <td class="label">{$form.url_button.label}</td><td>{$form.url_button.html|crmAddClass:huge} {help id="$ppTypeName-live-url-button" title=$form.url_button.label}</td> </tr> {/if} </table> @@ -99,40 +99,40 @@ <legend>{ts}Processor Details for Test Payments{/ts}</legend> <table class="form-layout-compressed"> <tr class="crm-paymentProcessor-form-block-test_user_name"> - <td class="label">{$form.test_user_name.label}</td><td>{$form.test_user_name.html} {help id=$ppTypeName|cat:'-test-user-name' title=$form.test_user_name.label}</td></tr> + <td class="label">{$form.test_user_name.label}</td><td>{$form.test_user_name.html} {help id="$ppTypeName-test-user-name" title=$form.test_user_name.label}</td></tr> {if !empty($form.test_password)} <tr class="crm-paymentProcessor-form-block-test_password"> - <td class="label">{$form.test_password.label}</td><td>{$form.test_password.html} {help id=$ppTypeName|cat:'-test-password' title=$form.test_password.label}</td> + <td class="label">{$form.test_password.label}</td><td>{$form.test_password.html} {help id="$ppTypeName-test-password" title=$form.test_password.label}</td> </tr> {/if} {if !empty($form.test_signature)} <tr class="crm-paymentProcessor-form-block-test_signature"> - <td class="label">{$form.test_signature.label}</td><td>{$form.test_signature.html} {help id=$ppTypeName|cat:'-test-signature' title=$form.test_signature.label}</td> + <td class="label">{$form.test_signature.label}</td><td>{$form.test_signature.html} {help id="$ppTypeName-test-signature" title=$form.test_signature.label}</td> </tr> {/if} {if !empty($form.test_subject)} <tr class="crm-paymentProcessor-form-block-test_subject"> - <td class="label">{$form.test_subject.label}</td><td>{$form.test_subject.html} {help id=$ppTypeName|cat:'-test-subject' title=$form.test_subject.label}</td> + <td class="label">{$form.test_subject.label}</td><td>{$form.test_subject.html} {help id="$ppTypeName-test-subject" title=$form.test_subject.label}</td> </tr> {/if} {if !empty($form.test_url_site)} <tr class="crm-paymentProcessor-form-block-test_url_site"> - <td class="label">{$form.test_url_site.label}</td><td>{$form.test_url_site.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-site' title=$form.test_url_site.label}</td> + <td class="label">{$form.test_url_site.label}</td><td>{$form.test_url_site.html|crmAddClass:huge} {help id="$ppTypeName-test-url-site" title=$form.test_url_site.label}</td> </tr> {/if} {if !empty($form.test_url_api)} <tr class="crm-paymentProcessor-form-block-test_url_api"> - <td class="label">{$form.test_url_api.label}</td><td>{$form.test_url_api.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-api' title=$form.test_url_api.label}</td> + <td class="label">{$form.test_url_api.label}</td><td>{$form.test_url_api.html|crmAddClass:huge} {help id="$ppTypeName-test-url-api" title=$form.test_url_api.label}</td> </tr> {/if} {if !empty($form.test_url_recur)} <tr class="crm-paymentProcessor-form-block-test_url_recur"> - <td class="label">{$form.test_url_recur.label}</td><td>{$form.test_url_recur.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-recur' title=$form.test_url_recur.label}</td> + <td class="label">{$form.test_url_recur.label}</td><td>{$form.test_url_recur.html|crmAddClass:huge} {help id="$ppTypeName-test-url-recur" title=$form.test_url_recur.label}</td> </tr> {/if} {if !empty($form.test_url_button)} <tr class="crm-paymentProcessor-form-block-test_url_button"> - <td class="label">{$form.test_url_button.label}</td><td>{$form.test_url_button.html|crmAddClass:huge} {help id=$ppTypeName|cat:'-test-url-button' title=$form.test_url_button.label}</td> + <td class="label">{$form.test_url_button.label}</td><td>{$form.test_url_button.html|crmAddClass:huge} {help id="$ppTypeName-test-url-button" title=$form.test_url_button.label}</td> </tr> {/if} {/if} diff --git a/civicrm/templates/CRM/Admin/Form/PdfFormats.tpl b/civicrm/templates/CRM/Admin/Form/PdfFormats.tpl index e7d8ce32d8..6e21dc82aa 100644 --- a/civicrm/templates/CRM/Admin/Form/PdfFormats.tpl +++ b/civicrm/templates/CRM/Admin/Form/PdfFormats.tpl @@ -74,7 +74,7 @@ selectPaper( document.getElementById('paper_size').value ); function selectPaper( val ) { - dataUrl = {/literal}"{crmURL p='civicrm/ajax/paperSize' h=0 }"{literal}; + dataUrl = {/literal}"{crmURL p='civicrm/ajax/paperSize' h=0}"{literal}; cj.post( dataUrl, {paperSizeName: val}, function( data ) { cj("#paper_size").val( data.name ); metric = document.getElementById('metric').value; diff --git a/civicrm/templates/CRM/Admin/Form/Preferences/Address.tpl b/civicrm/templates/CRM/Admin/Form/Preferences/Address.tpl index 399e54ecc1..bf8d1656b2 100644 --- a/civicrm/templates/CRM/Admin/Form/Preferences/Address.tpl +++ b/civicrm/templates/CRM/Admin/Form/Preferences/Address.tpl @@ -42,7 +42,7 @@ {help id="id-token-text" tplFile=$tplFile file="CRM/Contact/Form/Task/Email.hlp"} </div> {$form.address_format.html|crmAddClass:huge12}<br /> - <span class="description">{ts}Format for displaying addresses in the Contact Summary and Event Information screens.{/ts}<br />{ts 1={contact.state_province} 2={contact.state_province_name}}Use %1 for state/province abbreviation or %2 for state province name.{/ts}</span> + <span class="description">{ts}Format for displaying addresses in the Contact Summary and Event Information screens.{/ts}<br />{ts 1="{contact.state_province}" 2="{contact.state_province_name}"}Use %1 for state/province abbreviation or %2 for state province name.{/ts}</span> </td> </tr> </table> diff --git a/civicrm/templates/CRM/Admin/Page/APIExplorer.js b/civicrm/templates/CRM/Admin/Page/APIExplorer.js index e54d6bcd80..f294b308de 100644 --- a/civicrm/templates/CRM/Admin/Page/APIExplorer.js +++ b/civicrm/templates/CRM/Admin/Page/APIExplorer.js @@ -11,7 +11,6 @@ getFieldsCache = {}, getActionsCache = {}, params = {}, - smartyPhp, entityDoc, fieldTpl = _.template($('#api-param-tpl').html()), optionsTpl = _.template($('#api-options-tpl').html()), @@ -596,21 +595,6 @@ return JSON.stringify(val).replace(/\$/g, '\\$'); } - /** - * @param value string - * @param js string - * @param key string - */ - function smartyFormat(value, js, key) { - var varName = 'param_' + key.replace(/[. -]/g, '_').toLowerCase(); - // Can't pass array literals directly into smarty so we add a php snippet - if (_.includes(js, '[') || _.includes(js, '{')) { - smartyPhp.push('$this->assign("'+ varName + '", '+ phpFormat(value) +');'); - return '$' + varName; - } - return js; - } - /** * Create the params array from user input * @param e @@ -716,7 +700,6 @@ "curl '" + http.url + "?" + $.param(http.query) + "'" : "curl -X " + http.method + " -d '" + $.param(http.query) +"' \\\n '" + http.url + "'" }; - smartyPhp = []; $.each(params, function(key, value) { var json = JSON.stringify(value), // Encourage 'return' to be an array - at least in php & js @@ -732,7 +715,7 @@ q.json += " \"" + key + '": ' + js; // smarty already defaults to sequential if (key !== 'sequential') { - q.smarty += ' ' + key + '=' + smartyFormat(value, json, key); + q.smarty += ' ' + key + '=' + phpFormat(value); } // FIXME: This is not totally correct cli syntax q.cv += key + '=' + json + ' '; @@ -748,8 +731,6 @@ q.smarty += "}\n{foreach from=$result.values item=" + entity.toLowerCase() + "}\n {$" + entity.toLowerCase() + ".some_field}\n{/foreach}"; if (!_.includes(action, 'get')) { q.smarty = '{* Smarty API only works with get actions *}'; - } else if (smartyPhp.length) { - q.smarty = "{php}\n " + smartyPhp.join("\n ") + "\n{/php}\n" + q.smarty; } $('#api-rest').html(restTpl(http)); $.each(q, function(type, val) { diff --git a/civicrm/templates/CRM/Admin/Page/MessageTemplates.tpl b/civicrm/templates/CRM/Admin/Page/MessageTemplates.tpl index aabb8a72c2..3bb1b2f3d5 100644 --- a/civicrm/templates/CRM/Admin/Page/MessageTemplates.tpl +++ b/civicrm/templates/CRM/Admin/Page/MessageTemplates.tpl @@ -86,9 +86,9 @@ {include file="CRM/common/jsortable.tpl"} {foreach from=$rows item=template_row key=type} {if ( - $type ne 'userTemplates' and ($canEditSystemTemplates or $canEditMessageTemplates) + $type ne 'userTemplates' && ($canEditSystemTemplates or $canEditMessageTemplates) ) or ( - $type eq 'userTemplates'and ($canEditUserDrivenMessageTemplates or $canEditMessageTemplates) + $type eq 'userTemplates' && ($canEditUserDrivenMessageTemplates or $canEditMessageTemplates) )} <div id="{if $type eq 'userTemplates'}user{else}workflow{/if}" class='ui-tabs-panel ui-widget-content ui-corner-bottom'> <div class="help"> @@ -111,7 +111,7 @@ </div> <div class="spacer"></div> {/if} - {if !empty( $template_row) } + {if !empty( $template_row)} <table class="display"> <thead> <tr> @@ -145,7 +145,7 @@ <div class="spacer"></div> {/if} - {if empty( $template_row) } + {if empty( $template_row)} <div class="messages status no-popup"> {icon icon="fa-info-circle"}{/icon} {ts 1=$crmURL}There are no User-driven Message Templates entered. You can <a href='%1'>add one</a>.{/ts} diff --git a/civicrm/templates/CRM/Batch/Form/Entry.tpl b/civicrm/templates/CRM/Batch/Form/Entry.tpl index 082c31679a..496770023a 100644 --- a/civicrm/templates/CRM/Batch/Form/Entry.tpl +++ b/civicrm/templates/CRM/Batch/Form/Entry.tpl @@ -95,7 +95,7 @@ {elseif $n eq 'total_amount'} <div class="compressed crm-grid-cell"> {$form.field.$rowNumber.$n.html} - {if $batchType eq 3 } + {if $batchType eq 3} {ts}<span id={$rowNumber} class="pledge-adjust-option"><a href='#'>adjust payment amount</a></span>{/ts} <span id="adjust-select-{$rowNumber}" class="adjust-selectbox">{$form.option_type.$rowNumber.html}</span> {/if} @@ -155,7 +155,7 @@ CRM.$(function($) { calculateActualTotal(); }); - {/literal}{if $batchType eq 1 }{literal} + {/literal}{if $batchType eq 1}{literal} // hide all dates if send receipt is checked hideSendReceipt(); diff --git a/civicrm/templates/CRM/Campaign/Form/Campaign.tpl b/civicrm/templates/CRM/Campaign/Form/Campaign.tpl index 38b6cb98ce..71414c0a99 100644 --- a/civicrm/templates/CRM/Campaign/Form/Campaign.tpl +++ b/civicrm/templates/CRM/Campaign/Form/Campaign.tpl @@ -69,7 +69,7 @@ </tr> </table> - {include file="CRM/common/customDataBlock.tpl"} + {include file="CRM/common/customDataBlock.tpl" cid=false} {/if} <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> diff --git a/civicrm/templates/CRM/Campaign/Form/Gotv.tpl b/civicrm/templates/CRM/Campaign/Form/Gotv.tpl index 3a6f311067..0d6a7ea630 100644 --- a/civicrm/templates/CRM/Campaign/Form/Gotv.tpl +++ b/civicrm/templates/CRM/Campaign/Form/Gotv.tpl @@ -106,7 +106,7 @@ function loadVoterList( ) { - var sourceUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0 q='snippet=4&className=CRM_Campaign_Page_AJAX&fnName=voterList' }"{literal}; + var sourceUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0 q='snippet=4&className=CRM_Campaign_Page_AJAX&fnName=voterList'}"{literal}; var searchVoterFor = {/literal}'{$searchVoterFor}'{literal}; CRM.$( 'table.gotvVoterRecords', 'form.{/literal}{$form.formClass}{literal}').dataTable({ diff --git a/civicrm/templates/CRM/Campaign/Form/Petition.tpl b/civicrm/templates/CRM/Campaign/Form/Petition.tpl index 92f51bccc2..459f8717bb 100644 --- a/civicrm/templates/CRM/Campaign/Form/Petition.tpl +++ b/civicrm/templates/CRM/Campaign/Form/Petition.tpl @@ -31,10 +31,12 @@ <td class="label">{$form.campaign_id.label}</td> <td>{$form.campaign_id.html} </tr> + {if array_key_exists('activity_type_id', $form)} <tr class="crm-campaign-survey-form-block-activity_type_id"> <td class="label">{$form.activity_type_id.label}</td> <td>{$form.activity_type_id.html} </tr> + {/if} <tr class="crm-campaign-survey-form-block-profile_id"> <td class="label">{$form.contact_profile_id.label}</td> <td>{$form.contact_profile_id.html} <span class="profile-links"></span> diff --git a/civicrm/templates/CRM/Campaign/Form/Petition/Signature.tpl b/civicrm/templates/CRM/Campaign/Form/Petition/Signature.tpl index 57ac1e6b14..25d57dd7c9 100644 --- a/civicrm/templates/CRM/Campaign/Form/Petition/Signature.tpl +++ b/civicrm/templates/CRM/Campaign/Form/Petition/Signature.tpl @@ -15,7 +15,7 @@ {/literal} </script> -{if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCampaign') } +{if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCampaign')} {capture assign="buttonTitle"}{ts}Edit Petition{/ts}{/capture} {crmButton target="_blank" p="civicrm/petition/add" q="reset=1&action=update&id=`$petition.id`" fb=1 title="$buttonTitle" icon="fa-wrench"}{ts}Configure{/ts}{/crmButton} <div class='clear'></div> @@ -42,11 +42,11 @@ {/if} {else} <div class="crm-section crm-petition-contact-profile"> - {include file="CRM/UF/Form/Block.tpl" fields=$petitionContactProfile hideFieldset=true} + {include file="CRM/UF/Form/Block.tpl" fields=$petitionContactProfile hideFieldset=true prefix=false} </div> <div class="crm-section crm-petition-activity-profile"> - {include file="CRM/UF/Form/Block.tpl" fields=$petitionActivityProfile hideFieldset=true} + {include file="CRM/UF/Form/Block.tpl" fields=$petitionActivityProfile hideFieldset=true prefix=false} </div> <div class="crm-submit-buttons"> diff --git a/civicrm/templates/CRM/Campaign/Form/ResultOptions.tpl b/civicrm/templates/CRM/Campaign/Form/ResultOptions.tpl index 87dd610dbd..ae02fb3629 100644 --- a/civicrm/templates/CRM/Campaign/Form/ResultOptions.tpl +++ b/civicrm/templates/CRM/Campaign/Form/ResultOptions.tpl @@ -118,7 +118,7 @@ return false; } - var dataUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0 q='className=CRM_Campaign_Page_AJAX&fnName=loadOptionGroupDetails' }"{literal} + var dataUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0 q='className=CRM_Campaign_Page_AJAX&fnName=loadOptionGroupDetails'}"{literal} // build new options cj.post( dataUrl, data, function( opGroup ) { diff --git a/civicrm/templates/CRM/Campaign/Form/Search/Campaign.tpl b/civicrm/templates/CRM/Campaign/Form/Search/Campaign.tpl deleted file mode 100644 index 3379eb3234..0000000000 --- a/civicrm/templates/CRM/Campaign/Form/Search/Campaign.tpl +++ /dev/null @@ -1,271 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ -*} - -{if !$hasCampaigns} - <div class="messages status no-popup"> - {icon icon="fa-info-circle"}{/icon} - - {ts}None found.{/ts} - </div> - <div class="action-link"> - {crmButton p="civicrm/campaign/add" q="reset=1" icon="plus-circle" h=0}{ts}Add Campaign{/ts}{/crmButton} - </div> -{elseif $buildSelector} - -{* load campaign selector *} - - {include file="CRM/common/enableDisableApi.tpl"} - - {literal} - <script type="text/javascript"> - CRM.$(function($) { - loadCampaignList(); - }); - </script> - {/literal} - <table class="campaigns"> - <thead> - <tr class="columnheader"> - <th>{ts}ID{/ts}</th> - <th class="hiddenElement">{ts}Campaign Name{/ts}</th> - <th>{ts}Title{/ts}</th> - <th>{ts}Description{/ts}</th> - <th>{ts}Start Date{/ts}</th> - <th>{ts}End Date{/ts}</th> - <th class="hiddenElement">{ts}Type ID{/ts}</th> - <th>{ts}Type{/ts}</th> - <th class="hiddenElement">{ts}Status ID{/ts}</th> - <th>{ts}Status{/ts}</th> - <th class="hiddenElement">{ts}Is Active?{/ts}</th> - <th>{ts}Active?{/ts}</th> - <th></th> - </tr> - </thead> - <tbody></tbody> - </table> -{else} - <div class="action-link"> - {crmButton p="civicrm/campaign/add" q="reset=1" icon="plus-circle" h=0}{ts}Add Campaign{/ts}{/crmButton} - </div> -{* build search form here *} - -{* Search form and results for campaigns *} - <div class="crm-block crm-form-block crm-search-form-block"> - - {assign var='searchForm' value="search_form_$searchFor"} - - <div id="{$searchForm}" - class="crm-accordion-wrapper crm-campaign_search_form-accordion {if $force and !$buildSelector}collapsed{/if}"> - <div class="crm-accordion-header"> - {ts}Search Campaigns{/ts} - </div> - <!-- /.crm-accordion-header --> - - <div class="crm-accordion-body"> - {strip} - <table class="form-layout-compressed"> - <tr> - <td>{$form.campaign_title.label}<br/> - {$form.campaign_title.html} - </td> - <td> - {$form.description.label}<br/> - {$form.description.html|crmAddClass:huge} - </td> - </tr> - - <tr> - <td>{$form.start_date.label}<br/> - {$form.start_date.html} - </td> - <td>{$form.end_date.label}<br/> - {$form.end_date.html} - </td> - </tr> - - <tr> - <td>{$form.campaign_type_id.label}<br/> - {$form.campaign_type_id.html} - </td> - <td>{$form.status_id.label}<br/> - {$form.status_id.html} - </td> - <td>{$form.is_active.label}<br/> - {$form.is_active.html} - </td> - </tr> - - <tr> - <td colspan="2"> - {if $context eq 'search'} - {$form.buttons.html} - {else} - <a class="searchCampaign button" style="float:left;" href="#" title="{ts}Search{/ts}" - onClick="searchCampaigns( '{$qfKey}' );return false;">{ts}Search{/ts}</a> - {/if} - </td> - </tr> - </table> - {/strip} - </div> - </div> - </div> -{* search form ends here *} - <div id='campaignList'></div> -{/if} {* end of search form build *} - - -{literal} -<script type="text/javascript"> -(function($) { - - window.searchCampaigns = function searchCampaigns(qfKey) { - var dataUrl = {/literal}"{crmURL h=0 q='search=1&snippet=4&type=campaign'}"{literal}; - - //lets carry qfKey to retain form session. - if (qfKey) { - dataUrl = dataUrl + '&qfKey=' + qfKey; - } - - $.get(dataUrl, null, function (campaignList) { - $('#campaignList').html(campaignList).trigger('crmLoad'); - - //collapse the search form. - var searchFormName = '#search_form_' + {/literal}'{$searchFor}'{literal}; - $(searchFormName + '.crm-accordion-wrapper:not(.collapsed)').crmAccordionToggle(); - }, 'html'); - }; - - window.loadCampaignList = function() { - var sourceUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0 q='snippet=4&className=CRM_Campaign_Page_AJAX&fnName=campaignList' }"{literal}; - - //build the search qill. - //get the search criteria. - var searchParams = {/literal}{$searchParams|smarty:nodefaults}{literal}; - var campaignTypes = {/literal}{$campaignTypes|smarty:nodefaults}{literal}; - var campaignStatus = {/literal}{$campaignStatus|smarty:nodefaults}{literal}; - var noRecordFoundMsg = '{/literal}{ts escape='js'}No matches found for:{/ts}{literal}'; - noRecordFoundMsg += '<div class="qill">'; - - var count = 0; - var searchQill = []; - for (param in searchParams) { - if (val = $('#' + param).val()) { - if (param == 'status_id') { - val = campaignStatus[val]; - } - if (param == 'campaign_type_id') { - val = campaignTypes[val]; - } - searchQill[count++] = searchParams[param] + ' : ' + val; - } - } - noRecordFoundMsg += searchQill.join('<span class="font-italic"> ...AND... </span></div><div class="qill">'); - $('table.campaigns', '#campaignList').dataTable({ - "bFilter": false, - "bAutoWidth": false, - "bProcessing": false, - "bLengthChange": false, - "aaSorting": [], - "aoColumns": [ - {sClass: 'crm-campaign-id' }, - {sClass: 'crm-campaign-name hiddenElement' }, - {sClass: 'crmf-title' }, - {sClass: 'crmf-description' }, - {sClass: 'crm-campaign-start_date' }, - {sClass: 'crm-campaign-end_date' }, - {sClass: 'crm-campaign-campaign-type_id hiddenElement' }, - {sClass: 'crmf-campaign_type_id' }, - {sClass: 'crm-campaign-campaign-status_id hiddenElement' }, - {sClass: 'crmf-status_id' }, - {sClass: 'crm-campaign-campaign-is_active hiddenElement' }, - {sClass: 'crm-campaign-campaign-isAactive' }, - {sClass: 'crm-campaign-action', bSortable: false} - ], - "sPaginationType": "full_numbers", - "sDom": 'rt<"crm-datatable-pager-bottom"ip>', - "bServerSide": true, - "bJQueryUI": true, - "sAjaxSource": sourceUrl, - "asStripClasses": ["odd-row", "even-row"], - "oLanguage": {"sEmptyTable": noRecordFoundMsg, - "sZeroRecords": noRecordFoundMsg }, - "fnDrawCallback": function () { - $(this).trigger('crmLoad'); - }, - "fnRowCallback": function (nRow, aData, iDisplayIndex) { - //insert the id for each row for enable/disable. - var rowId = 'campaign-' + aData[0]; - $(nRow).attr('id', rowId).addClass('crm-entity'); - //handled disabled rows. - var isActive = Boolean(Number(aData[10])); - if (!isActive) { - $(nRow).addClass('disabled'); - } - - // Crm-editable - $(nRow).children().eq(2).addClass('crm-editable'); - $(nRow).children().eq(3).data('type', 'textarea').addClass('crm-editable'); - $(nRow).children().eq(7).data('type', 'select').addClass('crm-editable'); - $(nRow).children().eq(9).data({type: 'select', emptyOption: ''}).addClass('crm-editable'); - - return nRow; - }, - - "fnServerData": function (sSource, aoData, fnCallback) { - var dataLength = aoData.length; - - var count = 1; - var searchCriteria = []; - - //get the search criteria. - var searchParams = {/literal}{$searchParams|smarty:nodefaults}{literal}; - for (param in searchParams) { - fldName = param; - if (param == 'campaign_title') { - fldName = 'title'; - } - if (val = $('#' + param).val()) { - aoData[dataLength++] = {name: fldName, value: val}; - } - searchCriteria[count++] = fldName; - } - - //do search for campaigns. - aoData[dataLength++] = {name: 'search_for', value: 'campaign'}; - - //lets transfer search criteria. - aoData[dataLength++] = {name: 'searchCriteria', value: searchCriteria.join(',')}; - - $.ajax({ - "dataType": 'json', - "type": "POST", - "url": sSource, - "data": aoData, - "success": fnCallback - }); - } - }); - }; - - {/literal} - {* load selector when force *} - {if $force and !$buildSelector} - {literal} - $(function($) { - searchCampaigns({/literal}'{$qfKey}'{literal}); - }); - - {/literal} - {/if} - {literal} -})(CRM.$); -</script> -{/literal} diff --git a/civicrm/templates/CRM/Campaign/Form/Search/Petition.tpl b/civicrm/templates/CRM/Campaign/Form/Search/Petition.tpl deleted file mode 100644 index afb84dde62..0000000000 --- a/civicrm/templates/CRM/Campaign/Form/Search/Petition.tpl +++ /dev/null @@ -1,241 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ -*} - -{if !$hasPetitions} - <div class="messages status no-popup"> - {icon icon="fa-info-circle"}{/icon} - {ts}None found.{/ts} - </div> - - <div class="action-link"> - {crmButton p='civicrm/petition/add' q='reset=1' h=0 icon="plus-circle"}{ts}Add Petition{/ts}{/crmButton} - </div> - -{elseif $buildSelector} - - {* use to display result set of petition *} - <div id="petition-result-set-dialog" class="hiddenElement"></div> - - {* load petition selector *} - - {include file="CRM/common/enableDisableApi.tpl"} - - {literal} - <script type="text/javascript"> - CRM.$(function($) { - loadPetitionList( ); - }); - </script> - {/literal} - - <table class="petitions"> - <thead> - <tr class="columnheader"> - <th class="hiddenElement">{ts}Petition ID{/ts}</th> - <th>{ts}Title{/ts}</th> - <th class="hiddenElement">{ts}Campaign ID{/ts}</th> - <th>{ts}Campaign{/ts}</th> - <th class="hiddenElement">{ts}Petition Type ID{/ts}</th> - <th class="hiddenElement">{ts}Petition Type{/ts}</th> - <th>{ts}Default?{/ts}</th> - <th class="hiddenElement">{ts}Is Active?{/ts}</th> - <th>{ts}Active?{/ts}</th> - <th></th> - </tr> - </thead> - <tbody></tbody> - </table> - -{else} - - <div class="action-link"> - {crmButton p='civicrm/petition/add' q='reset=1' h=0 icon="plus-circle"}{ts}Add Petition{/ts}{/crmButton} - </div> - - {* build search form here *} - - {* Search form and results for petitions *} - <div class="crm-block crm-form-block crm-search-form-block"> - - {assign var='searchForm' value="search_form_$searchFor"} - - <div id="{$searchForm}" class="crm-accordion-wrapper crm-petition_search_form-accordion {if $force and !$buildSelector}collapsed{/if}"> - <div class="crm-accordion-header"> - {ts}Search Petitions{/ts} - </div><!-- /.crm-accordion-header --> - - <div class="crm-accordion-body"> - {strip} - <table class="form-layout-compressed"> - <tr> - <td>{$form.petition_title.label}<br /> - {$form.petition_title.html} - </td> - <td>{$form.petition_campaign_id.label}<br /> - {$form.petition_campaign_id.html} - </td> - </tr> - <tr> - <td colspan="2"> - {if $context eq 'search'} - {$form.buttons.html} - {else} - <a class="searchPetition button" style="float:left;" href="#" title={ts}Search{/ts} onClick="searchPetitions( '{$qfKey}' );return false;">{ts}Search{/ts}</a> - {/if} - </td> - </tr> - </table> - {/strip} - </div> - </div> - </div> - {* search form ends here *} - - <div id='petitionList'></div> - -{/if} {* end of search form build *} - - -{literal} -<script type="text/javascript"> - - {/literal} - {* load selector when force *} - {if $force and !$buildSelector} - {literal} - CRM.$(function($) { - searchPetitions( {/literal}'{$qfKey}'{literal} ); - }); - - {/literal} - {/if} - {literal} - -function searchPetitions( qfKey ) -{ - var dataUrl = {/literal}"{crmURL h=0 q='search=1&snippet=4&type=petition'}"{literal}; - - //lets carry qfKey to retain form session. - if ( qfKey ) dataUrl = dataUrl + '&qfKey=' + qfKey; - - CRM.$.get( dataUrl, null, function( petitionList ) { - CRM.$( '#petitionList' ).html( petitionList ).trigger('crmLoad'); - - //collapse the search form. - var searchFormName = '#search_form_' + {/literal}'{$searchFor}'{literal}; - CRM.$( searchFormName + '.crm-accordion-wrapper:not(.collapsed)').crmAccordionToggle(); - }, 'html' ); -} - -function loadPetitionList( ) -{ - var sourceUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0 q='snippet=4&className=CRM_Campaign_Page_AJAX&fnName=petitionList' }"{literal}; - - //build the search qill. - //get the search criteria. - var searchParams = {/literal}{$searchParams}{literal}; - var campaigns = {/literal}{$petitionCampaigns}{literal}; - - var noRecordFoundMsg = '{/literal}{ts escape='js'}No matches found for:{/ts}{literal}'; - noRecordFoundMsg += '<div class="qill">'; - - var count = 0; - var searchQill = []; - for ( param in searchParams ) { - if ( val = CRM.$( '#' + param ).val( ) ) { - if ( param == 'petition_campaign_id' ) val = campaigns[val]; - searchQill[count++] = searchParams[param] + ' : ' + val; - } - } - noRecordFoundMsg += searchQill.join( '<span class="font-italic"> ...AND... </span></div><div class="qill">' ); - CRM.$( 'table.petitions', '#petitionList').dataTable({ - "bFilter" : false, - "bAutoWidth" : false, - "bProcessing": false, - "bLengthChange": false, - "aaSorting": [], - "aoColumns":[ - {sClass:'crm-petition-id hiddenElement' }, - {sClass:'crmf-title' }, - {sClass:'crm-petition-campaign_id hiddenElement' }, - {sClass:'crmf-campaign_id' }, - {sClass:'crm-petition-activity_type_id hiddenElement' }, - {sClass:'crm-petition-activity_type hiddenElement' }, - {sClass:'crm-petition-is_default' }, - {sClass:'crm-petition-is_active hiddenElement' }, - {sClass:'crm-petition-isActive' }, - {sClass:'crm-petition-action', bSortable:false} - ], - "sPaginationType": "full_numbers", - "sDom" : 'rt<"crm-datatable-pager-bottom"ip>', - "bServerSide": true, - "bJQueryUI": true, - "sAjaxSource": sourceUrl, - "asStripClasses" : [ "odd-row", "even-row" ], - "oLanguage":{"sEmptyTable" : noRecordFoundMsg, - "sZeroRecords" : noRecordFoundMsg }, - "fnDrawCallback": function() { - CRM.$(this).trigger('crmLoad'); - }, - "fnRowCallback": function( nRow, aData, iDisplayIndex ) { - - // Crm-editable - CRM.$(nRow).children().eq(1).addClass('crm-editable'); - - //insert the id for each row for enable/disable. - var rowId = 'survey-' + aData[0]; - CRM.$(nRow).attr( 'id', rowId).addClass('crm-entity'); - //handled disabled rows. - var isActive = Boolean(Number(aData[7])); - if ( !isActive ) CRM.$(nRow).addClass( 'disabled' ); - - //add id for yes/no column. - CRM.$(nRow).children().eq(8).attr( 'id', rowId + '_status' ); - CRM.$(nRow).children().eq(6).html(CRM.utils.formatIcon('fa-check', ts('Default'), nRow.cells[6].innerText)); - - return nRow; - }, - - "fnServerData": function ( sSource, aoData, fnCallback ) { - var dataLength = aoData.length; - - var count = 1; - var searchCriteria = []; - - //get the search criteria. - var searchParams = {/literal}{$searchParams}{literal}; - for ( param in searchParams ) { - fldName = param; - if ( param == 'petition_title' ) fldName = 'title'; - if ( param == 'petition_campaign_id' ) fldName = 'campaign_id'; - if ( val = CRM.$( '#' + param ).val( ) ) { - aoData[dataLength++] = {name: fldName, value: val}; - } - searchCriteria[count++] = fldName; - } - - //do search for petitions. - aoData[dataLength++] = {name: 'search_for', value: 'petition'}; - - //lets transfer search criteria. - aoData[dataLength++] = {name: 'searchCriteria', value:searchCriteria.join(',')}; - - CRM.$.ajax( { - "dataType": 'json', - "type": "POST", - "url": sSource, - "data": aoData, - "success": fnCallback - } ); } - }); -} - -</script> -{/literal} diff --git a/civicrm/templates/CRM/Campaign/Form/Search/Survey.tpl b/civicrm/templates/CRM/Campaign/Form/Search/Survey.tpl deleted file mode 100644 index 324f403a04..0000000000 --- a/civicrm/templates/CRM/Campaign/Form/Search/Survey.tpl +++ /dev/null @@ -1,290 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ -*} - -{if !$hasSurveys} - <div class="messages status no-popup"> - {icon icon="fa-info-circle"}{/icon} - {ts}None found.{/ts} - </div> - - <div class="action-link"> - {crmButton p='civicrm/survey/add' q='reset=1' h=0 icon="plus-circle"}{ts}Add Survey{/ts}{/crmButton} - </div> - -{elseif $buildSelector} - - {* use to display result set of survey *} - <div id="survey-result-set-dialog" class="hiddenElement"></div> - - {* load survey selector *} - {include file="CRM/common/enableDisableApi.tpl"} - - {literal} - <script type="text/javascript"> - CRM.$(function($) { - loadSurveyList( ); - }); - </script> - {/literal} - - <table class="surveys"> - <thead> - <tr class="columnheader"> - <th class="hiddenElement">{ts}Survey ID{/ts}</th> - <th>{ts}Title{/ts}</th> - <th class="hiddenElement">{ts}Campaign ID{/ts}</th> - <th>{ts}Campaign{/ts}</th> - <th class="hiddenElement">{ts}Survey Type ID{/ts}</th> - <th>{ts}Survey Type{/ts}</th> - <th>{ts}Release Frequency{/ts}</th> - <th>{ts}Reserve Each Time{/ts}</th> - <th>{ts}Total Reserve{/ts}</th> - <th>{ts}Default?{/ts}</th> - <th class="hiddenElement">{ts}Is Active?{/ts}</th> - <th>{ts}Active?{/ts}</th> - <th></th> - <th></th> - <th></th> - </tr> - </thead> - <tbody></tbody> - </table> - -{else} - - <div class="action-link"> - {crmButton p='civicrm/survey/add' q='reset=1' h=0 icon="plus-circle"}{ts}Add Survey{/ts}{/crmButton} - </div> - - {* build search form here *} - - {* Search form and results for surveys *} - <div class="crm-block crm-form-block crm-search-form-block"> - {assign var='searchForm' value="search_form_$searchFor"} - - <div id="{$searchForm}" class="crm-accordion-wrapper crm-survey_search_form-accordion{if $force and !$buildSelector} collapsed{/if}"> - <div class="crm-accordion-header"> - {ts}Search Surveys{/ts} - </div><!-- /.crm-accordion-header --> - - <div class="crm-accordion-body"> - {strip} - <table class="form-layout-compressed"> - <tr> - <td>{$form.survey_title.label}<br /> - {$form.survey_title.html} - </td> - </tr> - <tr> - <td>{$form.activity_type_id.label}<br /> - {$form.activity_type_id.html} - </td> - <td>{$form.survey_campaign_id.label}<br /> - {$form.survey_campaign_id.html} - </td> - </tr> - <tr> - <td colspan="2"> - {if $context eq 'search'} - {$form.buttons.html} - {else} - <a class="searchSurvey button" style="float:left;" href="#" title="{ts}Search{/ts}" onClick="searchSurveys( '{$qfKey}' );return false;">{ts}Search{/ts}</a> - {/if} - </td> - </tr> - </table> - {/strip} - </div> - </div> - </div> - {* search form ends here *} - - <div id='surveyList'></div> - -{/if} {* end of search form build *} - - -{literal} -<script type="text/javascript"> - - {/literal} - {* load selector when force *} - {if $force and !$buildSelector} - {literal} - CRM.$(function($) { - searchSurveys( {/literal}'{$qfKey}'{literal} ); - }); - - {/literal} - {/if} - {literal} - -function searchSurveys( qfKey ) -{ - var dataUrl = {/literal}"{crmURL h=0 q='search=1&snippet=4&type=survey'}"{literal}; - - //lets carry qfKey to retain form session. - if ( qfKey ) dataUrl = dataUrl + '&qfKey=' + qfKey; - - CRM.$.get( dataUrl, null, function( surveyList ) { - CRM.$( '#surveyList' ).html( surveyList ).trigger('crmLoad'); - - //collapse the search form. - var searchFormName = '#search_form_' + {/literal}'{$searchFor}'{literal}; - CRM.$( searchFormName + '.crm-accordion-wrapper:not(.collapsed)').crmAccordionToggle(); - }, 'html' ); -} - -function loadSurveyList( ) -{ - var sourceUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0 q='snippet=4&className=CRM_Campaign_Page_AJAX&fnName=surveyList' }"{literal}; - - //build the search qill. - //get the search criteria. - var searchParams = {/literal}{$searchParams}{literal}; - var surveyTypes = {/literal}{$surveyTypes}{literal}; - var surveyCampaigns = {/literal}{$surveyCampaigns}{literal}; - - var noRecordFoundMsg = "{/literal}{ts escape='js'}No matches found for:{/ts}{literal}"; - noRecordFoundMsg += '<div class="qill">'; - - var count = 0; - var searchQill = []; - for ( param in searchParams ) { - if ( val = CRM.$( '#' + param ).val( ) ) { - if ( param == 'activity_type_id' ) val = surveyTypes[val]; - if ( param == 'survey_campaign_id' ) val = surveyCampaigns[val]; - searchQill[count++] = searchParams[param] + ' : ' + val; - } - } - noRecordFoundMsg += searchQill.join( '<span class="font-italic"> ...AND... </span></div><div class="qill">' ); - CRM.$( 'table.surveys', '#surveyList').dataTable({ - "bFilter" : false, - "bAutoWidth" : false, - "bProcessing": false, - "bLengthChange": false, - "aaSorting": [], - "aoColumns":[{sClass:'crm-survey-id hiddenElement' }, - {sClass:'crmf-title' }, - {sClass:'crm-survey-campaign_id hiddenElement' }, - {sClass:'crm-survey-campaign' }, - {sClass:'crm-survey-activity_type_id hiddenElement' }, - {sClass:'crm-survey-activity_type' }, - {sClass:'crm-survey-release_frequency' }, - {sClass:'crm-survey-default_number_of_contacts' }, - {sClass:'crm-survey-max_number_of_contacts' }, - {sClass:'crm-survey-is_default' }, - {sClass:'crm-survey-is_active hiddenElement' }, - {sClass:'crm-survey-isActive' }, - {sClass:'crm-survey-result_id', bSortable:false}, - {sClass:'crm-survey-action', bSortable:false}, - {sClass:'crm-campaign-voterLinks', bSortable:false} - ], - "sPaginationType": "full_numbers", - "sDom" : 'rt<"crm-datatable-pager-bottom"ip>', - "bServerSide": true, - "bJQueryUI": true, - "sAjaxSource": sourceUrl, - "asStripClasses" : [ "odd-row", "even-row" ], - "oLanguage":{"sEmptyTable" : noRecordFoundMsg, - "sZeroRecords" : noRecordFoundMsg }, - "fnDrawCallback": function() { - CRM.$(this).trigger('crmLoad'); - }, - "fnRowCallback": function( nRow, aData, iDisplayIndex ) { - // Crm-editable - CRM.$(nRow).children().eq(1).addClass('crm-editable'); - //insert the id for each row for enable/disable. - var rowId = 'survey-' + aData[0]; - CRM.$(nRow).attr( 'id', rowId).addClass('crm-entity'); - //handled disabled rows. - var isActive = Boolean(Number(aData[10])); - if ( !isActive ) CRM.$(nRow).addClass( 'disabled' ); - - //add id for yes/no column. - CRM.$(nRow).children().eq(11).attr( 'id', rowId + '_status' ); - CRM.$(nRow).children().eq(9).html(CRM.utils.formatIcon('fa-check', ts('Default'), nRow.cells[9].innerText)); - - return nRow; - }, - - "fnServerData": function ( sSource, aoData, fnCallback ) { - var dataLength = aoData.length; - - var count = 1; - var searchCriteria = []; - - //get the search criteria. - var searchParams = {/literal}{$searchParams}{literal}; - for ( param in searchParams ) { - fldName = param; - if ( param == 'survey_title' ) fldName = 'title'; - if ( param == 'survey_campaign_id' ) fldName = 'campaign_id'; - if ( val = CRM.$( '#' + param ).val( ) ) { - aoData[dataLength++] = {name: fldName, value: val}; - } - searchCriteria[count++] = fldName; - } - - //do search for surveys. - aoData[dataLength++] = {name: 'search_for', value: 'survey'}; - - //lets transfer search criteria. - aoData[dataLength++] = {name: 'searchCriteria', value:searchCriteria.join(',')}; - - CRM.$.ajax( { - "dataType": 'json', - "type": "POST", - "url": sSource, - "data": aoData, - "success": fnCallback - } ); } - }); -} - -function displayResultSet( surveyId, surveyTitle, OptionGroupId ) { - var data = new Object; - data['option_group_id'] = OptionGroupId; - data['survey_id'] = surveyId; - - var dataUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0 q='className=CRM_Campaign_Page_AJAX&fnName=loadOptionGroupDetails' }"{literal}; - var content = '<tr><th>{/literal}{ts escape='js'}Label{/ts}{literal}</th><th>{/literal}{ts escape='js'}Value{/ts}{literal}</th><th>{/literal}{ts escape='js'}Recontact Interval{/ts}{literal}</th><th>{/literal}{ts escape='js'}Order{/ts}{literal}</th></tr>'; - var setTitle = '{/literal}{ts escape='js'}Result Set for{/ts} {literal}' + surveyTitle; - - CRM.$.post( dataUrl, data, function( opGroup ) { - if ( opGroup.status == 'success' ) { - var result = opGroup.result; - for( key in result ) { - var interval = ''; - if ( result[key].interval && result[key].interval != 'undefined' ) { - interval = result[key].interval; - } - content += '<tr><td>'+ result[key].label +'</td><td>'+ result[key].value +'</td><td>'+ interval +'</td><td>'+ result[key].weight +'</td></tr>'; - } - - CRM.$("#survey-result-set-dialog").show( ).html('<table>'+content+'</table>').dialog({ - title: setTitle, - modal: true, - width: 480, - overlay: { - opacity: 0.5, - background: "black" - }, - beforeclose: function(event, ui) { - CRM.$(this).dialog("destroy"); - } - }); - } - }, "json" ); - -} - -</script> -{/literal} diff --git a/civicrm/templates/CRM/Campaign/Form/Selector.tpl b/civicrm/templates/CRM/Campaign/Form/Selector.tpl index 0bafc8eef6..727b3722fe 100644 --- a/civicrm/templates/CRM/Campaign/Form/Selector.tpl +++ b/civicrm/templates/CRM/Campaign/Form/Selector.tpl @@ -15,7 +15,7 @@ <table class="selector row-highlight"> <thead class="sticky"> <tr> - {if !$single and $context eq 'Search' } + {if !$single and $context eq 'Search'} <th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th> {/if} <th scope="col"></th> @@ -36,8 +36,8 @@ {counter start=0 skip=1 print=false} {foreach from=$rows item=row} <tr id='rowid{$row.contact_id}' class="{cycle values="odd-row,even-row"} crm-campaign"> - {if !$single } - {if $context eq 'Search' } + {if !$single} + {if $context eq 'Search'} {assign var=cbName value=$row.checkbox} <td>{$form.$cbName.html}</td> {/if} diff --git a/civicrm/templates/CRM/Campaign/Form/SurveyType.tpl b/civicrm/templates/CRM/Campaign/Form/SurveyType.tpl index 9e26a0e5fe..28fcc726ce 100644 --- a/civicrm/templates/CRM/Campaign/Form/SurveyType.tpl +++ b/civicrm/templates/CRM/Campaign/Form/SurveyType.tpl @@ -1 +1 @@ -{include file="CRM/Admin/Form/Options.tpl" } +{include file="CRM/Admin/Form/Options.tpl"} diff --git a/civicrm/templates/CRM/Campaign/Form/Task/Print.tpl b/civicrm/templates/CRM/Campaign/Form/Task/Print.tpl index 9c7023da1e..88ee0d9c2b 100644 --- a/civicrm/templates/CRM/Campaign/Form/Task/Print.tpl +++ b/civicrm/templates/CRM/Campaign/Form/Task/Print.tpl @@ -11,7 +11,7 @@ <span class="element-right">{$form.buttons.html}</span> </div> -{if $rows } +{if $rows} <p></p> {include file="CRM/Campaign/Form/Selector.tpl"} diff --git a/civicrm/templates/CRM/Campaign/Page/SurveyType.tpl b/civicrm/templates/CRM/Campaign/Page/SurveyType.tpl index 9fed46dd17..f3492147e5 100644 --- a/civicrm/templates/CRM/Campaign/Page/SurveyType.tpl +++ b/civicrm/templates/CRM/Campaign/Page/SurveyType.tpl @@ -1,6 +1,6 @@ <div class="crm-content-block crm-block"> -{if ($action eq 1) or ($action eq 2) or ($action eq 8) } - {include file="CRM/Campaign/Form/SurveyType.tpl" } +{if ($action eq 1) or ($action eq 2) or ($action eq 8)} + {include file="CRM/Campaign/Form/SurveyType.tpl"} {else} {if $rows} <div class="action-link"> diff --git a/civicrm/templates/CRM/Case/Form/Activity.tpl b/civicrm/templates/CRM/Case/Form/Activity.tpl index 9f2e59923f..90744ee0c6 100644 --- a/civicrm/templates/CRM/Case/Form/Activity.tpl +++ b/civicrm/templates/CRM/Case/Form/Activity.tpl @@ -10,7 +10,7 @@ {* this template is used for adding/editing activities for a case. *} <div class="crm-block crm-form-block crm-case-activity-form-block"> - {if $action eq 8 or $action eq 32768 } + {if $action eq 8 or $action eq 32768} <div class="messages status no-popup"> <i class="crm-i fa-info-circle" aria-hidden="true"></i> {if $action eq 8} @@ -23,7 +23,7 @@ </div><br /> {else} <table class="form-layout"> - {if $activityTypeDescription } + {if $activityTypeDescription} <tr> <div class="help">{$activityTypeDescription}</div> </tr> diff --git a/civicrm/templates/CRM/Case/Form/ActivityTab.tpl b/civicrm/templates/CRM/Case/Form/ActivityTab.tpl index 2b778bbcc4..683da8bf18 100644 --- a/civicrm/templates/CRM/Case/Form/ActivityTab.tpl +++ b/civicrm/templates/CRM/Case/Form/ActivityTab.tpl @@ -31,12 +31,12 @@ </tr> <tr> <td class="crm-case-caseview-form-block-activity_date_low"> - {assign var=activitylow value=activity_date_low_$caseID} + {assign var=activitylow value="activity_date_low_`$caseID`"} {$form.$activitylow.label}<br /> {$form.$activitylow.html} </td> <td class="crm-case-caseview-form-block-activity_date_high"> - {assign var=activityhigh value=activity_date_high_$caseID} + {assign var=activityhigh value="activity_date_high_`$caseID`"} {$form.$activityhigh.label}<br /> {$form.$activityhigh.html} </td> diff --git a/civicrm/templates/CRM/Case/Form/ActivityToCase.tpl b/civicrm/templates/CRM/Case/Form/ActivityToCase.tpl index 0968dd970c..774c84fcc6 100644 --- a/civicrm/templates/CRM/Case/Form/ActivityToCase.tpl +++ b/civicrm/templates/CRM/Case/Form/ActivityToCase.tpl @@ -59,13 +59,13 @@ subject = $("#file_on_case_activity_subject").val(), targetContactId = $("#file_on_case_target_contact_id").val(); - var postUrl = {/literal}"{crmURL p='civicrm/ajax/activity/convert' h=0 }"{literal}; + var postUrl = {/literal}"{crmURL p='civicrm/ajax/activity/convert' h=0}"{literal}; $.post( postUrl, { activityID: activityID, caseID: selectedCaseId, contactID: contactId, newSubject: subject, targetContactIds: targetContactId, mode: action, key: {/literal}"{crmKey name='civicrm/ajax/activity/convert'}"{literal} }, function( values ) { if ( values.error_msg ) { $().crmError(values.error_msg, "{/literal}{ts escape='js'}Unable to file on case.{/ts}{literal}"); } else { - var destUrl = {/literal}"{crmURL p='civicrm/contact/view/case' q='reset=1&action=view&id=' h=0 }"{literal}; + var destUrl = {/literal}"{crmURL p='civicrm/contact/view/case' q='reset=1&action=view&id=' h=0}"{literal}; var context = ''; {/literal}{if !empty($fulltext)}{literal} context = '&context={/literal}{$fulltext}{literal}'; diff --git a/civicrm/templates/CRM/Case/Form/Case.tpl b/civicrm/templates/CRM/Case/Form/Case.tpl index 3b26a979de..92ab07e2fa 100644 --- a/civicrm/templates/CRM/Case/Form/Case.tpl +++ b/civicrm/templates/CRM/Case/Form/Case.tpl @@ -14,7 +14,7 @@ <div class="crm-block crm-form-block crm-case-form-block"> <h3>{if $action eq 8}{ts}Delete Case{/ts}{elseif $action eq 32768}{ts}Restore Case{/ts}{/if}</h3> -{if $action eq 8 or $action eq 32768 } +{if $action eq 8 or $action eq 32768} <div class="messages status no-popup"> {icon icon="fa-info-circle"}{/icon} {if $action eq 8} @@ -25,7 +25,7 @@ </div> {else} <table class="form-layout"> - {if $activityTypeDescription } + {if $activityTypeDescription} <tr> <div class="help">{$activityTypeDescription}</div> </tr> diff --git a/civicrm/templates/CRM/Case/Form/CaseView.tpl b/civicrm/templates/CRM/Case/Form/CaseView.tpl index fba20e624d..bb5d90f058 100644 --- a/civicrm/templates/CRM/Case/Form/CaseView.tpl +++ b/civicrm/templates/CRM/Case/Form/CaseView.tpl @@ -309,7 +309,7 @@ </p> {/foreach} - {if !$tags && !$tagSetTags } + {if !$tags && !$tagSetTags} <div class="status"> {ts}There are no tags currently assigned to this case.{/ts} </div> diff --git a/civicrm/templates/CRM/Case/Form/Search/Common.tpl b/civicrm/templates/CRM/Case/Form/Search/Common.tpl index a720113051..46c319f77f 100644 --- a/civicrm/templates/CRM/Case/Form/Search/Common.tpl +++ b/civicrm/templates/CRM/Case/Form/Search/Common.tpl @@ -25,7 +25,7 @@ {include file="CRM/Core/DatePickerRangeWrapper.tpl" fieldName="case_start_date" to='' from='' colspan='' class ='' hideRelativeLabel=0} </tr> <tr> - {include file="CRM/Core/DatePickerRangeWrapper.tpl" fieldName="case_end_date" to='' from='' colspan='' class ='' hideRelativeLabel=0 } + {include file="CRM/Core/DatePickerRangeWrapper.tpl" fieldName="case_end_date" to='' from='' colspan='' class ='' hideRelativeLabel=0} </tr> <tr id='case_search_form'> diff --git a/civicrm/templates/CRM/Case/Form/Selector.tpl b/civicrm/templates/CRM/Case/Form/Selector.tpl index 27e8c7384a..36d9402fea 100644 --- a/civicrm/templates/CRM/Case/Form/Selector.tpl +++ b/civicrm/templates/CRM/Case/Form/Selector.tpl @@ -12,7 +12,7 @@ <table class="caseSelector row-highlight"> <tr class="columnheader"> - {if ! $single and $context eq 'Search' } + {if ! $single and $context eq 'Search'} <th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th> {/if} @@ -59,7 +59,7 @@ {/foreach} {* Dashboard only lists 10 most recent cases. *} - {if $context EQ 'dashboard' and $limit and $pager->_totalItems GT $limit } + {if $context EQ 'dashboard' and $limit and $pager->_totalItems GT $limit} <tr class="even-row"> <td colspan="10"><a href="{crmURL p='civicrm/case/search' q='reset=1'}"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Find more cases{/ts}... </a></td> </tr> diff --git a/civicrm/templates/CRM/Case/Form/Task.tpl b/civicrm/templates/CRM/Case/Form/Task.tpl index e43c5e35fb..de8584c046 100644 --- a/civicrm/templates/CRM/Case/Form/Task.tpl +++ b/civicrm/templates/CRM/Case/Form/Task.tpl @@ -9,7 +9,7 @@ *} {ts 1=$totalSelectedCases}Number of selected cases: %1{/ts} -{if $rows } +{if $rows} <div class="crm-block-crm-form-block crm-case-task-form-block"> <table width="30%"> <tr class="columnheader"> diff --git a/civicrm/templates/CRM/Case/Form/Task/Print.tpl b/civicrm/templates/CRM/Case/Form/Task/Print.tpl index e15d076c6f..fa7941d1b4 100644 --- a/civicrm/templates/CRM/Case/Form/Task/Print.tpl +++ b/civicrm/templates/CRM/Case/Form/Task/Print.tpl @@ -9,7 +9,7 @@ *} <p> -{if $rows } +{if $rows} <div class="crm-submit-buttons"> <span class="element-right">{include file="CRM/common/formButtons.tpl" location="top"}</span> </div> diff --git a/civicrm/templates/CRM/Case/Page/Tab.tpl b/civicrm/templates/CRM/Case/Page/Tab.tpl index 9d54b54171..f24a05c430 100644 --- a/civicrm/templates/CRM/Case/Page/Tab.tpl +++ b/civicrm/templates/CRM/Case/Page/Tab.tpl @@ -25,7 +25,7 @@ {capture assign=newCaseURL}{crmURL p="civicrm/case/add" q="reset=1&action=add&cid=`$contactId`&context=case"}{/capture} - {if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 32768 } {* add, update, delete, restore*} + {if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 32768} {* add, update, delete, restore*} {include file="CRM/Case/Form/Case.tpl"} {elseif $action eq 4 } {include file="CRM/Case/Form/CaseView.tpl"} diff --git a/civicrm/templates/CRM/Contact/Form/Contact.tpl b/civicrm/templates/CRM/Contact/Form/Contact.tpl index 962359cfab..8e05bf6e88 100644 --- a/civicrm/templates/CRM/Contact/Form/Contact.tpl +++ b/civicrm/templates/CRM/Contact/Form/Contact.tpl @@ -15,7 +15,7 @@ {include file="CRM/Contact/Form/Edit/Lock.tpl"} {/if} <div class="crm-form-block crm-search-form-block"> - {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') } + {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM')} <a href='{crmURL p="civicrm/admin/setting/preferences/display" q="reset=1"}' title="{ts}Click here to configure the panes.{/ts}"><i class="crm-i fa-wrench" aria-hidden="true"></i></a> {/if} <span style="float:right;"><a href="#expand" id="expand">{ts}Expand all tabs{/ts}</a></span> @@ -77,7 +77,7 @@ </div><!-- /.crm-accordion-wrapper --> {foreach from = $editOptions item = "title" key="name"} - {if $name eq 'CustomData' } + {if $name eq 'CustomData'} <div id='customData'>{include file="CRM/Contact/Form/Edit/CustomData.tpl" isSingleRecordEdit=false}</div> {else} {include file="CRM/Contact/Form/Edit/$name.tpl"} diff --git a/civicrm/templates/CRM/Contact/Form/Domain.tpl b/civicrm/templates/CRM/Contact/Form/Domain.tpl index d1328bff1c..cd5536da6e 100644 --- a/civicrm/templates/CRM/Contact/Form/Domain.tpl +++ b/civicrm/templates/CRM/Contact/Form/Domain.tpl @@ -27,7 +27,7 @@ </table> <h3>{ts}Default Organization Address{/ts}</h3> - <div class="description">{ts 1={domain.address}}CiviMail mailings must include the sending organization's address. This is done by putting the %1 token in either the body or footer of the mailing. This token may also be used in regular 'Email - send now' messages and in other Message Templates. The token is replaced by the address entered below when the message is sent.{/ts}</div> + <div class="description">{ts 1="{domain.address}"}CiviMail mailings must include the sending organization's address. This is done by putting the %1 token in either the body or footer of the mailing. This token may also be used in regular 'Email - send now' messages and in other Message Templates. The token is replaced by the address entered below when the message is sent.{/ts}</div> {include file="CRM/Contact/Form/Edit/Address.tpl" blockId=1 masterAddress='' parseStreetAddress='' className=''} <h3>{ts}Organization Contact Information{/ts}</h3> <div class="description">{ts}You can also include general email and/or phone contact information in mailings.{/ts} {help id="additional-contact"}</div> diff --git a/civicrm/templates/CRM/Contact/Form/Edit/Address.tpl b/civicrm/templates/CRM/Contact/Form/Edit/Address.tpl index d89db16ae8..b0da0bf2ff 100644 --- a/civicrm/templates/CRM/Contact/Form/Edit/Address.tpl +++ b/civicrm/templates/CRM/Contact/Form/Edit/Address.tpl @@ -22,7 +22,7 @@ <div id="Address_Block_{$blockId}" {if $className eq 'CRM_Contact_Form_Contact'} class="boxBlock crm-edit-address-block crm-address_{$blockId}"{/if}> {if $blockId gt 1}<fieldset><legend>{ts}Supplemental Address{/ts}</legend>{/if} <table class="form-layout-compressed crm-edit-address-form"> - {if $masterAddress && $masterAddress.$blockId gt 0 } + {if $masterAddress && $masterAddress.$blockId gt 0} <tr><td><div class="message status">{icon icon="fa-info-circle"}{/icon} {ts 1=$masterAddress.$blockId}This address is shared with %1 contact record(s). Modifying this address will automatically update the shared address for these contacts.{/ts}</div></td></tr> {/if} @@ -50,9 +50,9 @@ <table id="address_table_{$blockId}" class="form-layout-compressed"> {* build address block w/ address sequence. *} {foreach item=addressElement from=$addressSequence} - {include file=CRM/Contact/Form/Edit/Address/$addressElement.tpl} + {include file="CRM/Contact/Form/Edit/Address/`$addressElement`.tpl"} {/foreach} - {include file=CRM/Contact/Form/Edit/Address/geo_code.tpl} + {include file="CRM/Contact/Form/Edit/Address/geo_code.tpl"} </table> </td> <td colspan="2"> diff --git a/civicrm/templates/CRM/Contact/Form/Inline/Address.tpl b/civicrm/templates/CRM/Contact/Form/Inline/Address.tpl index 2a9ceebcea..1985b3a6de 100644 --- a/civicrm/templates/CRM/Contact/Form/Inline/Address.tpl +++ b/civicrm/templates/CRM/Contact/Form/Inline/Address.tpl @@ -43,9 +43,9 @@ <table id="address_table_{$blockId}" class="form-layout-compressed"> {* build address block w/ address sequence. *} {foreach item=addressElement from=$addressSequence} - {include file=CRM/Contact/Form/Edit/Address/$addressElement.tpl} + {include file="CRM/Contact/Form/Edit/Address/`$addressElement`.tpl"} {/foreach} - {include file=CRM/Contact/Form/Edit/Address/geo_code.tpl} + {include file="CRM/Contact/Form/Edit/Address/geo_code.tpl"} </table> </td> </tr> diff --git a/civicrm/templates/CRM/Contact/Form/Inline/Email.tpl b/civicrm/templates/CRM/Contact/Form/Inline/Email.tpl index bcd1447ee0..8cad9e1249 100644 --- a/civicrm/templates/CRM/Contact/Form/Inline/Email.tpl +++ b/civicrm/templates/CRM/Contact/Form/Inline/Email.tpl @@ -19,7 +19,7 @@ </tr> <tr> <td>{ts}Email{/ts} - {if $actualBlockCount lt 5 } + {if $actualBlockCount lt 5} <span id="add-more-email" title="{ts}click to add more{/ts}"> <a class="crm-hover-button action-item add-more-inline" href="#">{ts}add{/ts}</a> </span> diff --git a/civicrm/templates/CRM/Contact/Form/Inline/IM.tpl b/civicrm/templates/CRM/Contact/Form/Inline/IM.tpl index 5291433fbb..53a986d7ca 100644 --- a/civicrm/templates/CRM/Contact/Form/Inline/IM.tpl +++ b/civicrm/templates/CRM/Contact/Form/Inline/IM.tpl @@ -19,7 +19,7 @@ </tr> <tr> <td>{ts}Instant Messenger{/ts} - {if $actualBlockCount lt 5 } + {if $actualBlockCount lt 5} <span id="add-more-im" title="{ts}click to add more{/ts}"><a class="crm-hover-button action-item add-more-inline" href="#">{ts}add{/ts}</a></span> {/if} </td> diff --git a/civicrm/templates/CRM/Contact/Form/Inline/OpenID.tpl b/civicrm/templates/CRM/Contact/Form/Inline/OpenID.tpl index 7fd73b6118..2ba0e42acc 100644 --- a/civicrm/templates/CRM/Contact/Form/Inline/OpenID.tpl +++ b/civicrm/templates/CRM/Contact/Form/Inline/OpenID.tpl @@ -20,7 +20,7 @@ <tr> <td>{ts}Open ID{/ts} - {if $actualBlockCount lt 5 } + {if $actualBlockCount lt 5} <span id="add-more-openid" title="{ts}click to add more{/ts}"><a class="crm-hover-button action-item add-more-inline" href="#">{ts}add{/ts}</a></span> {/if} </td> diff --git a/civicrm/templates/CRM/Contact/Form/Inline/Phone.tpl b/civicrm/templates/CRM/Contact/Form/Inline/Phone.tpl index fa90b955ce..ed00232af0 100644 --- a/civicrm/templates/CRM/Contact/Form/Inline/Phone.tpl +++ b/civicrm/templates/CRM/Contact/Form/Inline/Phone.tpl @@ -19,7 +19,7 @@ </tr> <tr> <td>{ts}Phone{/ts} - {if $actualBlockCount lt 5 } + {if $actualBlockCount lt 5} <span id="add-more-phone" title="{ts}click to add more{/ts}"><a class="crm-hover-button action-item add-more-inline" href="#">{ts}add{/ts}</a></span> {/if} </td> diff --git a/civicrm/templates/CRM/Contact/Form/Inline/Website.tpl b/civicrm/templates/CRM/Contact/Form/Inline/Website.tpl index f58852cc8d..dd59149593 100644 --- a/civicrm/templates/CRM/Contact/Form/Inline/Website.tpl +++ b/civicrm/templates/CRM/Contact/Form/Inline/Website.tpl @@ -21,7 +21,7 @@ <tr> <td>{ts}Website{/ts} {help id="id-website" file="CRM/Contact/Form/Contact.hlp"} - {if $actualBlockCount lt 25 } + {if $actualBlockCount lt 25} <span id="add-more-website" title="{ts}click to add more{/ts}"><a class="crm-hover-button action-item add-more-inline" href="#">{ts}add{/ts}</a></span> {/if} </td> diff --git a/civicrm/templates/CRM/Contact/Form/Merge.tpl b/civicrm/templates/CRM/Contact/Form/Merge.tpl index 45b96032b7..7728817431 100644 --- a/civicrm/templates/CRM/Contact/Form/Merge.tpl +++ b/civicrm/templates/CRM/Contact/Form/Merge.tpl @@ -142,12 +142,12 @@ <td> {* Display location for fields with locations *} - {if $blockName eq 'email' || $blockName eq 'phone' || $blockName eq 'address' || $blockName eq 'im' } + {if $blockName eq 'email' || $blockName eq 'phone' || $blockName eq 'address' || $blockName eq 'im'} {$form.location_blocks.$blockName.$blockId.locTypeId.html} {/if} {* Display other_type_id for websites, ims and phones *} - {if $blockName eq 'website' || $blockName eq 'im' || $blockName eq 'phone' } + {if $blockName eq 'website' || $blockName eq 'im' || $blockName eq 'phone'} {$form.location_blocks.$blockName.$blockId.typeTypeId.html} {/if} diff --git a/civicrm/templates/CRM/Contact/Form/RelatedContact.tpl b/civicrm/templates/CRM/Contact/Form/RelatedContact.tpl index e4eebab4a1..0a226a1755 100644 --- a/civicrm/templates/CRM/Contact/Form/RelatedContact.tpl +++ b/civicrm/templates/CRM/Contact/Form/RelatedContact.tpl @@ -9,7 +9,7 @@ *} {* This file provides the HTML for the edit Related contact form *} -{include file=CRM/Contact/Form/OnBehalfOf.tpl} +{include file="CRM/Contact/Form/OnBehalfOf.tpl"} <div class="crm-submit-buttons"> {$form.buttons.html} diff --git a/civicrm/templates/CRM/Contact/Form/Relationship.tpl b/civicrm/templates/CRM/Contact/Form/Relationship.tpl index f1fc994faa..63cc618691 100644 --- a/civicrm/templates/CRM/Contact/Form/Relationship.tpl +++ b/civicrm/templates/CRM/Contact/Form/Relationship.tpl @@ -60,7 +60,7 @@ <div class="spacer"></div> </div> {/if} - {if ($action EQ 1) OR ($action EQ 2) } + {if ($action EQ 1) OR ($action EQ 2)} {*include custom data js file *} {include file="CRM/common/customData.tpl"} <script type="text/javascript"> diff --git a/civicrm/templates/CRM/Contact/Form/Search/Criteria/Relationship.tpl b/civicrm/templates/CRM/Contact/Form/Search/Criteria/Relationship.tpl index 2fe8f3c1d3..2a123fa9df 100644 --- a/civicrm/templates/CRM/Contact/Form/Search/Criteria/Relationship.tpl +++ b/civicrm/templates/CRM/Contact/Form/Search/Criteria/Relationship.tpl @@ -53,7 +53,7 @@ <td colspan="2"><label>{ts}Active Period{/ts}</label> {help id="id-relationship-active-period" file="CRM/Contact/Form/Search/Advanced.hlp"}<br /></td> </tr> <tr> - {include file="CRM/Core/DatePickerRangeWrapper.tpl" fieldName="relation_active_period_date" to='' from='' colspan='' class ='' hideRelativeLabel=1 } + {include file="CRM/Core/DatePickerRangeWrapper.tpl" fieldName="relation_active_period_date" to='' from='' colspan='' class ='' hideRelativeLabel=1} </tr> {if !empty($relationshipGroupTree)} <tr> diff --git a/civicrm/templates/CRM/Contact/Form/Search/ResultTasks.tpl b/civicrm/templates/CRM/Contact/Form/Search/ResultTasks.tpl index e7a9bab83c..092e301a22 100644 --- a/civicrm/templates/CRM/Contact/Form/Search/ResultTasks.tpl +++ b/civicrm/templates/CRM/Contact/Form/Search/ResultTasks.tpl @@ -34,7 +34,7 @@ <tr> <td style="width: 30%;"> {if !empty($savedSearch.name)}{$savedSearch.name} ({ts}smart group{/ts}) - {/if} - {ts count=$pager->_totalItems plural='%count Contacts'}%count Contact{/ts} + {ts count=$pager->_totalItems plural="%count Contacts"}%count Contact{/ts} </td> {* Search criteria are passed to tpl in the $qill array *} @@ -48,7 +48,7 @@ <td> {ts}Select Records{/ts}:</td> <td class="nowrap"> {assign var="checked" value=$selectedContactIds|@count} - {$form.radio_ts.ts_all.html} <label for="{$ts_all_id}">{ts count=$pager->_totalItems plural='All %count records'}The found record{/ts}</label> + {$form.radio_ts.ts_all.html} <label for="{$ts_all_id}">{ts count=$pager->_totalItems plural="All %count records"}The found record{/ts}</label> {if $pager->_totalItems > 1} {$form.radio_ts.ts_sel.html} <label for="{$ts_sel_id}">{ts 1="<span>$checked</span>"}%1 Selected records only{/ts}</label> {/if} diff --git a/civicrm/templates/CRM/Contact/Form/Selector.tpl b/civicrm/templates/CRM/Contact/Form/Selector.tpl index f91ce6bd64..2b8d726b4e 100644 --- a/civicrm/templates/CRM/Contact/Form/Selector.tpl +++ b/civicrm/templates/CRM/Contact/Form/Selector.tpl @@ -36,7 +36,7 @@ {counter start=0 skip=1 print=false} - { if $id } + {if $id} {foreach from=$rows item=row} <tr id='rowid{$row.contact_id}' class="{cycle values='odd-row,even-row'}"> {assign var=cbName value=$row.checkbox} @@ -52,9 +52,9 @@ {foreach from=$row item=value key=key} {if ($key neq "checkbox") and ($key neq "action") and ($key neq "contact_type") and ($key neq "contact_type_orig") and ($key neq "status") and ($key neq "sort_name") and ($key neq "contact_id")} <td> - {if $key EQ "household_income_total" } + {if $key EQ "household_income_total"} {$value|crmMoney} - {elseif strpos( $key, '_date' ) !== false } + {elseif strpos( $key, '_date' ) !== false} {$value|crmDate} {else} {$value} diff --git a/civicrm/templates/CRM/Contact/Form/Task/AddToParentClass.tpl b/civicrm/templates/CRM/Contact/Form/Task/AddToParentClass.tpl index c014c75c2a..89b42b29ce 100644 --- a/civicrm/templates/CRM/Contact/Form/Task/AddToParentClass.tpl +++ b/civicrm/templates/CRM/Contact/Form/Task/AddToParentClass.tpl @@ -30,7 +30,7 @@ </tr> <tr><td></td><td>{$form.$refresh.html} {$form.$cancel.html}</td></tr> </table> - {if $searchDone } {* Search button clicked *} + {if $searchDone} {* Search button clicked *} {if $searchCount} {if $searchRows} {* we've got rows to display *} <fieldset><legend>{ts}Mark Target Contact(s) for this Relationship{/ts}</legend> diff --git a/civicrm/templates/CRM/Contact/Form/Task/Batch.tpl b/civicrm/templates/CRM/Contact/Form/Task/Batch.tpl index 166630a4db..316ee28dad 100644 --- a/civicrm/templates/CRM/Contact/Form/Task/Batch.tpl +++ b/civicrm/templates/CRM/Contact/Form/Task/Batch.tpl @@ -38,7 +38,7 @@ {assign var=n value=$field.name} {if $field.options_per_line} <td class="compressed"> - {assign var="count" value="1"} + {assign var="count" value=1} {strip} <table class="form-layout-compressed"> <tr> @@ -50,9 +50,9 @@ {if $count == $field.options_per_line} </tr> <tr> - {assign var="count" value="1"} + {assign var="count" value=1} {else} - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} {/if} {/if} {/foreach} diff --git a/civicrm/templates/CRM/Contact/Form/Task/Email.tpl b/civicrm/templates/CRM/Contact/Form/Task/Email.tpl index 4725477ff1..a66cf3843e 100644 --- a/civicrm/templates/CRM/Contact/Form/Task/Email.tpl +++ b/civicrm/templates/CRM/Contact/Form/Task/Email.tpl @@ -100,7 +100,7 @@ CRM.$(function($) { $('.crm-contactEmail-form-block-'+type, $form).hide().find('input.crm-ajax-select').select2('data', []); }); - var sourceDataUrl = "{/literal}{crmURL p='civicrm/ajax/checkemail' q='id=1' h=0 }{literal}"; + var sourceDataUrl = "{/literal}{crmURL p='civicrm/ajax/checkemail' q='id=1' h=0}{literal}"; function emailSelect(el, prepopulate) { $(el, $form).data('api-entity', 'contact').css({width: '40em', 'max-width': '90%'}).crmSelect2({ diff --git a/civicrm/templates/CRM/Contact/Form/Task/EmailCommon.tpl b/civicrm/templates/CRM/Contact/Form/Task/EmailCommon.tpl index 98663a6357..3d647d57a6 100644 --- a/civicrm/templates/CRM/Contact/Form/Task/EmailCommon.tpl +++ b/civicrm/templates/CRM/Contact/Form/Task/EmailCommon.tpl @@ -41,7 +41,7 @@ </div><!-- /.crm-accordion-body --> </div><!-- /.crm-accordion-wrapper --> <div id="editMessageDetails" class="section"> - {if call_user_func(array('CRM_Core_Permission','check'), 'edit message templates') } + {if call_user_func(array('CRM_Core_Permission','check'), 'edit message templates')} <div id="updateDetails" class="section" > {$form.updateTemplate.html} {$form.updateTemplate.label} </div> diff --git a/civicrm/templates/CRM/Contact/Form/Task/Map/Google.tpl b/civicrm/templates/CRM/Contact/Form/Task/Map/Google.tpl index 13abb925db..18d5f8332d 100644 --- a/civicrm/templates/CRM/Contact/Form/Task/Map/Google.tpl +++ b/civicrm/templates/CRM/Contact/Form/Task/Map/Google.tpl @@ -44,7 +44,7 @@ {if $location.lat} var point = new google.maps.LatLng({$location.lat},{$location.lng}); var image = null; - {if $location.image && ( $location.marker_class neq 'Event' ) } + {if $location.image && ( $location.marker_class neq 'Event' )} image = '{$location.image}'; {else} {if $location.marker_class eq 'Individual'} @@ -67,7 +67,7 @@ {if count($locations) gt 1} map.fitBounds(bounds); map.setMapTypeId(google.maps.MapTypeId.TERRAIN); - {elseif $location.marker_class eq 'Event' || $location.marker_class eq 'Individual'|| $location.marker_class eq 'Household' || $location.marker_class eq 'Organization' } + {elseif $location.marker_class eq 'Event' || $location.marker_class eq 'Individual'|| $location.marker_class eq 'Household' || $location.marker_class eq 'Organization'} map.setZoom({$defaultZoom}); {else} map.setZoom({$defaultZoom}); diff --git a/civicrm/templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl b/civicrm/templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl index d29e018482..c5951aa2a2 100644 --- a/civicrm/templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl +++ b/civicrm/templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl @@ -99,7 +99,7 @@ new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject() ); - {if $location.image && ( $location.marker_class neq 'Event' ) } + {if $location.image && ($location.marker_class neq 'Event')} var image = '{$location.image}'; {else} {if $location.marker_class eq 'Individual'} @@ -121,7 +121,7 @@ map.setCenter(bounds.getCenterLonLat()); {if count($locations) gt 1} map.zoomToExtent(bounds); - {elseif $location.marker_class eq 'Event' || $location.marker_class eq 'Individual'|| $location.marker_class eq 'Household' || $location.marker_class eq 'Organization' } + {elseif $location.marker_class eq 'Event' || $location.marker_class eq 'Individual'|| $location.marker_class eq 'Household' || $location.marker_class eq 'Organization'} map.zoomTo({$defaultZoom}); {else} map.zoomTo({$defaultZoom}); diff --git a/civicrm/templates/CRM/Contact/Form/Task/PDFLetterCommon.hlp b/civicrm/templates/CRM/Contact/Form/Task/PDFLetterCommon.hlp index 7542fbdb61..0316510863 100644 --- a/civicrm/templates/CRM/Contact/Form/Task/PDFLetterCommon.hlp +++ b/civicrm/templates/CRM/Contact/Form/Task/PDFLetterCommon.hlp @@ -24,13 +24,12 @@ | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{php}$this->assign('uploadFormatsSupported', '.' . implode(', .', array_keys(CRM_Utils_PDF_Document::$ooxmlMap)));{/php} {htxt id="template"} <p> {ts}Select a pre-existing template, or upload a document for mail merge.{/ts} </p> <p> - {ts 1=$uploadFormatsSupported}Supported file formats: %1{/ts} + {ts 1="docx, odt"}Supported file formats: docx, odt{/ts} </p> {/htxt} diff --git a/civicrm/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl b/civicrm/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl index 6c88396458..743caf01b4 100644 --- a/civicrm/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl +++ b/civicrm/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl @@ -233,7 +233,7 @@ function selectFormat( val, bind ) { bind = false; } - var dataUrl = {/literal}"{crmURL p='civicrm/ajax/pdfFormat' h=0 }"{literal}; + var dataUrl = {/literal}"{crmURL p='civicrm/ajax/pdfFormat' h=0}"{literal}; cj.post( dataUrl, {formatId: val}, function( data ) { fillFormatInfo(data, bind); }, 'json'); @@ -241,7 +241,7 @@ function selectFormat( val, bind ) { function selectPaper( val ) { - dataUrl = {/literal}"{crmURL p='civicrm/ajax/paperSize' h=0 }"{literal}; + dataUrl = {/literal}"{crmURL p='civicrm/ajax/paperSize' h=0}"{literal}; cj.post( dataUrl, {paperSizeName: val}, function( data ) { cj("#paper_size").val( data.name ); metric = document.getElementById('metric').value; diff --git a/civicrm/templates/CRM/Contact/Form/Task/SMS.tpl b/civicrm/templates/CRM/Contact/Form/Task/SMS.tpl index cde90ede96..0cf9b5c791 100644 --- a/civicrm/templates/CRM/Contact/Form/Task/SMS.tpl +++ b/civicrm/templates/CRM/Contact/Form/Task/SMS.tpl @@ -77,7 +77,7 @@ {literal} CRM.$(function($){ - var sourceDataUrl = "{/literal}{crmURL p='civicrm/ajax/checkphone' h=0 }{literal}"; + var sourceDataUrl = "{/literal}{crmURL p='civicrm/ajax/checkphone' h=0}{literal}"; function phoneSelect(el){ $(el).data('api-entity', 'contact').crmSelect2({ minimumInputLength: 1, diff --git a/civicrm/templates/CRM/Contact/Page/DedupeException.tpl b/civicrm/templates/CRM/Contact/Page/DedupeException.tpl index 1c46d00de5..af8f9f71c8 100644 --- a/civicrm/templates/CRM/Contact/Page/DedupeException.tpl +++ b/civicrm/templates/CRM/Contact/Page/DedupeException.tpl @@ -53,11 +53,11 @@ <td> {assign var="contact1name" value="contact_id1.display_name"} - <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$exception.contact_id1`"}" target="_blank">{ $exception.$contact1name }</a> + <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$exception.contact_id1`"}" target="_blank">{$exception.$contact1name}</a> </td> <td> {assign var="contact2name" value="contact_id2.display_name"} - <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$exception.contact_id2`"}" target="_blank">{ $exception.$contact2name }</a> + <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$exception.contact_id2`"}" target="_blank">{$exception.$contact2name}</a> </td> <td> <a id='duplicateContacts' href="#" title={ts}Remove Exception{/ts} onClick="processDupes( {$exception.contact_id1}, {$exception.contact_id2}, 'nondupe-dupe', 'dedupe-exception' );return false;"><i class="crm-i fa-trash" aria-hidden="true"></i> {ts}Remove Exception{/ts}</a> diff --git a/civicrm/templates/CRM/Contact/Page/View/CustomData.tpl b/civicrm/templates/CRM/Contact/Page/View/CustomData.tpl index f63904e9ae..b2ca3f749d 100644 --- a/civicrm/templates/CRM/Contact/Page/View/CustomData.tpl +++ b/civicrm/templates/CRM/Contact/Page/View/CustomData.tpl @@ -36,7 +36,7 @@ CRM.confirm({ message: '{/literal}{ts escape='js'}Are you sure you want to delete this record?{/ts}{literal}' }).on('crmConfirm:yes', function() { - var postUrl = {/literal}"{crmURL p='civicrm/ajax/customvalue' h=0 }"{literal}; + var postUrl = {/literal}"{crmURL p='civicrm/ajax/customvalue' h=0}"{literal}; var request = $.post(postUrl, $el.data('delete_params')); CRM.status({/literal}"{ts escape='js'}Record Deleted{/ts}"{literal}, request); request.done(function() { diff --git a/civicrm/templates/CRM/Contact/Page/View/Group.tpl b/civicrm/templates/CRM/Contact/Page/View/Group.tpl index bc3343b56c..87d483f9d9 100644 --- a/civicrm/templates/CRM/Contact/Page/View/Group.tpl +++ b/civicrm/templates/CRM/Contact/Page/View/Group.tpl @@ -16,7 +16,7 @@ <div id="groupContact"> <p> <div class="form-item"> - {if $groupCount > 0 } + {if $groupCount > 0} <table> <tr class="columnheader"><th>{ts}Group Listings{/ts}</th><th>{ts}In Date{/ts}</th><th>{ts}Out Date{/ts}</th><th></th></tr> {foreach from=$groupContact item=row} diff --git a/civicrm/templates/CRM/Contact/Page/View/GroupContact.tpl b/civicrm/templates/CRM/Contact/Page/View/GroupContact.tpl index 6a29fc897f..96c4196698 100644 --- a/civicrm/templates/CRM/Contact/Page/View/GroupContact.tpl +++ b/civicrm/templates/CRM/Contact/Page/View/GroupContact.tpl @@ -22,7 +22,7 @@ {include file="CRM/Contact/Form/GroupContact.tpl"} {/if} - {if $groupIn } + {if $groupIn} <div class="ht-one"></div> <h3>{ts}Regular Groups{/ts}</h3> <div class="description">{ts 1=$displayName}%1 has joined or been added to these group(s).{/ts}</div> diff --git a/civicrm/templates/CRM/Contact/Page/View/Log.tpl b/civicrm/templates/CRM/Contact/Page/View/Log.tpl index 11b21f7555..9796b68cd8 100644 --- a/civicrm/templates/CRM/Contact/Page/View/Log.tpl +++ b/civicrm/templates/CRM/Contact/Page/View/Log.tpl @@ -15,7 +15,7 @@ <div class='instance_data'><div class="crm-loading-element"></div></div> {else} <div class="form-item"> - {if $logCount > 0 } + {if $logCount > 0} <table> <tr class="columnheader"><th>{ts}Changed By{/ts}</th><th>{ts}Change Date{/ts}</th></tr> {foreach from=$log item=row} diff --git a/civicrm/templates/CRM/Contact/Page/View/Note.tpl b/civicrm/templates/CRM/Contact/Page/View/Note.tpl deleted file mode 100644 index 279ce5ea42..0000000000 --- a/civicrm/templates/CRM/Contact/Page/View/Note.tpl +++ /dev/null @@ -1,256 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ -*} -<div class="view-content"> -{if $action eq 4}{* when action is view *} - {if $notes} - <div class="crm-block crm-content-block crm-note-view-block"> - <table class="crm-info-panel"> - <tr><td class="label">{ts}Subject{/ts}</td><td>{$note.subject}</td></tr> - <tr><td class="label">{ts}Date:{/ts}</td><td>{$note.note_date|crmDate}</td></tr> - <tr><td class="label">{ts}Modified Date:{/ts}</td><td>{$note.modified_date|crmDate}</td></tr> - <tr><td class="label">{ts}Privacy:{/ts}</td><td>{$note.privacy}</td></tr> - <tr><td class="label">{ts}Note:{/ts}</td><td>{$note.note|nl2br}</td></tr> - - {if $currentAttachmentInfo} - {include file="CRM/Form/attachment.tpl"} - {/if} - </table> - <div class="crm-submit-buttons"> - {crmButton class="cancel" icon="times" p='civicrm/contact/view' q="selectedChild=note&reset=1&cid=`$contactId`"}{ts}Done{/ts}{/crmButton} - </div> - - {if $comments} - <fieldset> - <legend>{ts}Comments{/ts}</legend> - <table class="display"> - <thead> - <tr><th>{ts}Comment{/ts}</th><th>{ts}Created By{/ts}</th><th>{ts}Date{/ts}</th><th>{ts}Modified Date{/ts}</th></tr> - </thead> - {foreach from=$comments item=comment} - <tr class="{cycle values='odd-row,even-row'}"><td>{$comment.note}</td><td>{$comment.createdBy}</td><td>{$comment.note_date}</td><td>{$comment.modified_date}</td></tr> - {/foreach} - </table> - </fieldset> - {/if} - - </div> - {/if} -{elseif $action eq 1 or $action eq 2} {* action is add or update *} - <div class="crm-block crm-form-block crm-note-form-block"> - <table class="form-layout"> - <tr> - <td class="label">{$form.subject.label}</td> - <td> - {$form.subject.html} - </td> - </tr> - <tr> - <td class="label">{$form.note_date.label}</td> - <td>{$form.note_date.html}</td> - </tr> - <tr> - <td class="label">{$form.privacy.label}</td> - <td> - {$form.privacy.html} - </td> - </tr> - <tr> - <td class="label">{$form.note.label}</td> - <td> - {$form.note.html} - </td> - </tr> - <tr class="crm-activity-form-block-attachment"> - <td colspan="2"> - {include file="CRM/Form/attachment.tpl"} - </td> - </tr> - </table> - - <div class="crm-section note-buttons-section no-label"> - <div class="content crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> - <div class="clear"></div> - </div> - </div> -{/if} -{if ($action eq 8)} -<div class=status>{ts 1=$notes.$id.note}Are you sure you want to delete the note '%1'?{/ts}</div> -<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location=''}</div> - -{/if} - -{if ($permission EQ 'edit' OR $canAddNotes) AND ($action eq 16)} - <div class="action-link"> - <a accesskey="N" href="{crmURL p='civicrm/contact/view/note' q="cid=`$contactId`&action=add"}" class="button medium-popup"><span><i class="crm-i fa-comment" aria-hidden="true"></i> {ts}Add Note{/ts}</span></a> - </div> - <div class="clear"></div> -{/if} -<div class="crm-content-block"> - -{if $notes and $action eq 16} - -<script type="text/javascript"> - var commentAction = '{$commentAction|escape:quotes}' - - {literal} - var commentRows = {}; - - function showHideComments( noteId ) { - - elRow = cj('tr#Note-'+ noteId) - - if (elRow.hasClass('view-comments')) { - cj('tr.note-comment_'+ noteId).remove() - commentRows['Note-'+ noteId] = {}; - cj('tr#Note-'+ noteId +' span.icon_comments_show').show(); - cj('tr#Note-'+ noteId +' span.icon_comments_hide').hide(); - elRow.removeClass('view-comments'); - } else { - var getUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0}"{literal}; - cj.post(getUrl, { fnName: 'civicrm/note/tree_get', json: 1, id: noteId, sequential: 1 }, showComments, 'json' ); - } - - } - - function showComments (response) { - var urlTemplate = '{/literal}{crmURL p='civicrm/contact/view' q="reset=1&cid=" h=0 }{literal}' - if (response['values'][0] && response['values'][0].entity_id) { - var noteId = response['values'][0].entity_id - var row = cj('tr#Note-'+ noteId); - - row.addClass('view-comments'); - - if (row.hasClass('odd') ) { - var rowClassOddEven = 'odd' - } else { - var rowClassOddEven = 'even' - } - - if ( commentRows['Note-'+ noteId] ) { - for ( var i in commentRows['Note-'+ noteId] ) { - return false; - } - } else { - commentRows['Note-'+ noteId] = {}; - } - for (i in response['values']) { - if ( response['values'][i].id ) { - if ( commentRows['Note-'+ noteId] && - commentRows['Note-'+ noteId][response['values'][i].id] ) { - continue; - } - str = '<tr id="Note-'+ response['values'][i].id +'" class="'+ rowClassOddEven +' note-comment_'+ noteId +'">' - + '<td></td>' - + '<td style="padding-left: 2em">' - + response['values'][i].note - + '</td><td>' - + response['values'][i].subject - + '</td><td>' - + response['values'][i].note_date - + '</td><td>' - + response['values'][i].modified_date - + '</td><td>' - + '<a href="'+ urlTemplate + response['values'][i].createdById +'">'+ response['values'][i].createdBy +'</a>' - + '</td><td>' - + response['values'][i].attachment - + '</td><td>'+ commentAction.replace(/{cid}/g, response['values'][i].createdById).replace(/{id}/g, response['values'][i].id) +'</td></tr>' - - commentRows['Note-'+ noteId][response['values'][i].id] = str; - } - } - drawCommentRows('Note-'+ noteId); - - cj('tr#Note-'+ noteId +' span.icon_comments_show').hide(); - cj('tr#Note-'+ noteId +' span.icon_comments_hide').show(); - } else { - CRM.alert('{/literal}{ts escape="js"}There are no comments for this note{/ts}{literal}', '{/literal}{ts escape="js"}None Found{/ts}{literal}', 'alert'); - } - - } - - function drawCommentRows(rowId) { - if (rowId) { - row = cj('tr#'+ rowId) - for (i in commentRows[rowId]) { - row.after(commentRows[rowId][i]); - row = cj('tr#Note-'+ i); - } - } - } - - {/literal} -</script> - -<div class="crm-results-block"> -{* show browse table for any action *} -<div id="notes"> - {strip} - <table id="options" class="display crm-sortable" data-order='[[3,"desc"]]'> - <thead> - <tr> - <th data-orderable="false"></th> - <th>{ts}Note{/ts}</th> - <th>{ts}Subject{/ts}</th> - <th>{ts}Date{/ts}</th> - <th>{ts}Modified Date{/ts}</th> - <th>{ts}Created By{/ts}</th> - <th data-orderable="false">{ts}Attachment(s){/ts}</th> - <th data-orderable="false"></th> - </tr> - </thead> - - {foreach from=$notes item=note} - <tr id="Note-{$note.id}" data-action="setvalue" class="{cycle values="odd-row,even-row"} crm-note crm-entity"> - <td class="crm-note-comment"> - {if $note.comment_count} - <span id="{$note.id}_show" style="display:block" class="icon_comments_show"> - <a href="#" onclick="showHideComments({$note.id}); return false;" title="{ts}Show comments for this note.{/ts}"><i class="crm-i fa-caret-right" aria-hidden="true"></i></span></a> - </span> - <span id="{$note.id}_hide" style="display:none" class="icon_comments_hide"> - <a href="#" onclick="showHideComments({$note.id}); return false;" title="{ts}Hide comments for this note.{/ts}"><i class="crm-i fa-caret-down" aria-hidden="true"></i></span></a> - </span> - {else} - <span class="crm-i fa-caret-right" id="{$note.id}_hide" style="display:none" aria-hidden="true"></span> - {/if} - </td> - <td class="crm-note-note"> - {$note.note|mb_truncate:80:"...":false|nl2br} - {* Include '(more)' link to view entire note if it has been truncated *} - {assign var="noteSize" value=$note.note|crmCountCharacters:true} - {if $noteSize GT 80} - <a class="crm-popup" href="{crmURL p='civicrm/contact/view/note' q="action=view&selectedChild=note&reset=1&cid=`$contactId`&id=`$note.id`"}">{ts}(more){/ts}</a> - {/if} - </td> - <td class="crm-note-subject crmf-subject crm-editable">{$note.subject}</td> - <td class="crm-note-note_date" data-order="{$note.note_date}">{$note.note_date|crmDate}</td> - <td class="crm-note-modified_date" data-order="{$note.modified_date}">{$note.modified_date|crmDate}</td> - <td class="crm-note-createdBy"> - <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$note.contact_id`"}">{$note.createdBy}</a> - </td> - <td class="crm-note-attachment"> - {foreach from=$note.attachment item=fileinfo} - {$fileinfo} - {/foreach} - </td> - <td class="nowrap">{$note.action|replace:'xx':$note.id}</td> - </tr> - {/foreach} - </table> - {/strip} - </div> -</div> -{elseif ($action eq 16)} - <div class="messages status no-popup"> - {icon icon="fa-info-circle"}{/icon} - {ts}There are no Notes for this contact.{/ts} - </div> -{/if} -</div> -</div> diff --git a/civicrm/templates/CRM/Contact/Page/View/Relationship.tpl b/civicrm/templates/CRM/Contact/Page/View/Relationship.tpl index bdc7ac33cd..85284373a5 100644 --- a/civicrm/templates/CRM/Contact/Page/View/Relationship.tpl +++ b/civicrm/templates/CRM/Contact/Page/View/Relationship.tpl @@ -7,44 +7,9 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{* Relationship tab within View Contact - browse, and view relationships for a contact *} -{if $action eq 4 } {* action = view *} +{* Overloaded template for viewing, editing and deleting a relationship *} +{if $action eq 4} {* action = view *} {include file="CRM/Contact/Page/View/ViewRelationship.tpl"} -{elseif $action neq 16} {* add, update *} +{else} {* add, update, delete *} {include file="CRM/Contact/Form/Relationship.tpl"} -{else} - <div id="contact-summary-relationship-tab" class="view-content"> - {if $permission EQ 'edit'} - <div class="action-link"> - {crmButton accesskey="N" p='civicrm/contact/view/rel' q="cid=`$contactId`&action=add&reset=1" icon="plus-circle"}{ts}Add Relationship{/ts}{/crmButton} - </div> - {/if} - - {* display current relationships *} - <h3>{ts}Current Relationships{/ts}</h3> - <div id="permission-legend" class="help"> - <span class="crm-label">{ts}Permissioned Relationships: {/ts}</span> - {include file="CRM/Contact/Page/View/RelationshipPerm.tpl" permType=1 afterText=true} - </div> - {include file="CRM/Contact/Page/View/RelationshipSelector.tpl" context="current"} - - <div class="spacer"></div> - {* display past relationships *} - <h3 class="font-red">{ts}Inactive Relationships{/ts}</h3> - <div class="help">{ts}These relationships are Disabled OR have a past End Date.{/ts}</div> - {include file="CRM/Contact/Page/View/RelationshipSelector.tpl" context="past"} - </div> - - {include file="CRM/common/enableDisableApi.tpl"} - {literal} - <script type="text/javascript"> - CRM.$(function($) { - // Changing relationships may affect related members and contributions. Ensure they are refreshed. - $('#contact-summary-relationship-tab').on('crmPopupFormSuccess', function() { - CRM.tabHeader.resetTab('#tab_contribute'); - CRM.tabHeader.resetTab('#tab_member'); - }); - }); - </script> - {/literal} -{/if} {* close of custom data else*} +{/if} diff --git a/civicrm/templates/CRM/Contact/Page/View/RelationshipPerm.tpl b/civicrm/templates/CRM/Contact/Page/View/RelationshipPerm.tpl index 709b0265c8..04c6dfdb83 100644 --- a/civicrm/templates/CRM/Contact/Page/View/RelationshipPerm.tpl +++ b/civicrm/templates/CRM/Contact/Page/View/RelationshipPerm.tpl @@ -39,12 +39,3 @@ {ts 1=$permDisplayName 2=$otherDisplayName}<strong>%1</strong> can view information about <strong>%2</strong>.{/ts} {/if} {/if} - -{* Used for legend on relationships tab *} -{if $afterText} -{if $permType eq 1} -{ts}This contact can be edited by the other.{/ts} -{else} -{ts}This contact can be viewed by the other.{/ts} -{/if} -{/if} diff --git a/civicrm/templates/CRM/Contact/Page/View/Summary.js b/civicrm/templates/CRM/Contact/Page/View/Summary.js index e07de3e7f0..a5faa0821a 100644 --- a/civicrm/templates/CRM/Contact/Page/View/Summary.js +++ b/civicrm/templates/CRM/Contact/Page/View/Summary.js @@ -403,6 +403,12 @@ } } + // Changing relationships may affect related members and contributions. Ensure they are refreshed. + $('#contact-rel').on('crmPopupFormSuccess', function() { + CRM.tabHeader.resetTab('#tab_contribute'); + CRM.tabHeader.resetTab('#tab_member'); + }); + onResize(); $(window).resize(onResize); }); diff --git a/civicrm/templates/CRM/Contact/Page/View/UserDashBoard/GroupContact.tpl b/civicrm/templates/CRM/Contact/Page/View/UserDashBoard/GroupContact.tpl index ab39980a66..14d50e53c7 100644 --- a/civicrm/templates/CRM/Contact/Page/View/UserDashBoard/GroupContact.tpl +++ b/civicrm/templates/CRM/Contact/Page/View/UserDashBoard/GroupContact.tpl @@ -14,14 +14,14 @@ {/crmRegion} <div id="groupContact"> <div class="view-content"> - {if $groupCount eq 0 } + {if $groupCount eq 0} <div class="messages status no-popup"> {icon icon="fa-info-circle"}{/icon} {ts}You are not currently subscribed to any Groups.{/ts} </div> {/if} - {if $groupIn } + {if $groupIn} <div class="form-item"> <div> {strip} @@ -55,7 +55,7 @@ {include file="CRM/Contact/Form/GroupContact.tpl"} {/if} - {if $groupPending } + {if $groupPending} <div class="form-item"> <div class="label status-pending">{ts}Pending Subscriptions{/ts}</div> <div class="description">{ts}Your subscription to these group(s) is pending confirmation.{/ts}</div> @@ -86,7 +86,7 @@ </div> {/if} - {if $groupOut } + {if $groupOut} <div class="form-item"> <div class="label status-removed">{ts}Unsubscribed Groups{/ts}</div> <div class="description">{ts}You are no longer subscribed to these group(s). Click Rejoin Group if you want to re-subscribe.{/ts}</div> diff --git a/civicrm/templates/CRM/Contact/Page/View/ViewRelationship.tpl b/civicrm/templates/CRM/Contact/Page/View/ViewRelationship.tpl index 831145e6c1..5a951edf74 100644 --- a/civicrm/templates/CRM/Contact/Page/View/ViewRelationship.tpl +++ b/civicrm/templates/CRM/Contact/Page/View/ViewRelationship.tpl @@ -18,7 +18,7 @@ <tr><td class="label">{ts}Description{/ts}</td><td>{$row.description}</td></tr> {/if} {foreach from=$viewNote item="rec"} - {if $rec } + {if $rec} <tr><td class="label">{ts}Note{/ts}</td><td>{$rec}</td></tr> {/if} {/foreach} diff --git a/civicrm/templates/CRM/Contribute/Form/AdditionalInfo/Premium.tpl b/civicrm/templates/CRM/Contribute/Form/AdditionalInfo/Premium.tpl index 143603cd34..98afb93284 100644 --- a/civicrm/templates/CRM/Contribute/Form/AdditionalInfo/Premium.tpl +++ b/civicrm/templates/CRM/Contribute/Form/AdditionalInfo/Premium.tpl @@ -12,7 +12,7 @@ <table class="form-layout-compressed"> <tr class="crm-contribution-form-block-product_name"> <td class="label">{$form.product_name.label}</td> - <td class="html-adjust">{$form.product_name.html}</td> + <td class="html-adjust">{$form.product_name.html|smarty:nodefaults}</td> </tr> </table> @@ -50,7 +50,7 @@ } {/literal} var index = 1; - {foreach from= $mincontribution item=amt key=id} + {foreach from=$mincontribution item=amt key=id} {literal}amount[index]{/literal} = "{$amt}" {literal}index = index + 1{/literal} {/foreach} diff --git a/civicrm/templates/CRM/Contribute/Form/Contribution.tpl b/civicrm/templates/CRM/Contribute/Form/Contribution.tpl index 9b0c1a46c3..0e6c1cabc3 100644 --- a/civicrm/templates/CRM/Contribute/Form/Contribution.tpl +++ b/civicrm/templates/CRM/Contribute/Form/Contribution.tpl @@ -10,7 +10,7 @@ {* this template is used for adding/editing/deleting contributions and pledge payments *} {if $priceSetId} - {include file="CRM/Price/Form/PriceSet.tpl" context="standalone" extends="Contribution"} + {include file="CRM/Price/Form/PriceSet.tpl" context="standalone" extends="Contribution" hideTotal=false} {elseif !empty($showAdditionalInfo) and !empty($formType)} {include file="CRM/Contribute/Form/AdditionalInfo/$formType.tpl"} {else} @@ -143,7 +143,7 @@ <tr class="crm-contribution-form-block-contribution_status_id"> <td class="label">{$form.contribution_status_id.label}</td> <td>{$form.contribution_status_id.html} - {if $contribution_status_id eq 2}{if $is_pay_later }: {ts}Pay Later{/ts} {else}: {ts}Incomplete Transaction{/ts}{/if}{/if} + {if $contribution_status_id eq 2}{if $is_pay_later}: {ts}Pay Later{/ts} {else}: {ts}Incomplete Transaction{/ts}{/if}{/if} </td> <td> {if !$isUsePaymentBlock && $contactId && $contribution_status_id eq 2 && $contribID && $contributionMode EQ null} @@ -205,7 +205,7 @@ <span class="description">{ts 1=$email}Automatically email a receipt for this payment to %1?{/ts}</span> </td> </tr> - {elseif empty($is_template) and $context eq 'standalone' and $outBound_option != 2 } + {elseif empty($is_template) and $context eq 'standalone' and $outBound_option != 2} <tr id="email-receipt" style="display:none;" class="crm-contribution-form-block-is_email_receipt"> <td class="label">{$form.is_email_receipt.label}</td> <td>{$form.is_email_receipt.html} @@ -316,7 +316,7 @@ <!-- end of PCP --> {if !$payNow} - {include file="CRM/common/customDataBlock.tpl"} + {include file="CRM/common/customDataBlock.tpl" cid=$contactId} {/if} {literal} @@ -591,10 +591,10 @@ var freezeFinancialType = '{/literal}{$freezeFinancialType}{literal}'; if (!freezeFinancialType) { var financialType = $('#financial_type_id').val(); - var taxRates = '{/literal}{$taxRates}{literal}'; + var taxRates = '{/literal}{$taxRates|smarty:nodefaults}{literal}'; var taxTerm = '{/literal}{$taxTerm}{literal}'; taxRates = JSON.parse(taxRates); - var currencies = '{/literal}{$currencies}{literal}'; + var currencies = '{/literal}{$currencies|smarty:nodefaults}{literal}'; currencies = JSON.parse(currencies); var currencySelect = $('#currency').val(); var currencySymbol = currencies[currencySelect]; diff --git a/civicrm/templates/CRM/Contribute/Form/Contribution/Confirm.tpl b/civicrm/templates/CRM/Contribute/Form/Contribution/Confirm.tpl index d0de9b5044..5b13d71471 100644 --- a/civicrm/templates/CRM/Contribute/Form/Contribution/Confirm.tpl +++ b/civicrm/templates/CRM/Contribute/Form/Contribution/Confirm.tpl @@ -26,10 +26,10 @@ {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl"} - {if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $isDisplayLineItems and $lineItem ) } + {if $amount GTE 0 OR $minimum_fee GTE 0 OR ($isDisplayLineItems and $lineItem)} <div class="crm-group amount_display-group"> <div class="header-dark"> - {if !$membershipBlock AND $amount OR ( $isDisplayLineItems and $lineItem ) }{ts}Contribution Amount{/ts}{else}{ts}Membership Fee{/ts} {/if} + {if !$membershipBlock AND $amount OR ($isDisplayLineItems and $lineItem)}{ts}Contribution Amount{/ts}{else}{ts}Membership Fee{/ts} {/if} </div> <div class="display-block"> @@ -37,7 +37,7 @@ {if !$amount}{assign var="amount" value=0}{/if} {assign var="totalAmount" value=$amount} {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"} - {elseif $is_separate_payment } + {elseif $is_separate_payment} {if $amount AND $minimum_fee} {$membership_name} {ts}Membership{/ts}: <strong>{$minimum_fee|crmMoney}</strong> @@ -50,23 +50,23 @@ {ts}Total{/ts}: <strong>{$amount+$minimum_fee|crmMoney}</strong> <br/> - {elseif $amount } + {elseif $amount} {ts}Amount{/ts}: - <strong>{$amount|crmMoney} {if $amount_level }<span class='crm-price-amount-label'> + <strong>{$amount|crmMoney} {if $amount_level}<span class='crm-price-amount-label'> – {$amount_level}</span>{/if}</strong> {else} {$membership_name} {ts}Membership{/ts}: <strong>{$minimum_fee|crmMoney}</strong> {/if} {else} - {if $totalTaxAmount } + {if $totalTaxAmount} {ts 1=$taxTerm}Total %1 Amount{/ts}: <strong>{$totalTaxAmount|crmMoney} </strong> <br/> {/if} {if $amount} {if $installments}{ts}Installment Amount{/ts}{else}{ts}Total Amount{/ts}{/if}: - <strong>{$amount|crmMoney:$currency}{if $amount_level }<span class='crm-price-amount-label'> + <strong>{$amount|crmMoney:$currency}{if $amount_level}<span class='crm-price-amount-label'> – {$amount_level}</span>{/if}</strong> {else} {$membership_name} {ts}Membership{/ts}: @@ -131,7 +131,7 @@ {/if} {/if} - {if $is_pledge } + {if $is_pledge} {if $pledge_frequency_interval GT 1} <p> <strong>{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %1 %2s for %3 installments.{/ts}</strong> @@ -153,7 +153,7 @@ {if $onbehalfProfile && $onbehalfProfile|@count} <div class="crm-group onBehalf_display-group label-left crm-profile-view"> - {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'} + {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf' hideFieldset=false} </div> {/if} @@ -165,7 +165,7 @@ <div class="display-block"> <div class="label-left crm-section honoree_profile-section"> <strong>{$honorName}</strong><br/> - {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'} + {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor' hideFieldset=false} </div> </div> </div> @@ -173,7 +173,7 @@ {if $customPre} <fieldset class="label-left crm-profile-view"> - {include file="CRM/UF/Form/Block.tpl" fields=$customPre} + {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false hideFieldset=false} </fieldset> {/if} @@ -272,11 +272,11 @@ {if $customPost} <fieldset class="label-left crm-profile-view"> - {include file="CRM/UF/Form/Block.tpl" fields=$customPost} + {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false hideFieldset=false} </fieldset> {/if} - {if $contributeMode NEQ 'notify' and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) } {* In 'notify mode, contributor is taken to processor payment forms next *} + {if $contributeMode NEQ 'notify' and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )} {* In 'notify mode, contributor is taken to processor payment forms next *} <div class="messages status continue_instructions-section"> <p> {if $is_pay_later OR $amount LE 0.0} diff --git a/civicrm/templates/CRM/Contribute/Form/Contribution/Main.tpl b/civicrm/templates/CRM/Contribute/Form/Contribution/Main.tpl index b7f75bb871..08c54321bc 100644 --- a/civicrm/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/civicrm/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -50,7 +50,7 @@ {include file="CRM/Contribute/Form/Contribution/PreviewHeader.tpl"} {/if} - {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') } + {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM')} {capture assign="buttonTitle"}{ts}Configure Contribution Page{/ts}{/capture} {crmButton target="_blank" p="civicrm/admin/contribute/settings" q="reset=1&action=update&id=`$contributionPageID`" fb=1 title="$buttonTitle" icon="fa-wrench"}{ts}Configure{/ts}{/crmButton} <div class='clear'></div> @@ -94,14 +94,14 @@ {/if} {else} <div id="priceset-div"> - {include file="CRM/Price/Form/PriceSet.tpl" extends="Contribution"} + {include file="CRM/Price/Form/PriceSet.tpl" extends="Contribution" hideTotal=$quickConfig} </div> {/if} {if !$ccid} {crmRegion name='contribution-main-pledge-block'} {if $pledgeBlock} - {if $is_pledge_payment} + {if array_key_exists('pledge_amount', $form)} <div class="crm-public-form-item crm-section {$form.pledge_amount.name}-section"> <div class="label">{$form.pledge_amount.label} <span class="crm-marker">*</span></div> <div class="content">{$form.pledge_amount.html}</div> @@ -112,7 +112,7 @@ <div class="label"> </div> <div class="content"> {$form.is_pledge.html} - {if $is_pledge_interval} + {if array_key_exists('pledge_frequency_interval', $form)} {$form.pledge_frequency_interval.html} {/if} {$form.pledge_frequency_unit.html}<span id="pledge_installments_num"> {ts}for{/ts} {$form.pledge_installments.html} {ts}installments.{/ts}</span> @@ -169,7 +169,7 @@ </div> {/if} {if $showMainEmail} - {assign var=n value=email-$bltID} + {assign var=n value="email-`$bltID`"} <div class="crm-public-form-item crm-section {$form.$n.name}-section"> <div class="label">{$form.$n.label}</div> <div class="content"> @@ -208,13 +208,13 @@ {/if} {/crmRegion} <div id="honorType" class="honoree-name-email-section"> - {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'} + {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor' hideFieldset=true} </div> </fieldset> {/if} <div class="crm-public-form-item crm-group custom_pre_profile-group"> - {include file="CRM/UF/Form/Block.tpl" fields=$customPre} + {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false hideFieldset=false} </div> {if array_key_exists('pcp_display_in_roll', $form)} @@ -283,7 +283,7 @@ {include file="CRM/Core/BillingBlockWrapper.tpl"} <div class="crm-public-form-item crm-group custom_post_profile-group"> - {include file="CRM/UF/Form/Block.tpl" fields=$customPost} + {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false hideFieldset=false} </div> <div id="crm-submit-buttons" class="crm-submit-buttons"> @@ -323,7 +323,7 @@ function toggleRecur() { var isRecur = cj('input[id="is_recur"]:checked'); var allowAutoRenew = {/literal}'{$allowAutoRenewMembership}'{literal}; - var quickConfig = {/literal}{$quickConfig}{literal}; + var quickConfig = {/literal}'{$quickConfig}'{literal}; if (allowAutoRenew && cj("#auto_renew") && quickConfig) { showHideAutoRenew(null); } diff --git a/civicrm/templates/CRM/Contribute/Form/Contribution/MainMembershipBlock.tpl b/civicrm/templates/CRM/Contribute/Form/Contribution/MainMembershipBlock.tpl index 4c83e629cd..23b2f2b4de 100644 --- a/civicrm/templates/CRM/Contribute/Form/Contribution/MainMembershipBlock.tpl +++ b/civicrm/templates/CRM/Contribute/Form/Contribution/MainMembershipBlock.tpl @@ -47,7 +47,7 @@ {/if} {/foreach} {/if} - {include file="CRM/Price/Form/PriceSet.tpl" extends="Membership"} + {include file="CRM/Price/Form/PriceSet.tpl" extends="Membership" hideTotal=$quickConfig} </fieldset> </div> {literal} @@ -78,7 +78,7 @@ <table id="membership-listings"> {foreach from=$membershipTypes item=row} <tr class="odd-row" valign="top"> - {if $showRadio } + {if $showRadio} {* unreachable - show radio is never true *} {assign var="pid" value=$row.id} <td style="width: 1em;">{$form.selectMembership.$pid.html}</td> @@ -87,7 +87,7 @@ {/if} <td style="width: auto;"> <span class="bold">{$row.name} - {if ($membershipBlock.display_min_fee) AND $row.minimum_fee GT 0 } + {if ($membershipBlock.display_min_fee) AND $row.minimum_fee GT 0} {if $is_separate_payment OR ! $form.amount.label} – {$row.minimum_fee|crmMoney} {else} @@ -126,7 +126,7 @@ </tr> {/if} {if $showRadio}{* unreachable *} - {if $showRadioNoThanks } {* Provide no-thanks option when Membership signup is not required - per membership block configuration. *} + {if $showRadioNoThanks} {* Provide no-thanks option when Membership signup is not required - per membership block configuration. *} <tr class="odd-row"> <td>{$form.selectMembership.no_thanks.html}</td> <td colspan="2"><strong>{ts}No thank you{/ts}</strong></td> diff --git a/civicrm/templates/CRM/Contribute/Form/Contribution/MembershipBlock.tpl b/civicrm/templates/CRM/Contribute/Form/Contribution/MembershipBlock.tpl index bf6cc6277f..e387bf4b4f 100644 --- a/civicrm/templates/CRM/Contribute/Form/Contribution/MembershipBlock.tpl +++ b/civicrm/templates/CRM/Contribute/Form/Contribution/MembershipBlock.tpl @@ -12,7 +12,7 @@ </div> {if $membershipBlock AND $is_quick_config} <div class="header-dark"> - {if $renewal_mode } + {if $renewal_mode} {if $membershipBlock.renewal_title} {$membershipBlock.renewal_title} {else} diff --git a/civicrm/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl b/civicrm/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl index 73e8d98b03..61bb569467 100644 --- a/civicrm/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl +++ b/civicrm/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl @@ -35,7 +35,7 @@ </div> </div> {/if} - {include file="CRM/UF/Form/Block.tpl" fields=$onBehalfOfFields mode=8 prefix='onbehalf'} + {include file="CRM/UF/Form/Block.tpl" fields=$onBehalfOfFields mode=8 prefix='onbehalf' hideFieldset=true} </fieldset> {/if} {/crmRegion} diff --git a/civicrm/templates/CRM/Contribute/Form/Contribution/PremiumBlock.tpl b/civicrm/templates/CRM/Contribute/Form/Contribution/PremiumBlock.tpl index 286cee5a67..7077c12d75 100644 --- a/civicrm/templates/CRM/Contribute/Form/Contribution/PremiumBlock.tpl +++ b/civicrm/templates/CRM/Contribute/Form/Contribution/PremiumBlock.tpl @@ -69,7 +69,7 @@ <div class="premium-full-description"> {$row.description} </div> - {if $showSelectOptions } + {if $showSelectOptions} {assign var="pid" value="options_"|cat:$row.id} {if $pid} <div class="premium-full-options"> @@ -81,7 +81,7 @@ <p><strong>{$row.options}</strong></p> </div> {/if} - {if ( ($premiumBlock.premiums_display_min_contribution AND $context EQ "makeContribution") OR $preview EQ 1) AND $row.min_contribution GT 0 } + {if (($premiumBlock.premiums_display_min_contribution AND $context EQ "makeContribution") OR $preview EQ 1) AND $row.min_contribution GT 0} <div class="premium-full-min">{ts 1=$row.min_contribution|crmMoney}Minimum: %1{/ts}</div> {/if} <div style="clear:both"></div> diff --git a/civicrm/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl b/civicrm/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl index 0027c64cdf..7f4b6bd036 100644 --- a/civicrm/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl +++ b/civicrm/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl @@ -72,10 +72,10 @@ {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl"} - {if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $priceSetID and $lineItem ) } + {if $amount GTE 0 OR $minimum_fee GTE 0 OR ($priceSetID and $lineItem)} <div class="crm-group amount_display-group"> <div class="header-dark"> - {if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem )}{ts}Contribution Information{/ts}{else}{ts}Membership Fee{/ts}{/if} + {if !$membershipBlock AND $amount OR ($priceSetID and $lineItem)}{ts}Contribution Information{/ts}{else}{ts}Membership Fee{/ts}{/if} </div> <div class="display-block"> @@ -98,13 +98,13 @@ {if $totalTaxAmount} {ts}Tax Amount{/ts}: <strong>{$totalTaxAmount|crmMoney}</strong><br /> {/if} - {if $installments}{ts}Installment Amount{/ts}{else}{ts}Amount{/ts}{/if}: <strong>{$amount|crmMoney:$currency}{if $amount_level } – {$amount_level}{/if}</strong> + {if $installments}{ts}Installment Amount{/ts}{else}{ts}Amount{/ts}{/if}: <strong>{$amount|crmMoney:$currency}{if $amount_level} – {$amount_level}{/if}</strong> {/if} {if $receive_date} {ts}Date{/ts}: <strong>{$receive_date|crmDate}</strong><br /> {/if} - {if $contributeMode ne 'notify' and $is_monetary and ! $is_pay_later and $trxn_id} + {if $trxn_id} {ts}Transaction #{/ts}: {$trxn_id}<br /> {/if} {if $membership_trx_id} @@ -200,7 +200,7 @@ {if $onbehalfProfile && $onbehalfProfile|@count} <div class="crm-group onBehalf_display-group label-left crm-profile-view"> - {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'} + {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf' hideFieldset=false} </div> {/if} @@ -212,7 +212,7 @@ <div class="display-block"> <div class="label-left crm-section honoree_profile-section"> <strong>{$honorName}</strong><br/> - {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields prefix='honor'} + {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields prefix='honor' hideFieldset=false} </div> </div> </div> @@ -220,7 +220,7 @@ {if $customPre} <fieldset class="label-left crm-profile-view"> - {include file="CRM/UF/Form/Block.tpl" fields=$customPre} + {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false hideFieldset=false} </fieldset> {/if} @@ -246,35 +246,31 @@ </div> {/if} - {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email } - {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) } - {if $billingName or $address} - <div class="crm-group billing_name_address-group"> - <div class="header-dark"> + {if $billingName or $address} + <div class="crm-group billing_name_address-group"> + <div class="header-dark"> {ts}Billing Name and Address{/ts} - </div> - <div class="crm-section no-label billing_name-section"> - <div class="content">{$billingName}</div> - <div class="clear"></div> - </div> - <div class="crm-section no-label billing_address-section"> - <div class="content">{$address|nl2br}</div> - <div class="clear"></div> - </div> </div> - {/if} - {/if} - {if !$emailExists} - <div class="crm-group contributor_email-group"> - <div class="header-dark"> - {ts}Your Email{/ts} + <div class="crm-section no-label billing_name-section"> + <div class="content">{$billingName}</div> + <div class="clear"></div> </div> - <div class="crm-section no-label contributor_email-section"> - <div class="content">{$email}</div> + <div class="crm-section no-label billing_address-section"> + <div class="content">{$address|nl2br}</div> <div class="clear"></div> </div> </div> {/if} + {if !$emailExists && $email} + <div class="crm-group contributor_email-group"> + <div class="header-dark"> + {ts}Your Email{/ts} + </div> + <div class="crm-section no-label contributor_email-section"> + <div class="content">{$email}</div> + <div class="clear"></div> + </div> + </div> {/if} {if in_array('credit_card_number', $form) || in_array('bank_account_number', $form) && ($amount GT 0 OR $minimum_fee GT 0)} @@ -308,7 +304,7 @@ {if $customPost} <fieldset class="label-left crm-profile-view"> - {include file="CRM/UF/Form/Block.tpl" fields=$customPost} + {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false hideFieldset=false} </fieldset> {/if} diff --git a/civicrm/templates/CRM/Contribute/Form/ContributionPage/AddProduct.tpl b/civicrm/templates/CRM/Contribute/Form/ContributionPage/AddProduct.tpl index 75725faa39..c907f86506 100644 --- a/civicrm/templates/CRM/Contribute/Form/ContributionPage/AddProduct.tpl +++ b/civicrm/templates/CRM/Contribute/Form/ContributionPage/AddProduct.tpl @@ -9,7 +9,7 @@ *} {crmRegion name="contribute-form-contributionpage-addproduct-main"} {capture assign=managePremiumsURL}{crmURL p='civicrm/admin/contribute/managePremiums' q="reset=1"}{/capture} -<h3>{if $action eq 2 }{ts}Add Products to This Page{/ts} {elseif $action eq 1024}{ts}Preview{/ts}{else} {ts}Remove Products from this Page{/ts}{/if}</h3> +<h3>{if $action eq 2}{ts}Add Products to This Page{/ts} {elseif $action eq 1024}{ts}Preview{/ts}{else} {ts}Remove Products from this Page{/ts}{/if}</h3> <div class="crm-block crm-form-block crm-contribution-add_product-form-block"> <div class="help"> {if $action eq 1024} @@ -33,7 +33,7 @@ <tr class="crm-contribution-form-block-financial_type"> <td class="label">{$form.financial_type_id.label}</td> <td> - {if !$financialType } + {if !$financialType} {capture assign=ftUrl}{crmURL p='civicrm/admin/financial/financialType' q="reset=1"}{/capture} {ts 1=$ftUrl}There are no financial types configured with linked 'Cost of Sales Premiums' and 'Premiums Inventory Account' accounts. If you want to generate accounting transactions which track the cost of premiums used <a href='%1'>click here</a> to configure financial types and accounts.{/ts} {else} diff --git a/civicrm/templates/CRM/Contribute/Form/ContributionPage/Amount.tpl b/civicrm/templates/CRM/Contribute/Form/ContributionPage/Amount.tpl index bc75790925..7f2d19e901 100644 --- a/civicrm/templates/CRM/Contribute/Form/ContributionPage/Amount.tpl +++ b/civicrm/templates/CRM/Contribute/Form/ContributionPage/Amount.tpl @@ -455,7 +455,7 @@ message: {/literal}"{ts escape='js'}Once you switch to using a Price Set, you won't be able to switch back to your existing settings below except by re-entering them. Are you sure you want to switch to a Price Set?{/ts}"{literal} }).on('crmConfirm:yes', function() { {/literal} - var dataUrl = '{crmURL p="civicrm/ajax/rest" h=0 q="className=CRM_Core_Page_AJAX&fnName=setIsQuickConfig&context=civicrm_contribution_page&id=$contributionPageID" }'; + var dataUrl = '{crmURL p="civicrm/ajax/rest" h=0 q="className=CRM_Core_Page_AJAX&fnName=setIsQuickConfig&context=civicrm_contribution_page&id=$contributionPageID"}'; {literal} $.getJSON(dataUrl).done(function(result) {window.location = CRM.url("civicrm/admin/price/field", {reset: 1, action: 'browse', sid: result});}); }); diff --git a/civicrm/templates/CRM/Contribute/Form/ContributionPage/Tab.hlp b/civicrm/templates/CRM/Contribute/Form/ContributionPage/Tab.hlp index 74944271f7..0ad6f249ca 100644 --- a/civicrm/templates/CRM/Contribute/Form/ContributionPage/Tab.hlp +++ b/civicrm/templates/CRM/Contribute/Form/ContributionPage/Tab.hlp @@ -13,49 +13,49 @@ {htxt id="id-configure-contrib-pages"} <table> <tr> - <td><a href="{crmURL p='civicrm/admin/contribute/settings' q="reset=1&action=update&id=`$contributionPageID`"}" id="idContribPageSettings"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Title and Settings{/ts}</a></td> + <td><a href="{crmURL p="civicrm/admin/contribute/settings" q="reset=1&action=update&id=`$contributionPageID`"}" id="idContribPageSettings"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Title and Settings{/ts}</a></td> <td>{ts}Use this form to edit the page title, financial type (e.g. donation, campaign contribution, etc.), goal amount, introduction, and status (active/inactive) for this online contribution page.{/ts}</td> </tr> <tr> - <td><a href="{crmURL p='civicrm/admin/contribute/amount' q="reset=1&action=update&id=`$contributionPageID`"}" id="idAmount"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Amount{/ts}</a></td> + <td><a href="{crmURL p="civicrm/admin/contribute/amount" q="reset=1&action=update&id=`$contributionPageID`"}" id="idAmount"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Amount{/ts}</a></td> <td>{ts}Use this form to configure Contribution Amount options. You can give contributors the ability to enter their own contribution amounts and/or provide a fixed list of amounts. For fixed amounts, you can enter a label for each 'level' of contribution (e.g. Friend, Sustainer, etc.). If you allow people to enter their own dollar amounts, you can also set minimum and maximum values. Depending on your choice of Payment Processor, you may be able to offer a recurring contribution option.{/ts}</td> </tr> <tr> - <td><a href="{crmURL p='civicrm/admin/contribute/membership' q="reset=1&action=update&id=`$contributionPageID`"}" id="idMembership"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Memberships{/ts}</a></td> + <td><a href="{crmURL p="civicrm/admin/contribute/membership" q="reset=1&action=update&id=`$contributionPageID`"}" id="idMembership"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Memberships{/ts}</a></td> <td>{ts}Use this form to enable and configure a Membership Signup and Renewal section for this Online Contribution Page. If you're not using this page for membership signup, leave the Enabled box un-checked.{/ts}</td> </tr> <tr> - <td><a href="{crmURL p='civicrm/admin/contribute/thankYou' q="reset=1&action=update&id=`$contributionPageID`"}" id="idThanks"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Thank-you and Receipting{/ts}</a></td> + <td><a href="{crmURL p="civicrm/admin/contribute/thankYou" q="reset=1&action=update&id=`$contributionPageID`"}" id="idThanks"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Thank-you and Receipting{/ts}</a></td> <td>{ts}Use this form to configure the thank-you message and receipting options. Contributors will see a confirmation and thank-you page after whenever an online contribution is successfully processed. You provide the content and layout of the thank-you section below. You also control whether an electronic receipt is automatically emailed to each contributor, and you can add a custom message to that receipt.{/ts}</td> </tr> <tr> - <td><a href="{crmURL p='civicrm/admin/contribute/friend' q="reset=1&action=update&id=`$contributionPageID`"}" id="idFriend"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Tell a Friend{/ts}</a></td> + <td><a href="{crmURL p="civicrm/admin/contribute/friend" q="reset=1&action=update&id=`$contributionPageID`"}" id="idFriend"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Tell a Friend{/ts}</a></td> <td>{ts}Tell a Friend gives your contributors an easy way to spread the word about this fundraising campaign. The contribution thank-you page will include a link to a form where they can enter their friends' email addresses, along with a personalized message. CiviCRM will record these solicitation activities, and will add the friends to your database.{/ts}</td> </tr> <tr> - <td><a href="{crmURL p='civicrm/admin/contribute/custom' q="reset=1&action=update&id=`$contributionPageID`"}" id="idCustom"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Include Profiles{/ts}</a></td> + <td><a href="{crmURL p="civicrm/admin/contribute/custom" q="reset=1&action=update&id=`$contributionPageID`"}" id="idCustom"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Include Profiles{/ts}</a></td> <td>{ts}You may want to collect information from contributors beyond what is required to make a contribution. For example, you may want to inquire about volunteer availability and skills. Add any number of fields to your contribution form by selecting CiviCRM Profiles (collections of fields) to include at the beginning of the page, and/or at the bottom.{/ts}<br /> {capture assign=adminGroupURL}{crmURL p="civicrm/admin/uf/group" q="reset=1&action=browse"}{/capture} {ts 1=$adminGroupURL}You can use existing CiviCRM Profiles on your page or create profile(s) specifically for use in Online Contribution pages. Go to <a href="%1"><strong>Administer CiviCRM Profiles</strong></a> if you need to review, modify or create profiles (you can come back at any time to select or update the Profile(s) used for this page).{/ts}</td> </tr> <tr> - <td><a href="{crmURL p='civicrm/admin/contribute/premium q="reset=1&action=update&id=`$contributionPageID`"}" id="idPremium"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Premiums{/ts}</a></td> + <td><a href="{crmURL p="civicrm/admin/contribute/premium" q="reset=1&action=update&id=`$contributionPageID`"}" id="idPremium"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Premiums{/ts}</a></td> <td>{ts}Enable the Premiums section for this Online Contribution Page, and customize the title and introductory message (e.g ...in appreciation of your support, you will be able to select from a number of exciting thank-you gifts...). You can optionally provide a contact email address and/or phone number for inquiries. Then select and review the premiums that you want to offer on this contribution page.{/ts}</td> </tr> <tr> - <td><a href="{crmURL p='civicrm/admin/contribute/widget' q="reset=1&action=update&id=`$contributionPageID`"}" id="idWidget"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Widget{/ts}</a></td> + <td><a href="{crmURL p="civicrm/admin/contribute/widget" q="reset=1&action=update&id=`$contributionPageID`"}" id="idWidget"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Widget{/ts}</a></td> <td>{ts}Widgets allow you and your supporters to easily promote this fund-raising campaign. Widget code can be added to any web page. They will provide a real-time display of current contribution results, and a direct link to this contribution page.{/ts}</td> </tr> <tr> - <td><a href="{crmURL p='civicrm/admin/contribute/pcp' q="reset=1&action=update&id=`$contributionPageID`"}" id="idPCP"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Personal Campaign Pages{/ts}</a></td> + <td><a href="{crmURL p="civicrm/admin/contribute/pcp" q="reset=1&action=update&id=`$contributionPageID`"}" id="idPCP"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Personal Campaign Pages{/ts}</a></td> <td>{ts}Allow constituents to create their own personal fundraising pages linked to this contribution page.{/ts}</td> </tr> <tr> - <td><a href="{crmURL p='civicrm/contribute/transact' q="reset=1&action=preview&id=`$contributionPageID`"}" id="idTest"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Online Contribution{/ts}</a><br /> ({ts}Test-drive{/ts})</td> + <td><a href="{crmURL p="civicrm/contribute/transact" q="reset=1&action=preview&id=`$contributionPageID`"}" id="idTest"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Online Contribution{/ts}</a><br /> ({ts}Test-drive{/ts})</td> <td>{ts}Test-drive the entire contribution process—including custom fields, confirmation, thank-you page, and receipting. Transactions will be directed to your payment processor's test server. No live financial transactions will be submitted. However, a contact record will be created or updated and a test contribution record will be saved to the database. Use obvious test contact names so you can review and delete these records as needed. Test contributions are not visible on the Contributions tab, but can be viewed by searching for 'Test Contributions' in the CiviContribute search form.{/ts}</td> </tr> <tr> - <td><a href="{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageID`"}" id="idLive"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Online Contribution{/ts}</a><br /> ({ts}Live{/ts})</td> + <td><a href="{crmURL p="civicrm/contribute/transact" q="reset=1&id=`$contributionPageID`"}" id="idLive"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Online Contribution{/ts}</a><br /> ({ts}Live{/ts})</td> <td>{ts}Review your customized <strong>LIVE</strong> online contribution page here. Use the following URL in links and buttons on any website to send visitors to this live page:{/ts}<br /> <strong>{crmURL a=1 fe=1 p="civicrm/contribute/transact" q="reset=1&id=`$contributionPageID`"}</strong></td> </tr> diff --git a/civicrm/templates/CRM/Contribute/Form/ContributionView.tpl b/civicrm/templates/CRM/Contribute/Form/ContributionView.tpl index 24a58ca8ef..2983ef3869 100644 --- a/civicrm/templates/CRM/Contribute/Form/ContributionView.tpl +++ b/civicrm/templates/CRM/Contribute/Form/ContributionView.tpl @@ -87,7 +87,7 @@ <td>{$revenue_recognition_date|crmDate:"%B, %Y"}</td> </tr> {/if} - {if $to_financial_account } + {if $to_financial_account} <tr class="crm-contribution-form-block-to_financial_account"> <td class="label">{ts}Received Into{/ts}</td> <td>{$to_financial_account}</td> @@ -151,7 +151,7 @@ </tr> {/if} {foreach from=$note item="rec"} - {if $rec } + {if $rec} <tr class="crm-contribution-form-block-note"> <td class="label">{ts}Note{/ts}</td> <td>{$rec}</td> diff --git a/civicrm/templates/CRM/Contribute/Form/ManagePremiums.tpl b/civicrm/templates/CRM/Contribute/Form/ManagePremiums.tpl index 610fba0b40..8d820b3edc 100644 --- a/civicrm/templates/CRM/Contribute/Form/ManagePremiums.tpl +++ b/civicrm/templates/CRM/Contribute/Form/ManagePremiums.tpl @@ -139,7 +139,7 @@ {/if} <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> </div> -{if $action eq 1 or $action eq 2 } +{if $action eq 1 or $action eq 2} <script type="text/javascript"> {literal} diff --git a/civicrm/templates/CRM/Contribute/Form/PCP/PCPAccount.tpl b/civicrm/templates/CRM/Contribute/Form/PCP/PCPAccount.tpl index c00a5a25f2..66af240594 100644 --- a/civicrm/templates/CRM/Contribute/Form/PCP/PCPAccount.tpl +++ b/civicrm/templates/CRM/Contribute/Form/PCP/PCPAccount.tpl @@ -22,7 +22,7 @@ {else} <div class="form-item"> {include file="CRM/common/CMSUser.tpl"} -{include file="CRM/UF/Form/Block.tpl" fields=$fields} +{include file="CRM/UF/Form/Block.tpl" fields=$fields prefix=false hideFieldset=false} </div> <div class="crm-submit-buttons"> {include file="CRM/common/formButtons.tpl" location="bottom"} diff --git a/civicrm/templates/CRM/Contribute/Form/Selector.tpl b/civicrm/templates/CRM/Contribute/Form/Selector.tpl index 29c9490be2..b418e5e50f 100644 --- a/civicrm/templates/CRM/Contribute/Form/Selector.tpl +++ b/civicrm/templates/CRM/Contribute/Form/Selector.tpl @@ -14,7 +14,7 @@ <table class="selector row-highlight"> <thead class="sticky"> <tr> - {if !$single and $context eq 'Search' } + {if !$single and $context eq 'Search'} <th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th> {/if} {if !$single} @@ -36,8 +36,8 @@ {counter start=0 skip=1 print=false} {foreach from=$rows item=row} <tr id="rowid{$row.contribution_id}" class="{cycle values="odd-row,even-row"} {if $row.contribution_cancel_date} cancelled{/if} crm-contribution_{$row.contribution_id}"> - {if !$single } - {if $context eq 'Search' } + {if !$single} + {if $context eq 'Search'} {assign var=cbName value=$row.checkbox} <td>{$form.$cbName.html}</td> {/if} diff --git a/civicrm/templates/CRM/Contribute/Form/Task.tpl b/civicrm/templates/CRM/Contribute/Form/Task.tpl index 7894215fda..43545bb649 100644 --- a/civicrm/templates/CRM/Contribute/Form/Task.tpl +++ b/civicrm/templates/CRM/Contribute/Form/Task.tpl @@ -9,7 +9,7 @@ *} {ts 1=$totalSelectedContributions}Number of selected contributions: %1{/ts} -{if $rows } +{if $rows} <div class="crm-block crm-form-block crm-contribution-task-form-block"> <table width="30%"> <tr class="columnheader"> diff --git a/civicrm/templates/CRM/Contribute/Form/Task/Print.tpl b/civicrm/templates/CRM/Contribute/Form/Task/Print.tpl index 9e9e20522e..856be1f4e2 100644 --- a/civicrm/templates/CRM/Contribute/Form/Task/Print.tpl +++ b/civicrm/templates/CRM/Contribute/Form/Task/Print.tpl @@ -9,7 +9,7 @@ *} <p> -{if $rows } +{if $rows} <div class="form-item crm-block crm-form-block crm-contribution-form-block"> <span class="element-right">{$form.buttons.html}</span> </div> diff --git a/civicrm/templates/CRM/Contribute/Page/ContributionPage.hlp b/civicrm/templates/CRM/Contribute/Page/ContributionPage.hlp index cb6bbf5919..3c58bfb6da 100644 --- a/civicrm/templates/CRM/Contribute/Page/ContributionPage.hlp +++ b/civicrm/templates/CRM/Contribute/Page/ContributionPage.hlp @@ -11,7 +11,7 @@ {ts}Contribution Pages{/ts} {/htxt} {htxt id="id-intro"} - {capture assign=newPageURL}{crmURL p='civicrm/admin/contribute/add' q='action=add&reset=1'}{/capture} + {capture assign=newPageURL}{crmURL p="civicrm/admin/contribute/add" q="action=add&reset=1"}{/capture} <p>{ts}CiviContribute allows you to create and maintain any number of Online Contribution Pages. You can create different pages for different programs or campaigns, and you can customize text, amounts, types of information collected from contributors, etc.{/ts}</p> {ts}For existing pages{/ts}: <ul class="indented"> diff --git a/civicrm/templates/CRM/Contribute/Page/ContributionPage.tpl b/civicrm/templates/CRM/Contribute/Page/ContributionPage.tpl index 330b87da8f..f3fd1af036 100644 --- a/civicrm/templates/CRM/Contribute/Page/ContributionPage.tpl +++ b/civicrm/templates/CRM/Contribute/Page/ContributionPage.tpl @@ -13,7 +13,7 @@ </div> {include file="CRM/Contribute/Form/SearchContribution.tpl"} - {if NOT ($action eq 1 or $action eq 2) } + {if NOT ($action eq 1 or $action eq 2)} <table class="form-layout-compressed"> <tr> <td><a href="{$newPageURL}" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {ts}Add Contribution Page{/ts}</span></a></td> diff --git a/civicrm/templates/CRM/Contribute/Page/ContributionTotals.tpl b/civicrm/templates/CRM/Contribute/Page/ContributionTotals.tpl index d8c4bdb41f..cc623c8441 100644 --- a/civicrm/templates/CRM/Contribute/Page/ContributionTotals.tpl +++ b/civicrm/templates/CRM/Contribute/Page/ContributionTotals.tpl @@ -22,7 +22,7 @@ </tr> {/if} - {if $contributionSummary } + {if $contributionSummary} <tr> {if $contributionSummary.total.amount} <th class="contriTotalLeft right">{ts}Total{/ts} – {$contributionSummary.total.amount|smarty:nodefaults}</th> diff --git a/civicrm/templates/CRM/Contribute/Page/Premium.tpl b/civicrm/templates/CRM/Contribute/Page/Premium.tpl index d223c9df94..377ff12a2f 100644 --- a/civicrm/templates/CRM/Contribute/Page/Premium.tpl +++ b/civicrm/templates/CRM/Contribute/Page/Premium.tpl @@ -50,7 +50,7 @@ {else} {if $showForm eq false} <div class="messages status no-popup"> - {if $products ne null } + {if $products ne null} {icon icon="fa-info-circle"}{/icon} {capture assign=crmURL}{crmURL p='civicrm/admin/contribute/addProductToPage' q="reset=1&action=update&id=$id"}{/capture} {ts 1=$crmURL}There are no premiums offered on this contribution page yet. You can <a href='%1'>add one</a>.{/ts} diff --git a/civicrm/templates/CRM/Contribute/Page/UserDashboard.tpl b/civicrm/templates/CRM/Contribute/Page/UserDashboard.tpl index 28ea5e4a7e..e60ce0d077 100644 --- a/civicrm/templates/CRM/Contribute/Page/UserDashboard.tpl +++ b/civicrm/templates/CRM/Contribute/Page/UserDashboard.tpl @@ -50,7 +50,7 @@ <a class="button no-popup nowrap" href="{crmURL p='civicrm/contribute/invoice' q=$urlParams}"> <i class="crm-i fa-download" aria-hidden="true"></i> - {if empty($row.contribution_status_name) || (!empty($row.contribution_status_name) && $row.contribution_status_name != 'Refunded' && $row.contribution_status_name != 'Cancelled') } + {if empty($row.contribution_status_name) || (!empty($row.contribution_status_name) && $row.contribution_status_name != 'Refunded' && $row.contribution_status_name != 'Cancelled')} <span>{ts}Download Invoice{/ts}</span> {else} <span>{ts}Download Invoice and Credit Note{/ts}</span> diff --git a/civicrm/templates/CRM/Core/Form/Field.tpl b/civicrm/templates/CRM/Core/Form/Field.tpl index e9237ff450..4666f624a3 100644 --- a/civicrm/templates/CRM/Core/Form/Field.tpl +++ b/civicrm/templates/CRM/Core/Form/Field.tpl @@ -7,16 +7,16 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{if $fieldSpec.template} +{if array_key_exists('template', $fieldSpec) && $fieldSpec.template} {include file=$fieldSpec.template} {else} <td class="label">{$form.$fieldName.label} - {if $fieldSpec.help.id}{help id=$fieldSpec.help.id file=$fieldSpec.help.file}{/if} + {if array_key_exists('help', $fieldSpec) && $fieldSpec.help.id}{help id=$fieldSpec.help.id file=$fieldSpec.help.file}{/if} {if $action == 2 && array_key_exists('is_add_translate_dialog', $fieldSpec)}{include file='CRM/Core/I18n/Dialog.tpl' table=$entityTable field=$fieldName id=$entityID}{/if} </td> <td> - {if $fieldSpec.pre_html_text}{$fieldSpec.pre_html_text}{/if}{if $form.$fieldName.html}{$form.$fieldName.html}{else}{$fieldSpec.place_holder}{/if}{if $fieldSpec.post_html_text}{$fieldSpec.post_html_text}{/if}<br /> - {if $fieldSpec.description}<span class="description">{$fieldSpec.description}</span>{/if} - {if $fieldSpec.documentation_link.page}{docURL page=$fieldSpec.documentation_link.page resource=$fieldSpec.documentation_link.resource}{/if} + {if $form.$fieldName.html}{$form.$fieldName.html}{/if}{if array_key_exists('post_html_text', $fieldSpec) && $fieldSpec.post_html_text}{$fieldSpec.post_html_text}{/if}<br /> + {if array_key_exists('description', $fieldSpec) && $fieldSpec.description}<span class="description">{$fieldSpec.description}</span>{/if} + {if array_key_exists('documentation_link', $fieldSpec) && $fieldSpec.documentation_link.page}{docURL page=$fieldSpec.documentation_link.page resource=$fieldSpec.documentation_link.resource}{/if} </td> {/if} diff --git a/civicrm/templates/CRM/Core/Form/RecurringEntity.tpl b/civicrm/templates/CRM/Core/Form/RecurringEntity.tpl index 3567431ddf..3949653a14 100644 --- a/civicrm/templates/CRM/Core/Form/RecurringEntity.tpl +++ b/civicrm/templates/CRM/Core/Form/RecurringEntity.tpl @@ -13,11 +13,6 @@ {ts 1=$recurringEntityType}Repeat %1{/ts} </div> <div class="crm-accordion-body"> - {if !$recurringFormIsEmbedded} - <div class="crm-submit-buttons"> - {include file="CRM/common/formButtons.tpl" location="top"} - </div> - {/if} <table class="form-layout-compressed"> <tr class="crm-core-form-recurringentity-block-repetition_frequency"> <td class="label">{$form.repetition_frequency_unit.label} <span class="crm-marker">*</span> {help id="id-repeats" entityType=$recurringEntityType file="CRM/Core/Form/RecurringEntity.hlp"}</td> diff --git a/civicrm/templates/CRM/Core/I18n/Dialog.tpl b/civicrm/templates/CRM/Core/I18n/Dialog.tpl index a63991513d..5b7ef692c6 100644 --- a/civicrm/templates/CRM/Core/I18n/Dialog.tpl +++ b/civicrm/templates/CRM/Core/I18n/Dialog.tpl @@ -7,7 +7,7 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{if $config->languageLimit && $config->languageLimit|@count >= 2 and $translatePermission } +{if $config->languageLimit && $config->languageLimit|@count >= 2 and $translatePermission} <a href="{crmURL p='civicrm/i18n' q="reset=1&table=$table&field=$field&id=$id"}" data-field="{$field}" class="crm-hover-button crm-multilingual-edit-button" title="{ts}Languages{/ts}"> <i class="crm-i fa-language fa-lg" aria-hidden="true"></i> </a> diff --git a/civicrm/templates/CRM/Custom/Form/Edit/CustomData.tpl b/civicrm/templates/CRM/Custom/Form/Edit/CustomData.tpl index 8228791b3c..1ac06c2b3b 100644 --- a/civicrm/templates/CRM/Custom/Form/Edit/CustomData.tpl +++ b/civicrm/templates/CRM/Custom/Form/Edit/CustomData.tpl @@ -25,7 +25,7 @@ </table> <div class="spacer"></div> {if $cd_edit.help_post}<div class="messages help">{$cd_edit.help_post}</div>{/if} -{if !$isSingleRecordEdit && $cd_edit.is_multiple and ( ( $cd_edit.max_multiple eq '' ) or ( $cd_edit.max_multiple > 0 and $cd_edit.max_multiple > $cgCount ) ) } +{if !$isSingleRecordEdit && $cd_edit.is_multiple and (($cd_edit.max_multiple eq '') or ($cd_edit.max_multiple > 0 and $cd_edit.max_multiple > $cgCount))} {if $skipTitle} {* We don't yet support adding new records in inline-edit forms *} <div class="messages help"> diff --git a/civicrm/templates/CRM/Custom/Form/Edit/CustomField.tpl b/civicrm/templates/CRM/Custom/Form/Edit/CustomField.tpl index 5a90fb207a..24f0e5b7f4 100644 --- a/civicrm/templates/CRM/Custom/Form/Edit/CustomField.tpl +++ b/civicrm/templates/CRM/Custom/Form/Edit/CustomField.tpl @@ -18,15 +18,15 @@ <tr class="custom_field-row {$element.element_name}-row"> <td class="label">{$formElement.label}{if $element.help_post}{help id=$element.id file="CRM/Custom/Form/CustomField.hlp" title=$element.label}{/if}</td> <td class="html-adjust"> - {assign var="count" value="1"} + {assign var="count" value=1} {foreach name=outer key=key item=item from=$formElement} {if is_array($item) && array_key_exists('html', $item)} {$item.html} {if $count == $element.options_per_line} <br /> - {assign var="count" value="1"} + {assign var="count" value=1} {else} - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} {/if} {else} {* Skip because this isn't one of the numeric keyed elements that are the options to display, it's non-numeric keys like the field label and metadata. *} @@ -34,7 +34,7 @@ {/foreach} {if $element.html_type == 'Radio' and $element.is_required == 0} - <br /><a href="#" class="crm-hover-button crm-clear-link" title="{ts}Clear{/ts}"><i class="crm-i fa-times" aria-hidden="true"></i></a> + <a href="#" class="crm-hover-button crm-clear-link" title="{ts}Clear{/ts}"><i class="crm-i fa-times" aria-hidden="true"></i></a> {/if} </td> </tr> diff --git a/civicrm/templates/CRM/Custom/Form/Field.tpl b/civicrm/templates/CRM/Custom/Form/Field.tpl index 68733a0d08..4792fdc39f 100644 --- a/civicrm/templates/CRM/Custom/Form/Field.tpl +++ b/civicrm/templates/CRM/Custom/Form/Field.tpl @@ -33,7 +33,7 @@ <td class="label">{$form.serialize.label}</td> <td class="html-adjust">{$form.serialize.html}</td> </tr> - {if !empty($form.in_selector)} + {if array_key_exists('in_selector', $form)} <tr class='crm-custom-field-form-block-in_selector'> <td class='label'>{$form.in_selector.label}</td> <td class='html-adjust'>{$form.in_selector.html} {help id="id-in_selector"}</td> @@ -44,7 +44,7 @@ <td class="html-adjust">{$form.text_length.html}</td> </tr> - <tr id='showoption' {if $action eq 1 or $action eq 2 }class="hiddenElement"{/if}> + <tr id='showoption' {if $action eq 1 or $action eq 2}class="hiddenElement"{/if}> <td colspan="2"> <table class="form-layout-compressed"> {* Conditionally show table for setting up selection options - for field types = radio, checkbox or select *} @@ -354,7 +354,7 @@ </script> {/literal} {* Give link to view/edit option group *} -{if $action eq 2 && !empty($hasOptionGroup) } +{if $action eq 2 && !empty($hasOptionGroup)} <div class="action-link"> {crmButton p="civicrm/admin/custom/group/field/option" q="reset=1&action=browse&fid=`$id`&gid=`$gid`" icon="pencil"}{ts}View / Edit Multiple Choice Options{/ts}{/crmButton} </div> diff --git a/civicrm/templates/CRM/Custom/Form/Group.tpl b/civicrm/templates/CRM/Custom/Form/Group.tpl index ed4367d63f..cfde76ea87 100644 --- a/civicrm/templates/CRM/Custom/Form/Group.tpl +++ b/civicrm/templates/CRM/Custom/Form/Group.tpl @@ -12,55 +12,59 @@ <div class="crm-block crm-form-block"> <table class="form-layout"> <tr> - <td class="label">{$form.title.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_custom_group' field='title' id=$gid}{/if}</td> - <td class="html-adjust">{$form.title.html} {help id="id-title"}</td> + <td class="label">{$form.title.label} {help id="id-title"}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_custom_group' field='title' id=$gid}{/if}</td> + <td class="html-adjust">{$form.title.html}</td> </tr> <tr> - <td class="label">{$form.extends.label}</td> - <td>{$form.extends.html|smarty:nodefaults} {help id="id-extends"}</td> + <td class="label">{$form.extends.label} {help id="id-extends"}</td> + <td> + {$form.extends.html} + <span class="{if $emptyEntityColumnId}hiddenElement{/if} field-extends_entity_column_id">{$form.extends_entity_column_id.html}</span> + <span class="{if $emptyEntityColumnValue}hiddenElement{/if} field-extends_entity_column_value">{$form.extends_entity_column_value.html}</span> + </td> </tr> <tr> - <td class="label">{$form.weight.label}</td> - <td>{$form.weight.html} {help id="id-weight"}</td> + <td class="label">{$form.weight.label} {help id="id-weight"}</td> + <td>{$form.weight.html}</td> </tr> - <tr id="is_multiple_row" class="hiddenElement"> {* This section shown only when Used For = Contact, Individ, Org or Household. *} - <td></td> - <td class="html-adjust">{$form.is_multiple.html} {$form.is_multiple.label} {help id="id-is_multiple"}</td> + <tr class="hiddenElement field-is_multiple"> + <td class="right">{help id="id-is_multiple"}</td> + <td class="html-adjust">{$form.is_multiple.html} {$form.is_multiple.label}</td> </tr> - <tr id="multiple_row" class="hiddenElement"> - <td class="label">{$form.max_multiple.label}</td> - <td>{$form.max_multiple.html} {help id="id-max_multiple"}</td> + <tr class="hiddenElement field-max_multiple"> + <td class="label">{$form.max_multiple.label} {help id="id-max_multiple"}</td> + <td>{$form.max_multiple.html}</td> </tr> - <tr id="style_row" class="hiddenElement"> - <td class="label">{$form.style.label}</td> - <td>{$form.style.html} {help id="id-display_style"}</td> + <tr class="hiddenElement field-style"> + <td class="label">{$form.style.label} {help id="id-display_style"}</td> + <td>{$form.style.html}</td> </tr> - <tr id="icon_row" class="hiddenElement"> + <tr class="hiddenElement field-icon"> <td class="label">{$form.icon.label}</td> <td>{$form.icon.html}</td> </tr> - <tr class="html-adjust"> - <td> </td> - <td>{$form.collapse_display.html} {$form.collapse_display.label} {help id="id-collapse"}</td> + <tr class="html-adjust field-collapse_display"> + <td class="right">{help id="id-collapse"}</td> + <td>{$form.collapse_display.html} {$form.collapse_display.label}</td> </tr> <tr> - <td> </td> - <td>{$form.collapse_adv_display.html} {$form.collapse_adv_display.label} {help id="id-collapse-adv"}</td> + <td class="right">{help id="id-collapse-adv"}</td> + <td>{$form.collapse_adv_display.html} {$form.collapse_adv_display.label}</td> </tr> <tr> <td> </td> <td>{$form.is_active.html} {$form.is_active.label}</td> </tr> <tr> - <td> </td> - <td>{$form.is_public.html} {$form.is_public.label} {help id="id-is-public"}</td> + <td class="right">{help id="id-is-public"}</td> + <td>{$form.is_public.html} {$form.is_public.label}</td> </tr> <tr class="html-adjust"> - <td class="label">{$form.help_pre.label} <!--{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_custom_group' field='help_pre' id=$gid}{/if}-->{help id="id-help_pre"}</td> + <td class="label">{$form.help_pre.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_custom_group' field='help_pre' id=$gid}{/if} {help id="id-help_pre"}</td> <td>{$form.help_pre.html}</td> </tr> <tr class="html-adjust"> - <td class="label">{$form.help_post.label} <!--{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_custom_group' field='help_post' id=$gid}{/if}-->{help id="id-help_post"}</td> + <td class="label">{$form.help_post.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_custom_group' field='help_post' id=$gid}{/if} {help id="id-help_post"}</td> <td>{$form.help_post.html}</td> </tr> </table> @@ -74,104 +78,132 @@ {/if} {literal} -<script type="text/Javascript"> +<script type="text/javascript"> CRM.$(function($) { - var tabWithTableOption; - - $('#extends_0').each(showHideStyle).change(showHideStyle); - - var isGroupEmpty = {/literal}{$isGroupEmpty|@json_encode}{literal}; - if (isGroupEmpty) { - showRange(true); - } - $('input#is_multiple').change(showRange); - - // "Collapse" is a bad default for "Tab" display - $("select#style").change(function() { - if ($(this).val() == 'Tab') { - $('#collapse_display').prop('checked', false); - } - $('#icon_row').toggle($(this).val() !== 'Inline'); - }); - $('#icon_row').toggle($("select#style").val() !== 'Inline'); + const {/literal} + $form = $('form.{$form.formClass}'), + entityColumnIdOptions = {$entityColumnIdOptions|@json_encode}, + allMultiple = {$allowMultiple|@json_encode}, + defaultSubtypes = {$defaultSubtypes|@json_encode}; + {literal} + let tabWithTableOption; - /** - * Check if this is a contact-related set and show/hide other options accordingly - */ - function showHideStyle() { - var - extend = $(this).val(), - contactTypes = {/literal}{$contactTypes|smarty:nodefaults}{literal}, - showStyle = "{/literal}{$showStyle}{literal}", - showMultiple = "{/literal}{$showMultiple}{literal}", - showMaxMultiple = "{/literal}{$showMaxMultiple}{literal}", - isContact = ($.inArray(extend, contactTypes) >= 0); + // Add change/init callbacks for specific fields (each() fires the callback on page load) + $('input[name=extends], input[name=extends_entity_column_id]', $form).change(onChangeEntityId); + $('input[name=extends]', $form).change(handleExtends).each(handleExtends); + $('input#is_multiple', $form).change(handleMultiple).change(onChangeMultiple).each(handleMultiple); + $('select[name=style]', $form).change(handleStyle).each(handleStyle); - if (isContact) { - $("tr#style_row, tr#is_multiple_row").show(); - if ($('#is_multiple :checked').length) { - $("tr#multiple_row").show(); + // When changing primary `extends` or secondary `entityColumnIdOptions` + function onChangeEntityId() { + let values = { + extends: $('[name=extends]', $form).val(), + }; + let columnIdOptions = values.extends && entityColumnIdOptions[values.extends]; + // When changing the `extends` field + if ($(this).is('input[name=extends]')) { + $('[name=extends_entity_column_id]', $form).val(''); + if (columnIdOptions) { + $('.field-extends_entity_column_id', $form).show(); + // Only render if type=text (if field is frozen then type=hidden) + $('[type=text][name=extends_entity_column_id]', $form).crmSelect2({ + data: columnIdOptions + }); + } else { + $('.field-extends_entity_column_id', $form).hide(); } } + // When changing `entityColumnIdOptions` else { - $("tr#style_row, tr#is_multiple_row, tr#multiple_row").hide(); + values.extends_entity_column_id = $('[name=extends_entity_column_id]', $form).val(); } - - if (showStyle) { - $("tr#style_row").show(); + if ( + values.extends && + (values.extends_entity_column_id || !columnIdOptions) && + // Only render if type=text (if field is frozen then type=hidden) + $('[type=text][name=extends_entity_column_value]', $form).length + ) { + $('[name=extends_entity_column_value]', $form).val('').addClass('loading').prop('disabled', true); + $('.field-extends_entity_column_value', $form).show(); + CRM.api4('CustomGroup', 'getFields', { + where: [['name', '=', 'extends_entity_column_value']], + action: 'create', + loadOptions: ['id', 'label'], + values: values, + }, 0).then((field) => { + let valueOptions = field.options || []; + if (valueOptions.length) { + valueOptions.forEach(function(option) { + option.text = option.label; + option.id = '' + option.id; + }); + $('[name=extends_entity_column_value]', $form).removeClass('loading').prop('disabled', false).crmSelect2({ + data: valueOptions + }); + } else { + $('.field-extends_entity_column_value', $form).hide(); + } + }); + } else { + $('.field-extends_entity_column_value', $form).hide(); } + } - if (showMultiple) { - $("tr#style_row, tr#is_multiple_row").show(); - } + // When changing or initializing the primary `extends` field + function handleExtends() { + let multiAllowed = $(this).val() && allMultiple[$(this).val()]; - if (!showMaxMultiple) { - $("tr#multiple_row").hide(); + if (multiAllowed) { + $('tr.field-style, tr.field-is_multiple', $form).show(); + } + else { + $('input#is_multiple', $form).prop('checked', false).change(); + $('tr.field-style, tr.field-is_multiple, tr.field-max_multiple', $form).hide(); } - else if ($('#is_multiple').prop('checked')) { - $("tr#multiple_row").show(); + } + + // When changing the `is_multiple` field + function onChangeMultiple() { + if ($(this).is(':checked')) { + $('select[name=style]', $form).val('Tab with table').change(); } } - /** - * Check if this set supports multiple records and adjust other options accordingly - * - * @param onFormLoad - */ - function showRange(onFormLoad) { - if($("#is_multiple").is(':checked')) { - $("tr#multiple_row").show(); - if (onFormLoad !== true) { - $('#collapse_display').prop('checked', false); - $("select#style").append(tabWithTableOption).val('Tab with table'); + // When changing or initializing the `is_multiple` field + // Check if this set supports multiple records and adjust other options accordingly + function handleMultiple() { + if ($(this).is(':checked')) { + $('tr.field-max_multiple', $form).show(); + if (tabWithTableOption) { + $('select[name=style]', $form).append(tabWithTableOption); } - $('#icon_row').toggle($("select#style").val() !== 'Inline'); + $('tr.field-icon', $form).toggle($('select[name=style]', $form).val() !== 'Inline'); } else { - $("tr#multiple_row, #icon_row").hide(); - if ($("select#style").val() === 'Tab with table') { - $("select#style").val('Inline'); + $('tr.field-max_multiple, tr.field-icon', $form).hide(); + if ($('select[name=style]', $form).val() === 'Tab with table') { + $('select[name=style]', $form).val('Inline'); + } + if (!tabWithTableOption) { + tabWithTableOption = $("select[name=style] option[value='Tab with table']", $form).detach(); } - tabWithTableOption = $("select#style option[value='Tab with table']").detach(); + $("select[name=style] option[value='Tab with table']", $form).remove(); } } - // In update mode, when 'extends' is set to an option which doesn't have - // any options in 2nd selector (for subtypes) - var subtypes = document.getElementById('extends_1'); - if (subtypes) { - if (subtypes.options.length <= 0) { - subtypes.style.display = 'none'; - } - else { - subtypes.style.display = 'inline'; + // When changing or initializing the `style` field + function handleStyle() { + const styleVal = $(this).val(); + $('tr.field-icon', $form).toggle(styleVal !== 'Inline'); + $('tr.field-collapse_display', $form).toggle(styleVal !== 'Tab with table'); + if (styleVal === 'Tab with table') { + $('input#collapse_display', $form).prop('checked', false); } } - // When removing sub-types - $('.crm-warnDataLoss').on('click', function() { - var submittedSubtypes = $('#extends_1').val(); - var defaultSubtypes = {/literal}{$defaultSubtypes}{literal}; + // When saving the form after removing sub-types + $('.crm-warnDataLoss', $form).on('click', function() { + var submittedSubtypes = $('[name=extends_entity_column_value]', $form).val(); var warning = false; $.each(defaultSubtypes, function(index, subtype) { diff --git a/civicrm/templates/CRM/Custom/Form/MoveField.tpl b/civicrm/templates/CRM/Custom/Form/MoveField.tpl index cc5c36badb..86c622e62e 100644 --- a/civicrm/templates/CRM/Custom/Form/MoveField.tpl +++ b/civicrm/templates/CRM/Custom/Form/MoveField.tpl @@ -14,7 +14,6 @@ <span class="description">{ts}Select a different Custom Data Set for this field.{/ts} </td> </tr> - <tr><td class="label">{$form.is_copy.label}</td><td>{$form.is_copy.html}</td></tr> </table> <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> </div> diff --git a/civicrm/templates/CRM/Custom/Form/Option.tpl b/civicrm/templates/CRM/Custom/Form/Option.tpl index 0080f20ae2..b2adedd987 100644 --- a/civicrm/templates/CRM/Custom/Form/Option.tpl +++ b/civicrm/templates/CRM/Custom/Form/Option.tpl @@ -8,7 +8,7 @@ +--------------------------------------------------------------------+ *} <div class="crm-block {if $action eq 4}crm-content-block {else}crm-form-block {/if}crm-custom_option-form-block"> -<h3>{if $action eq 4 }{ts}View Option{/ts}{elseif $action eq 2}{ts}Edit Option{/ts}{elseif $action eq 8}{ts 1=$label}Delete Option "%1"{/ts}{else}{ts}Add Option{/ts}{/if}</h3> +<h3>{if $action eq 4}{ts}View Option{/ts}{elseif $action eq 2}{ts}Edit Option{/ts}{elseif $action eq 8}{ts 1=$label}Delete Option "%1"{/ts}{else}{ts}Add Option{/ts}{/if}</h3> {if $action eq 8} <div class="messages status no-popup"> {icon icon="fa-info-circle"}{/icon} diff --git a/civicrm/templates/CRM/Custom/Form/Preview.tpl b/civicrm/templates/CRM/Custom/Form/Preview.tpl index 592b916ea9..1300856f4b 100644 --- a/civicrm/templates/CRM/Custom/Form/Preview.tpl +++ b/civicrm/templates/CRM/Custom/Form/Preview.tpl @@ -34,12 +34,11 @@ <tr><td class="label"></td><td class="description">{$element.help_pre}</td></tr> {/if} {if !empty($element.options_per_line)} - {*assign var="element_name" value=$element.custom_group_id|cat:_|cat:$field_id|cat:_|cat:$element.name*} {assign var="element_name" value=$element.element_name} <tr> <td class="label">{$form.$element_name.label}{if !empty($element.help_post)}{help id=$element.id file="CRM/Custom/Form/CustomField.hlp" title=$form.$element_name.label}{/if}</td> <td> - {assign var="count" value="1"} + {assign var="count" value=1} <table class="form-layout-compressed"> <tr> {* sort by fails for option per line. Added a variable to iterate through the element array*} @@ -48,10 +47,10 @@ {if is_array($item) && array_key_exists('html', $item)} <td class="labels font-light">{$form.$element_name.$key.html}</td> {if $count == $element.options_per_line} - {assign var="count" value="1"} + {assign var="count" value=1} </tr> {else} - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} {/if} {/if} {/foreach} diff --git a/civicrm/templates/CRM/Custom/Form/Search.tpl b/civicrm/templates/CRM/Custom/Form/Search.tpl index 5e59359821..dbea3ce674 100644 --- a/civicrm/templates/CRM/Custom/Form/Search.tpl +++ b/civicrm/templates/CRM/Custom/Form/Search.tpl @@ -17,7 +17,7 @@ <div class="crm-accordion-body"> <table class="form-layout-compressed"> {foreach from=$cd_edit.fields item=element key=field_id} - {assign var="type" value=`$element.html_type`} + {assign var="type" value=$element.html_type} {assign var="element_name" value='custom_'|cat:$field_id} {assign var="operator_name" value='custom_'|cat:$field_id|cat:'_operator'} {if $element.is_search_range} diff --git a/civicrm/templates/CRM/Event/Form/EventFees.tpl b/civicrm/templates/CRM/Event/Form/EventFees.tpl index 23f4403dd5..943ea0abc6 100644 --- a/civicrm/templates/CRM/Event/Form/EventFees.tpl +++ b/civicrm/templates/CRM/Event/Form/EventFees.tpl @@ -7,7 +7,7 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{assign var=isRecordPayment value=1 } +{assign var=isRecordPayment value=1} {capture assign="isShowBillingBlock"}{if $action neq 2}1{else}0{/if}{/capture} {if $paid} {* We retrieve this tpl when event is selected - keep it empty if event is not paid *} <table class="form-layout"> @@ -40,10 +40,10 @@ <fieldset id="priceset" class="crm-group priceset-group"> <tr class="crm-event-eventfees-form-block-price_set_amount"> <td class="label" style="padding-top: 10px;">{$form.amount.label}</td> - <td class="view-value"><table class="form-layout">{include file="CRM/Price/Form/PriceSet.tpl" extends="Event"}</td> + <td class="view-value"><table class="form-layout">{include file="CRM/Price/Form/PriceSet.tpl" extends="Event" hideTotal=false}</td> </fieldset> {else} - {assign var=isRecordPayment value=0 } + {assign var=isRecordPayment value=0} <div class='messages status'>{ts}No active price fields found for this event!{/ts}</div> {/if} </table> @@ -52,7 +52,7 @@ </tr> {/if} - {if $accessContribution and ! $participantMode and ($action neq 2 or !$rows.0.contribution_id or $onlinePendingContributionId) and $isRecordPayment and ! $registeredByParticipantId } + {if $accessContribution and ! $participantMode and ($action neq 2 or !$rows.0.contribution_id or $onlinePendingContributionId) and $isRecordPayment and ! $registeredByParticipantId} {assign var=isShowBillingBlock value=true} <tr class="crm-event-eventfees-form-block-record_contribution"> <td class="label">{$form.record_contribution.label}</td> @@ -71,7 +71,7 @@ <td class="label" >{$form.receive_date.label}</td> <td>{$form.receive_date.html}</td> </tr> - {if $showTransactionId } + {if $showTransactionId} <tr class="crm-event-eventfees-form-block-trxn_id"><td class="label">{$form.trxn_id.label}</td><td>{$form.trxn_id.html}</td></tr> {/if} <tr class="crm-event-eventfees-form-block-contribution_status_id"><td class="label">{$form.contribution_status_id.label}</td><td>{$form.contribution_status_id.html}</td></tr> @@ -117,7 +117,7 @@ </tr> </table> </fieldset> -{elseif $context eq 'standalone' and $outBound_option != 2 } +{elseif $context eq 'standalone' and $outBound_option != 2} <fieldset id="email-receipt" style="display:none;"><legend>{if $paid}{ts}Registration Confirmation and Receipt{/ts}{else}{ts}Registration Confirmation{/ts}{/if}</legend> <table class="form-layout" style="width:auto;"> <tr class="crm-event-eventfees-form-block-send_receipt"> @@ -146,7 +146,7 @@ </fieldset> {/if} -{if ($email and $outBound_option != 2) OR $context eq 'standalone' } {* Send receipt field only present if contact has a valid email address. *} +{if ($email and $outBound_option != 2) OR $context eq 'standalone'} {* Send receipt field only present if contact has a valid email address. *} {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="send_receipt" trigger_value ="" @@ -165,7 +165,7 @@ } {/if} -{if $context eq 'standalone' and $outBound_option != 2 } +{if $context eq 'standalone' and $outBound_option != 2} <script type="text/javascript"> {literal} CRM.$(function($) { diff --git a/civicrm/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl b/civicrm/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl index a76f4914f8..9bfff190cc 100644 --- a/civicrm/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl +++ b/civicrm/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl @@ -10,9 +10,6 @@ {* Step 1 of New Event Wizard, and Edit Event Info form. *} <div class="crm-block crm-form-block crm-event-manage-eventinfo-form-block"> - <div class="crm-submit-buttons"> - {include file="CRM/common/formButtons.tpl" location="top"} - </div> <table class="form-layout-compressed"> {if !empty($form.template_id)} <tr class="crm-event-manage-eventinfo-form-block-template_id"> @@ -70,7 +67,7 @@ <td class="label">{$form.max_participants.label} {help id="id-max_participants" waitlist=$waitlist}</td> <td> {$form.max_participants.html|crmAddClass:four} - {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') } + {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM')} <a class="crm-popup crm-hover-button" target="_blank" title="{ts}Edit Participant Status Options{/ts}" href="{crmURL p='civicrm/admin/participant_status' q='reset=1'}"><i class="crm-i fa-wrench" aria-hidden="true"></i></a> {/if} </td> diff --git a/civicrm/templates/CRM/Event/Form/ManageEvent/Fee.tpl b/civicrm/templates/CRM/Event/Form/ManageEvent/Fee.tpl index ab8e1dface..7162790c3e 100644 --- a/civicrm/templates/CRM/Event/Form/ManageEvent/Fee.tpl +++ b/civicrm/templates/CRM/Event/Form/ManageEvent/Fee.tpl @@ -17,10 +17,6 @@ </div> {/if} <div class="crm-block crm-form-block crm-event-manage-fee-form-block"> - <div class="crm-submit-buttons"> - {include file="CRM/common/formButtons.tpl" location="top"} - </div> - <table class="form-layout"> <tr class="crm-event-manage-fee-form-block-title"> <td class="label">{$form.title.label}</td> @@ -140,7 +136,7 @@ {section name=rowLoop start=1 loop=6} {assign var=index value=$smarty.section.rowLoop.index} - <tr id="discount_{$index}" class=" crm-event-manage-fee-form-block-discount_{$index} {if $index GT 1 AND empty( $form.discount_name[$index].value) } hiddenElement {/if} form-item {cycle values="odd-row,even-row"}"> + <tr id="discount_{$index}" class=" crm-event-manage-fee-form-block-discount_{$index} {if $index GT 1 AND empty( $form.discount_name[$index].value)} hiddenElement {/if} form-item {cycle values="odd-row,even-row"}"> <td>{if $index GT 1} <a onclick="showHideDiscountRow('discount_{$index}', false, {$index}); return false;" name="discount_{$index}" href="#" class="form-link">{icon icon="fa-trash"}{ts}remove discount set{/ts}{/icon}</span></a>{/if} </td> <td class="crm-event-manage-fee-form-block-discount_name"> {$form.discount_name.$index.html}</td> @@ -220,7 +216,7 @@ function warnDiscountDel( ) { if ( ! document.getElementsByName('is_discount')[0].checked ) { - CRM.alert('{/literal}{ts escape="js"}If you uncheck "Discounts by Signup Date" and Save this form, any existing discount sets will be deleted.{/ts} {ts escape="js"}This action cannot be undone.{/ts} {ts escape="js"}If this is NOT what you want to do, you can check "Discounts by Signup Date" again.{/ts}', '{ts escape="js}Warning{/ts}{literal}', 'alert', {expires: 0}); + CRM.alert('{/literal}{ts escape="js"}If you uncheck "Discounts by Signup Date" and Save this form, any existing discount sets will be deleted.{/ts} {ts escape="js"}This action cannot be undone.{/ts} {ts escape="js"}If this is NOT what you want to do, you can check "Discounts by Signup Date" again.{/ts}', '{ts escape="js"}Warning{/ts}{literal}', 'alert', {expires: 0}); } } @@ -309,7 +305,7 @@ message: {/literal}"{ts escape='js'}Once you switch to using a Price Set, you won't be able to switch back to your existing settings below except by re-entering them. Are you sure you want to switch to a Price Set?{/ts}"{literal} }).on('crmConfirm:yes', function() { {/literal} - var dataUrl = '{crmURL p="civicrm/ajax/rest" h=0 q="className=CRM_Core_Page_AJAX&fnName=setIsQuickConfig&context=civicrm_event&id=$eventId" }'; + var dataUrl = '{crmURL p="civicrm/ajax/rest" h=0 q="className=CRM_Core_Page_AJAX&fnName=setIsQuickConfig&context=civicrm_event&id=$eventId"}'; {literal} $.getJSON(dataUrl).done(function(result) {window.location = CRM.url("civicrm/admin/price/field", {reset: 1, action: 'browse', sid: result});}); }); diff --git a/civicrm/templates/CRM/Event/Form/ManageEvent/Location.tpl b/civicrm/templates/CRM/Event/Form/ManageEvent/Location.tpl index 47a76afc27..019d5761e8 100644 --- a/civicrm/templates/CRM/Event/Form/ManageEvent/Location.tpl +++ b/civicrm/templates/CRM/Event/Form/ManageEvent/Location.tpl @@ -13,9 +13,6 @@ </div> <div class="crm-block crm-form-block crm-event-manage-location-form-block"> - <div class="crm-submit-buttons"> - {include file="CRM/common/formButtons.tpl" location="top"} - </div> {if $locEvents} <table class="form-layout-compressed"> <tr id="optionType" class="crm-event-manage-location-form-block-location_option"> @@ -71,8 +68,11 @@ </tr> </table> - {if $locEvents} + <div class="crm-submit-buttons"> + {include file="CRM/common/formButtons.tpl" location="bottom"} + </div> + {if $locEvents} <script type="text/javascript"> {literal} CRM.$(function($) { diff --git a/civicrm/templates/CRM/Event/Form/ManageEvent/Registration.tpl b/civicrm/templates/CRM/Event/Form/ManageEvent/Registration.tpl index e18847aec7..94c72ddedc 100644 --- a/civicrm/templates/CRM/Event/Form/ManageEvent/Registration.tpl +++ b/civicrm/templates/CRM/Event/Form/ManageEvent/Registration.tpl @@ -9,7 +9,7 @@ *} {if $addProfileBottomAdd OR $addProfileBottom} <td scope="row" class="label" width="20%"> - {if $addProfileBottomAdd }{$form.additional_custom_post_id_multiple[$profileBottomNumAdd].label} + {if $addProfileBottomAdd}{$form.additional_custom_post_id_multiple[$profileBottomNumAdd].label} {else}{$form.custom_post_id_multiple[$profileBottomNum].label}{/if}</td> <td> {if $addProfileBottomAdd}{$form.additional_custom_post_id_multiple[$profileBottomNumAdd].html} @@ -25,9 +25,6 @@ {help id="id-event-reg"} </div> <div class="crm-block crm-form-block crm-event-manage-registration-form-block"> -<div class="crm-submit-buttons"> -{include file="CRM/common/formButtons.tpl" location="top"} -</div> <div id="register"> <table class="form-layout"> diff --git a/civicrm/templates/CRM/Event/Form/Participant.tpl b/civicrm/templates/CRM/Event/Form/Participant.tpl index d40cee4c46..e22a8367cf 100644 --- a/civicrm/templates/CRM/Event/Form/Participant.tpl +++ b/civicrm/templates/CRM/Event/Form/Participant.tpl @@ -7,7 +7,7 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{* This template is used for adding/editing/deleting offline Event Registrations *} +{* This template is used for adding/editing offline Event Registrations *} {* Ajax callback for showing event fee snippet - to be moved to separate form *} {if $showFeeBlock} @@ -33,22 +33,7 @@ {/if} <div id="eventFullMsg" class="messages status no-popup" style="display:none;"></div> - {if $action eq 8} {* If action is Delete *} - <div class="crm-participant-form-block-delete messages status no-popup"> - <div class="crm-content"> - {icon icon="fa-info-circle"}{/icon} - {ts}WARNING: Deleting this registration will result in the loss of related payment records (if any).{/ts} {ts}Do you want to continue?{/ts} - </div> - {if $additionalParticipant} - <div class="crm-content"> - {ts 1=$additionalParticipant} There are %1 more Participant(s) registered by this participant.{/ts} - </div> - {/if} - </div> - {if $additionalParticipant} - {$form.delete_participant.html} - {/if} - {else} {* If action is other than Delete *} + {if 1} {* If action is other than Delete *} <table class="form-layout-compressed"> {if $context EQ 'standalone' OR $context EQ 'participant' OR $action EQ 2} <tr class="crm-participant-form-contact-id"> diff --git a/civicrm/templates/CRM/Event/Form/Participant/Delete.tpl b/civicrm/templates/CRM/Event/Form/Participant/Delete.tpl new file mode 100644 index 0000000000..b130a8a60b --- /dev/null +++ b/civicrm/templates/CRM/Event/Form/Participant/Delete.tpl @@ -0,0 +1,26 @@ +{* + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC. All rights reserved. | + | | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | + +--------------------------------------------------------------------+ +*} +{* This template is used for deleting offline Event Registrations *} + +<div class="crm-participant-form-block-delete messages status no-popup"> + <div class="crm-content"> + {icon icon="fa-info-circle"}{/icon} + {ts}WARNING: Deleting this registration will result in the loss of related payment records (if any).{/ts} {ts}Do you want to continue?{/ts} + </div> + {if $additionalParticipant} + <div class="crm-content"> + {ts 1=$additionalParticipant} There are %1 more Participant(s) registered by this participant.{/ts} + </div> + {/if} +</div> +{if $additionalParticipant} + {$form.delete_participant.html} +{/if} +<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> diff --git a/civicrm/templates/CRM/Event/Form/ParticipantFeeSelection.tpl b/civicrm/templates/CRM/Event/Form/ParticipantFeeSelection.tpl index 78f6608748..1e25ca065e 100644 --- a/civicrm/templates/CRM/Event/Form/ParticipantFeeSelection.tpl +++ b/civicrm/templates/CRM/Event/Form/ParticipantFeeSelection.tpl @@ -114,7 +114,7 @@ CRM.$(function($) { <table class='form-layout'> <tr class="crm-event-eventfees-form-block-price_set_amount"> <td class="label" style="padding-top: 10px;">{$form.amount.label}</td> - <td class="view-value"><table class="form-layout">{include file="CRM/Price/Form/PriceSet.tpl" extends="Event" noCalcValueDisplay=0 context="participant"}</table></td> + <td class="view-value"><table class="form-layout">{include file="CRM/Price/Form/PriceSet.tpl" extends="Event" hideTotal=false context="participant"}</table></td> </tr> {if $paymentInfo} <tr><td></td><td> @@ -126,7 +126,7 @@ CRM.$(function($) { </div> <div class='label'><strong>{ts}Balance Owed{/ts}</strong></div><div class='content'><strong id='balance-fee'></strong></div> </div> - {include file='CRM/Price/Form/Calculate.tpl' currencySymbol=$currencySymbol noCalcValueDisplay=1 displayOveride='true'} + {include file='CRM/Price/Form/Calculate.tpl' currencySymbol=$currencySymbol hideTotal=1 displayOveride='true'} {/if} </table> </fieldset> diff --git a/civicrm/templates/CRM/Event/Form/ParticipantView.tpl b/civicrm/templates/CRM/Event/Form/ParticipantView.tpl index e0b7d5b42b..5e49190299 100644 --- a/civicrm/templates/CRM/Event/Form/ParticipantView.tpl +++ b/civicrm/templates/CRM/Event/Form/ParticipantView.tpl @@ -16,16 +16,12 @@ {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} {assign var='editUrlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&selectedChild=event&key=$searchKey"} {/if} - <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$editUrlParams}" accesskey="e"><span><i class="crm-i fa-pencil" aria-hidden="true"></i> {ts}Edit{/ts}</span></a> - {/if} - {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')} - {assign var='deleteUrlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event"} - {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} - {assign var='deleteUrlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&selectedChild=event&key=$searchKey"} + <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$editUrlParams}" accesskey="e"><span><i class="crm-i fa-pencil" aria-hidden="true"></i> {ts}Edit{/ts}</span></a> {/if} - <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$deleteUrlParams}"><span><i class="crm-i fa-trash" aria-hidden="true"></i> {ts}Delete{/ts}</span></a> - {/if} - {include file="CRM/common/formButtons.tpl" location="top"} + {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')} + <a class="button" href="{crmURL p='civicrm/participant/delete' q="reset=1&id=$id"}"><span><i class="crm-i fa-trash" aria-hidden="true"></i> {ts}Delete{/ts}</span></a> + {/if} + </div> </div> <table class="crm-info-panel"> @@ -115,7 +111,7 @@ </tr> {/if} {foreach from=$note item="rec"} - {if $rec } + {if $rec} <tr><td class="label">{ts}Note{/ts}</td><td>{$rec|nl2br}</td></tr> {/if} {/foreach} @@ -132,7 +128,7 @@ <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$editUrlParams}" accesskey="e"><span><i class="crm-i fa-pencil" aria-hidden="true"></i> {ts}Edit{/ts}</span></a> {/if} {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviEvent')} - <a class="button" href="{crmURL p='civicrm/contact/view/participant' q=$deleteUrlParams}"><span><i class="crm-i fa-trash" aria-hidden="true"></i> {ts}Delete{/ts}</span></a> + <a class="button" href="{crmURL p='civicrm/participant/delete' q="reset=1&id=$id"}"><span><i class="crm-i fa-trash" aria-hidden="true"></i> {ts}Delete{/ts}</span></a> {/if} {include file="CRM/common/formButtons.tpl" location="bottom"} </div> diff --git a/civicrm/templates/CRM/Event/Form/Registration/AdditionalParticipant.tpl b/civicrm/templates/CRM/Event/Form/Registration/AdditionalParticipant.tpl index 3a6523f621..b9c9ca0306 100644 --- a/civicrm/templates/CRM/Event/Form/Registration/AdditionalParticipant.tpl +++ b/civicrm/templates/CRM/Event/Form/Registration/AdditionalParticipant.tpl @@ -22,7 +22,7 @@ {/if} <div class="crm-public-form-item crm-section custom_pre-section"> - {include file="CRM/UF/Form/Block.tpl" fields=$additionalCustomPre} + {include file="CRM/UF/Form/Block.tpl" fields=$additionalCustomPre prefix=false hideFieldset=false} </div> {if $priceSet && $allowGroupOnWaitlist} @@ -34,7 +34,7 @@ <div class="crm-event-id-{$event.id} crm-block crm-event-additionalparticipant-form-block"> {if $priceSet} <fieldset id="priceset" class="crm-public-form-item crm-group priceset-group"><legend>{$event.fee_label}</legend> - {include file="CRM/Price/Form/PriceSet.tpl" extends="Event"} + {include file="CRM/Price/Form/PriceSet.tpl" extends="Event" hideTotal=false} </fieldset> {else} {if $paidEvent} @@ -49,7 +49,7 @@ {/if} <div class="crm-public-form-item crm-section custom_post-section"> - {include file="CRM/UF/Form/Block.tpl" fields=$additionalCustomPost} + {include file="CRM/UF/Form/Block.tpl" fields=$additionalCustomPost prefix=false hideFieldset=false} </div> <div id="crm-submit-buttons" class="crm-submit-buttons"> diff --git a/civicrm/templates/CRM/Event/Form/Registration/Confirm.tpl b/civicrm/templates/CRM/Event/Form/Registration/Confirm.tpl index 1f10fcc25d..a546f2b650 100644 --- a/civicrm/templates/CRM/Event/Form/Registration/Confirm.tpl +++ b/civicrm/templates/CRM/Event/Form/Registration/Confirm.tpl @@ -51,7 +51,7 @@ {include file="CRM/Price/Page/LineItem.tpl" context="Event"} {elseif $amounts || $amount == 0} <div class="crm-section no-label amount-item-section"> - {foreach from= $amounts item=amount key=level} + {foreach from=$amounts item=amount key=level} <div class="content"> {$amount.amount|crmMoney} {$amount.label} </div> diff --git a/civicrm/templates/CRM/Event/Form/Registration/EventInfoBlock.tpl b/civicrm/templates/CRM/Event/Form/Registration/EventInfoBlock.tpl index 85d27f42f6..d67538e42b 100644 --- a/civicrm/templates/CRM/Event/Form/Registration/EventInfoBlock.tpl +++ b/civicrm/templates/CRM/Event/Form/Registration/EventInfoBlock.tpl @@ -37,10 +37,10 @@ <tr><td>{ts}Location{/ts}</td> <td> {$location.address.1.display|nl2br} - {if ( $event.is_map && + {if ($event.is_map && $config->mapProvider && - ( ( !empty($location.address.1.geo_code_1) && is_numeric($location.address.1.geo_code_1) ) || - ( !empty($location.address.1.city) AND !empty($location.address.1.state_province) ) ) ) } + ((!empty($location.address.1.geo_code_1) && is_numeric($location.address.1.geo_code_1)) || + (!empty($location.address.1.city) AND !empty($location.address.1.state_province))))} <br/><a href="{crmURL p='civicrm/contact/map/event' q="reset=1&eid=`$event.id`"}" title="{ts}Map this Address{/ts}" target="_blank">{ts}Map this Location{/ts}</a> {/if} </td> diff --git a/civicrm/templates/CRM/Event/Form/Registration/Register.tpl b/civicrm/templates/CRM/Event/Form/Registration/Register.tpl index 769b35276d..496581b3eb 100644 --- a/civicrm/templates/CRM/Event/Form/Registration/Register.tpl +++ b/civicrm/templates/CRM/Event/Form/Registration/Register.tpl @@ -7,7 +7,7 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') } +{if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM')} {capture assign="buttonTitle"}{ts}Configure Event{/ts}{/capture} {crmButton target="_blank" p="civicrm/event/manage/settings" q="reset=1&action=update&id=`$event.id`" fb=1 title="$buttonTitle" icon="fa-wrench"}{ts}Configure{/ts}{/crmButton} <div class='clear'></div> @@ -73,17 +73,17 @@ <div class="crm-public-form-item crm-section custom_pre-section"> {* Display "Top of page" profile immediately after the introductory text *} - {include file="CRM/UF/Form/Block.tpl" fields=$customPre} + {include file="CRM/UF/Form/Block.tpl" fields=$customPre prefix=false hideFieldset=false} </div> {if $priceSet} {if ! $quickConfig}<fieldset id="priceset" class="crm-public-form-item crm-group priceset-group"> <legend>{$event.fee_label}</legend>{/if} - {include file="CRM/Price/Form/PriceSet.tpl" extends="Event"} + {include file="CRM/Price/Form/PriceSet.tpl" extends="Event" hideTotal=$quickConfig} {include file="CRM/Price/Form/ParticipantCount.tpl"} {if ! $quickConfig}</fieldset>{/if} {/if} - {if $pcp && $is_honor_roll } + {if $pcp && $is_honor_roll} <fieldset class="crm-public-form-item crm-group pcp-group"> <div class="crm-public-form-item crm-section pcp-section"> <div class="crm-public-form-item crm-section display_in_roll-section"> @@ -135,7 +135,7 @@ {/if} <div class="crm-public-form-item crm-section custom_post-section"> - {include file="CRM/UF/Form/Block.tpl" fields=$customPost} + {include file="CRM/UF/Form/Block.tpl" fields=$customPost prefix=false hideFieldset=false} </div> <div id="crm-submit-buttons" class="crm-submit-buttons"> @@ -162,7 +162,7 @@ }); {/literal} - {if $pcp && $is_honor_roll } + {if $pcp && $is_honor_roll} pcpAnonymous(); {/if} {literal} @@ -260,7 +260,7 @@ } {/literal} - {if $pcp && $is_honor_roll }{literal} + {if $pcp && $is_honor_roll}{literal} function pcpAnonymous() { // clear nickname field if anonymous is true if (document.getElementsByName("pcp_is_anonymous")[1].checked) { diff --git a/civicrm/templates/CRM/Event/Form/Registration/ThankYou.tpl b/civicrm/templates/CRM/Event/Form/Registration/ThankYou.tpl index 139f2f05e5..14fe56cfa5 100644 --- a/civicrm/templates/CRM/Event/Form/Registration/ThankYou.tpl +++ b/civicrm/templates/CRM/Event/Form/Registration/ThankYou.tpl @@ -84,7 +84,7 @@ {include file="CRM/Price/Page/LineItem.tpl" context="Event"} {elseif $amount || $amount == 0} <div class="crm-section no-label amount-item-section"> - {foreach from= $finalAmount item=amount key=level} + {foreach from=$finalAmount item=amount key=level} <div class="content"> {$amount.amount|crmMoney} {$amount.label} </div> @@ -115,7 +115,7 @@ <div class="clear"></div> </div> {/if} - {if $contributeMode ne 'notify' AND $trxn_id} + {if $trxn_id} <div class="crm-section no-label trxn_id-section"> <div class="content bold">{ts}Transaction #{/ts}: {$trxn_id}</div> <div class="clear"></div> @@ -196,7 +196,7 @@ <a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event.id`"}"><i class="crm-i fa-chevron-left" aria-hidden="true"></i> {ts 1=$event.event_title}Back to "%1" event information{/ts}</a> </div> - {if $event.is_public } + {if $event.is_public} <div class="action-link section iCal_links-section"> {include file="CRM/Event/Page/iCalLinks.tpl"} </div> diff --git a/civicrm/templates/CRM/Event/Form/Search/Common.tpl b/civicrm/templates/CRM/Event/Form/Search/Common.tpl index a96d6b2ec7..c0b61222be 100644 --- a/civicrm/templates/CRM/Event/Form/Search/Common.tpl +++ b/civicrm/templates/CRM/Event/Form/Search/Common.tpl @@ -58,7 +58,7 @@ {include file="CRM/Campaign/Form/addCampaignToSearch.tpl" campaignTrClass='' campaignTdClass='crm-event-form-block-participant_campaign_id'} -{if $participantGroupTree } +{if $participantGroupTree} <tr> <td colspan="4"> {include file="CRM/Custom/Form/Search.tpl" groupTree=$participantGroupTree showHideLinks=false} diff --git a/civicrm/templates/CRM/Event/Form/Selector.tpl b/civicrm/templates/CRM/Event/Form/Selector.tpl index 9ee1cd8cc6..f2bc818d8f 100644 --- a/civicrm/templates/CRM/Event/Form/Selector.tpl +++ b/civicrm/templates/CRM/Event/Form/Selector.tpl @@ -15,7 +15,7 @@ <table class="selector row-highlight"> <thead class="sticky"> <tr> - {if ! $single and $context eq 'Search' } + {if ! $single and $context eq 'Search'} <th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th> {/if} {foreach from=$columnHeaders item=header} @@ -34,8 +34,8 @@ {counter start=0 skip=1 print=false} {foreach from=$rows item=row} <tr id='rowid{$row.participant_id}' class="{cycle values="odd-row,even-row"} crm-event crm-event_{$row.event_id}"> - {if ! $single } - {if $context eq 'Search' } + {if ! $single} + {if $context eq 'Search'} {assign var=cbName value=$row.checkbox} <td>{$form.$cbName.html}</td> {/if} @@ -70,12 +70,12 @@ </tr> {/foreach} {* Link to "View all participants" for Dashboard and Contact Summary *} -{if $limit and $pager->_totalItems GT $limit } - {if $context EQ 'event_dashboard' } +{if $limit and $pager->_totalItems GT $limit} + {if $context EQ 'event_dashboard'} <tr class="even-row"> <td colspan="10"><a href="{crmURL p='civicrm/event/search' q='reset=1'}"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Find more event participants{/ts}...</a></td></tr> </tr> - {elseif $context eq 'participant' } + {elseif $context eq 'participant'} <tr class="even-row"> <td colspan="7"><a href="{crmURL p='civicrm/contact/view' q="reset=1&force=1&selectedChild=participant&cid=$contactId"}"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}View all events for this contact{/ts}...</a></td></tr> </tr> diff --git a/civicrm/templates/CRM/Event/Form/Task.tpl b/civicrm/templates/CRM/Event/Form/Task.tpl index 7e0b149e75..5b37ef2a32 100644 --- a/civicrm/templates/CRM/Event/Form/Task.tpl +++ b/civicrm/templates/CRM/Event/Form/Task.tpl @@ -9,7 +9,7 @@ *} {ts 1=$totalSelectedParticipants}Number of selected participants: %1{/ts} -{if $rows } +{if $rows} <div class="form-item"> <table width="30%"> <tr class="columnheader"> diff --git a/civicrm/templates/CRM/Event/Form/Task/Batch.tpl b/civicrm/templates/CRM/Event/Form/Task/Batch.tpl index 8cbab09496..feafec5e88 100644 --- a/civicrm/templates/CRM/Event/Form/Task/Batch.tpl +++ b/civicrm/templates/CRM/Event/Form/Task/Batch.tpl @@ -57,7 +57,7 @@ {* CRM-19860 Copied from templates/CRM/Contact/Form/Task/Batch.tpl *} {if $field.options_per_line} <td class="compressed"> - {assign var="count" value="1"} + {assign var="count" value=1} {strip} <table class="form-layout-compressed"> <tr> @@ -69,9 +69,9 @@ {if $count == $field.options_per_line} </tr> <tr> - {assign var="count" value="1"} + {assign var="count" value=1} {else} - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} {/if} {/if} {/foreach} diff --git a/civicrm/templates/CRM/Event/Form/Task/Delete.tpl b/civicrm/templates/CRM/Event/Form/Task/Delete.tpl index b99fa017ee..be7ddbd8d1 100644 --- a/civicrm/templates/CRM/Event/Form/Task/Delete.tpl +++ b/civicrm/templates/CRM/Event/Form/Task/Delete.tpl @@ -13,10 +13,10 @@ {icon icon="fa-info-circle"}{/icon} <div> <p>{ts}Are you sure you want to delete the selected participations? This delete operation cannot be undone and will delete all transactions and activity associated with these participations.{/ts}</p> - <p>{include file="CRM/Event/Form/Task.tpl"}</p> + <p>{ts 1=$totalSelectedParticipants}Number of selected participants: %1{/ts}</p> </div> </div> -{if $additionalParticipants} +{if array_key_exists('delete_participant', $form)} {$form.delete_participant.html} {/if} <p> diff --git a/civicrm/templates/CRM/Event/Form/Task/Print.tpl b/civicrm/templates/CRM/Event/Form/Task/Print.tpl index a321e22098..36b4a98c28 100644 --- a/civicrm/templates/CRM/Event/Form/Task/Print.tpl +++ b/civicrm/templates/CRM/Event/Form/Task/Print.tpl @@ -9,7 +9,7 @@ *} <p> -{if $rows } +{if $rows} <div class="crm-submit-buttons"> <span class="element-right">{include file="CRM/common/formButtons.tpl" location="top"}</span> </div> diff --git a/civicrm/templates/CRM/Event/Page/EventInfo.tpl b/civicrm/templates/CRM/Event/Page/EventInfo.tpl index 4c15e58ed5..4d09752578 100644 --- a/civicrm/templates/CRM/Event/Page/EventInfo.tpl +++ b/civicrm/templates/CRM/Event/Page/EventInfo.tpl @@ -9,7 +9,7 @@ *} {* this template is used for displaying event information *} -{if $registerClosed } +{if $registerClosed} <div class="spacer"></div> <div class="messages status no-popup"> <i class="crm-i fa-info-circle" aria-hidden="true"></i> @@ -133,9 +133,9 @@ </div> {/if} - {if ( $event.is_map && $config->mapProvider && - ( is_numeric($location.address.1.geo_code_1) || - ( $location.address.1.city AND $location.address.1.state_province ) ) ) } + {if ($event.is_map && $config->mapProvider && + (is_numeric($location.address.1.geo_code_1) || + ($location.address.1.city AND $location.address.1.state_province)))} <div class="crm-section event_map-section"> <div class="content"> {assign var=showDirectly value="1"} @@ -158,7 +158,7 @@ <div class="crm-eventinfo-contact-phone"> {* @todo This should use "{ts 1=$phone.phone_type_display 2=$phone}%1: %2{/ts}" because some language have nbsp before column *} {if $phone.phone_type_id}{$phone.phone_type_display}:{else}{ts}Phone:{/ts}{/if} - <span class="tel">{$phone.phone}{if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}</span> + <span class="tel">{$phone.phone}{if array_key_exists('phone_ext', $phone)} {ts}ext.{/ts} {$phone.phone_ext}{/if}</span> </div> {/if} {/foreach} @@ -211,7 +211,7 @@ {/if} - {include file="CRM/Custom/Page/CustomDataView.tpl"} + {include file="CRM/Custom/Page/CustomDataView.tpl" groupId = false} <div class="crm-actionlinks-bottom"> {crmRegion name="event-page-eventinfo-actionlinks-bottom"} @@ -222,15 +222,15 @@ {/if} {/crmRegion} </div> - {if $event.is_public } + {if $event.is_public} <div class="action-link section iCal_links-section"> {include file="CRM/Event/Page/iCalLinks.tpl"} </div> {/if} - {if $event.is_share } + {if $event.is_share} {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=1 fe=1 h=1}{/capture} - {include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl} + {include file="CRM/common/SocialNetwork.tpl" url=$eventUrl title=$event.title pageURL=$eventUrl emailMode=true} {/if} </div> </div> diff --git a/civicrm/templates/CRM/Event/Page/UserDashboard.tpl b/civicrm/templates/CRM/Event/Page/UserDashboard.tpl index 6ceeff6ad8..ad096f4858 100644 --- a/civicrm/templates/CRM/Event/Page/UserDashboard.tpl +++ b/civicrm/templates/CRM/Event/Page/UserDashboard.tpl @@ -39,11 +39,6 @@ {/if} </td> <td class="crm-participant-participant_status">{$row.participant_status}</td> - <td class="crm-participant-showConfirmUrl"> - {if !empty($row.showConfirmUrl)} - <a href="{crmURL p='civicrm/event/confirm' q="reset=1&participantId=`$row.participant_id`"}">{ts}Confirm Registration{/ts}</a> - {/if} - </td> </tr> {/foreach} </table> diff --git a/civicrm/templates/CRM/Financial/Form/BatchTransaction.tpl b/civicrm/templates/CRM/Financial/Form/BatchTransaction.tpl index c385088028..20b9fe746d 100644 --- a/civicrm/templates/CRM/Financial/Form/BatchTransaction.tpl +++ b/civicrm/templates/CRM/Financial/Form/BatchTransaction.tpl @@ -319,7 +319,7 @@ function selectAction( id, toggleSelectId, checkId ) { } function bulkAssignRemove( action ) { - var postUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0 q="className=CRM_Financial_Page_AJAX&fnName=bulkAssignRemove&entityID=$entityID" }"{literal}; + var postUrl = {/literal}"{crmURL p='civicrm/ajax/rest' h=0 q="className=CRM_Financial_Page_AJAX&fnName=bulkAssignRemove&entityID=$entityID"}"{literal}; var fids = []; if (action == 'Assign') { CRM.$("input[id^='mark_x_']:checked").each( function () { diff --git a/civicrm/templates/CRM/Financial/Form/FinancialType.tpl b/civicrm/templates/CRM/Financial/Form/FinancialType.tpl index da21614bc9..1d633323b7 100644 --- a/civicrm/templates/CRM/Financial/Form/FinancialType.tpl +++ b/civicrm/templates/CRM/Financial/Form/FinancialType.tpl @@ -9,7 +9,7 @@ *} {* this template is used for adding/editing/deleting financial type *} {include file="CRM/Core/Form/EntityForm.tpl"} -{if $action eq 2 or $action eq 4 } {* Update or View*} +{if $action eq 2 or $action eq 4} {* Update or View*} <div class="crm-submit-buttons"> <a href="{crmURL p='civicrm/admin/financial/financialType/accounts' q="action=browse&reset=1&aid=$aid"}" class="button"><span>{ts}View or Edit Financial Accounts{/ts}</a></span> </div> diff --git a/civicrm/templates/CRM/Form/attachmentjs.tpl b/civicrm/templates/CRM/Form/attachmentjs.tpl index 378aaf1919..fb3e1e96e1 100644 --- a/civicrm/templates/CRM/Form/attachmentjs.tpl +++ b/civicrm/templates/CRM/Form/attachmentjs.tpl @@ -9,7 +9,7 @@ title: $el.attr('title'), message: ts(msg, {1: '<em>' + $el.data('filename') + '</em>'}) }).on('crmConfirm:yes', function() { - var postUrl = {/literal}"{crmURL p='civicrm/file/delete' h=0 }"{literal}; + var postUrl = {/literal}"{crmURL p='civicrm/file/delete' h=0}"{literal}; var request = $.post(postUrl, $el.data('args')); CRM.status({success: '{/literal}{ts escape="js"}Removed{/ts}{literal}'}, request); request.done(function() { diff --git a/civicrm/templates/CRM/Friend/Form.tpl b/civicrm/templates/CRM/Friend/Form.tpl index fcbe4b27ce..63d521a85a 100644 --- a/civicrm/templates/CRM/Friend/Form.tpl +++ b/civicrm/templates/CRM/Friend/Form.tpl @@ -8,7 +8,7 @@ +--------------------------------------------------------------------+ *} {* Enduser Tell-a-Friend form. *} -{if $status eq 'thankyou' } {* Form has been submitted. *} +{if $status eq 'thankyou'} {* Form has been submitted. *} <div class="crm-section tell_friend_thankyou-section"> {$thankYouText} </div> diff --git a/civicrm/templates/CRM/Import/Form/DataSource.tpl b/civicrm/templates/CRM/Import/Form/DataSource.tpl index 6715015900..88d64ea81a 100644 --- a/civicrm/templates/CRM/Import/Form/DataSource.tpl +++ b/civicrm/templates/CRM/Import/Form/DataSource.tpl @@ -19,7 +19,7 @@ </div> {/if} <div class="help"> - {ts 1=$importEntity 2= $importEntities}The %1 Import Wizard allows you to easily upload %2 from other applications into CiviCRM.{/ts} + {ts 1=$importEntity 2=$importEntities}The %1 Import Wizard allows you to easily upload %2 from other applications into CiviCRM.{/ts} </div> <div id="choose-data-source" class="form-item"> <h3>{ts}Choose Data Source{/ts}</h3> @@ -146,7 +146,7 @@ function buildSubTypes( ) { element = cj('input[name="contactType"]:checked').val( ); - var postUrl = {/literal}"{crmURL p='civicrm/ajax/subtype' h=0 }"{literal}; + var postUrl = {/literal}"{crmURL p='civicrm/ajax/subtype' h=0}"{literal}; var param = 'parentId='+ element; cj.ajax({ type: "POST", url: postUrl, data: param, async: false, dataType: 'json', success: function(subtype) @@ -171,7 +171,7 @@ function buildDedupeRules( ) { element = cj("input[name=contactType]:checked").val(); - var postUrl = {/literal}"{crmURL p='civicrm/ajax/dedupeRules' h=0 }"{literal}; + var postUrl = {/literal}"{crmURL p='civicrm/ajax/dedupeRules' h=0}"{literal}; var param = 'parentId='+ element; cj.ajax({ type: "POST", url: postUrl, data: param, async: false, dataType: 'json', success: function(dedupe){ diff --git a/civicrm/templates/CRM/Mailing/Form/InsertTokens.tpl b/civicrm/templates/CRM/Mailing/Form/InsertTokens.tpl index 3a43972bd3..dc73e41666 100644 --- a/civicrm/templates/CRM/Mailing/Form/InsertTokens.tpl +++ b/civicrm/templates/CRM/Mailing/Form/InsertTokens.tpl @@ -141,7 +141,7 @@ function selectValue( val, prefix) { return; } - var dataUrl = {/literal}"{crmURL p='civicrm/ajax/template' h=0 }"{literal}; + var dataUrl = {/literal}"{crmURL p='civicrm/ajax/template' h=0}"{literal}; cj.post( dataUrl, {tid: val}, function( data ) { var hide = (data.document_body && isPDF) ? false : true; @@ -310,7 +310,7 @@ CRM.$(function($) { function setSignature() { var emailID = $("#fromEmailAddress").val( ); if ( !isNaN( emailID ) ) { - var dataUrl = {/literal}"{crmURL p='civicrm/ajax/signature' h=0 }"{literal}; + var dataUrl = {/literal}"{crmURL p='civicrm/ajax/signature' h=0}"{literal}; $.post( dataUrl, {emailID: emailID}, function( data ) { if (data.signature_text) { diff --git a/civicrm/templates/CRM/Mailing/Form/Task.tpl b/civicrm/templates/CRM/Mailing/Form/Task.tpl index 341696fb71..3fab6c326c 100644 --- a/civicrm/templates/CRM/Mailing/Form/Task.tpl +++ b/civicrm/templates/CRM/Mailing/Form/Task.tpl @@ -9,7 +9,7 @@ *} {ts 1=$totalSelectedMailingRecipients}Number of selected Mailing Recipients: %1{/ts} -{if $rows } +{if $rows} <div class="crm-block crm-form-block crm-mailing-task-form-block"> <table width="30%"> <tr class="columnheader"> diff --git a/civicrm/templates/CRM/Mailing/Page/Event.tpl b/civicrm/templates/CRM/Mailing/Page/Event.tpl index e54646eaf4..7b1c00f84a 100644 --- a/civicrm/templates/CRM/Mailing/Page/Event.tpl +++ b/civicrm/templates/CRM/Mailing/Page/Event.tpl @@ -9,7 +9,7 @@ *} {include file="CRM/common/pager.tpl" location="top"} -{if $rows } +{if $rows} {include file="CRM/common/jsortable.tpl"} {strip} <table id="mailing_event"> @@ -71,8 +71,8 @@ jumpTo = totalPages; } {/literal} - {foreach from=$pager->_linkData item=val key=k } - {if $k neq 'crmPID' && $k neq 'force' && $k neq 'q' } + {foreach from=$pager->_linkData item=val key=k} + {if $k neq 'crmPID' && $k neq 'force' && $k neq 'q'} {literal} urlParams += '&{/literal}{$k}={$val}{literal}'; {/literal} @@ -80,7 +80,7 @@ {/foreach} {literal} urlParams += '&crmPID=' + parseInt(jumpTo); - var submitUrl = {/literal}'{crmURL p="civicrm/mailing/report/event" q="force=1" h=0 }'{literal}; + var submitUrl = {/literal}'{crmURL p="civicrm/mailing/report/event" q="force=1" h=0}'{literal}; document.location = submitUrl + urlParams; } </script> diff --git a/civicrm/templates/CRM/Member/Form/Membership.tpl b/civicrm/templates/CRM/Member/Form/Membership.tpl index 8d0a88343e..08f8bb334b 100644 --- a/civicrm/templates/CRM/Member/Form/Membership.tpl +++ b/civicrm/templates/CRM/Member/Form/Membership.tpl @@ -19,7 +19,7 @@ {/if} <div class="spacer"></div> {if $priceSetId} - {include file="CRM/Price/Form/PriceSet.tpl" context="standalone" extends="Membership"} + {include file="CRM/Price/Form/PriceSet.tpl" context="standalone" extends="Membership" hideTotal=false} {literal} <script type="text/javascript"> CRM.$(function($) { @@ -35,7 +35,7 @@ </script> {/literal} {else} - {if $membershipMode == 'test' } + {if $membershipMode == 'test'} {assign var=registerMode value="TEST"} {elseif $membershipMode == 'live'} {assign var=registerMode value="LIVE"} @@ -89,7 +89,7 @@ <span id='totalAmountORPriceSet'> {ts}OR{/ts}</span> <span id='selectPriceSet'>{$form.price_set_id.html}</span> {if $buildPriceSet && $priceSet} - <div id="priceset"><br/>{include file="CRM/Price/Form/PriceSet.tpl" extends="Membership"}</div> + <div id="priceset"><br/>{include file="CRM/Price/Form/PriceSet.tpl" extends="Membership" hideTotal=false}</div> {else} <div id="priceset" class="hiddenElement"></div> {/if} @@ -442,7 +442,7 @@ } {/literal}{/if} - {if $context eq 'standalone' and $isEmailEnabledForSite } + {if $context eq 'standalone' and $isEmailEnabledForSite} {literal} CRM.$(function($) { var $form = $("form.{/literal}{$form.formClass}{literal}"); diff --git a/civicrm/templates/CRM/Member/Form/MembershipBlock.tpl b/civicrm/templates/CRM/Member/Form/MembershipBlock.tpl index fa4667579b..b9b3714847 100644 --- a/civicrm/templates/CRM/Member/Form/MembershipBlock.tpl +++ b/civicrm/templates/CRM/Member/Form/MembershipBlock.tpl @@ -156,7 +156,7 @@ message: {/literal}"{ts escape='js'}Once you switch to using a Price Set, you won't be able to switch back to your existing settings below except by re-entering them. Are you sure you want to switch to a Price Set?{/ts}"{literal} }).on('crmConfirm:yes', function() { {/literal} - var dataUrl = '{crmURL p="civicrm/ajax/rest" h=0 q="className=CRM_Core_Page_AJAX&fnName=setIsQuickConfig&context=civicrm_contribution_page&id=$contributionPageID" }'; + var dataUrl = '{crmURL p="civicrm/ajax/rest" h=0 q="className=CRM_Core_Page_AJAX&fnName=setIsQuickConfig&context=civicrm_contribution_page&id=$contributionPageID"}'; {literal} $.getJSON(dataUrl).done(function(result) {window.location = CRM.url("civicrm/admin/price/field", {reset: 1, action: 'browse', sid: result});}); }); diff --git a/civicrm/templates/CRM/Member/Form/MembershipCommon.tpl b/civicrm/templates/CRM/Member/Form/MembershipCommon.tpl index e38588928c..e8cc549386 100644 --- a/civicrm/templates/CRM/Member/Form/MembershipCommon.tpl +++ b/civicrm/templates/CRM/Member/Form/MembershipCommon.tpl @@ -38,7 +38,7 @@ <td>{$form.payment_instrument_id.html} {help id="payment_instrument_id" file="CRM/Contribute/Page/Tab.hlp"}</td> </tr> - {if $action neq 2 } + {if $action neq 2} <tr class="crm-{$formClass}-form-block-trxn_id"> <td class="label">{$form.trxn_id.label}</td> <td>{$form.trxn_id.html}</td> diff --git a/civicrm/templates/CRM/Member/Form/MembershipRenewal.tpl b/civicrm/templates/CRM/Member/Form/MembershipRenewal.tpl index d2a1419357..932a25e7c6 100644 --- a/civicrm/templates/CRM/Member/Form/MembershipRenewal.tpl +++ b/civicrm/templates/CRM/Member/Form/MembershipRenewal.tpl @@ -8,7 +8,7 @@ +--------------------------------------------------------------------+ *} {* this template is used for renewing memberships for a contact *} - {if $membershipMode == 'test' } + {if $membershipMode == 'test'} {assign var=registerMode value="TEST"} {elseif $membershipMode == 'live'} {assign var=registerMode value="LIVE"} diff --git a/civicrm/templates/CRM/Member/Form/MembershipType.tpl b/civicrm/templates/CRM/Member/Form/MembershipType.tpl index e6106b044f..89300a456a 100644 --- a/civicrm/templates/CRM/Member/Form/MembershipType.tpl +++ b/civicrm/templates/CRM/Member/Form/MembershipType.tpl @@ -105,8 +105,7 @@ </div> </fieldset> - {include file="CRM/common/customDataBlock.tpl"} - + {include file="CRM/common/customDataBlock.tpl" customDataType='MembershipType' customDataSubType=false cid=false groupID=false} <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> {/if} <div class="spacer"></div> @@ -172,27 +171,6 @@ function showHidePeriodSettings() { } } -//load the auto renew msg if recur allow. -{/literal}{if $authorize and $allowAutoRenewMsg}{literal} -CRM.$(function($) { - setReminder( null ); -}); -{/literal}{/if}{literal} - -function setReminder( autoRenewOpt ) { - //don't process. - var allowToProcess = {/literal}'{$allowAutoRenewMsg}'{literal}; - if ( !allowToProcess ) { - return; - } - if ( !autoRenewOpt ) { - autoRenewOpt = cj( 'input:radio[name="auto_renew"]:checked').val(); - } - funName = 'hide();'; - if ( autoRenewOpt == 1 || autoRenewOpt == 2 ) funName = 'show();'; - eval( "cj('#autoRenewalMsgId')." + funName ); -} - function showHideMaxRelated(relTypeId) { if (relTypeId) { cj('#maxRelated').show(); diff --git a/civicrm/templates/CRM/Member/Form/Selector.tpl b/civicrm/templates/CRM/Member/Form/Selector.tpl index c32050cef7..8aad4abd28 100644 --- a/civicrm/templates/CRM/Member/Form/Selector.tpl +++ b/civicrm/templates/CRM/Member/Form/Selector.tpl @@ -14,7 +14,7 @@ {strip} <table class="selector row-highlight"> <thead class="sticky"> -{if ! $single and $context eq 'Search' } +{if ! $single and $context eq 'Search'} <th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th> {/if} {foreach from=$columnHeaders item=header} @@ -32,8 +32,8 @@ {counter start=0 skip=1 print=false} {foreach from=$rows item=row} <tr id='rowid{$row.membership_id}' class="{cycle values="odd-row,even-row"} {*if $row.cancel_date} disabled{/if*} crm-membership_{$row.membership_id}"> - {if ! $single } - {if $context eq 'Search' } + {if ! $single} + {if $context eq 'Search'} {assign var=cbName value=$row.checkbox} <td>{$form.$cbName.html}</td> {/if} diff --git a/civicrm/templates/CRM/Member/Form/Task.tpl b/civicrm/templates/CRM/Member/Form/Task.tpl index cacb655cb9..a60474dd84 100644 --- a/civicrm/templates/CRM/Member/Form/Task.tpl +++ b/civicrm/templates/CRM/Member/Form/Task.tpl @@ -9,7 +9,7 @@ *} {ts 1=$totalSelectedMembers}Number of selected memberships: %1{/ts} -{if $rows } +{if $rows} <div class="form-item"> <table width="30%"> <tr class="columnheader"> diff --git a/civicrm/templates/CRM/Member/Form/Task/Print.tpl b/civicrm/templates/CRM/Member/Form/Task/Print.tpl index 1bb80a8d83..c22cc8ea24 100644 --- a/civicrm/templates/CRM/Member/Form/Task/Print.tpl +++ b/civicrm/templates/CRM/Member/Form/Task/Print.tpl @@ -8,7 +8,7 @@ +--------------------------------------------------------------------+ *} <p> -{if $rows } +{if $rows} <div class="form-item"> <span class="element-right">{include file="CRM/common/formButtons.tpl" location="top"}</span> </div> diff --git a/civicrm/templates/CRM/Member/Page/DashBoard.tpl b/civicrm/templates/CRM/Member/Page/DashBoard.tpl index 89bbe618d2..4923b85942 100644 --- a/civicrm/templates/CRM/Member/Page/DashBoard.tpl +++ b/civicrm/templates/CRM/Member/Page/DashBoard.tpl @@ -242,7 +242,7 @@ {* if $pager->_totalItems *} <h3>{ts}Recent Memberships{/ts}</h3> <div class="form-item"> - { include file="CRM/Member/Form/Selector.tpl" context="dashboard" } + {include file="CRM/Member/Form/Selector.tpl" context="dashboard"} </div> {* /if *} {/if} diff --git a/civicrm/templates/CRM/Member/Page/MembershipType.tpl b/civicrm/templates/CRM/Member/Page/MembershipType.tpl index d9f0a0914a..8ca0e9dc0f 100644 --- a/civicrm/templates/CRM/Member/Page/MembershipType.tpl +++ b/civicrm/templates/CRM/Member/Page/MembershipType.tpl @@ -37,7 +37,7 @@ </tr> </thead> {foreach from=$rows item=row} - <tr id="membership_type-{$row.id}" class="crm-entity {cycle values='odd-row,even-row'}{if !empty($row.class)} {$row.class}{/if} crm-membership-type {if NOT $row.is_active} disabled{/if}"> + <tr id="membership_type-{$row.id}" class="crm-entity {cycle values='odd-row,even-row'} crm-membership-type {if NOT $row.is_active} disabled{/if}"> <td class="crmf-name crm-editable" data-field="name">{$row.name}</td> <td class="crmf-period_type crm-editable" data-type="select">{$row.period_type}</td> <td class="crmf-fixed_period_start_day">{$row.fixed_period_start_day}</td> diff --git a/civicrm/templates/CRM/Note/Form/Note.tpl b/civicrm/templates/CRM/Note/Form/Note.tpl index 84de483b2d..d458d25a95 100644 --- a/civicrm/templates/CRM/Note/Form/Note.tpl +++ b/civicrm/templates/CRM/Note/Form/Note.tpl @@ -7,6 +7,46 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{* This tpl is empty. Since notes is a simple form, the tpl is embedded within the parent tpl *} -{* This might change in the future *} -{include file="CRM/Contact/Page/View/Note.tpl"} +{* Delete action *} +{if ($action eq 8)} + <div class=status>{ts}Are you sure you want to delete this note?{/ts}</div> + <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location=''}</div> +{* Create/Update actions *} +{else} + <div class="crm-block crm-form-block crm-note-form-block"> + <table class="form-layout"> + <tr> + <td class="label">{$form.subject.label}</td> + <td> + {$form.subject.html} + </td> + </tr> + <tr> + <td class="label">{$form.note_date.label}</td> + <td>{$form.note_date.html}</td> + </tr> + <tr> + <td class="label">{$form.privacy.label}</td> + <td> + {$form.privacy.html} + </td> + </tr> + <tr> + <td class="label">{$form.note.label}</td> + <td> + {$form.note.html} + </td> + </tr> + <tr class="crm-activity-form-block-attachment"> + <td colspan="2"> + {include file="CRM/Form/attachment.tpl"} + </td> + </tr> + </table> + + <div class="crm-section note-buttons-section no-label"> + <div class="content crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> + <div class="clear"></div> + </div> + </div> +{/if} diff --git a/civicrm/templates/CRM/PCP/Form/PCPAccount.tpl b/civicrm/templates/CRM/PCP/Form/PCPAccount.tpl index d9821f5a16..1a5ee7d9eb 100644 --- a/civicrm/templates/CRM/PCP/Form/PCPAccount.tpl +++ b/civicrm/templates/CRM/PCP/Form/PCPAccount.tpl @@ -26,7 +26,7 @@ {else} <div class="form-item crm-block crm-form-block"> {include file="CRM/common/CMSUser.tpl"} -{include file="CRM/UF/Form/Block.tpl" fields=$fields} +{include file="CRM/UF/Form/Block.tpl" fields=$fields prefix=false hideFieldset=false} <div class="crm-submit-buttons"> {include file="CRM/common/formButtons.tpl" location="bottom"} diff --git a/civicrm/templates/CRM/Pledge/Form/Pledge.tpl b/civicrm/templates/CRM/Pledge/Form/Pledge.tpl index 6222226b84..cf1850b2e8 100644 --- a/civicrm/templates/CRM/Pledge/Form/Pledge.tpl +++ b/civicrm/templates/CRM/Pledge/Form/Pledge.tpl @@ -8,13 +8,13 @@ +--------------------------------------------------------------------+ *} {* this template is used for adding/editing/deleting pledge *} -{if $showAdditionalInfo and $formType } +{if $showAdditionalInfo and $formType} {include file="CRM/Contribute/Form/AdditionalInfo/$formType.tpl"} {else} {if !$email and $action neq 8 and $context neq 'standalone'} <div class="messages status no-popup"> {icon icon="fa-info-circle"}{/icon} - <p>{ts}You will not be able to send an acknowledgment for this pledge because there is no email address recorded for this contact. If you want a acknowledgment to be sent when this pledge is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the pledge.{/ts}</p> + {ts}You will not be able to send an acknowledgment for this pledge because there is no email address recorded for this contact. If you want a acknowledgment to be sent when this pledge is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the pledge.{/ts} </div> {/if} {if $action EQ 2} @@ -22,7 +22,7 @@ {math equation="x / y" x=$amount y=$installments format="%.2f" assign="currentInstallment"} {* Check if current Total Pledge Amount is different from original pledge amount. *} {if $currentInstallment NEQ $eachPaymentAmount} - {assign var=originalPledgeAmount value=`$installments*$eachPaymentAmount`} + {assign var=originalPledgeAmount value=$installments*$eachPaymentAmount} {/if} {/if} <div class="crm-block crm-form-block crm-pledge-form-block"> @@ -85,7 +85,7 @@ </td> </tr> {/if} - {elseif $context eq 'standalone' and $outBound_option != 2 } + {elseif $context eq 'standalone' and $outBound_option != 2} <tr id="acknowledgment-receipt" style="display:none;"> <td class="label">{$form.is_acknowledge.label}</td> <td> @@ -105,7 +105,7 @@ </td> </tr> <tr class="crm-pledge-form-block-financial_type_id"> - <td class="label">{$form.financial_type_id.label} {help id='id-financial_type_id'} + <td class="label">{$form.financial_type_id.label} {help id='id-financial_type_id' file="CRM/Pledge/Form/Pledge.hlp"} </td> <td>{$form.financial_type_id.html}</td> </tr> @@ -115,7 +115,7 @@ campaignTrClass="crm-pledge-form-block-campaign_id"} <tr class="crm-pledge-form-block-contribution_page_id"> - <td class="label">{$form.contribution_page_id.label} {help id='id-contribution_page_id'}</td> + <td class="label">{$form.contribution_page_id.label} {help id='id-contribution_page_id' file="CRM/Pledge/Form/Pledge.hlp"}</td> <td>{$form.contribution_page_id.html}</td> </tr> @@ -233,7 +233,7 @@ }; {/literal} - {if $context eq 'standalone' and $outBound_option != 2 } + {if $context eq 'standalone' and $outBound_option != 2} {literal} CRM.$(function($) { var $form = $("form.{/literal}{$form.formClass}{literal}"); diff --git a/civicrm/templates/CRM/Pledge/Form/PledgeView.tpl b/civicrm/templates/CRM/Pledge/Form/PledgeView.tpl index bc9e1aa6b8..534808d2e1 100644 --- a/civicrm/templates/CRM/Pledge/Form/PledgeView.tpl +++ b/civicrm/templates/CRM/Pledge/Form/PledgeView.tpl @@ -10,7 +10,7 @@ {math equation="x / y" x=$amount y=$installments format="%.2f" assign="currentInstallment"} {* Check if current Total Pledge Amount is different from original pledge amount. *} {if $currentInstallment NEQ $original_installment_amount} - {assign var=originalPledgeAmount value=`$installments*$original_installment_amount`} + {assign var=originalPledgeAmount value=$installments*$original_installment_amount} {/if} <div class="crm-block crm-content-block crm-pledge-view-block"> diff --git a/civicrm/templates/CRM/Pledge/Form/Search.tpl b/civicrm/templates/CRM/Pledge/Form/Search.tpl index b5441f658b..c12a1acb33 100644 --- a/civicrm/templates/CRM/Pledge/Form/Search.tpl +++ b/civicrm/templates/CRM/Pledge/Form/Search.tpl @@ -31,7 +31,7 @@ </div> </div> -{if $rowsEmpty || $rows } +{if $rowsEmpty || $rows} <div class="crm-content-block"> diff --git a/civicrm/templates/CRM/Pledge/Form/Selector.tpl b/civicrm/templates/CRM/Pledge/Form/Selector.tpl index e3ee37f961..00c7ea84a8 100644 --- a/civicrm/templates/CRM/Pledge/Form/Selector.tpl +++ b/civicrm/templates/CRM/Pledge/Form/Selector.tpl @@ -15,7 +15,7 @@ {strip} <table class="selector row-highlight"> <thead class="sticky"> - {if ! $single and $context eq 'Search' } + {if ! $single and $context eq 'Search'} <th scope="col" title="{ts}Select rows{/ts}">{$form.toggleSelect.html}</th> {/if} <th></th> @@ -33,15 +33,15 @@ {counter start=0 skip=1 print=false} {foreach from=$rows item=row} {cycle values="odd-row,even-row" assign=rowClass} - <tr id='rowid{$row.pledge_id}' class='{$rowClass} {if $row.pledge_status_name eq 'Overdue' } status-overdue{/if}'> - {if $context eq 'Search' } + <tr id='rowid{$row.pledge_id}' class='{$rowClass} {if $row.pledge_status_name eq 'Overdue'} status-overdue{/if}'> + {if $context eq 'Search'} {assign var=cbName value=$row.checkbox} <td>{$form.$cbName.html}</td> {/if} <td> <a class="crm-expand-row" title="{ts}view payments{/ts}" href="{crmURL p='civicrm/pledge/payment' q="action=browse&context=`$context`&pledgeId=`$row.pledge_id`&cid=`$row.contact_id`"}"></a> </td> - {if ! $single } + {if ! $single} <td>{$row.contact_type}</td> <td> <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a> @@ -49,7 +49,7 @@ {/if} <td class="right">{$row.pledge_amount|crmMoney:$row.pledge_currency}</td> <td class="right">{$row.pledge_total_paid|crmMoney:$row.pledge_currency}</td> - <td class="right">{$row.pledge_amount-$row.pledge_total_paid|crmMoney:$row.pledge_currency}</td> + <td class="right">{($row.pledge_amount-$row.pledge_total_paid)|crmMoney:$row.pledge_currency}</td> <td>{$row.pledge_financial_type}</td> <td>{$row.pledge_create_date|truncate:10:''|crmDate}</td> <td>{$row.pledge_next_pay_date|truncate:10:''|crmDate}</td> @@ -60,7 +60,7 @@ {/foreach} {* Dashboard only lists 10 most recent pledges. *} - {if $context EQ 'dashboard' and $limit and $pager->_totalItems GT $limit } + {if $context EQ 'dashboard' and $limit and $pager->_totalItems GT $limit} <tr class="even-row"> <td colspan="10"><a href="{crmURL p='civicrm/pledge/search' q='reset=1'}"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}Find more pledges{/ts}... </a></td> </tr> diff --git a/civicrm/templates/CRM/Pledge/Form/Task.tpl b/civicrm/templates/CRM/Pledge/Form/Task.tpl index 4f96201e60..99714a08f9 100644 --- a/civicrm/templates/CRM/Pledge/Form/Task.tpl +++ b/civicrm/templates/CRM/Pledge/Form/Task.tpl @@ -9,7 +9,7 @@ *} {ts 1=$totalSelectedPledges}Number of selected pledges: %1{/ts} -{if $rows } +{if $rows} <div class="crm-block crm-form-block crm-pledge-task-form-block"> <table width="30%"> <tr class="columnheader"> diff --git a/civicrm/templates/CRM/Pledge/Form/Task/Print.tpl b/civicrm/templates/CRM/Pledge/Form/Task/Print.tpl index 32d8829100..fd4b2a9f2b 100644 --- a/civicrm/templates/CRM/Pledge/Form/Task/Print.tpl +++ b/civicrm/templates/CRM/Pledge/Form/Task/Print.tpl @@ -9,7 +9,7 @@ *} <p> -{if $rows } +{if $rows} <div class="form-item"> <span class="element-right">{$form.buttons.html}</span> </div> diff --git a/civicrm/templates/CRM/Pledge/Page/DashBoard.tpl b/civicrm/templates/CRM/Pledge/Page/DashBoard.tpl index 3da840c11b..4d280d8f56 100644 --- a/civicrm/templates/CRM/Pledge/Page/DashBoard.tpl +++ b/civicrm/templates/CRM/Pledge/Page/DashBoard.tpl @@ -21,46 +21,46 @@ <tr> <td scope="row"><strong>{ts}Total Pledges{/ts}</strong></td> {* prior month *} - <td class="right"><a href="{$previousToDate.Completed.purl}">{$previousToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Completed.pledge_count }<a href="{$previousToDate.Completed.purl}">{$previousToDate.Completed.pledge_amount}</a>{/if}</td> + <td class="right"><a href="{$previousToDate.Completed.purl}">{$previousToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Completed.pledge_count}<a href="{$previousToDate.Completed.purl}">{$previousToDate.Completed.pledge_amount}</a>{/if}</td> {* current month *} - <td class="right"><a href="{$monthToDate.Completed.purl}">{$monthToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Completed.pledge_count }<a href="{$monthToDate.Completed.purl}">{$monthToDate.Completed.pledge_amount}</a>{/if}</td> + <td class="right"><a href="{$monthToDate.Completed.purl}">{$monthToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Completed.pledge_count}<a href="{$monthToDate.Completed.purl}">{$monthToDate.Completed.pledge_amount}</a>{/if}</td> {* current year *} - <td class="right"><a href="{$yearToDate.Completed.purl}">{$yearToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Completed.pledge_count }<a href="{$yearToDate.Completed.purl}">{$yearToDate.Completed.pledge_amount}</a>{/if}</td> + <td class="right"><a href="{$yearToDate.Completed.purl}">{$yearToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Completed.pledge_count}<a href="{$yearToDate.Completed.purl}">{$yearToDate.Completed.pledge_amount}</a>{/if}</td> {* cumulative *} - <td class="right"><a href="{$startToDate.Completed.purl}">{$startToDate.Completed.pledge_count}</a></td><td class="right">{if $startToDate.Completed.pledge_count }<a href="{$startToDate.Completed.purl}">{$startToDate.Completed.pledge_amount}</a>{/if}</td> + <td class="right"><a href="{$startToDate.Completed.purl}">{$startToDate.Completed.pledge_count}</a></td><td class="right">{if $startToDate.Completed.pledge_count}<a href="{$startToDate.Completed.purl}">{$startToDate.Completed.pledge_amount}</a>{/if}</td> </tr> <tr> <td scope="row"><strong>{ts}Payments Received{/ts}</strong></td> {* prior month *} - <td class="right"><a href="{$previousToDate.Completed.url}">{$previousToDate.Completed.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Completed.received_count }<a href="{$previousToDate.Completed.url}">{$previousToDate.Completed.received_amount}</a>{/if}</td> + <td class="right"><a href="{$previousToDate.Completed.url}">{$previousToDate.Completed.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Completed.received_count}<a href="{$previousToDate.Completed.url}">{$previousToDate.Completed.received_amount}</a>{/if}</td> {* current month *} <td class="right"><a href="{$monthToDate.Completed.url}">{$monthToDate.Completed.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Completed.received_count}<a href="{$monthToDate.Completed.url}">{$monthToDate.Completed.received_amount}</a>{/if}</td> {* current year *} - <td class="right"><a href="{$yearToDate.Completed.url}">{$yearToDate.Completed.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Completed.received_count }<a href="{$yearToDate.Completed.url}">{$yearToDate.Completed.received_amount}</a>{/if}</td> + <td class="right"><a href="{$yearToDate.Completed.url}">{$yearToDate.Completed.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Completed.received_count}<a href="{$yearToDate.Completed.url}">{$yearToDate.Completed.received_amount}</a>{/if}</td> {* cumulative *} - <td class="right"><a href="{$startToDate.Completed.url}">{$startToDate.Completed.received_count}</a></td><td class="right">{if $startToDate.Completed.received_count }<a href="{$startToDate.Completed.url}">{$startToDate.Completed.received_amount}</a>{/if}</td> + <td class="right"><a href="{$startToDate.Completed.url}">{$startToDate.Completed.received_count}</a></td><td class="right">{if $startToDate.Completed.received_count}<a href="{$startToDate.Completed.url}">{$startToDate.Completed.received_amount}</a>{/if}</td> </tr> <tr> <td scope="row"><strong>{ts}Balance Due{/ts}</strong></td> {* prior month *} - <td class="right"><a href="{$previousToDate.Pending.url}">{$previousToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Pending.received_count }<a href="{$previousToDate.Pending.url}">{$previousToDate.Pending.received_amount}</a>{/if}</td> + <td class="right"><a href="{$previousToDate.Pending.url}">{$previousToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Pending.received_count}<a href="{$previousToDate.Pending.url}">{$previousToDate.Pending.received_amount}</a>{/if}</td> {* current month *} - <td class="right"><a href="{$monthToDate.Pending.url}">{$monthToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Pending.received_count }<a href="{$monthToDate.Pending.url}">{$monthToDate.Pending.received_amount}</a>{/if}</td> + <td class="right"><a href="{$monthToDate.Pending.url}">{$monthToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Pending.received_count}<a href="{$monthToDate.Pending.url}">{$monthToDate.Pending.received_amount}</a>{/if}</td> {* current year *} - <td class="right"><a href="{$yearToDate.Pending.url}">{$yearToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Pending.received_count }<a href="{$yearToDate.Pending.url}">{$yearToDate.Pending.received_amount}</a>{/if}</td> + <td class="right"><a href="{$yearToDate.Pending.url}">{$yearToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Pending.received_count}<a href="{$yearToDate.Pending.url}">{$yearToDate.Pending.received_amount}</a>{/if}</td> {* cumulative *} - <td class="right"><a href="{$startToDate.Pending.url}">{$startToDate.Pending.received_count}</a></td><td class="right">{if $startToDate.Pending.received_count }<a href="{$startToDate.Pending.url}">{$startToDate.Pending.received_amount}</a>{/if}</td> + <td class="right"><a href="{$startToDate.Pending.url}">{$startToDate.Pending.received_count}</a></td><td class="right">{if $startToDate.Pending.received_count}<a href="{$startToDate.Pending.url}">{$startToDate.Pending.received_amount}</a>{/if}</td> </tr> <tr> <td scope="row"><strong>{ts}Past Due{/ts}</strong></td> {* prior month *} - <td class="right"><a href="{$previousToDate.Overdue.url}">{$previousToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Overdue.received_count }<a href="{$previousToDate.Overdue.url}">{$previousToDate.Overdue.received_amount}</a>{/if}</td> + <td class="right"><a href="{$previousToDate.Overdue.url}">{$previousToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Overdue.received_count}<a href="{$previousToDate.Overdue.url}">{$previousToDate.Overdue.received_amount}</a>{/if}</td> {* current month *} - <td class="right"><a href="{$monthToDate.Overdue.url}">{$monthToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Overdue.received_count }<a href="{$monthToDate.Overdue.url}">{$monthToDate.Overdue.received_amount}</a>{/if}</td> + <td class="right"><a href="{$monthToDate.Overdue.url}">{$monthToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Overdue.received_count}<a href="{$monthToDate.Overdue.url}">{$monthToDate.Overdue.received_amount}</a>{/if}</td> {* current year *} - <td class="right"><a href="{$yearToDate.Overdue.url}">{$yearToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Overdue.received_count }<a href="{$yearToDate.Overdue.url}">{$yearToDate.Overdue.received_amount}</a>{/if}</td> + <td class="right"><a href="{$yearToDate.Overdue.url}">{$yearToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Overdue.received_count}<a href="{$yearToDate.Overdue.url}">{$yearToDate.Overdue.received_amount}</a>{/if}</td> {* cumulative *} - <td class="right"><a href="{$startToDate.Overdue.url}">{$startToDate.Overdue.received_count}</a></td><td class="right">{if $startToDate.Overdue.received_count }<a href="{$startToDate.Overdue.url}">{$startToDate.Overdue.received_amount}</a>{/if}</td> + <td class="right"><a href="{$startToDate.Overdue.url}">{$startToDate.Overdue.received_count}</a></td><td class="right">{if $startToDate.Overdue.received_count}<a href="{$startToDate.Overdue.url}">{$startToDate.Overdue.received_amount}</a>{/if}</td> </tr> </table> diff --git a/civicrm/templates/CRM/Pledge/Page/Payment.tpl b/civicrm/templates/CRM/Pledge/Page/Payment.tpl index 0da77a1503..e790366c52 100644 --- a/civicrm/templates/CRM/Pledge/Page/Payment.tpl +++ b/civicrm/templates/CRM/Pledge/Page/Payment.tpl @@ -7,7 +7,7 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{if $action eq 2 } {* update *} +{if $action eq 2} {* update *} {include file="CRM/Pledge/Form/Payment.tpl"} {else} {if $context eq 'dashboard'}{assign var='context' value='pledgeDashboard'}{/if} @@ -23,16 +23,16 @@ </tr> {foreach from=$rows item=row} - <tr class="{cycle values="odd-row,even-row"} {if $row.status eq 'Overdue' } status-overdue{/if}"> + <tr class="{cycle values="odd-row,even-row"} {if $row.status eq 'Overdue'} status-overdue{/if}"> <td class="right">{$row.scheduled_amount|crmMoney:$row.currency}</td> <td>{$row.scheduled_date|truncate:10:''|crmDate}</td> <td class="right">{$row.total_amount|crmMoney:$row.currency}</td> <td>{$row.receive_date|truncate:10:''|crmDate}</td> <td>{$row.reminder_date|truncate:10:''|crmDate}</td> <td class="right">{if $row.reminder_count}{$row.reminder_count}{/if}</td> - <td {if ! ($permission EQ 'edit' and ($row.status eq 'Pending' or $row.status eq 'Overdue' or $row.status eq 'Completed')) } colspan="2"{/if} >{$row.label}</td> + <td {if ! ($permission EQ 'edit' and ($row.status eq 'Pending' or $row.status eq 'Overdue' or $row.status eq 'Completed'))} colspan="2"{/if} >{$row.label}</td> {if $context neq 'user'} - {if $permission EQ 'edit' and ($row.status eq 'Pending' or $row.status eq 'Overdue' or $row.status eq 'Completed') } + {if $permission EQ 'edit' and ($row.status eq 'Pending' or $row.status eq 'Overdue' or $row.status eq 'Completed')} <td class="nowrap"> {if $row.status eq 'Completed'} {* Link to view contribution record for completed payment.*} {capture assign=viewContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&id=`$row.contribution_id`&cid=`$contactId`&action=view&context=`$context`"}{/capture} diff --git a/civicrm/templates/CRM/Pledge/Page/UserDashboard.tpl b/civicrm/templates/CRM/Pledge/Page/UserDashboard.tpl index cfff76bd72..e335b6a883 100644 --- a/civicrm/templates/CRM/Pledge/Page/UserDashboard.tpl +++ b/civicrm/templates/CRM/Pledge/Page/UserDashboard.tpl @@ -21,7 +21,7 @@ </tr> {counter start=0 skip=1 print=false} {foreach from=$pledge_rows item=row} - <tr id='rowid{$row.pledge_id}' class="{cycle values="odd-row,even-row"} {if $row.pledge_status_name eq 'Overdue' } disabled{/if} crm-pledge crm-pledge_{$row.pledge_id} "> + <tr id='rowid{$row.pledge_id}' class="{cycle values="odd-row,even-row"} {if $row.pledge_status_name eq 'Overdue'} disabled{/if} crm-pledge crm-pledge_{$row.pledge_id} "> <td class="crm-pledge-pledge_amount">{$row.pledge_amount|crmMoney:$row.pledge_currency}</td> <td class="crm-pledge-pledge_total_paid">{$row.pledge_total_paid|crmMoney:$row.pledge_currency}</td> <td class="crm-pledge-pledge_amount">{$row.pledge_amount-$row.pledge_total_paid|crmMoney:$row.pledge_currency}</td> @@ -32,7 +32,7 @@ <td class="crm-pledge-pledge_status crm-pledge-pledge_status_{$row.pledge_status}">{$row.pledge_status}</td> {if empty($userChecksum)} <td> - {if $row.pledge_contribution_page_id and ($row.pledge_status_name neq 'Completed') and ( $row.contact_id eq $loggedUserID ) } + {if $row.pledge_contribution_page_id and ($row.pledge_status_name neq 'Completed') and ($row.contact_id eq $loggedUserID)} <a href="{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$row.pledge_contribution_page_id`&pledgeId=`$row.pledge_id`"}">{ts}Make Payment{/ts}</a><br/> {/if} <a class="crm-expand-row" title="{ts}view payments{/ts}" href="{crmURL p='civicrm/pledge/payment' q="action=browse&context=`$context`&pledgeId=`$row.pledge_id`&cid=`$row.contact_id`"}">{ts}Payments{/ts}</a> diff --git a/civicrm/templates/CRM/Price/Form/Calculate.tpl b/civicrm/templates/CRM/Price/Form/Calculate.tpl index 170334b499..438f9739e1 100644 --- a/civicrm/templates/CRM/Price/Form/Calculate.tpl +++ b/civicrm/templates/CRM/Price/Form/Calculate.tpl @@ -8,8 +8,6 @@ +--------------------------------------------------------------------+ *} -{assign var='hideTotal' value=$quickConfig+$noCalcValueDisplay} - <div id="pricesetTotal" class="crm-section section-pricesetTotal"> <div id="pricelabel" class="label {if $hideTotal}hiddenElement{/if}"> {if ($extends eq 'Contribution') || ($extends eq 'Membership')} diff --git a/civicrm/templates/CRM/Price/Form/Field.tpl b/civicrm/templates/CRM/Price/Form/Field.tpl index f04698cd59..aee89a9db9 100644 --- a/civicrm/templates/CRM/Price/Form/Field.tpl +++ b/civicrm/templates/CRM/Price/Form/Field.tpl @@ -243,7 +243,7 @@ {/literal} {* Give link to view/edit choice options if in edit mode and html_type is one of the multiple choice types *} -{if $action eq 2 AND ($form.data_type.value.1.0 eq 'CheckBox' OR $form.data_type.value.1.0 eq 'Radio' OR $form.data_type.value.1.0 eq 'Select') } +{if $action eq 2 AND ($form.data_type.value.1.0 eq 'CheckBox' OR $form.data_type.value.1.0 eq 'Radio' OR $form.data_type.value.1.0 eq 'Select')} <div class="action-link"> <a href="{crmURL p="civicrm/admin/event/field/option" q="reset=1&action=browse&fid=`$fid`"}" class="button"><span>{ts}Multiple Choice Options{/ts}</span></a> </div> diff --git a/civicrm/templates/CRM/Price/Form/LineItem.tpl b/civicrm/templates/CRM/Price/Form/LineItem.tpl deleted file mode 100644 index 4829b322a6..0000000000 --- a/civicrm/templates/CRM/Price/Form/LineItem.tpl +++ /dev/null @@ -1,145 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC. All rights reserved. | - | | - | This work is published under the GNU AGPLv3 license with some | - | permitted exceptions and without any warranty. For full license | - | and copyright information, see https://civicrm.org/licensing | - +--------------------------------------------------------------------+ -*} - -{* Displays contribution/event fees when price set is used. *} -{foreach from=$lineItem item=value key=priceset} - {if $value neq 'skip'} - {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} - {if $priceset GT 0}<br/>{/if} - <strong>{ts}Participant {$priceset+1}{/ts}</strong> - {$part.$priceset.info} - {/if} - <table> - <tr class="columnheader"> - <th>{ts}Item{/ts}</th> - {if $context EQ "Membership"} - <th class="right">{ts}Fee{/ts}</th> - {else} - <th class="right">{ts}Qty{/ts}</th> - <th class="right">{ts}Unit Price{/ts}</th> - <th class="right">{ts}Total Price{/ts}</th> - {if $context EQ "Contribution" && $action eq 2} - <th class="right">{ts}Paid{/ts}</th> - <th class="right">{ts}Owing{/ts}</th> - <th class="right">{ts}Amount of<br>Current Payment {/ts}</th> - {/if} - {/if} - - {if $pricesetFieldsCount} - <th class="right">{ts}Total Participants{/ts}</th>{/if} - </tr> - {foreach from=$value item=line} - <tr> - <td>{if $line.field_title && $line.html_type neq 'Text'}{$line.field_title} – {$line.label}{else}{$line.label}{/if} {if $line.description} - <div class="description">{$line.description}</div>{/if}</td> - {if $context NEQ "Membership"} - <td class="right">{$line.qty}</td> - <td class="right">{$line.unit_price|crmMoney}</td> - {/if} - <td class="right">{$line.line_total|crmMoney}</td> - {if $pricesetFieldsCount} - <td class="right">{$line.participant_count}</td> {/if} - {if $context EQ "Contribution" && $action eq 2} - <td class="right">{$pricefildTotal.LineItems[$line.price_field_value_id]|crmMoney}</td> - <td class="right"> - {assign var="fildTotal" value=$line.line_total-$pricefildTotal[$pricefildTotal.id][$line.price_field_value_id]} - {$fildTotal|crmMoney} - </td> - <td class="left">$<input - type='text' id='txt-price[{$line.price_field_value_id}]' - name='txt-price[{$line.price_field_value_id}]' size='4' - class='distribute'> <input type='checkbox' - id='cb-price[{$line.price_field_value_id}]' - name='cb-price[{$line.price_field_value_id}]' - price='{$fildTotal}' class='payFull'/></td> - {/if} - </tr> - {/foreach} - {if $context EQ "Contribution" && $action eq 2} - <tr> - <td> - {ts}Contribution Total{/ts}: - </td> - <td></td> - <td></td> - <td class="right">{$totalAmount|crmMoney}</td> - <td class="right">{$pricefildTotal.total|crmMoney}</td> - <td class="right">{assign var="total" value= $totalAmount-$pricefildTotal.total}{$total|crmMoney}</td> - <td class="left"><h5 class='editPayment'></h5> - {literal} - <script type="text/javascript"> - CRM.$(function ($) { - $(document).on('blur', '.distribute', function () { - var totalAmount = 0; - $('.distribute').each(function () { - if ($(this).val().length > 0) { - totalAmount = parseFloat(totalAmount) + parseFloat($(this).val()); - } - }); - - $('.editPayment').text('$ ' + totalAmount); - var unlocateAmount = '{/literal}{$total}{literal}'; - $('.unlocateAmount').text('$ ' + (unlocateAmount - totalAmount)); - }); - }); - </script> - {/literal} - - </td> - </tr> - <tr> - <td colspan=6 class="right"><strong>{ts}Unallocated Amount{/ts}</strong></td> - <td><h5 class='unlocateAmount'>{$total|crmMoney} </h5></td> - </tr> - {/if} - </table> - {/if} -{/foreach} - -<div class="crm-section no-label total_amount-section"> - <div class="content bold"> - {if $context EQ "Contribution"} - {ts}Contribution Total{/ts}: - {elseif $context EQ "Event"} - {ts}Total Amount{/ts}: - {elseif $context EQ "Membership"} - {ts}Membership Fee Total{/ts}: - {else} - {ts}Total Amount{/ts}: - {/if} - {$totalAmount|crmMoney} - </div> - <div class="content bold"> - {if $pricesetFieldsCount} - {ts}Total Participants{/ts}: - {foreach from=$lineItem item=pcount} - {if $pcount neq 'skip'} - {assign var="lineItemCount" value=0} - - {foreach from=$pcount item=p_count} - {assign var="intPCount" value=$p_count.participant_count|intval} - {assign var="lineItemCount" value=$lineItemCount+$intPCount} - {/foreach} - {if $lineItemCount < 1 } - {assign var="lineItemCount" value=1} - {/if} - {assign var="totalcount" value=$totalcount+$lineItemCount} - {/if} - {/foreach} - {$totalcount} - {/if} - </div> -</div> - -{if $hookDiscount.message} - <div class="crm-section hookDiscount-section"> - <em>({$hookDiscount.message})</em> - </div> -{/if} diff --git a/civicrm/templates/CRM/Price/Form/Option.tpl b/civicrm/templates/CRM/Price/Form/Option.tpl index a7d351009d..52b8ad7a60 100644 --- a/civicrm/templates/CRM/Price/Form/Option.tpl +++ b/civicrm/templates/CRM/Price/Form/Option.tpl @@ -54,7 +54,7 @@ <tr class="crm-price-option-form-block-financial-type"> <td class="label">{$form.financial_type_id.label}</td> <td> - {if !$financialType } + {if !$financialType} {capture assign=ftUrl}{crmURL p='civicrm/admin/financial/financialType' q="reset=1"}{/capture} {ts 1=$ftUrl}There are no financial types configured with a linked 'Revenue Account of' account. <a href='%1'>Click here</a> if you want to configure financial types for your site.{/ts} {else} diff --git a/civicrm/templates/CRM/Price/Form/Preview.tpl b/civicrm/templates/CRM/Price/Form/Preview.tpl index c3d04f0be4..b2af813f8d 100644 --- a/civicrm/templates/CRM/Price/Form/Preview.tpl +++ b/civicrm/templates/CRM/Price/Form/Preview.tpl @@ -20,7 +20,7 @@ {foreach from=$groupTree item=priceSet key=group_id} <fieldset> {if $preview_type eq 'group'}<legend>{$setTitle}</legend>{/if} - {include file="CRM/Price/Form/PriceSet.tpl"} + {include file="CRM/Price/Form/PriceSet.tpl" hideTotal=false} </fieldset> {/foreach} {/strip} diff --git a/civicrm/templates/CRM/Price/Form/PriceSet.tpl b/civicrm/templates/CRM/Price/Form/PriceSet.tpl index 13c626c008..67c1e9be22 100644 --- a/civicrm/templates/CRM/Price/Form/PriceSet.tpl +++ b/civicrm/templates/CRM/Price/Form/PriceSet.tpl @@ -14,7 +14,7 @@ {/if} {assign var='adminFld' value=false} - {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') } + {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM')} {assign var='adminFld' value=true} {if $priceSet.id && !$priceSet.is_quick_config} <div class='float-right'> @@ -27,22 +27,22 @@ {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.visibility EQ 'public' || ($element.visibility EQ 'admin' && $adminFld EQ true) || $context eq 'standalone' || $context eq 'advanced' || $context eq 'search' || $context eq 'participant' || $context eq 'dashboard' } + {if $element.visibility EQ 'public' || ($element.visibility EQ 'admin' && $adminFld EQ true) || $context eq 'standalone' || $context eq 'advanced' || $context eq 'search' || $context eq 'participant' || $context eq 'dashboard'} {if $element.help_pre}<span class="content description">{$element.help_pre}</span><br />{/if} <div class="crm-section {$element.name}-section crm-price-field-id-{$field_id}"> {if ($element.html_type eq 'CheckBox' || $element.html_type == 'Radio') && $element.options_per_line} - {assign var="element_name" value="price_"|cat:$field_id} + {assign var="element_name" value="price_`$field_id`"} <div class="label">{$form.$element_name.label}</div> <div class="content {$element.name}-content"> {assign var="elementCount" value="0"} {assign var="optionCount" value="0"} {assign var="rowCount" value="0"} {foreach name=outer key=key item=item from=$form.$element_name} - {assign var="elementCount" value=`$elementCount+1`} - {if is_numeric($key) } - {assign var="optionCount" value=`$optionCount+1`} + {assign var="elementCount" value=$elementCount+1} + {if is_numeric($key)} + {assign var="optionCount" value=$optionCount+1} {if $optionCount == 1} - {assign var="rowCount" value=`$rowCount+1`} + {assign var="rowCount" value=$rowCount+1} <div class="price-set-row {$element.name}-row{$rowCount}"> {/if} <span class="price-set-option-content">{$form.$element_name.$key.html}</span> @@ -68,7 +68,7 @@ <span class="price-field-amount{if $form.$element_name.frozen EQ 1} sold-out-option{/if}"> {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`} + {assign var="amount" value=$option.amount+$option.tax_amount} {if $displayOpt == 'Do_not_show'} {$amount|crmMoney:$currency} {elseif $displayOpt == 'Inclusive'} diff --git a/civicrm/templates/CRM/Price/Page/Field.tpl b/civicrm/templates/CRM/Price/Page/Field.tpl index b223aa9f09..bac6b4a7ae 100644 --- a/civicrm/templates/CRM/Price/Page/Field.tpl +++ b/civicrm/templates/CRM/Price/Page/Field.tpl @@ -11,7 +11,7 @@ {include file="CRM/Price/Form/Field.tpl"} {elseif $action eq 8 and !$usedBy and !$isReserved} {include file="CRM/Price/Form/DeleteField.tpl"} -{elseif $action eq 1024 } +{elseif $action eq 1024} {include file="CRM/Price/Form/Preview.tpl"} {elseif $usedBy} <div id="price_set_used_by" class="messages status no-popup"> @@ -64,7 +64,7 @@ {$taxTerm} ({$row.tax_rate|string_format:"%.2f"}%) {/if} </td> - <td>{if $row.html_type eq "Text / Numeric Quantity" }{$row.tax_amount|crmMoney}{/if}</td> + <td>{if $row.html_type eq "Text / Numeric Quantity"}{$row.tax_amount|crmMoney}{/if}</td> {/if} <td class="field-action">{$row.action|smarty:nodefaults|replace:'xx':$row.id}</td> </tr> diff --git a/civicrm/templates/CRM/Price/Page/LineItem.tpl b/civicrm/templates/CRM/Price/Page/LineItem.tpl index 4e22d9780a..8635cf9028 100644 --- a/civicrm/templates/CRM/Price/Page/LineItem.tpl +++ b/civicrm/templates/CRM/Price/Page/LineItem.tpl @@ -114,7 +114,7 @@ {assign var="intPCount" value=$p_count.participant_count|intval} {assign var="lineItemCount" value=$lineItemCount+$intPCount} {/foreach} - {if $lineItemCount < 1 } + {if $lineItemCount < 1} {assign var="lineItemCount" value=1} {/if} {assign var="totalcount" value=$totalcount+$lineItemCount} diff --git a/civicrm/templates/CRM/Price/Page/Option.tpl b/civicrm/templates/CRM/Price/Page/Option.tpl index 7fe01d00c2..90faab6cfe 100644 --- a/civicrm/templates/CRM/Price/Page/Option.tpl +++ b/civicrm/templates/CRM/Price/Page/Option.tpl @@ -72,7 +72,7 @@ <td class="nowrap crm-price-option-financial-type-id">{$row.financial_type_id}</td> <td class="nowrap crm-price-option-order">{$row.weight|smarty:nodefaults}</td> {if $getTaxDetails} - <td>{if $row.tax_rate != '' } + <td>{if $row.tax_rate != ''} {$taxTerm} ({$row.tax_rate}%) {/if} </td> diff --git a/civicrm/templates/CRM/Price/Page/Set.tpl b/civicrm/templates/CRM/Price/Page/Set.tpl index 15accf0acb..b1a3073bed 100644 --- a/civicrm/templates/CRM/Price/Page/Set.tpl +++ b/civicrm/templates/CRM/Price/Page/Set.tpl @@ -55,7 +55,7 @@ {/foreach} </table> - {if NOT ($action eq 1 or $action eq 2) } + {if NOT ($action eq 1 or $action eq 2)} <div class="action-link"> {crmButton p='civicrm/admin/price/edit' q="action=add&reset=1" id="newPriceSet" icon="plus-circle"}{ts}Add Set of Price Fields{/ts}{/crmButton} </div> diff --git a/civicrm/templates/CRM/Profile/Form/Dynamic.tpl b/civicrm/templates/CRM/Profile/Form/Dynamic.tpl index 3fd1036795..1fc531b81f 100644 --- a/civicrm/templates/CRM/Profile/Form/Dynamic.tpl +++ b/civicrm/templates/CRM/Profile/Form/Dynamic.tpl @@ -8,7 +8,7 @@ +--------------------------------------------------------------------+ *} <div class="crm-profile-name-{$ufGroupName}"> -{crmRegion name=profile-form-`$ufGroupName`} +{crmRegion name="profile-form-`$ufGroupName`"} {* Profile forms when embedded in CMS account create (mode=1) or cms account edit (mode=8) or civicrm/profile (mode=4) pages *} @@ -29,7 +29,7 @@ {* Wrap in crm-container div so crm styles are used.*} {* Replace div id "crm-container" only when profile is not loaded in civicrm container, i.e for profile shown in my account and in profile standalone mode otherwise id should be "crm-profile-block" *} - {if $action eq 1 or $action eq 2 or $action eq 4 } + {if $action eq 1 or $action eq 2 or $action eq 4} <div id="crm-profile-block" class="crm-container crm-public"> {else} <div id="crm-container" class="crm-container crm-public" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}"> @@ -98,7 +98,7 @@ <div class="crm-section editrow_{$n}-section form-item" id="editrow-{$n}"> <div class="label">{$form.$n.label}</div> <div class="content edit-value"> - {assign var="count" value="1"} + {assign var="count" value=1} {strip} <table class="form-layout-compressed"> <tr> @@ -110,9 +110,9 @@ {if $count == $field.options_per_line} </tr> <tr> - {assign var="count" value="1"} + {assign var="count" value=1} {else} - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} {/if} {/if} {/foreach} @@ -129,7 +129,7 @@ </div> <div class="edit-value content"> {if $n|substr:0:3 eq 'im-'} - {assign var="provider" value=$n|cat:"-provider_id"} + {assign var="provider" value="$n-provider_id"} {$form.$provider.html} {/if} {if $n eq 'email_greeting' or $n eq 'postal_greeting' or $n eq 'addressee'} @@ -192,6 +192,7 @@ {/if} {if ($action eq 1 and $mode eq 4 ) or ($action eq 2) or ($action eq 8192)} + {assign var=floatStyle value=''} {if $action eq 2 and $multiRecordFieldListing} <div class="crm-multi-record-custom-field-listing"> {include file="CRM/Profile/Page/MultipleRecordFieldsListing.tpl" showListing=true} diff --git a/civicrm/templates/CRM/Profile/Form/Search.tpl b/civicrm/templates/CRM/Profile/Form/Search.tpl index a0b0f0c46b..a18de33a96 100644 --- a/civicrm/templates/CRM/Profile/Form/Search.tpl +++ b/civicrm/templates/CRM/Profile/Form/Search.tpl @@ -7,8 +7,8 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{if ! empty( $fields )} - {if $groupId } +{if ! empty($fields)} + {if $groupId} <div class="crm-accordion-wrapper crm-group-{$groupId}-accordion {if $rows}collapsed{/if}"> <div class="crm-accordion-header crm-master-accordion-header"> {ts}Edit Search Criteria{/ts} diff --git a/civicrm/templates/CRM/Profile/Page/Dynamic.tpl b/civicrm/templates/CRM/Profile/Page/Dynamic.tpl index feb80a1404..aa304b828b 100644 --- a/civicrm/templates/CRM/Profile/Page/Dynamic.tpl +++ b/civicrm/templates/CRM/Profile/Page/Dynamic.tpl @@ -9,12 +9,12 @@ *} {if ! empty( $row )} {* wrap in crm-container div so crm styles are used *} - {if $overlayProfile } + {if $overlayProfile} {include file="CRM/Profile/Page/Overlay.tpl"} {else} <div id="crm-container" class="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}"> <div class="crm-profile-name-{$ufGroupName}"> - {crmRegion name=profile-view-`$ufGroupName`} + {crmRegion name="profile-view-`$ufGroupName`"} {foreach from=$profileFields item=field key=rowName} <div id="row-{$rowName}" class="crm-section {$rowName}-section"> <div class="label"> diff --git a/civicrm/templates/CRM/Profile/Page/Listings.tpl b/civicrm/templates/CRM/Profile/Page/Listings.tpl index e3b3e23bec..6ae7f9ed8d 100644 --- a/civicrm/templates/CRM/Profile/Page/Listings.tpl +++ b/civicrm/templates/CRM/Profile/Page/Listings.tpl @@ -9,10 +9,10 @@ *} <div class="crm-profile-name-{$ufGroupName}"> -{crmRegion name=profile-search-`$ufGroupName`} +{crmRegion name="profile-search-`$ufGroupName`"} {* make sure there are some fields in the selector *} -{if ! empty( $columnHeaders ) || $isReset } +{if ! empty($columnHeaders) || $isReset} {if $search} <div class="crm-block crm-form-block"> diff --git a/civicrm/templates/CRM/Profile/Page/Overlay.tpl b/civicrm/templates/CRM/Profile/Page/Overlay.tpl index 5445f4110a..79e1f7963f 100644 --- a/civicrm/templates/CRM/Profile/Page/Overlay.tpl +++ b/civicrm/templates/CRM/Profile/Page/Overlay.tpl @@ -7,14 +7,14 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{if $overlayProfile } +{if $overlayProfile} <table class="crm-table-group-summary"> <tr> <td colspan="2">{$displayName}</td> </tr> <tr> <td> - {assign var="count" value="0"} + {assign var="count" value=0} {assign var="totalRows" value=$row|@count} <div class="crm-summary-col-0"> {foreach from=$profileFields item=field key=rowName} @@ -23,7 +23,7 @@ </td> <td> <div class="crm-summary-col-1"> - {assign var="count" value="1"} + {assign var="count" value=1} {/if} <div class="crm-section {$rowName}-section"> <div class="label"> @@ -34,7 +34,7 @@ </div> <div class="clear"></div> </div> - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} {/foreach} </div> </td> diff --git a/civicrm/templates/CRM/Profile/Page/View.tpl b/civicrm/templates/CRM/Profile/Page/View.tpl index 052bffd021..ff6f08aa46 100644 --- a/civicrm/templates/CRM/Profile/Page/View.tpl +++ b/civicrm/templates/CRM/Profile/Page/View.tpl @@ -10,7 +10,7 @@ {* If you want a custom profile view, you can access field labels and values in $profileFields_N array - where N is profile ID. *} {* EXAMPLES *}{* $profileFields_1.last_name.label *}{* $profileFields_1.last_name.value *} -{if $overlayProfile } +{if $overlayProfile} {foreach from=$profileGroups item=group} <div class="crm-summary-group"> {$group.content} diff --git a/civicrm/templates/CRM/Report/Form/Campaign/SurveyCoverSheet.tpl b/civicrm/templates/CRM/Report/Form/Campaign/SurveyCoverSheet.tpl index 53b7712693..4d6dcf78c5 100644 --- a/civicrm/templates/CRM/Report/Form/Campaign/SurveyCoverSheet.tpl +++ b/civicrm/templates/CRM/Report/Form/Campaign/SurveyCoverSheet.tpl @@ -35,7 +35,7 @@ </table> </div> -{/if } +{/if} {* print survey response set option value and label *} @@ -66,7 +66,7 @@ {* clean separation of each response question *} <tr><td><br /></td></tr> - {assign var=resFldCnt value=`$resFldCnt+1`} + {assign var=resFldCnt value=$resFldCnt+1} {/foreach} </table> diff --git a/civicrm/templates/CRM/Report/Form/Contact/Detail.tpl b/civicrm/templates/CRM/Report/Form/Contact/Detail.tpl index facf70a157..f7f7aca99f 100644 --- a/civicrm/templates/CRM/Report/Form/Contact/Detail.tpl +++ b/civicrm/templates/CRM/Report/Form/Contact/Detail.tpl @@ -8,7 +8,7 @@ +--------------------------------------------------------------------+ *} {* this div is being used to apply special css *} - {if !$section } + {if !$section} <div class="crm-block crm-form-block crm-report-field-form-block"> {include file="CRM/Report/Form/Fields.tpl"} </div> @@ -16,7 +16,7 @@ <div class="crm-block crm-content-block crm-report-form-block"> {include file="CRM/Report/Form/Actions.tpl"} -{if !$section } +{if !$section} {include file="CRM/Report/Form/Statistics.tpl" top=true bottom=false} {/if} {if $rows} @@ -63,14 +63,14 @@ {if $header.colspan} <th colspan={$header.colspan}>{$header.title}</th> {assign var=skip value=true} - {assign var=skipCount value=`$header.colspan`} + {assign var=skipCount value=$header.colspan} {assign var=skipMade value=1} {else} <th>{$header.title}</th> {assign var=skip value=false} {/if} {else} {* for skip case *} - {assign var=skipMade value=`$skipMade+1`} + {assign var=skipMade value=$skipMade+1} {if $skipMade >= $skipCount}{assign var=skip value=false}{/if} {/if} {/foreach} @@ -178,7 +178,7 @@ </table> {/if} - {if !$section } + {if !$section} {*Statistics at the bottom of the page*} {include file="CRM/Report/Form/Statistics.tpl" top=false bottom=true} {/if} diff --git a/civicrm/templates/CRM/Report/Form/Event/Income.tpl b/civicrm/templates/CRM/Report/Form/Event/Income.tpl index 25072c85c5..a48a4f65e6 100644 --- a/civicrm/templates/CRM/Report/Form/Event/Income.tpl +++ b/civicrm/templates/CRM/Report/Form/Event/Income.tpl @@ -8,7 +8,7 @@ +--------------------------------------------------------------------+ *} {* this div is being used to apply special css *} - {if !$section } + {if !$section} <div class="crm-block crm-form-block crm-report-field-form-block"> {include file="CRM/Report/Form/Fields.tpl"} </div> @@ -17,7 +17,7 @@ <div class="crm-block crm-content-block crm-report-form-block"> {include file="CRM/Report/Form/Actions.tpl"} {*Statistics at the Top of the page*} - {if !$section } + {if !$section} {include file="CRM/Report/Form/Statistics.tpl" top=true bottom=false} {/if} @@ -68,7 +68,7 @@ <div class="report-pager"> {include file="CRM/common/pager.tpl"} </div> - {if !$section } + {if !$section} {*Statistics at the bottom of the page*} {include file="CRM/Report/Form/Statistics.tpl" top=false bottom=true} {/if} diff --git a/civicrm/templates/CRM/Report/Form/Layout/Overlay.tpl b/civicrm/templates/CRM/Report/Form/Layout/Overlay.tpl index a75e03b04f..c698a1ef37 100644 --- a/civicrm/templates/CRM/Report/Form/Layout/Overlay.tpl +++ b/civicrm/templates/CRM/Report/Form/Layout/Overlay.tpl @@ -22,14 +22,14 @@ {if $header.colspan} <td colspan={$header.colspan}>{$header.title}</td> {assign var=skip value=true} - {assign var=skipCount value=`$header.colspan`} + {assign var=skipCount value=$header.colspan} {assign var=skipMade value=1} {else} <td>{$header.title}</td> {assign var=skip value=false} {/if} {else} {* for skip case *} - {assign var=skipMade value=`$skipMade+1`} + {assign var=skipMade value=$skipMade+1} {if $skipMade >= $skipCount}{assign var=skip value=false}{/if} {/if} {/foreach} @@ -135,7 +135,7 @@ </div> {if $pager and $pager->_response and $pager->_response.numPages > 1} <div class="report-pager"> - {include file="CRM/common/pager.tpl" } + {include file="CRM/common/pager.tpl"} </div> {/if} {/if} diff --git a/civicrm/templates/CRM/Report/Form/Layout/Table.tpl b/civicrm/templates/CRM/Report/Form/Layout/Table.tpl index afbb74d372..d27ff1f48e 100644 --- a/civicrm/templates/CRM/Report/Form/Layout/Table.tpl +++ b/civicrm/templates/CRM/Report/Form/Layout/Table.tpl @@ -28,14 +28,14 @@ {if $header.colspan} <th colspan={$header.colspan}>{$header.title|escape}</th> {assign var=skip value=true} - {assign var=skipCount value=`$header.colspan`} + {assign var=skipCount value=$header.colspan} {assign var=skipMade value=1} {else} <th {$class}>{$header.title|escape}</th> {assign var=skip value=false} {/if} {else} {* for skip case *} - {assign var=skipMade value=`$skipMade+1`} + {assign var=skipMade value=$skipMade+1} {if $skipMade >= $skipCount}{assign var=skip value=false}{/if} {/if} {/foreach} diff --git a/civicrm/templates/CRM/Report/Form/Tabs/FieldSelection.tpl b/civicrm/templates/CRM/Report/Form/Tabs/FieldSelection.tpl index 48af99e39e..339f51cb5d 100644 --- a/civicrm/templates/CRM/Report/Form/Tabs/FieldSelection.tpl +++ b/civicrm/templates/CRM/Report/Form/Tabs/FieldSelection.tpl @@ -10,7 +10,7 @@ <div id="report-tab-col-groups" class="civireport-criteria"> {foreach from=$colGroups item=grpFields key=dnc} - {assign var="count" value="0"} + {assign var="count" value=0} {* Wrap custom field sets in collapsed accordion pane. *} {if !empty($grpFields.use_accordian_for_field_selection)} <div class="crm-accordion-wrapper crm-accordion collapsed"> @@ -22,7 +22,7 @@ <table class="criteria-group"> <tr class="crm-report crm-report-criteria-field crm-report-criteria-field-{$dnc}"> {foreach from=$grpFields.fields item=title key=field} - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} <td width="25%">{$form.fields.$field.html}</td> {if $count is div by 4} </tr><tr class="crm-report crm-report-criteria-field crm-report-criteria-field_{$dnc}"> diff --git a/civicrm/templates/CRM/Report/Form/Tabs/GroupBy.tpl b/civicrm/templates/CRM/Report/Form/Tabs/GroupBy.tpl index 4e5a7e2d1e..f24158777e 100644 --- a/civicrm/templates/CRM/Report/Form/Tabs/GroupBy.tpl +++ b/civicrm/templates/CRM/Report/Form/Tabs/GroupBy.tpl @@ -8,11 +8,11 @@ +--------------------------------------------------------------------+ *} <div id="report-tab-group-by-elements" class="civireport-criteria"> - {assign var="count" value="0"} + {assign var="count" value=0} <table class="report-layout"> <tr class="crm-report crm-report-criteria-groupby"> {foreach from=$groupByElements item=gbElem key=dnc} - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} <td width="25%"> {$form.group_bys[$gbElem].html} {if $form.group_bys_freq && array_key_exists($gbElem, $form.group_bys_freq)}:<br> diff --git a/civicrm/templates/CRM/Report/Form/Tabs/ReportOptions.tpl b/civicrm/templates/CRM/Report/Form/Tabs/ReportOptions.tpl index 4306302292..74426b61d3 100644 --- a/civicrm/templates/CRM/Report/Form/Tabs/ReportOptions.tpl +++ b/civicrm/templates/CRM/Report/Form/Tabs/ReportOptions.tpl @@ -14,7 +14,7 @@ <tr class="crm-report crm-report-criteria-field"> {foreach from=$otherOptions item=optionField key=optionName} {if array_key_exists($optionName, $form)} - {assign var="optionCount" value=`$optionCount+1`} + {assign var="optionCount" value=$optionCount+1} <td>{if $form.$optionName.label}{$form.$optionName.label} {/if}{$form.$optionName.html}</td> {if $optionCount is div by 2} </tr><tr class="crm-report crm-report-criteria-field"> diff --git a/civicrm/templates/CRM/Tag/Form/Edit.tpl b/civicrm/templates/CRM/Tag/Form/Edit.tpl index affb637f89..434ef8ecfb 100644 --- a/civicrm/templates/CRM/Tag/Form/Edit.tpl +++ b/civicrm/templates/CRM/Tag/Form/Edit.tpl @@ -9,7 +9,7 @@ *} {* this template is used for adding/editing a tag (admin) *} <div class="crm-block crm-form-block crm-tag-form-block"> - {if $action eq 1 or $action eq 2 } + {if $action eq 1 or $action eq 2} <table class="form-layout-compressed"> <tr class="crm-tag-form-block-label"> <td class="label">{$form.name.label}</td> diff --git a/civicrm/templates/CRM/UF/Form/Block.tpl b/civicrm/templates/CRM/UF/Form/Block.tpl index eba3e6be0e..95fb25c7b3 100644 --- a/civicrm/templates/CRM/UF/Form/Block.tpl +++ b/civicrm/templates/CRM/UF/Form/Block.tpl @@ -10,26 +10,40 @@ {* Edit or display Profile fields, when embedded in an online contribution or event registration form. *} {if ! empty( $fields )} {strip} - {if $help_pre && $action neq 4}<div class="messages help">{$help_pre}</div>{/if} {assign var=zeroField value="Initial Non Existent Fieldset"} {assign var=fieldset value=$zeroField} - {include file="CRM/UF/Form/Fields.tpl"} + {* Unfortunately uF group information is munged into the uf fields array. We have ot iterate throug + to extract it. I n future we could migrate to a version of Block.tpl that expects the UFGroup + to be assigned by itself & remove this *} + {foreach from=$fields item=field key=fieldName} + {assign var=groupHelpPost value=$field.groupHelpPost} + {assign var=groupHelpPre value=$field.groupHelpPre} + {assign var=fieldset value=$field.groupTitle} + {assign var=groupDisplayTitle value=$field.groupDisplayTitle} + {assign var=group_id value=$field.group_id} + {assign var=groupName value=$field.groupName} + {/foreach} - {if $field.groupHelpPost && $action neq 4 && $action neq 1028} - <div class="messages help">{$field.groupHelpPost}</div> + {if $groupHelpPre && $action neq 4} + <div class="messages help">{$groupHelpPre|smarty:nodefaults|purify}</div> {/if} - {if $mode eq 4} - <div class="crm-submit-buttons"> - {$form.buttons.html} - </div> + {if !$hideFieldset} + <fieldset class="crm-profile crm-profile-id-{$group_id} crm-profile-name-{$groupName}"><legend>{$groupDisplayTitle}</legend> {/if} - {if $mode ne 8 && $action neq 1028 && !$hideFieldset} - </fieldset> + {if ($form.formName eq 'Confirm' OR $form.formName eq 'ThankYou') AND $prefix neq 'honor'} + <div class="header-dark">{$groupDisplayTitle} </div> + {/if} + {include file="CRM/UF/Form/Fields.tpl"} + + {if $groupHelpPost && $action neq 4} + <div class="messages help">{$groupHelpPost|smarty:nodefaults|purify}</div> + {/if} + {if !$hideFieldset} + </fieldset> {/if} - {if $help_post && $action neq 4}<br /><div class="messages help">{$help_post}</div>{/if} {/strip} {/if} {* fields array is not empty *} diff --git a/civicrm/templates/CRM/UF/Form/Field.tpl b/civicrm/templates/CRM/UF/Form/Field.tpl index 1743782aac..63b516deeb 100644 --- a/civicrm/templates/CRM/UF/Form/Field.tpl +++ b/civicrm/templates/CRM/UF/Form/Field.tpl @@ -144,7 +144,7 @@ function showLabel( ) { // Code to set Profile Field help, from custom data field help if (fieldId.substring(0, 7) == 'custom_') { fieldId = fieldId.substring( fieldId.length, 7); - var dataUrl = {/literal}"{crmURL p='civicrm/ajax/custom' h=0 }"{literal}; + var dataUrl = {/literal}"{crmURL p='civicrm/ajax/custom' h=0}"{literal}; cj.post( dataUrl, { id: fieldId }, function(data) { cj('#help_post').val(data.help_post); cj('#help_pre').val(data.help_pre); @@ -203,7 +203,7 @@ CRM.$(function($) { function multiSummaryToggle(customId) { if (customId && customId.match(/custom_[\d]/)) { - var dataUrl = "{/literal}{crmURL p='civicrm/ajax/rest' q='className=CRM_UF_Page_AJAX&fnName=checkIsMultiRecord&json=1' h=0 }"{literal}; + var dataUrl = "{/literal}{crmURL p='civicrm/ajax/rest' q='className=CRM_UF_Page_AJAX&fnName=checkIsMultiRecord&json=1' h=0}"{literal}; dataUrl = dataUrl + '&customId=' + customId; cj.ajax({ url: dataUrl, async: false, diff --git a/civicrm/templates/CRM/UF/Form/Fields.tpl b/civicrm/templates/CRM/UF/Form/Fields.tpl index 2dc383fda3..b1dd3af32e 100644 --- a/civicrm/templates/CRM/UF/Form/Fields.tpl +++ b/civicrm/templates/CRM/UF/Form/Fields.tpl @@ -12,47 +12,23 @@ {assign var="rowIdentifier" value=$field.name} {/if} - {if $field.groupTitle != $fieldset} - {if $fieldset != $zeroField} - {if $groupHelpPost && $action neq 4} - <div class="messages help">{$groupHelpPost}</div> - {/if} - {if $mode ne 8} - </fieldset> - {/if} - {/if} - - {if $mode ne 8 && $action ne 1028 && $action ne 4 && !$hideFieldset} - <fieldset class="crm-profile crm-profile-id-{$field.group_id} crm-profile-name-{$field.groupName}"><legend>{$field.groupDisplayTitle}</legend> - {/if} - - {if ($form.formName eq 'Confirm' OR $form.formName eq 'ThankYou') AND $prefix neq 'honor'} - <div class="header-dark">{$field.groupDisplayTitle} </div> - {/if} - {assign var=fieldset value=`$field.groupTitle`} - {assign var=groupHelpPost value=`$field.groupHelpPost`} - {if $field.groupHelpPre && $action neq 4 && $action neq 1028} - <div class="messages help">{$field.groupHelpPre}</div> - {/if} - {/if} - {if $field.field_type eq "Formatting"} - {if $action neq 4 && $action neq 1028} + {if $action neq 4} {$field.help_pre} {/if} {elseif $profileFieldName} - {* Show explanatory text for field if not in 'view' or 'preview' modes *} - {if $field.help_pre && $action neq 4 && $action neq 1028} + {* Show explanatory text for field if not in 'view' mode *} + {if $field.help_pre && $action neq 4} <div class="crm-section helprow-{$profileFieldName}-section helprow-pre" id="helprow-{$rowIdentifier}"> <div class="content description">{$field.help_pre}</div> </div> {/if} - {if $field.options_per_line != 0} + {if array_key_exists('options_per_line', $field) && $field.options_per_line != 0} <div class="crm-section editrow_{$profileFieldName}-section form-item" id="editrow-{$rowIdentifier}"> <div class="label option-label">{$formElement.label}</div> <div class="content 3"> - {assign var="count" value="1"} + {assign var="count" value=1} {strip} <table class="form-layout-compressed"> <tr> @@ -64,9 +40,9 @@ {if $count == $field.options_per_line} </tr> <tr> - {assign var="count" value="1"} + {assign var="count" value=1} {else} - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} {/if} {/if} {/foreach} @@ -91,7 +67,7 @@ {include file="CRM/Profile/Form/GreetingType.tpl"} {elseif ($profileFieldName eq 'group' && $form.group) || ($profileFieldName eq 'tag' && $form.tag)} {include file="CRM/Contact/Form/Edit/TagsAndGroups.tpl" type=$profileFieldName title=null context="profile"} - {elseif $field.is_datetime_field && $action & 4} + {elseif array_key_exists('is_datetime_field', $field) && $field.is_datetime_field && $action & 4} <span class="crm-frozen-field"> {$formElement.value|crmDate:$field.smarty_view_format} <input type="hidden" @@ -141,8 +117,8 @@ <div class="clear"></div> </div> {/if} - {* Show explanatory text for field if not in 'view' or 'preview' modes *} - {if $field.help_post && $action neq 4 && $action neq 1028} + {* Show explanatory text for field if not in 'view' mode *} + {if $field.help_post && $action neq 4} <div class="crm-section helprow-{$profileFieldName}-section helprow-post" id="helprow-{$rowIdentifier}"> <div class="content description">{$field.help_post}</div> </div> diff --git a/civicrm/templates/CRM/UF/Form/Group.tpl b/civicrm/templates/CRM/UF/Form/Group.tpl index a7d8d5bf53..1a28192bd0 100644 --- a/civicrm/templates/CRM/UF/Form/Group.tpl +++ b/civicrm/templates/CRM/UF/Form/Group.tpl @@ -12,7 +12,7 @@ <h3>{ts}Delete CiviCRM Profile{/ts} - {$profileTitle}</h3> {/if} <div class="crm-block crm-form-block crm-uf_group-form-block"> -{if ($action eq 2 or $action eq 4) and $snippet neq 'json' } {* Update or View*} +{if ($action eq 2 or $action eq 4) and $snippet neq 'json'} {* Update or View*} <div class="action-link"> <a href="{crmURL p='civicrm/admin/uf/group/field' q="action=browse&reset=1&gid=$gid"}" class="button"><span>{ts}View or Edit Fields for this Profile{/ts}</a></span> <div class="clear"></div> diff --git a/civicrm/templates/CRM/UF/Form/Preview.tpl b/civicrm/templates/CRM/UF/Form/Preview.tpl index 056c2b278f..4c7993f4ae 100644 --- a/civicrm/templates/CRM/UF/Form/Preview.tpl +++ b/civicrm/templates/CRM/UF/Form/Preview.tpl @@ -19,18 +19,8 @@ {if $viewOnly} {* wrap in crm-container div so crm styles are used *} <div id="crm-container-inner" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}"> - {include file="CRM/common/CMSUser.tpl"} {strip} - {if $help_pre && $action neq 4}<div class="messages help">{$help_pre}</div>{/if} - {assign var=zeroField value="Initial Non Existent Fieldset"} - {assign var=fieldset value=$zeroField} - {include file="CRM/UF/Form/Fields.tpl"} - {if $addCAPTCHA } - {include file='CRM/common/ReCAPTCHA.tpl'} - {/if} - {if $field.groupHelpPost} - <div class="messages help">{$field.groupHelpPost}</div> - {/if} + {include file="CRM/UF/Form/Block.tpl" prefix=false mode=false hideFieldset=false} {/strip} </div> {* end crm-container div *} {else} diff --git a/civicrm/templates/CRM/UF/Page/Field.tpl b/civicrm/templates/CRM/UF/Page/Field.tpl index aad5e08c3d..115fdd527b 100644 --- a/civicrm/templates/CRM/UF/Page/Field.tpl +++ b/civicrm/templates/CRM/UF/Page/Field.tpl @@ -8,9 +8,9 @@ +--------------------------------------------------------------------+ *} -{if $action eq 1 or $action eq 2 or $action eq 4 or $action eq 8 } +{if $action eq 1 or $action eq 2 or $action eq 4 or $action eq 8} {include file="CRM/UF/Form/Field.tpl"} -{elseif $action eq 1024 } +{elseif $action eq 1024} {include file="CRM/UF/Form/Preview.tpl"} {else} <div class="crm-content-block"> @@ -23,7 +23,7 @@ <thead> <tr> <th>{ts}Field Name{/ts}</th> - {if in_array("Profile",$otherModules) or in_array("Search Profile",$otherModules) } + {if in_array("Profile",$otherModules) or in_array("Search Profile",$otherModules)} <th>{ts}Visibility{/ts}</th> <th>{ts}Searchable?{/ts}</th> <th>{ts}Results Column?{/ts}</th> @@ -38,7 +38,7 @@ {foreach from=$ufField item=row} <tr id="UFField-{$row.id}" data-action="setvalue" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}"> <td><span class="crmf-label crm-editable">{$row.label}</span>({$row.field_type})</td> - {if in_array("Profile",$otherModules) or in_array("Search Profile",$otherModules) } + {if in_array("Profile",$otherModules) or in_array("Search Profile",$otherModules)} <td class="crm-editable crmf-visibility" data-type="select">{$row.visibility_display}</td> <td class="crm-editable crmf-is_searchable" data-type="boolean">{if $row.is_searchable eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> <td class="crm-editable crmf-in_selector" data-type="boolean">{if $row.in_selector eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> @@ -54,7 +54,7 @@ {/strip} {if not ($action eq 2 or $action eq 1)} <div class="action-link"> - {crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="plus-circle"}{ts}Add Field{/ts}{/crmButton}{if !$isGroupReserved}{crmButton p="civicrm/admin/uf/group" q="action=update&id=`$gid`&reset=1&context=field" icon="wrench"}{ts}Edit Settings{/ts}{/crmButton}{/if}{crmButton p="civicrm/admin/uf/group" q="action=preview&id=`$gid`&reset=1&field=0&context=field" icon="television"}{ts}Preview (all fields){/ts}{/crmButton}{if !$skipCreate }{crmButton p="civicrm/profile/create" q="gid=$gid&reset=1" icon="play-circle"}{ts}Use (create mode){/ts}{/crmButton}{/if} + {crmButton p="civicrm/admin/uf/group/field/add" q="reset=1&action=add&gid=$gid" icon="plus-circle"}{ts}Add Field{/ts}{/crmButton}{if !$isGroupReserved}{crmButton p="civicrm/admin/uf/group" q="action=update&id=`$gid`&reset=1&context=field" icon="wrench"}{ts}Edit Settings{/ts}{/crmButton}{/if}{crmButton p="civicrm/admin/uf/group" q="action=preview&id=`$gid`&reset=1&field=0&context=field" icon="television"}{ts}Preview (all fields){/ts}{/crmButton}{if !$skipCreate}{crmButton p="civicrm/profile/create" q="gid=$gid&reset=1" icon="play-circle"}{ts}Use (create mode){/ts}{/crmButton}{/if} <div class="clear"></div> </div> {/if} diff --git a/civicrm/templates/CRM/UF/Page/Group.tpl b/civicrm/templates/CRM/UF/Page/Group.tpl index 4bcd418556..7521d51e80 100644 --- a/civicrm/templates/CRM/UF/Page/Group.tpl +++ b/civicrm/templates/CRM/UF/Page/Group.tpl @@ -68,7 +68,7 @@ </thead> <tbody> {foreach from=$rows item=row} - {if !$row.is_reserved } + {if !$row.is_reserved} <tr id="UFGroup-{$row.id}" data-action="setvalue" class="crm-entity {$row.class}{if NOT $row.is_active} disabled{/if}"> <td class="crmf-title crm-editable">{$row.title}</td> <td class="crmf-frontend_title crm-editable">{$row.frontend_title}</td> diff --git a/civicrm/templates/CRM/common/CMSUser.tpl b/civicrm/templates/CRM/common/CMSUser.tpl index de6f24407c..350797295f 100644 --- a/civicrm/templates/CRM/common/CMSUser.tpl +++ b/civicrm/templates/CRM/common/CMSUser.tpl @@ -7,7 +7,7 @@ | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{if $showCMS }{*true if is_cms_user field is set *} +{if $showCMS}{*true if is_cms_user field is set *} <fieldset class="crm-group crm_user-group"> <legend>{ts}Account{/ts}</legend> <div class="messages help cms_user_help-section"> diff --git a/civicrm/templates/CRM/common/WizardHeader.tpl b/civicrm/templates/CRM/common/WizardHeader.tpl index 3ca60b9cb9..77e08ab592 100644 --- a/civicrm/templates/CRM/common/WizardHeader.tpl +++ b/civicrm/templates/CRM/common/WizardHeader.tpl @@ -12,7 +12,7 @@ <div id="wizard-steps"> <ul class="wizard-bar{if $wizard.style.barClass}-{$wizard.style.barClass}{/if}"> {section name=step loop=$wizard.steps} - {if count ( $wizard.steps ) > 5 } + {if count ( $wizard.steps ) > 5} {* truncate step titles so header isn't too wide *} {assign var="title" value=$wizard.steps[step].title|crmFirstWord} {else} diff --git a/civicrm/templates/CRM/common/checkUsernameAvailable.tpl b/civicrm/templates/CRM/common/checkUsernameAvailable.tpl index c20db4381a..d2414d4a9a 100644 --- a/civicrm/templates/CRM/common/checkUsernameAvailable.tpl +++ b/civicrm/templates/CRM/common/checkUsernameAvailable.tpl @@ -8,7 +8,7 @@ +--------------------------------------------------------------------+ *} {* This included tpl checks if a given username is taken or available. *} -{crmSigner var=checkUserSig for=civicrm/ajax/cmsuser} +{crmSigner var=checkUserSig for="civicrm/ajax/cmsuser"} {literal} var lastName = null; cj("#checkavailability").click(function() { @@ -47,7 +47,7 @@ cj("#checkavailability").click(function() { cj("#msgbox").removeClass().addClass('cmsmessagebox').css({"color":"#000","backgroundColor":"#FFC","border":"1px solid #c93"}).text(check).fadeIn("slow"); //check the username exists or not from ajax - var contactUrl = {/literal}"{crmURL p='civicrm/ajax/cmsuser' h=0 }"{literal}; + var contactUrl = {/literal}"{crmURL p='civicrm/ajax/cmsuser' h=0}"{literal}; var checkUserParams = { cms_name: cj("#cms_name").val(), diff --git a/civicrm/templates/CRM/common/cidzero.tpl b/civicrm/templates/CRM/common/cidzero.tpl index 7e641a7fe9..eafe8c76fa 100644 --- a/civicrm/templates/CRM/common/cidzero.tpl +++ b/civicrm/templates/CRM/common/cidzero.tpl @@ -1,4 +1,4 @@ -{if !empty($nocid)} +{if $nocid} <div class="crm-other-contact-row messages status"> <span>{ts}You are completing this form on behalf of someone else. Please enter their details.</span>{/ts} {if !empty($selectable)} diff --git a/civicrm/templates/CRM/common/civicrm.settings.php.template b/civicrm/templates/CRM/common/civicrm.settings.php.template index b2dcf4056b..d1baf5970b 100644 --- a/civicrm/templates/CRM/common/civicrm.settings.php.template +++ b/civicrm/templates/CRM/common/civicrm.settings.php.template @@ -201,9 +201,24 @@ if (!defined('CIVICRM_TEMPLATE_COMPILEDIR')) { // define('CIVICRM_TEMPLATE_COMPILE_CHECK', FALSE); //} +/** + * Specify a Smarty 3 autoload file. + * + * If you wish to experiment with Smarty3 you can do so by installing it + * to a directory using composer (composer require smarty/smarty:^3) + * and then defining the path to that + * autoload. file. + */ +if (!defined('CIVICRM_SMARTY3_AUTOLOAD_PATH')) { +// define('CIVICRM_SMARTY3_AUTOLOAD_PATH', $civicrm_root . '/packages/smarty3/vendor/autoload.php'); +} + /** * Smarty escape on output. * + * This does not currently work if you have a Smarty 3 path defined + * (see above). + * * This tells smarty to pass all variables through the escape function * unless they are piped to smarty:nodefaults (eg. {$myScript|smarty:nodefaults} * At this stage it should only be enabled on development sites. diff --git a/civicrm/templates/CRM/common/debug.tpl b/civicrm/templates/CRM/common/debug.tpl index 32d69257e4..416c4b47e4 100644 --- a/civicrm/templates/CRM/common/debug.tpl +++ b/civicrm/templates/CRM/common/debug.tpl @@ -8,26 +8,26 @@ +--------------------------------------------------------------------+ *} <!-- .tpl file invoked: {$tplFile}. Call via form.tpl if we have a form in the page. --> -{if isset($smarty.get.smartyDebug|smarty:nodefaults)} +{if $debugging.smartyDebug} {debug} {/if} -{if isset($smarty.get.sessionReset|smarty:nodefaults)} -{$session->reset($smarty.get.sessionReset)} +{if $debugging.sessionReset} +{$session->reset($debugging.sessionReset)} {/if} -{if isset($smarty.get.sessionDebug|smarty:nodefaults)} -{$session->debug($smarty.get.sessionDebug)} +{if $debugging.sessionDebug} +{$session->debug($debugging.sessionDebug)} {/if} -{if isset($smarty.get.directoryCleanup|smarty:nodefaults)} -{$config->cleanup($smarty.get.directoryCleanup)} +{if $debugging.directoryCleanup} +{$config->cleanup($debugging.directoryCleanup)} {/if} -{if isset($smarty.get.cacheCleanup|smarty:nodefaults)} +{if $debugging.cacheCleanup} {$config->clearDBCache()} {/if} -{if isset($smarty.get.configReset|smarty:nodefaults)} +{if $debugging.configReset} {$config->reset()} {/if} diff --git a/civicrm/templates/CRM/common/dedupe.tpl b/civicrm/templates/CRM/common/dedupe.tpl index 23fc3a8129..d81b7bdb4b 100644 --- a/civicrm/templates/CRM/common/dedupe.tpl +++ b/civicrm/templates/CRM/common/dedupe.tpl @@ -62,7 +62,7 @@ function saveProcessDupes( cid, oid, oper, context ) { var statusMsg = {/literal}'{ts escape="js"}Marked as duplicates.{/ts}'{literal}; } - var url = {/literal}"{crmURL p='civicrm/ajax/rest' q='className=CRM_Contact_Page_AJAX&fnName=processDupes' h=0 }"{literal}; + var url = {/literal}"{crmURL p='civicrm/ajax/rest' q='className=CRM_Contact_Page_AJAX&fnName=processDupes' h=0}"{literal}; //post the data to process dupes. cj.post( url, {cid: cid, oid: oid, op: oper}, diff --git a/civicrm/templates/CRM/common/jcalendar.tpl b/civicrm/templates/CRM/common/jcalendar.tpl index 64153189bb..d3044553d2 100644 --- a/civicrm/templates/CRM/common/jcalendar.tpl +++ b/civicrm/templates/CRM/common/jcalendar.tpl @@ -18,9 +18,9 @@ {$form.$elementName.$elementIndex.html} {elseif $blockId and $blockSection} {assign var='elementId' value=$form.$blockSection.$blockId.$elementName.id} - {assign var="tElement" value=`$elementName`_time} + {assign var="tElement" value="`$elementName`_time"} {$form.$blockSection.$blockId.$elementName.html} - {assign var="timeElement" value=`$blockSection`_`$blockId`_`$elementName`_time} + {assign var="timeElement" value="`$blockSection`_`$blockId`_`$elementName`_time"} {if $tElement} {$form.$blockSection.$blockId.$tElement.label} {$form.$blockSection.$blockId.$tElement.html|crmAddClass:six} @@ -36,9 +36,7 @@ {* CRM-15804 - CiviEvent Date Picker broken in modal dialog *} {assign var='displayDate' value=$elementId|cat:"_display"|cat:"_$string"|uniqid} -{if $action neq 1028} - <input type="text" name="{$displayDate}" id="{$displayDate}" class="dateplugin" autocomplete="off"/> -{/if} +<input type="text" name="{$displayDate}" id="{$displayDate}" class="dateplugin" autocomplete="off"/> {if $batchUpdate AND $timeElement AND $tElement} {$form.field.$elementIndex.$tElement.label} {$form.field.$elementIndex.$tElement.html|crmAddClass:six} @@ -49,9 +47,8 @@ {$form.$timeElement.html|crmAddClass:six} {/if} -{if $action neq 1028} - <a href="#" class="crm-hover-button crm-clear-link" title="{ts}Clear{/ts}"><i class="crm-i fa-times" aria-hidden="true"></i></a> -{/if} + + <a href="#" class="crm-hover-button crm-clear-link" title="{ts}Clear{/ts}"><i class="crm-i fa-times" aria-hidden="true"></i></a> <script type="text/javascript"> {literal} diff --git a/civicrm/templates/CRM/common/paymentBlock.tpl b/civicrm/templates/CRM/common/paymentBlock.tpl index 37be4b7143..7844e4a7e5 100644 --- a/civicrm/templates/CRM/common/paymentBlock.tpl +++ b/civicrm/templates/CRM/common/paymentBlock.tpl @@ -75,21 +75,11 @@ function buildPaymentBlock(type) { var $form = $('#billing-payment-block').closest('form'); {/literal} - {if !$isBackOffice && $contributionPageID} - {capture assign='contributionPageID'}&id={$contributionPageID}{/capture} - {else} - {capture assign='contributionPageID'}{/capture} - {/if} {if !$isBackOffice && $custom_pre_id} {capture assign='preProfileID'}&pre_profile_id={$custom_pre_id}{/capture} {else} {capture assign='preProfileID'}{/capture} {/if} - {if $urlPathVar} - {capture assign='urlPathVar'}&{$urlPathVar}{/capture} - {else} - {capture assign='urlPathVar'}{/capture} - {/if} {* Billing profile ID is only ever set on front end forms, to force entering address for pay later. *} {if !$isBackOffice && $billing_profile_id} {capture assign='profilePathVar'}&billing_profile_id={$billing_profile_id}{/capture} @@ -104,7 +94,7 @@ var currency = '{$currency}'; currency = currency == '' ? $('#currency').val() : currency; - var dataUrl = "{crmURL p='civicrm/payment/form' h=0 q="formName=`$form.formName``$urlPathVar``$isBackOfficePathVar``$profilePathVar``$contributionPageID``$preProfileID`"}"; + var dataUrl = "{crmURL p='civicrm/payment/form' h=0 q="formName=`$form.formName``$isBackOfficePathVar``$profilePathVar``$preProfileID`"}"; {literal} if (typeof(CRM.vars) != "undefined") { if (typeof(CRM.vars.coreForm) != "undefined") { @@ -135,6 +125,10 @@ buildPaymentBlock(0); }); + if ($('#payment_instrument_id').val()) { + buildPaymentBlock(0); + } + $('#billing-payment-block').on('crmLoad', function() { $('.crm-submit-buttons input').prop('disabled', false); }) diff --git a/civicrm/templates/CRM/common/searchResultTasks.tpl b/civicrm/templates/CRM/common/searchResultTasks.tpl index 2451473f2d..d9810d133c 100644 --- a/civicrm/templates/CRM/common/searchResultTasks.tpl +++ b/civicrm/templates/CRM/common/searchResultTasks.tpl @@ -14,8 +14,8 @@ <tr> <td style="width: 40%;"> {if !empty($savedSearch.name)}{$savedSearch.name} ({ts}smart group{/ts}) - {/if} - {ts count=$pager->_totalItems plural='%count Results'}%count Result{/ts}{if $selectorLabel} - {$selectorLabel}{/if} - {if $context == 'Event' && $participantCount && ( $pager->_totalItems ne $participantCount ) } + {ts count=$pager->_totalItems plural="%count Results"}%count Result{/ts}{if $selectorLabel} - {$selectorLabel}{/if} + {if $context == 'Event' && $participantCount && ($pager->_totalItems ne $participantCount)} <br />{ts}Actual participant count{/ts} : {$participantCount} {help id="id-actual_participant_count" file="CRM/Event/Form/Search/Results.hlp"} {/if} </td> @@ -36,7 +36,7 @@ <tr> <td>{ts}Select Records{/ts}:</td> <td class="nowrap"> - {$form.radio_ts.ts_all.html} <label for="{$ts_all_id}">{ts count=$pager->_totalItems plural='All %count records'}The found record{/ts}</label> {if $pager->_totalItems > 1} {$form.radio_ts.ts_sel.html} <label for="{$ts_sel_id}">{ts 1="<span></span>"}%1 Selected records only{/ts}</label>{/if} + {$form.radio_ts.ts_all.html} <label for="{$ts_all_id}">{ts count=$pager->_totalItems plural="All %count records"}The found record{/ts}</label> {if $pager->_totalItems > 1} {$form.radio_ts.ts_sel.html} <label for="{$ts_sel_id}">{ts 1="<span></span>"}%1 Selected records only{/ts}</label>{/if} </td> </tr> <tr> diff --git a/civicrm/templates/CRM/common/standalone.tpl b/civicrm/templates/CRM/common/standalone.tpl index 3c5b3f4627..e84e85a765 100644 --- a/civicrm/templates/CRM/common/standalone.tpl +++ b/civicrm/templates/CRM/common/standalone.tpl @@ -17,11 +17,11 @@ {/crmRegion} {* @todo This is probably not required? *} -{if isset($buildNavigation) and !$urlIsPublic } - {include file="CRM/common/Navigation.tpl" } +{if isset($buildNavigation) and !$urlIsPublic} + {include file="CRM/common/Navigation.tpl"} {/if} - <title>{$docTitle}</title> + <title>{if isset($docTitle)}{$docTitle}{else}CiviCRM{/if}</title> </head> <body> {if $config->debug} diff --git a/civicrm/vendor/autoload.php b/civicrm/vendor/autoload.php index 2837bc77c8..7682e37fd4 100644 --- a/civicrm/vendor/autoload.php +++ b/civicrm/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit522682a708c66cb512b25ed67cf7e99a::getLoader(); +return ComposerAutoloaderInitba4cf7f5988d6bc26c0b6d68cac96d08::getLoader(); diff --git a/civicrm/vendor/composer/autoload_real.php b/civicrm/vendor/composer/autoload_real.php index d4626b5b06..7cc9314513 100644 --- a/civicrm/vendor/composer/autoload_real.php +++ b/civicrm/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit522682a708c66cb512b25ed67cf7e99a +class ComposerAutoloaderInitba4cf7f5988d6bc26c0b6d68cac96d08 { private static $loader; @@ -24,9 +24,9 @@ class ComposerAutoloaderInit522682a708c66cb512b25ed67cf7e99a require __DIR__ . '/platform_check.php'; - spl_autoload_register(array('ComposerAutoloaderInit522682a708c66cb512b25ed67cf7e99a', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitba4cf7f5988d6bc26c0b6d68cac96d08', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); - spl_autoload_unregister(array('ComposerAutoloaderInit522682a708c66cb512b25ed67cf7e99a', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitba4cf7f5988d6bc26c0b6d68cac96d08', 'loadClassLoader')); $includePaths = require __DIR__ . '/include_paths.php'; $includePaths[] = get_include_path(); @@ -36,7 +36,7 @@ class ComposerAutoloaderInit522682a708c66cb512b25ed67cf7e99a if ($useStaticLoader) { require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit522682a708c66cb512b25ed67cf7e99a::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitba4cf7f5988d6bc26c0b6d68cac96d08::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -57,12 +57,12 @@ class ComposerAutoloaderInit522682a708c66cb512b25ed67cf7e99a $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInit522682a708c66cb512b25ed67cf7e99a::$files; + $includeFiles = Composer\Autoload\ComposerStaticInitba4cf7f5988d6bc26c0b6d68cac96d08::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire522682a708c66cb512b25ed67cf7e99a($fileIdentifier, $file); + composerRequireba4cf7f5988d6bc26c0b6d68cac96d08($fileIdentifier, $file); } return $loader; @@ -74,7 +74,7 @@ class ComposerAutoloaderInit522682a708c66cb512b25ed67cf7e99a * @param string $file * @return void */ -function composerRequire522682a708c66cb512b25ed67cf7e99a($fileIdentifier, $file) +function composerRequireba4cf7f5988d6bc26c0b6d68cac96d08($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/civicrm/vendor/composer/autoload_static.php b/civicrm/vendor/composer/autoload_static.php index 182d7e06ef..ac6c3bd53d 100644 --- a/civicrm/vendor/composer/autoload_static.php +++ b/civicrm/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit522682a708c66cb512b25ed67cf7e99a +class ComposerStaticInitba4cf7f5988d6bc26c0b6d68cac96d08 { public static $files = array ( 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', @@ -729,11 +729,11 @@ class ComposerStaticInit522682a708c66cb512b25ed67cf7e99a public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit522682a708c66cb512b25ed67cf7e99a::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit522682a708c66cb512b25ed67cf7e99a::$prefixDirsPsr4; - $loader->prefixesPsr0 = ComposerStaticInit522682a708c66cb512b25ed67cf7e99a::$prefixesPsr0; - $loader->fallbackDirsPsr0 = ComposerStaticInit522682a708c66cb512b25ed67cf7e99a::$fallbackDirsPsr0; - $loader->classMap = ComposerStaticInit522682a708c66cb512b25ed67cf7e99a::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitba4cf7f5988d6bc26c0b6d68cac96d08::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitba4cf7f5988d6bc26c0b6d68cac96d08::$prefixDirsPsr4; + $loader->prefixesPsr0 = ComposerStaticInitba4cf7f5988d6bc26c0b6d68cac96d08::$prefixesPsr0; + $loader->fallbackDirsPsr0 = ComposerStaticInitba4cf7f5988d6bc26c0b6d68cac96d08::$fallbackDirsPsr0; + $loader->classMap = ComposerStaticInitba4cf7f5988d6bc26c0b6d68cac96d08::$classMap; }, null, ClassLoader::class); } diff --git a/civicrm/vendor/composer/installed.json b/civicrm/vendor/composer/installed.json index f67a645c36..d69094cb29 100644 --- a/civicrm/vendor/composer/installed.json +++ b/civicrm/vendor/composer/installed.json @@ -2150,7 +2150,7 @@ "type": "library", "extra": { "patches_applied": { - "Apply patch for php8.1": "https://patch-diff.githubusercontent.com/raw/pear/Log/pull/23.patch" + "Apply patch for php8.1": "https://gist.githubusercontent.com/totten/d99d47dd9d19a5cb02858954a5577609/raw/0e5e4628a475219c2aec6af76e69894cdec42a55/pear-log-locale.patch" } }, "installation-source": "dist", diff --git a/civicrm/vendor/composer/installed.php b/civicrm/vendor/composer/installed.php index 8ef8aacc82..729e9ba6d2 100644 --- a/civicrm/vendor/composer/installed.php +++ b/civicrm/vendor/composer/installed.php @@ -1,11 +1,11 @@ <?php return array( 'root' => array( - 'pretty_version' => '5.66.x-dev', - 'version' => '5.66.9999999.9999999-dev', + 'pretty_version' => '5.67.x-dev', + 'version' => '5.67.9999999.9999999-dev', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '8898c46a078f24e69cda6eb834943b97e8cca743', + 'reference' => '192b5c8ee388d2c084591fae00eb97be59cf2128', 'name' => 'civicrm/civicrm-core', 'dev' => true, ), @@ -38,12 +38,12 @@ 'dev_requirement' => false, ), 'civicrm/civicrm-core' => array( - 'pretty_version' => '5.66.x-dev', - 'version' => '5.66.9999999.9999999-dev', + 'pretty_version' => '5.67.x-dev', + 'version' => '5.67.9999999.9999999-dev', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '8898c46a078f24e69cda6eb834943b97e8cca743', + 'reference' => '192b5c8ee388d2c084591fae00eb97be59cf2128', 'dev_requirement' => false, ), 'civicrm/civicrm-cxn-rpc' => array( diff --git a/civicrm/vendor/pear/log/Log.php b/civicrm/vendor/pear/log/Log.php index caa700bb95..b9099cee78 100644 --- a/civicrm/vendor/pear/log/Log.php +++ b/civicrm/vendor/pear/log/Log.php @@ -114,6 +114,14 @@ class Log '%{class}' => '%8$s', '%\{' => '%%{'); + /** + * Locale to be passed to strftime when formatting + * + * @var string + * @access protected + */ + var $_locale = 'en_US'; + public function __construct() { } @@ -873,6 +881,30 @@ class Log return $this->_ident; } + /** + * Set the current locale + * @param string $locale The new locale + * + * @access public + * @since + */ + function setLocale($locale) + { + $this->_locale = $locale; + } + + /** + * Returns the current locale + * @return string + * + * @access public + * @since + */ + function getLocale() + { + return $this->_locale; + } + /** * Returns formatted time string using the PHP81_BC\strftime function to avoid deprecation errors * @param string $format the format of the string to return @@ -884,6 +916,6 @@ class Log */ public function formatTime($format) { - return strftime($format); + return strftime($format, NULL, $this->_locale); } } diff --git a/civicrm/vendor/pear/log/PATCHES.txt b/civicrm/vendor/pear/log/PATCHES.txt index 9b56ea5dff..7fab9b613b 100644 --- a/civicrm/vendor/pear/log/PATCHES.txt +++ b/civicrm/vendor/pear/log/PATCHES.txt @@ -2,6 +2,6 @@ This file was automatically generated by Composer Patches (https://github.com/cw Patches applied to this directory: Apply patch for php8.1 -Source: https://patch-diff.githubusercontent.com/raw/pear/Log/pull/23.patch +Source: https://gist.githubusercontent.com/totten/d99d47dd9d19a5cb02858954a5577609/raw/0e5e4628a475219c2aec6af76e69894cdec42a55/pear-log-locale.patch diff --git a/civicrm/vendor/pear/log/php-8.1-strftime.php b/civicrm/vendor/pear/log/php-8.1-strftime.php index 0f84da6e91..ac25cdb841 100644 --- a/civicrm/vendor/pear/log/php-8.1-strftime.php +++ b/civicrm/vendor/pear/log/php-8.1-strftime.php @@ -45,12 +45,7 @@ $timestamp->setTimezone(new DateTimeZone(date_default_timezone_get())); - if (empty($locale)) { - // get current locale - $locale = setlocale(LC_TIME, '0'); - } - // remove trailing part not supported by ext-intl locale - $locale = preg_replace('/[^\w-].*$/', '', $locale); + $locale = substr((string) $locale, 0, 5); $intl_formats = [ '%a' => 'EEE', // An abbreviated textual representation of the day Sun through Sat diff --git a/civicrm/xml/schema/Campaign/Survey.xml b/civicrm/xml/schema/Campaign/Survey.xml index 8a2fe3627c..5bbd296b44 100644 --- a/civicrm/xml/schema/Campaign/Survey.xml +++ b/civicrm/xml/schema/Campaign/Survey.xml @@ -8,6 +8,11 @@ <icon>fa-clipboard</icon> <labelField>title</labelField> <component>CiviCampaign</component> + <paths> + <add>civicrm/survey/add?reset=1</add> + <update>civicrm/survey/configure/main?reset=1&action=update&id=[id]</update> + <delete>civicrm/survey/delete?reset=1&id=[id]</delete> + </paths> <field> <name>id</name> <title>Survey ID</title> diff --git a/civicrm/xml/schema/Case/Case.xml b/civicrm/xml/schema/Case/Case.xml index d78de6fc22..3ca859baad 100644 --- a/civicrm/xml/schema/Case/Case.xml +++ b/civicrm/xml/schema/Case/Case.xml @@ -10,6 +10,9 @@ <icon>fa-folder-open</icon> <labelField>subject</labelField> <component>CiviCase</component> + <paths> + <view>civicrm/contact/view/case?action=view&reset=1&id=[id]</view> + </paths> <field> <name>id</name> <type>int unsigned</type> diff --git a/civicrm/xml/schema/Contact/Contact.xml b/civicrm/xml/schema/Contact/Contact.xml index c1d50300f6..778dab43be 100644 --- a/civicrm/xml/schema/Contact/Contact.xml +++ b/civicrm/xml/schema/Contact/Contact.xml @@ -53,7 +53,6 @@ <readonly>true</readonly> <add>1.1</add> <change>3.1</change> - <contactType>null</contactType> </field> <index> <name>index_contact_type</name> diff --git a/civicrm/xml/schema/Contact/Group.xml b/civicrm/xml/schema/Contact/Group.xml index 80cfc167a6..cc6862b815 100644 --- a/civicrm/xml/schema/Contact/Group.xml +++ b/civicrm/xml/schema/Contact/Group.xml @@ -176,6 +176,15 @@ <fieldName>cache_date</fieldName> <add>5.34</add> </index> + <field> + <name>cache_fill_took</name> + <type>float</type> + <title>Seconds taken by last cache fill</title> + <comment>Seconds taken to fill smart group cache</comment> + <required>false</required> + <readonly>true</readonly> + <add>5.67</add> + </field> <field> <name>refresh_date</name> <type>timestamp</type> diff --git a/civicrm/xml/schema/Contact/Relationship.xml b/civicrm/xml/schema/Contact/Relationship.xml index fd121341d7..d65dd5eb52 100644 --- a/civicrm/xml/schema/Contact/Relationship.xml +++ b/civicrm/xml/schema/Contact/Relationship.xml @@ -149,6 +149,7 @@ <add>2.1</add> <pseudoconstant> <callback>CRM_Core_SelectValues::getPermissionedRelationshipOptions</callback> + <suffixes>name,label,icon</suffixes> </pseudoconstant> <html> <type>Radio</type> @@ -164,6 +165,7 @@ <add>2.1</add> <pseudoconstant> <callback>CRM_Core_SelectValues::getPermissionedRelationshipOptions</callback> + <suffixes>name,label,icon</suffixes> </pseudoconstant> <html> <type>Radio</type> diff --git a/civicrm/xml/schema/Contact/RelationshipCache.xml b/civicrm/xml/schema/Contact/RelationshipCache.xml index 01452ce073..3edc7867ff 100644 --- a/civicrm/xml/schema/Contact/RelationshipCache.xml +++ b/civicrm/xml/schema/Contact/RelationshipCache.xml @@ -10,6 +10,7 @@ <icon>fa-handshake-o</icon> <title>Related Contact</title> <paths> + <add>civicrm/contact/view/rel?cid=[near_contact_id]&action=add&reset=1</add> <view>civicrm/contact/view/rel?action=view&reset=1&cid=[near_contact_id]&id=[relationship_id]</view> <update>civicrm/contact/view/rel?action=update&reset=1&cid=[near_contact_id]&id=[relationship_id]&rtype=[orientation]</update> <delete>civicrm/contact/view/rel?action=delete&reset=1&cid=[near_contact_id]&id=[relationship_id]</delete> diff --git a/civicrm/xml/schema/Core/CustomGroup.xml b/civicrm/xml/schema/Core/CustomGroup.xml index 95f67f66b2..e7c7f023d9 100644 --- a/civicrm/xml/schema/Core/CustomGroup.xml +++ b/civicrm/xml/schema/Core/CustomGroup.xml @@ -63,7 +63,7 @@ <add>1.1</add> <pseudoconstant> <callback>CRM_Core_BAO_CustomGroup::getCustomGroupExtendsOptions</callback> - <suffixes>name,label,grouping</suffixes> + <suffixes>name,label,grouping,icon</suffixes> </pseudoconstant> <html> <type>Select</type> @@ -74,7 +74,7 @@ <type>int unsigned</type> <title>Custom Group Subtype List</title> <default>NULL</default> - <comment>FK to civicrm_option_value.id (for option group custom_data_type.)</comment> + <comment>FK to civicrm_option_value.value (for option group custom_data_type)</comment> <pseudoconstant> <callback>CRM_Core_BAO_CustomGroup::getExtendsEntityColumnIdOptions</callback> <suffixes>name,label,grouping</suffixes> diff --git a/civicrm/xml/schema/Core/EntityFile.xml b/civicrm/xml/schema/Core/EntityFile.xml index e2dc7bbd6b..20d75001d1 100644 --- a/civicrm/xml/schema/Core/EntityFile.xml +++ b/civicrm/xml/schema/Core/EntityFile.xml @@ -26,8 +26,12 @@ <name>entity_table</name> <title>Entity Table</title> <type>varchar</type> + <required>true</required> <length>64</length> <comment>physical tablename for entity being joined to file, e.g. civicrm_contact</comment> + <pseudoconstant> + <callback>CRM_Core_BAO_File::getEntityTables</callback> + </pseudoconstant> <add>1.5</add> </field> <field> diff --git a/civicrm/xml/schema/Core/MessageTemplate.xml b/civicrm/xml/schema/Core/MessageTemplate.xml index a67839a281..ea6a8842ea 100644 --- a/civicrm/xml/schema/Core/MessageTemplate.xml +++ b/civicrm/xml/schema/Core/MessageTemplate.xml @@ -6,6 +6,7 @@ <name>civicrm_msg_template</name> <comment>Users will need a way to save and retrieve templates with tokens for use in recurring email communication tasks</comment> <add>1.6</add> + <labelField>msg_title</labelField> <paths> <add>civicrm/admin/messageTemplates/add?action=add&reset=1</add> <view>civicrm/admin/messageTemplates/add?action=view&id=[id]&reset=1</view> diff --git a/civicrm/xml/schema/Core/Note.xml b/civicrm/xml/schema/Core/Note.xml index 87f9b45f65..8846769b73 100644 --- a/civicrm/xml/schema/Core/Note.xml +++ b/civicrm/xml/schema/Core/Note.xml @@ -8,6 +8,12 @@ <add>1.1</add> <log>true</log> <icon>fa-sticky-note</icon> + <paths> + <add>civicrm/note?reset=1&action=add&entity_table=[entity_table]&entity_id=[entity_id]</add> + <view>civicrm/note?reset=1&action=view&id=[id]</view> + <update>civicrm/note?reset=1&action=update&id=[id]</update> + <delete>civicrm/note?reset=1&action=delete&id=[id]</delete> + </paths> <field> <name>id</name> <title>Note ID</title> @@ -30,6 +36,10 @@ <length>64</length> <required>true</required> <comment>Name of table where item being referenced is stored.</comment> + <html> + <label>Reference Type</label> + <type>Select</type> + </html> <pseudoconstant> <optionGroupName>note_used_for</optionGroupName> </pseudoconstant> @@ -39,6 +49,10 @@ <name>entity_id</name> <title>Note Entity ID</title> <type>int unsigned</type> + <html> + <label>Reference Item</label> + <type>EntityRef</type> + </html> <required>true</required> <comment>Foreign key to the referenced item.</comment> <add>1.1</add> @@ -76,6 +90,7 @@ <comment>FK to Contact ID creator</comment> <html> <label>Created By</label> + <type>EntityRef</type> </html> <add>1.1</add> </field> @@ -104,14 +119,24 @@ <comment>When the note was created.</comment> <required>true</required> <default>CURRENT_TIMESTAMP</default> + <html> + <type>Select Date</type> + <formatType>activityDateTime</formatType> + </html> <add>5.36</add> + <readonly>true</readonly> </field> <field> <name>modified_date</name> - <title>Note Modified By</title> + <title>Note Modified Date</title> <type>timestamp</type> <comment>When was this note last modified/edited</comment> <default>CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP</default> + <html> + <label>Modified Date</label> + <type>Select Date</type> + <formatType>activityDateTime</formatType> + </html> <add>1.1</add> <readonly>true</readonly> </field> @@ -134,6 +159,8 @@ <length>255</length> <comment>Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)</comment> <add>3.3</add> + <required>true</required> + <default>0</default> <html> <type>Select</type> </html> diff --git a/civicrm/xml/schema/Core/UFGroup.xml b/civicrm/xml/schema/Core/UFGroup.xml index 1c485eecb9..4f4bbfd2eb 100644 --- a/civicrm/xml/schema/Core/UFGroup.xml +++ b/civicrm/xml/schema/Core/UFGroup.xml @@ -14,6 +14,7 @@ <update>civicrm/admin/uf/group/update?action=update&reset=1&id=[id]</update> <delete>civicrm/admin/uf/group/update?action=delete&reset=1&id=[id]</delete> <browse>civicrm/admin/uf/group</browse> + <copy>civicrm/admin/uf/group/copy?action=copy&reset=1&gid=[id]</copy> </paths> <field> <name>id</name> diff --git a/civicrm/xml/schema/Core/UFMatch.xml b/civicrm/xml/schema/Core/UFMatch.xml index 1fed6fe263..6133aab373 100644 --- a/civicrm/xml/schema/Core/UFMatch.xml +++ b/civicrm/xml/schema/Core/UFMatch.xml @@ -64,7 +64,7 @@ <type>varchar</type> <length>128</length> <comment>UF Name</comment> - <add>1.9.kabissa</add> + <add>1.9</add> </field> <field> <name>contact_id</name> diff --git a/civicrm/xml/schema/Event/Event.xml b/civicrm/xml/schema/Event/Event.xml index 987d8e01eb..0ed5c2e863 100644 --- a/civicrm/xml/schema/Event/Event.xml +++ b/civicrm/xml/schema/Event/Event.xml @@ -884,12 +884,13 @@ <name>slot_label_id</name> <type>int unsigned</type> <title>Subevent Slot Label ID</title> + <deprecated>true</deprecated> <default>NULL</default> - <comment>Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot.</comment> + <comment>Needs to be moved to Event cart extension. Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot.</comment> <add>4.1</add> <html> - <type>Select</type> - </html> + <type>Select</type> + </html> </field> <field> <name>dedupe_rule_group_id</name> diff --git a/civicrm/xml/schema/Event/Participant.xml b/civicrm/xml/schema/Event/Participant.xml index 85e09c766c..52ec82d87c 100644 --- a/civicrm/xml/schema/Event/Participant.xml +++ b/civicrm/xml/schema/Event/Participant.xml @@ -13,7 +13,7 @@ <add>civicrm/participant/add?action=add&context=standalone&reset=1</add> <view>civicrm/contact/view/participant?id=[id]&cid=[contact_id]&action=view&reset=1</view> <update>civicrm/contact/view/participant?id=[id]&cid=[contact_id]&action=update&reset=1</update> - <delete>civicrm/contact/view/participant?id=[id]&cid=[contact_id]&action=delete&reset=1</delete> + <delete>civicrm/participant/delete?id=[id]&reset=1</delete> </paths> <field> <name>id</name> diff --git a/civicrm/xml/schema/Financial/EntityFinancialAccount.xml b/civicrm/xml/schema/Financial/EntityFinancialAccount.xml index 580fd8cd45..8612e33f9c 100644 --- a/civicrm/xml/schema/Financial/EntityFinancialAccount.xml +++ b/civicrm/xml/schema/Financial/EntityFinancialAccount.xml @@ -8,6 +8,11 @@ <comment>Map between an entity and a financial account, where there is a specific relationship between the financial account and the entity, e.g. Income Account for or AR Account for</comment> <log>true</log> <component>CiviContribute</component> + <paths> + <add>civicrm/admin/financial/financialType/accounts?action=add&reset=1&aid=[entity_id]</add> + <update>civicrm/admin/financial/financialType/accounts?action=update&id=[id]&aid=[entity_id]&reset=1</update> + <delete>civicrm/admin/financial/financialType/accounts?action=delete&id=[id]&aid=[entity_id]&reset=1</delete> + </paths> <field> <name>id</name> <title>Entity Financial Account ID</title> diff --git a/civicrm/xml/schema/Mailing/Event/MailingEventQueue.xml b/civicrm/xml/schema/Mailing/Event/MailingEventQueue.xml index c11349fece..3850ee28f9 100644 --- a/civicrm/xml/schema/Mailing/Event/MailingEventQueue.xml +++ b/civicrm/xml/schema/Mailing/Event/MailingEventQueue.xml @@ -27,7 +27,7 @@ <field> <name>job_id</name> <type>int unsigned</type> - <required>true</required> + <required>false</required> <title>Job ID</title> <comment>Mailing Job</comment> <html> @@ -38,8 +38,37 @@ <name>job_id</name> <table>civicrm_mailing_job</table> <key>id</key> - <onDelete>CASCADE</onDelete> + <onDelete>SET NULL</onDelete> </foreignKey> + <field> + <name>mailing_id</name> + <type>int unsigned</type> + <required>false</required> + <title>Mailing ID</title> + <comment>Related mailing. Used for reporting on mailing success, if present.</comment> + <html> + <label>Mailing</label> + </html> + <add>5.67</add> + </field> + <foreignKey> + <name>mailing_id</name> + <table>civicrm_mailing</table> + <key>id</key> + <onDelete>SET NULL</onDelete> + </foreignKey> + <field> + <name>is_test</name> + <title>Test</title> + <type>boolean</type> + <default>0</default> + <required>true</required> + <readonly>true</readonly> + <add>5.67</add> + <html> + <type>CheckBox</type> + </html> + </field> <field> <name>email_id</name> <type>int unsigned</type> diff --git a/civicrm/xml/schema/Mailing/Mailing.xml b/civicrm/xml/schema/Mailing/Mailing.xml index 3a62f47368..5cba6fe185 100644 --- a/civicrm/xml/schema/Mailing/Mailing.xml +++ b/civicrm/xml/schema/Mailing/Mailing.xml @@ -209,7 +209,7 @@ <pseudoconstant> <callback>CRM_Mailing_BAO_Mailing::getTemplateTypeNames</callback> </pseudoconstant> - <add>4.7.16</add> + <add>4.7</add> </field> <field> <name>template_options</name> @@ -217,7 +217,7 @@ <type>longtext</type> <comment>Advanced options used by the email templating system. (JSON encoded)</comment> <serialize>JSON</serialize> - <add>4.7.16</add> + <add>4.7</add> </field> <field> <name>subject</name> diff --git a/civicrm/xml/templates/civicrm_navigation.tpl b/civicrm/xml/templates/civicrm_navigation.tpl index 33f02e768a..f3428eeb3e 100644 --- a/civicrm/xml/templates/civicrm_navigation.tpl +++ b/civicrm/xml/templates/civicrm_navigation.tpl @@ -211,14 +211,6 @@ SET @campaignlastID:=LAST_INSERT_ID(); INSERT INTO civicrm_navigation ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight ) VALUES - ( @domainID, 'civicrm/campaign?reset=1', '{ts escape="sql" skip="true"}Dashboard{/ts}', 'Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 1 ); -SET @campaigndashboardlastID:=LAST_INSERT_ID(); -INSERT INTO civicrm_navigation - ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight ) -VALUES - ( @domainID, 'civicrm/campaign?reset=1&subPage=survey', '{ts escape="sql" skip="true"}Surveys{/ts}', 'Survey Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 1 ), - ( @domainID, 'civicrm/campaign?reset=1&subPage=petition', '{ts escape="sql" skip="true"}Petitions{/ts}', 'Petition Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 2 ), - ( @domainID, 'civicrm/campaign?reset=1&subPage=campaign', '{ts escape="sql" skip="true"}Campaigns{/ts}', 'Campaign Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 3 ), ( @domainID, 'civicrm/campaign/add?reset=1', '{ts escape="sql" skip="true"}New Campaign{/ts}', 'New Campaign', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 2 ), ( @domainID, 'civicrm/survey/add?reset=1', '{ts escape="sql" skip="true"}New Survey{/ts}', 'New Survey', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 3 ), ( @domainID, 'civicrm/petition/add?reset=1', '{ts escape="sql" skip="true"}New Petition{/ts}', 'New Petition', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 4 ), diff --git a/civicrm/xml/templates/civicrm_state_province.tpl b/civicrm/xml/templates/civicrm_state_province.tpl index ebba922822..45284f7413 100644 --- a/civicrm/xml/templates/civicrm_state_province.tpl +++ b/civicrm/xml/templates/civicrm_state_province.tpl @@ -85,13 +85,13 @@ INSERT INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES (1110, 1039, "QC", "Quebec"), (1111, 1039, "SK", "Saskatchewan"), (1112, 1039, "YT", "Yukon Territory"), -(1200, 1101, "MM", "Maharashtra"), +(1200, 1101, "MH", "Maharashtra"), (1201, 1101, "KA", "Karnataka"), (1202, 1101, "AP", "Andhra Pradesh"), (1203, 1101, "AR", "Arunachal Pradesh"), (1204, 1101, "AS", "Assam"), (1205, 1101, "BR", "Bihar"), -(1206, 1101, "CH", "Chhattisgarh"), +(1206, 1101, "CG", "Chhattisgarh"), (1207, 1101, "GA", "Goa"), (1208, 1101, "GJ", "Gujarat"), (1209, 1101, "HR", "Haryana"), diff --git a/civicrm/xml/templates/message_templates/case_activity_html.tpl b/civicrm/xml/templates/message_templates/case_activity_html.tpl index 6c4e30ee98..cdaa456838 100644 --- a/civicrm/xml/templates/message_templates/case_activity_html.tpl +++ b/civicrm/xml/templates/message_templates/case_activity_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} - {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} - {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} + {capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} + {capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/contribution_dupalert_html.tpl b/civicrm/xml/templates/message_templates/contribution_dupalert_html.tpl index 4c6867f0dc..28ef49022a 100644 --- a/civicrm/xml/templates/message_templates/contribution_dupalert_html.tpl +++ b/civicrm/xml/templates/message_templates/contribution_dupalert_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/contribution_offline_receipt_html.tpl b/civicrm/xml/templates/message_templates/contribution_offline_receipt_html.tpl index a4d76250a2..c7bcc10fb4 100644 --- a/civicrm/xml/templates/message_templates/contribution_offline_receipt_html.tpl +++ b/civicrm/xml/templates/message_templates/contribution_offline_receipt_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -23,7 +23,7 @@ {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} <p> {if {contribution.contribution_page_id.receipt_text|boolean}}{contribution.contribution_page_id.receipt_text} - {else}{ts}Below you will find a receipt for this contribution.{/ts}{/if} + {elseif {contribution.paid_amount|boolean}}{ts}Below you will find a receipt for this contribution.{/ts}{/if} </p> </td> </tr> @@ -97,7 +97,7 @@ {/if} {/if} <td> - {$line.line_total+$line.tax_amount|crmMoney:'{contribution.currency}'} + {$line.line_total_inclusive|crmMoney:'{contribution.currency}'} </td> </tr> {/foreach} @@ -166,7 +166,7 @@ </tr> {/if} - {if {contribution.payment_instrument_id|boolean}} + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} <tr> <td {$labelStyle}> {ts}Paid By{/ts} diff --git a/civicrm/xml/templates/message_templates/contribution_offline_receipt_text.tpl b/civicrm/xml/templates/message_templates/contribution_offline_receipt_text.tpl index 4e48d1357c..0c067179ea 100644 --- a/civicrm/xml/templates/message_templates/contribution_offline_receipt_text.tpl +++ b/civicrm/xml/templates/message_templates/contribution_offline_receipt_text.tpl @@ -2,7 +2,7 @@ {if {contribution.contribution_page_id.receipt_text|boolean}} {contribution.contribution_page_id.receipt_text} -{else}{ts}Below you will find a receipt for this contribution.{/ts} +{elseif {contribution.paid_amount|boolean}} {ts}Below you will find a receipt for this contribution.{/ts} {/if} =========================================================== @@ -27,7 +27,7 @@ {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} ---------------------------------------------------------- {foreach from=$lineItems item=line} -{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:'{contribution.currency}'|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:'{contribution.currency}'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:'{contribution.currency}'|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:'{contribution.currency}'|string_format:"%10s"} +{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:'{contribution.currency}'|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:'{contribution.currency}'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:'{contribution.currency}'|string_format:"%10s"} {else} {/if} {/if} {$line.line_total_inclusive|crmMoney:'{contribution.currency}'|string_format:"%10s"} {/foreach} {/if} @@ -49,7 +49,7 @@ {if '{contribution.receipt_date}'} {ts}Receipt Date{/ts}: {contribution.receipt_date|crmDate:"shortdate"} {/if} -{if {contribution.payment_instrument_id|boolean}} +{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} {ts}Paid By{/ts}: {contribution.payment_instrument_id:label} {if '{contribution.check_number}'} {ts}Check Number{/ts}: {contribution.check_number} diff --git a/civicrm/xml/templates/message_templates/contribution_online_receipt_html.tpl b/civicrm/xml/templates/message_templates/contribution_online_receipt_html.tpl index faa9e2611f..8321861206 100644 --- a/civicrm/xml/templates/message_templates/contribution_online_receipt_html.tpl +++ b/civicrm/xml/templates/message_templates/contribution_online_receipt_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -71,7 +71,7 @@ {/if} {/if} <td> - {$line.line_total+$line.tax_amount|crmMoney:$currency} + {$line.line_total_inclusive|crmMoney:$currency} </td> </tr> {/foreach} @@ -277,10 +277,10 @@ {/foreach} {/if} - {if !empty($isShare)} + {if {contribution.contribution_page_id.is_share|boolean}} <tr> <td colspan="2" {$valueStyle}> - {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageId`" a=true fe=1 h=1}{/capture} + {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="reset=1&id={contribution.contribution_page_id}" a=true fe=1 h=1}{/capture} {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl} </td> </tr> diff --git a/civicrm/xml/templates/message_templates/contribution_online_receipt_text.tpl b/civicrm/xml/templates/message_templates/contribution_online_receipt_text.tpl index eaeab5d2bd..2e4844feee 100644 --- a/civicrm/xml/templates/message_templates/contribution_online_receipt_text.tpl +++ b/civicrm/xml/templates/message_templates/contribution_online_receipt_text.tpl @@ -29,7 +29,7 @@ {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} ---------------------------------------------------------- {foreach from=$lineItems item=line} -{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:"%10s"} +{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total_inclusive|crmMoney:$currency|string_format:"%10s"} {/foreach} {if $isShowTax && {contribution.tax_amount|boolean}} diff --git a/civicrm/xml/templates/message_templates/contribution_recurring_billing_html.tpl b/civicrm/xml/templates/message_templates/contribution_recurring_billing_html.tpl index 84d6938af0..0826f61f2e 100644 --- a/civicrm/xml/templates/message_templates/contribution_recurring_billing_html.tpl +++ b/civicrm/xml/templates/message_templates/contribution_recurring_billing_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/contribution_recurring_cancelled_html.tpl b/civicrm/xml/templates/message_templates/contribution_recurring_cancelled_html.tpl index ac2c48790e..acacc2c5f2 100644 --- a/civicrm/xml/templates/message_templates/contribution_recurring_cancelled_html.tpl +++ b/civicrm/xml/templates/message_templates/contribution_recurring_cancelled_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/contribution_recurring_edit_html.tpl b/civicrm/xml/templates/message_templates/contribution_recurring_edit_html.tpl index a4a89db2f3..8d51d06a90 100644 --- a/civicrm/xml/templates/message_templates/contribution_recurring_edit_html.tpl +++ b/civicrm/xml/templates/message_templates/contribution_recurring_edit_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/contribution_recurring_notify_html.tpl b/civicrm/xml/templates/message_templates/contribution_recurring_notify_html.tpl index 22d39121b4..34a9d17681 100644 --- a/civicrm/xml/templates/message_templates/contribution_recurring_notify_html.tpl +++ b/civicrm/xml/templates/message_templates/contribution_recurring_notify_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -54,7 +54,7 @@ <tr> <td> <p>{ts}Thanks for your recurring contribution sign-up.{/ts}</p> - <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments }{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.</p> + <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments}{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.</p> <p>{ts}Start Date{/ts}: {$recur_start_date|crmDate}</p> </td> </tr> diff --git a/civicrm/xml/templates/message_templates/contribution_recurring_notify_text.tpl b/civicrm/xml/templates/message_templates/contribution_recurring_notify_text.tpl index 6aead9e1a5..673b228f16 100644 --- a/civicrm/xml/templates/message_templates/contribution_recurring_notify_text.tpl +++ b/civicrm/xml/templates/message_templates/contribution_recurring_notify_text.tpl @@ -20,7 +20,7 @@ {ts}Thanks for your recurring contribution sign-up.{/ts} -{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments } {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}. +{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments} {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}. {ts}Start Date{/ts}: {$recur_start_date|crmDate} diff --git a/civicrm/xml/templates/message_templates/event_offline_receipt_html.tpl b/civicrm/xml/templates/message_templates/event_offline_receipt_html.tpl index 16648dbfb6..3cc70ea05f 100644 --- a/civicrm/xml/templates/message_templates/event_offline_receipt_html.tpl +++ b/civicrm/xml/templates/message_templates/event_offline_receipt_html.tpl @@ -1,16 +1,19 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <title></title> </head> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=tdfirstStyle}style="width: 180px; padding-bottom: 15px;"{/capture} +{capture assign=tdStyle}style="width: 100px;"{/capture} +{capture assign=participantTotalStyle}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture} - <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> +<table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> <!-- BEGIN HEADER --> <!-- You can add table row(s) here with logo or other header elements --> @@ -32,8 +35,8 @@ {elseif !empty($isRequireApproval)} <p>{ts}Your registration has been submitted.{/ts}</p> <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p> - {elseif $is_pay_later} - <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} + {elseif {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean}} + <p>{event.pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} {/if} </td> @@ -53,61 +56,60 @@ </td> </tr> - {if !empty($event.participant_role) and $event.participant_role neq 'Attendee' and !empty($defaultRole)} + {if "{participant.role_id:label}" neq 'Attendee'} <tr> <td {$labelStyle}> {ts}Participant Role{/ts} </td> <td {$valueStyle}> - {$event.participant_role} + {participant.role_id:label} </td> </tr> {/if} - {if !empty($isShowLocation)} + {if {event.is_show_location|boolean}} <tr> <td colspan="2" {$valueStyle}> - {$location.address.1.display|nl2br} + {event.location} </td> </tr> {/if} {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Event Contacts:{/ts} - </td> - </tr> + <tr> + <td colspan="2" {$labelStyle}> + {ts}Event Contacts:{/ts} + </td> + </tr> {if {event.loc_block_id.phone_id.phone|boolean}} - <tr> - <td {$labelStyle}> - {if {event.loc_block_id.phone_id.phone_type_id|boolean}} - {event.loc_block_id.phone_id.phone_type_id:label} - {else} - {ts}Phone{/ts} - {/if} - </td> + <tr> + <td {$labelStyle}> + {if {event.loc_block_id.phone_id.phone_type_id|boolean}} + {event.loc_block_id.phone_id.phone_type_id:label} + {else} + {ts}Phone{/ts} + {/if} + </td> <td {$valueStyle}> {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if} </td> </tr> {/if} - {if {event.loc_block_id.phone_2_id.phone|boolean}} - <tr> - <td {$labelStyle}> - {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}} - {event.loc_block_id.phone_2_id.phone_type_id:label} - {else} - {ts}Phone{/ts} - {/if} - </td> - <td {$valueStyle}> - {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if} - </td> - </tr> - {/if} - + {if {event.loc_block_id.phone_2_id.phone|boolean}} + <tr> + <td {$labelStyle}> + {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}} + {event.loc_block_id.phone_2_id.phone_type_id:label} + {else} + {ts}Phone{/ts} + {/if} + </td> + <td {$valueStyle}> + {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if} + </td> + </tr> + {/if} {if {event.loc_block_id.email_id.email|boolean}} <tr> @@ -115,7 +117,7 @@ {ts}Email{/ts} </td> <td {$valueStyle}> - {event.loc_block_id.email_id.email} + {event.loc_block_id.email_id.email} </td> </tr> {/if} @@ -123,32 +125,31 @@ {if {event.loc_block_id.email_2_id.email|boolean}} <tr> <td {$labelStyle}> - {ts}Email{/ts} + {ts}Email{/ts} </td> <td {$valueStyle}> {event.loc_block_id.email_2_id.email} </td> </tr> {/if} - {/if} {if {event.is_public|boolean}} <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} + {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} <a href="{$icalFeed}">{ts}Download iCalendar entry for this event.{/ts}</a> </td> </tr> <tr> <td colspan="2" {$valueStyle}> - {capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} + {capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} <a href="{$gCalendar}">{ts}Add event to Google Calendar{/ts}</a> </td> </tr> {/if} - {if $email} + {if {contact.email_primary.email|boolean}} <tr> <th {$headerStyle}> {ts}Registered Email{/ts} @@ -156,276 +157,258 @@ </tr> <tr> <td colspan="2" {$valueStyle}> - {$email} + {contact.email_primary.email} </td> </tr> {/if} {if {event.is_monetary|boolean}} - <tr> - <th {$headerStyle}> - {if !empty($event.fee_label)}{$event.fee_label}{/if} - </th> + <th {$headerStyle}> + {event.fee_label} + </th> </tr> - - {if !empty($lineItem)} - {foreach from=$lineItem item=value key=priceset} - {if $value neq 'skip'} - {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} - <tr> - <td colspan="2" {$labelStyle}> - {ts 1=$priceset+1}Participant %1{/ts} + {if $isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *} + <tr> + <td colspan="2" {$labelStyle}> + {$currentParticipant.contact.display_name} + </td> + </tr> + {/if} + <tr> + <td colspan="2" {$valueStyle}> + <table> + <tr> + <th>{ts}Item{/ts}</th> + <th>{ts}Qty{/ts}</th> + <th>{ts}Each{/ts}</th> + {if $isShowTax && {contribution.tax_amount|boolean}} + <th>{ts}Subtotal{/ts}</th> + <th>{ts}Tax Rate{/ts}</th> + <th>{ts}Tax Amount{/ts}</th> + {/if} + <th>{ts}Total{/ts}</th> + {if $isShowParticipantCount} + <th>{ts}Total Participants{/ts}</th> + {/if} + </tr> + {foreach from=$currentParticipant.line_items item=line} + <tr> + <td {$tdfirstStyle}>{$line.title}</td> + <td {$tdStyle} align="middle">{$line.qty}</td> + <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td> + {if $isShowTax && {contribution.tax_amount|boolean}} + <td>{$line.line_total|crmMoney:$currency}</td> + {if $line.tax_rate || $line.tax_amount != ""} + <td>{$line.tax_rate|string_format:"%.2f"}%</td> + <td>{$line.tax_amount|crmMoney:$currency}</td> + {else} + <td></td> + <td></td> + {/if} + {/if} + <td {$tdStyle}> + {$line.line_total_inclusive|crmMoney:$currency} + </td> + {if $isShowParticipantCount} + <td {$tdStyle}>{$line.participant_count}</td> + {/if} + </tr> + {/foreach} + {if $isShowTax && $isPrimary && ($participants|@count > 1)} + <tr {$participantTotalStyle}> + <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td> + <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td> + </tr> + {/if} + </table> + </td> + </tr> + {/if} + {/foreach} + {/if} + {if !$isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {foreach from=$currentParticipant.line_items key=index item=currentLineItem} + <tr> + <td {$valueStyle}> + {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if} + </td> + <td {$valueStyle}> + {$currentLineItem.line_total|crmMoney:$currency} + </td> + </tr> + {/foreach} + {/if} + {/foreach} + {/if} + {if $isShowTax && {contribution.tax_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Amount Before Tax:{/ts} </td> - </tr> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if} + </td> + </tr> + {if !$isPrimary} + {* Use the participant specific tax rate breakdown *} + {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown} {/if} - - <tr> - <td colspan="2" {$valueStyle}> - <table> + {foreach from=$taxRateBreakdown item=taxDetail key=taxRate} <tr> - <th>{ts}Item{/ts}</th> - <th>{ts}Qty{/ts}</th> - <th>{ts}Each{/ts}</th> - {if !empty($dataArray)} - <th>{ts}SubTotal{/ts}</th> - <th>{ts}Tax Rate{/ts}</th> - <th>{ts}Tax Amount{/ts}</th> - {/if} - <th>{ts}Total{/ts}</th> - {if !empty($pricesetFieldsCount) }<th>{ts}Total Participants{/ts}</th>{/if} + <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td> + <td {$valueStyle}>{$taxDetail.amount|crmMoney:'{contribution.currency}'}</td> </tr> - {foreach from=$value item=line} - <tr> - <td> - {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if} - </td> - <td> - {$line.qty} - </td> - <td> - {$line.unit_price|crmMoney} - </td> - {if !empty($dataArray)} - <td> - {$line.unit_price*$line.qty|crmMoney} - </td> - {if $line.tax_rate || $line.tax_amount != ""} - <td> - {$line.tax_rate|string_format:"%.2f"}% - </td> - <td> - {$line.tax_amount|crmMoney} - </td> - {else} - <td></td> - <td></td> - {/if} - {/if} - <td> - {$line.line_total+$line.tax_amount|crmMoney} - </td> - {if !empty($pricesetFieldsCount) } - <td> - {$line.participant_count} - </td> + {/foreach} {/if} - </tr> - {/foreach} - </table> - </td> - </tr> - {/if} - {/foreach} - {if !empty($dataArray)} - {if $totalAmount and $totalTaxAmount} - <tr> - <td {$labelStyle}> - {ts}Amount Before Tax:{/ts} - </td> - <td {$valueStyle}> - {$totalAmount-$totalTaxAmount|crmMoney} - </td> - </tr> - {/if} - {foreach from=$dataArray item=value key=priceset} + {if $isShowTax && {contribution.tax_amount|boolean}} <tr> - {if $priceset || $priceset == 0} - <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> - <td> {$value|crmMoney:$currency}</td> - {/if} - </tr> - {/foreach} - {/if} - {/if} - - {if !empty($amount) && !$lineItem} - {foreach from=$amount item=amnt key=level} - <tr> - <td colspan="2" {$valueStyle}> - {$amnt.amount|crmMoney} {$amnt.label} - </td> - </tr> - {/foreach} - {/if} - {if {contribution.tax_amount|boolean}} - <tr> - <td {$labelStyle}> - {ts}Total Tax Amount{/ts} - </td> - <td {$valueStyle}> - {contribution.tax_amount} - </td> - </tr> - {/if} - {if {event.is_monetary|boolean}} - {if {contribution.balance_amount|boolean}} - <tr> - <td {$labelStyle}>{ts}Total Paid{/ts}</td> - <td {$valueStyle}> - {contribution.paid_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} - </td> + <td {$labelStyle}> + {ts}Total Tax Amount{/ts} + </td> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if} + </td> </tr> + {/if} + {if $isPrimary} <tr> - <td {$labelStyle}>{ts}Balance{/ts}</td> - <td {$valueStyle}>{contribution.balance_amount}</td> - </tr> - {else} - <tr> - <td {$labelStyle}>{ts}Total Amount{/ts}</td> - <td {$valueStyle}> - {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} - </td> - </tr> - {/if} - {if !empty($pricesetFieldsCount) } - <tr> - <td {$labelStyle}> - {ts}Total Participants{/ts}</td> - <td {$valueStyle}> - {assign var="count" value= 0} - {foreach from=$lineItem item=pcount} - {assign var="lineItemCount" value=0} - {if $pcount neq 'skip'} - {foreach from=$pcount item=p_count} - {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} - {/foreach} - {if $lineItemCount < 1 } - assign var="lineItemCount" value=1} - {/if} - {assign var="count" value=$count+$lineItemCount} - {/if} - {/foreach} - {$count} - </td> - </tr> - {/if} - {if $is_pay_later} - <tr> - <td colspan="2" {$labelStyle}> - {$pay_later_receipt} - </td> - </tr> - {/if} - - {if {participant.register_date|boolean}} - <tr> - <td {$labelStyle}> - {ts}Registration Date{/ts} - </td> - <td {$valueStyle}> - {participant.register_date} - </td> - </tr> - {/if} - - {if !empty($receive_date)} - <tr> - <td {$labelStyle}> - {ts}Transaction Date{/ts} - </td> - <td {$valueStyle}> - {$receive_date|crmDate} - </td> - </tr> - {/if} + <td {$labelStyle}> + {ts}Total Amount{/ts} + </td> + <td {$valueStyle}> + {contribution.total_amount} + </td> + </tr> + {if {contribution.balance_amount|boolean} && {contribution.paid_amount|boolean}} + <tr> + <td {$labelStyle}>{ts}Total Paid{/ts}</td> + <td {$valueStyle}> + {contribution.paid_amount|crmMoney} + </td> + </tr> + <tr> + <td {$labelStyle}>{ts}Balance{/ts}</td> + <td {$valueStyle}>{contribution.balance_amount}</td> + </tr> + {/if} + {if $isShowParticipantCount} + <tr> + <td {$labelStyle}>{ts}Total Participants{/ts}</td> + <td {$valueStyle}>{$line.participant_count}</td> + </tr> + {/if} + {if {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean} && {event.pay_later_receipt|boolean}} + <tr> + <td colspan="2" {$labelStyle}> + {event.pay_later_receipt} + </td> + </tr> + {/if} - {if !empty($financialTypeName)} - <tr> - <td {$labelStyle}> - {ts}Financial Type{/ts} - </td> - <td {$valueStyle}> - {$financialTypeName} - </td> - </tr> - {/if} + {if {participant.register_date|boolean}} + <tr> + <td {$labelStyle}> + {ts}Registration Date{/ts} + </td> + <td {$valueStyle}> + {participant.register_date} + </td> + </tr> + {/if} - {if !empty($trxn_id)} - <tr> - <td {$labelStyle}> - {ts}Transaction #{/ts} - </td> - <td {$valueStyle}> - {$trxn_id} - </td> - </tr> - {/if} + {if {contribution.receive_date|boolean}} + <tr> + <td {$labelStyle}> + {ts}Transaction Date{/ts} + </td> + <td {$valueStyle}> + {contribution.receive_date} + </td> + </tr> + {/if} - {if !empty($paidBy)} - <tr> - <td {$labelStyle}> - {ts}Paid By{/ts} - </td> - <td {$valueStyle}> - {$paidBy} - </td> - </tr> - {/if} + {if {contribution.financial_type_id|boolean}} + <tr> + <td {$labelStyle}> + {ts}Financial Type{/ts} + </td> + <td {$valueStyle}> + {contribution.financial_type_id:label} + </td> + </tr> + {/if} - {if !empty($checkNumber)} - <tr> - <td {$labelStyle}> - {ts}Check Number{/ts} - </td> - <td {$valueStyle}> - {$checkNumber} - </td> - </tr> - {/if} + {if {contribution.trxn_id|boolean}} + <tr> + <td {$labelStyle}> + {ts}Transaction #{/ts} + </td> + <td {$valueStyle}> + {contribution.trxn_id} + </td> + </tr> + {/if} - {if !empty($billingName)} - <tr> - <th {$headerStyle}> - {ts}Billing Name and Address{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$billingName}<br /> - {$address|nl2br} - </td> - </tr> - {/if} + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Paid By{/ts} + </td> + <td {$valueStyle}> + {contribution.payment_instrument_id:label} + </td> + </tr> + {/if} - {if !empty($credit_card_type)} - <tr> - <th {$headerStyle}> - {ts}Credit Card Information{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$credit_card_type}<br /> - {$credit_card_number}<br /> - {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} - </td> - </tr> - {/if} + {if {contribution.check_number|boolean}} + <tr> + <td {$labelStyle}> + {ts}Check Number{/ts} + </td> + <td {$valueStyle}> + {contribution.check_number} + </td> + </tr> + {/if} - {/if} + {if !empty($billingName)} + <tr> + <th {$headerStyle}> + {ts}Billing Name and Address{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$billingName}<br/> + {$address|nl2br} + </td> + </tr> + {/if} + {if !empty($credit_card_type)} + <tr> + <th {$headerStyle}> + {ts}Credit Card Information{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$credit_card_type}<br/> + {$credit_card_number}<br/> + {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} + </td> + </tr> + {/if} + {/if} {/if} {* End of conditional section for Paid events *} {if !empty($customGroup)} diff --git a/civicrm/xml/templates/message_templates/event_offline_receipt_text.tpl b/civicrm/xml/templates/message_templates/event_offline_receipt_text.tpl index f4c0805a2d..62bb785446 100644 --- a/civicrm/xml/templates/message_templates/event_offline_receipt_text.tpl +++ b/civicrm/xml/templates/message_templates/event_offline_receipt_text.tpl @@ -4,48 +4,48 @@ {/if} {if !empty($isOnWaitlist)} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}You have been added to the WAIT LIST for this event.{/ts} {ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {elseif !empty($isRequireApproval)} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Your registration has been submitted.{/ts} {ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== -{elseif $is_pay_later} +{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {$pay_later_receipt} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {/if} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Event Information and Location{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {event.title} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if '{event.end_date|crmDate:"%Y%m%d"}' === '{event.start_date|crmDate:"%Y%m%d"}'}{event.end_date|crmDate:"Time"}{else}{event.end_date}{/if}{/if} -{if !empty($event.participant_role) and $event.participant_role neq 'Attendee' and empty($defaultRole)} -{ts}Participant Role{/ts}: {$event.participant_role} +{if "{participant.role_id:label}" neq 'Attendee'} +{ts}Participant Role{/ts}: {participant.role_id:label} {/if} {if !empty($isShowLocation)} -{$location.address.1.display|strip_tags:false} +{event.location} {/if}{*End of isShowLocation condition*} {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} @@ -68,28 +68,28 @@ {if {event.is_public|boolean}} -{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Download iCalendar entry for this event.{/ts} {$icalFeed} -{capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Add event to Google Calendar{/ts} {$gCalendar} {/if} -{if !empty($email)} +{if {contact.email_primary.email|boolean}} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Registered Email{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== -{$email} +{contact.email_primary.email} {/if} -{if !empty($event.is_monetary)} {* This section for Paid events only.*} +{if {event.is_monetary|boolean}} {* This section for Paid events only.*} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== -{if !empty($event.fee_label)}{$event.fee_label}{/if} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +{event.fee_label} +=============================================================================== {if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset} @@ -99,29 +99,28 @@ {ts 1=$priceset+1}Participant %1{/ts} {/if} {/if} ----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if} +----------------------------------------------------------------------------- {capture assign=ts_item}{ts}Item{/ts}{/capture} {capture assign=ts_qty}{ts}Qty{/ts}{/capture} {capture assign=ts_each}{ts}Each{/ts}{/capture} -{if !empty($dataArray)} +{if $isShowTax && {contribution.tax_amount|boolean}} {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture} {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture} {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture} {/if} {capture assign=ts_total}{ts}Total{/ts}{/capture} -{capture assign=ts_participant_total}{if !empty($pricesetFieldsCount) }{ts}Total Participants{/ts}{/if}{/capture} -{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if !empty($dataArray)} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:"%10s"}{/if} -----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if} +{capture assign=ts_participant_total}{if !empty($pricesetFieldsCount)}{ts}Total Participants{/ts}{/if}{/capture} +{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:"%10s"}{/if} {foreach from=$value item=line} -{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} +{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} {capture assign=ts_item}{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney|string_format:"%10s"} {if !empty($dataArray)} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {if !empty($ts_participant_count)}{$ts_participant_count|string_format:"%10s"}{/if} {/foreach} {/if} {/foreach} -{if !empty($dataArray)} +{if $isShowTax && {contribution.tax_amount|boolean}} {if $totalAmount and $totalTaxAmount} {ts}Amount before Tax:{/ts} {$totalAmount-$totalTaxAmount|crmMoney:$currency} {/if} @@ -149,7 +148,7 @@ {else}{ts}Total Amount{/ts}: {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} {/if} -{if !empty($pricesetFieldsCount) } +{if !empty($pricesetFieldsCount)} {assign var="count" value= 0} {foreach from=$lineItem item=pcount} {assign var="lineItemCount" value=0} @@ -157,7 +156,7 @@ {foreach from=$pcount item=p_count} {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} {/foreach} - {if $lineItemCount < 1 } + {if $lineItemCount < 1} {assign var="lineItemCount" value=1} {/if} {assign var="count" value=$count+$lineItemCount} @@ -167,40 +166,39 @@ {ts}Total Participants{/ts}: {$count} {/if} -{if $is_pay_later} - -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +{if $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}} +=============================================================================== {$pay_later_receipt} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {/if} {if {participant.register_date|boolean}} {ts}Registration Date{/ts}: {participant.register_date} {/if} -{if $receive_date} -{ts}Transaction Date{/ts}: {$receive_date|crmDate} +{if {contribution.receive_date|boolean}} +{ts}Transaction Date{/ts}: {contribution.receive_date} {/if} -{if !empty($financialTypeName)} -{ts}Financial Type{/ts}: {$financialTypeName} +{if {contribution.financial_type_id|boolean}} +{ts}Financial Type{/ts}: {contribution.financial_type_id:label} {/if} -{if !empty($trxn_id)} -{ts}Transaction #{/ts}: {$trxn_id} +{if {contribution.trxn_id|boolean}} +{ts}Transaction #{/ts}: {contribution.trxn_id} {/if} -{if !empty($paidBy)} -{ts}Paid By{/ts}: {$paidBy} +{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} +{ts}Paid By{/ts}: {contribution.payment_instrument_id:label} {/if} -{if !empty($checkNumber)} -{ts}Check Number{/ts}: {$checkNumber} +{if {contribution.check_number|boolean}} +{ts}Check Number{/ts}: {contribution.check_number} {/if} {if !empty($billingName)} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {ts}Billing Name and Address{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {$billingName} {$address} @@ -210,7 +208,7 @@ =========================================================== {ts}Credit Card Information{/ts} -==========================================================={if !empty($pricesetFieldsCount) }===================={/if} +=============================================================================== {$credit_card_type} {$credit_card_number} @@ -221,10 +219,10 @@ {if !empty($customGroup)} {foreach from=$customGroup item=value key=customName} -=========================================================={if !empty($pricesetFieldsCount) }===================={/if} +============================================================================== {$customName} -=========================================================={if !empty($pricesetFieldsCount) }===================={/if} +============================================================================== {foreach from=$value item=v key=n} {$n}: {$v} diff --git a/civicrm/xml/templates/message_templates/event_online_receipt_html.tpl b/civicrm/xml/templates/message_templates/event_online_receipt_html.tpl index e99c60aa5a..12b3be3e4e 100644 --- a/civicrm/xml/templates/message_templates/event_online_receipt_html.tpl +++ b/civicrm/xml/templates/message_templates/event_online_receipt_html.tpl @@ -1,473 +1,485 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - <title></title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <title></title> </head> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} {capture assign=tdfirstStyle}style="width: 180px; padding-bottom: 15px;"{/capture} {capture assign=tdStyle}style="width: 100px;"{/capture} -{capture assign=participantTotal}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture} +{capture assign=participantTotalStyle}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture} - - <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> +<table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> <!-- BEGIN HEADER --> <!-- You can add table row(s) here with logo or other header elements --> <!-- END HEADER --> <!-- BEGIN CONTENT --> - <tr> - <td> - {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} - - {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))} - <p>{event.confirm_email_text}</p> - - {else} - <p>{ts}Thank you for your registration.{/ts} - {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to <strong> %1</strong>.{/ts} - {else}{if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>waitlisted</strong>.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}{/if}{/if}</p> - - {/if} - - <p> - {if !empty($isOnWaitlist)} - <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p> - {if $isPrimary} - <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p> - {/if} - {elseif !empty($isRequireApproval)} - <p>{ts}Your registration has been submitted.{/ts}</p> - {if $isPrimary} - <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p> - {/if} - {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)} - <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p> {* FIXME: this might be text rather than HTML *} - {/if} + <td> + {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} + {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))} + <p>{event.confirm_email_text}</p> + {else} + <p>{ts}Thank you for your registration.{/ts} + {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to<strong> %1</strong>.{/ts} + {else} + {if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to<strong>waitlisted</strong>.{/ts} + {else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts} + {/if} + {/if} + </p> + {/if} - </td> + {if !empty($isOnWaitlist)} + <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p> + {if $isPrimary} + <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p> + {/if} + {elseif !empty($isRequireApproval)} + <p>{ts}Your registration has been submitted.{/ts}</p> + {if $isPrimary} + <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p> + {/if} + {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)} + <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p> + {/if} + </td> </tr> <tr> - <td> - <table style="width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> - <tr> - <th {$headerStyle}> - {ts}Event Information and Location{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {event.title}<br /> - {event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if '{event.end_date|crmDate:"%Y%m%d"}' === '{event.start_date|crmDate:"%Y%m%d"}'}{event.end_date|crmDate:"Time"}{else}{event.end_date|crmDate:"%A"} {event.end_date|crmDate}{/if}{/if} - </td> - </tr> - - - {if $conference_sessions} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Your schedule:{/ts} - </td> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {assign var='group_by_day' value='NA'} - {foreach from=$conference_sessions item=session} - {if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} - {assign var='group_by_day' value=$session.start_date} - <em>{$group_by_day|crmDate:"%m/%d/%Y"}</em><br /> - {/if} - {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br /> - {if $session.location} {$session.location}<br />{/if} - {/foreach} - </td> - </tr> - {/if} - - {if !empty($event.participant_role) and $event.participant_role neq 'Attendee' and !empty($defaultRole)} - <tr> - <td {$labelStyle}> - {ts}Participant Role{/ts} - </td> - <td {$valueStyle}> - {$event.participant_role} - </td> - </tr> - {/if} - - {if !empty($isShowLocation)} - <tr> - <td colspan="2" {$valueStyle}> - {$location.address.1.display|nl2br} - </td> - </tr> - {/if} - - {if !empty($location.phone.1.phone) || !empty($location.email.1.email)} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Event Contacts:{/ts} - </td> - </tr> - {foreach from=$location.phone item=phone} - {if $phone.phone} + <td> + <table style="width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> <tr> - <td {$labelStyle}> - {if $phone.phone_type} - {$phone.phone_type_display} - {else} - {ts}Phone{/ts} - {/if} - </td> - <td {$valueStyle}> - {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if} - </td> + <th {$headerStyle}> + {ts}Event Information and Location{/ts} + </th> </tr> - {/if} - {/foreach} - {foreach from=$location.email item=eventEmail} - {if $eventEmail.email} <tr> - <td {$labelStyle}> - {ts}Email{/ts} - </td> - <td {$valueStyle}> - {$eventEmail.email} - </td> + <td colspan="2" {$valueStyle}> + {event.title}<br/> + {event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if '{event.end_date|crmDate:"%Y%m%d"}' === '{event.start_date|crmDate:"%Y%m%d"}'}{event.end_date|crmDate:"Time"}{else}{event.end_date|crmDate:"%A"} {event.end_date|crmDate}{/if}{/if} + </td> </tr> - {/if} - {/foreach} - {/if} - {if {event.is_public|boolean}} - <tr> - <td colspan="2" {$valueStyle}> - {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} - <a href="{$icalFeed}">{ts}Download iCalendar entry for this event.{/ts}</a> - </td> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} - <a href="{$gCalendar}">{ts}Add event to Google Calendar{/ts}</a> - </td> - </tr> - {/if} + {if "{participant.role_id:label}" neq 'Attendee'} + <tr> + <td {$labelStyle}> + {ts}Participant Role{/ts} + </td> + <td {$valueStyle}> + {participant.role_id:label} + </td> + </tr> + {/if} - {if $event.is_share} - <tr> - <td colspan="2" {$valueStyle}> - {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id={event.id}&reset=1" a=true fe=1 h=1}{/capture} - {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl pageURL=$eventUrl title='{event.title}'} - </td> - </tr> - {/if} - {if !empty($payer.name)} - <tr> - <th {$headerStyle}> - {ts}You were registered by:{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$payer.name} - </td> - </tr> - {/if} - {if {event.is_monetary|boolean} and empty($isRequireApproval)} + {if !empty($isShowLocation)} + <tr> + <td colspan="2" {$valueStyle}> + {event.location} + </td> + </tr> + {/if} - <tr> - <th {$headerStyle}> - {event.fee_label} - </th> - </tr> + {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} + <tr> + <td colspan="2" {$labelStyle}> + {ts}Event Contacts:{/ts} + </td> + </tr> - {if $isShowLineItems} - {foreach from=$participants key=index item=currentParticipant} - {if $isPrimary || {participant.id} === $currentParticipant.id} - {if $isPrimary && $lineItems|@count GT 1} {* Header for multi participant registration cases. *} + {if {event.loc_block_id.phone_id.phone|boolean}} <tr> - <td colspan="2" {$labelStyle}> - {ts 1=$currentParticipant.index}Participant %1{/ts} {$currentParticipant.contact.display_name} + <td {$labelStyle}> + {if {event.loc_block_id.phone_id.phone_type_id|boolean}} + {event.loc_block_id.phone_id.phone_type_id:label} + {else} + {ts}Phone{/ts} + {/if} + </td> + <td {$valueStyle}> + {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if} </td> </tr> {/if} + {if {event.loc_block_id.phone_2_id.phone|boolean}} <tr> - <td colspan="2" {$valueStyle}> - <table> - <tr> - <th>{ts}Item{/ts}</th> - <th>{ts}Qty{/ts}</th> - <th>{ts}Each{/ts}</th> - {if $isShowTax && {contribution.tax_amount|boolean}} - <th>{ts}Subtotal{/ts}</th> - <th>{ts}Tax Rate{/ts}</th> - <th>{ts}Tax Amount{/ts}</th> - {/if} - <th>{ts}Total{/ts}</th> - {if !empty($pricesetFieldsCount)}<th>{ts}Total Participants{/ts}</th>{/if} - </tr> - {foreach from=$currentParticipant.line_items item=line} - <tr> - <td {$tdfirstStyle}>{$line.title}</td> - <td {$tdStyle} align="middle">{$line.qty}</td> - <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td> - {if $line.tax_rate || $line.tax_amount != ""} - <td>{$line.tax_rate|string_format:"%.2f"}%</td> - <td>{$line.tax_amount|crmMoney:$currency}</td> - {else} - <td></td> - <td></td> - {/if} - <td {$tdStyle}> - {$line.line_total+$line.tax_amount|crmMoney:$currency} - </td> - {if !empty($pricesetFieldsCount)}<td {$tdStyle}>{$line.participant_count}</td> {/if} - </tr> - {/foreach} - {if $isShowTax} - <tr {$participantTotal}> - <td colspan=3>{ts}Participant Total{/ts}</td> - <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td> - <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td> - <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td> - </tr> + <td {$labelStyle}> + {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}} + {event.loc_block_id.phone_2_id.phone_type_id:label} + {else} + {ts}Phone{/ts} {/if} - </table> + </td> + <td {$valueStyle}> + {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if} + </td> + </tr> + {/if} + {if {event.loc_block_id.email_id.email|boolean}} + <tr> + <td {$labelStyle}> + {ts}Email{/ts} + </td> + <td {$valueStyle}> + {event.loc_block_id.email_id.email} + </td> + </tr> + {/if} + {if {event.loc_block_id.email_2_id.email|boolean}} + <tr> + <td {$labelStyle}> + {ts}Email{/ts} + </td> + <td {$valueStyle}> + {event.loc_block_id.email_2_id.email} </td> </tr> {/if} - {/foreach} {/if} - {if $isShowTax && {contribution.tax_amount|boolean}} + + {if {event.is_public|boolean}} <tr> - <td {$labelStyle}> - {ts}Amount Before Tax:{/ts} + <td colspan="2" {$valueStyle}> + {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} + <a href="{$icalFeed}">{ts}Download iCalendar entry for this event.{/ts}</a> </td> - <td {$valueStyle}> - {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if} + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} + <a href="{$gCalendar}">{ts}Add event to Google Calendar{/ts}</a> </td> - </tr> + </tr> + {/if} - {if !$isPrimary} - {* Use the participant specific tax rate breakdown *} - {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown} + {if {event.is_share|boolean}} + <tr> + <td colspan="2" {$valueStyle}> + {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id={event.id}&reset=1" a=true fe=1 h=1}{/capture} + {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl pageURL=$eventUrl title='{event.title}'} + </td> + </tr> + {/if} + {if !empty($payer.name)} + <tr> + <th {$headerStyle}> + {ts}You were registered by:{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$payer.name} + </td> + </tr> + {/if} + {if {event.is_monetary|boolean} and empty($isRequireApproval)} + <tr> + <th {$headerStyle}> + {event.fee_label} + </th> + </tr> + {if $isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *} + <tr> + <td colspan="2" {$labelStyle}> + {$currentParticipant.contact.display_name} + </td> + </tr> + {/if} + <tr> + <td colspan="2" {$valueStyle}> + <table> + <tr> + <th>{ts}Item{/ts}</th> + <th>{ts}Qty{/ts}</th> + <th>{ts}Each{/ts}</th> + {if $isShowTax && {contribution.tax_amount|boolean}} + <th>{ts}Subtotal{/ts}</th> + <th>{ts}Tax Rate{/ts}</th> + <th>{ts}Tax Amount{/ts}</th> + {/if} + <th>{ts}Total{/ts}</th> + {if !empty($pricesetFieldsCount)} + <th>{ts}Total Participants{/ts}</th> + {/if} + </tr> + {foreach from=$currentParticipant.line_items item=line} + <tr> + <td {$tdfirstStyle}>{$line.title}</td> + <td {$tdStyle} align="middle">{$line.qty}</td> + <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td> + {if $isShowTax && {contribution.tax_amount|boolean}} + <td>{$line.line_total|crmMoney:$currency}</td> + {if $line.tax_rate || $line.tax_amount != ""} + <td>{$line.tax_rate|string_format:"%.2f"}%</td> + <td>{$line.tax_amount|crmMoney:$currency}</td> + {else} + <td></td> + <td></td> + {/if} + {/if} + <td {$tdStyle}> + {$line.line_total_inclusive|crmMoney:$currency} + </td> + {if !empty($pricesetFieldsCount)} + <td {$tdStyle}>{$line.participant_count}</td> + {/if} + </tr> + {/foreach} + {if $isShowTax && $isPrimary && ($participants|@count > 1)} + <tr {$participantTotalStyle}> + <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td> + <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td> + <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td> + </tr> + {/if} + </table> + </td> + </tr> + {/if} + {/foreach} {/if} - {foreach from=$taxRateBreakdown item=taxDetail key=taxRate} + {if !$isShowLineItems} + {foreach from=$participants key=index item=currentParticipant} + {if $isPrimary || {participant.id} === $currentParticipant.id} + {foreach from=$currentParticipant.line_items key=index item=currentLineItem} + <tr> + <td {$valueStyle}> + {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if} + </td> + <td {$valueStyle}> + {$currentLineItem.line_total|crmMoney:$currency} + </td> + </tr> + {/foreach} + {/if} + {/foreach} + {/if} + {if $isShowTax && {contribution.tax_amount|boolean}} <tr> - <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td> - <td {$valueStyle}>{$taxDetail.amount|crmMoney:'{contribution.currency}'}</td> + <td {$labelStyle}> + {ts}Amount Before Tax:{/ts} + </td> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if} + </td> </tr> - {/foreach} - {/if} - - {if !empty($amounts) && empty($lineItem)} - {foreach from=$amounts item=amnt key=level} - <tr> - <td colspan="2" {$valueStyle}> - {$amnt.amount|crmMoney:$currency} {$amnt.label} - </td> - </tr> - {/foreach} - {/if} - - {if $isShowTax && {contribution.tax_amount|boolean}} - <tr> - <td {$labelStyle}> - {ts}Total Tax Amount{/ts} - </td> - <td {$valueStyle}> - {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if} - </td> - </tr> - {/if} - {if $isPrimary} - <tr> - <td {$labelStyle}> - {ts}Total Amount{/ts} - </td> - <td {$valueStyle}> - {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} - </td> - </tr> - {if !empty($pricesetFieldsCount) } - <tr> - <td {$labelStyle}> - {ts}Total Participants{/ts}</td> - <td {$valueStyle}> - {assign var="count" value= 0} - {foreach from=$lineItem item=pcount} - {assign var="lineItemCount" value=0} - {if $pcount neq 'skip'} - {foreach from=$pcount item=p_count} - {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} - {/foreach} - {if $lineItemCount < 1 } - {assign var="lineItemCount" value=1} - {/if} - {assign var="count" value=$count+$lineItemCount} - {/if} - {/foreach} - {$count} - </td> </tr> - {/if} - - {if $register_date} - <tr> - <td {$labelStyle}> - {ts}Registration Date{/ts} - </td> - <td {$valueStyle}> - {$register_date|crmDate} - </td> - </tr> - {/if} - - {if !empty($receive_date)} - <tr> - <td {$labelStyle}> - {ts}Transaction Date{/ts} - </td> - <td {$valueStyle}> - {$receive_date|crmDate} - </td> - </tr> - {/if} - - {if !empty($financialTypeName)} - <tr> - <td {$labelStyle}> - {ts}Financial Type{/ts} - </td> - <td {$valueStyle}> - {$financialTypeName} - </td> - </tr> - {/if} + {if !$isPrimary} + {* Use the participant specific tax rate breakdown *} + {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown} + {/if} + {foreach from=$taxRateBreakdown item=taxDetail key=taxRate} + <tr> + <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td> + <td {$valueStyle}>{$taxDetail.amount|crmMoney:'{contribution.currency}'}</td> + </tr> + {/foreach} + <tr> + <td {$labelStyle}> + {ts}Total Tax Amount{/ts} + </td> + <td {$valueStyle}> + {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if} + </td> + </tr> + {/if} + {if $isPrimary} + <tr> + <td {$labelStyle}> + {ts}Total Amount{/ts} + </td> + <td {$valueStyle}> + {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} + </td> + </tr> + {if !empty($pricesetFieldsCount)} + <tr> + <td {$labelStyle}> + {ts}Total Participants{/ts}</td> + <td {$valueStyle}> + {assign var="count" value= 0} + {foreach from=$lineItem item=pcount} + {assign var="lineItemCount" value=0} + {if $pcount neq 'skip'} + {foreach from=$pcount item=p_count} + {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} + {/foreach} + {if $lineItemCount < 1} + {assign var="lineItemCount" value=1} + {/if} + {assign var="count" value=$count+$lineItemCount} + {/if} + {/foreach} + {$count} + </td> + </tr> + {/if} + + {if {participant.register_date|boolean}} + <tr> + <td {$labelStyle}> + {ts}Registration Date{/ts} + </td> + <td {$valueStyle}> + {participant.register_date} + </td> + </tr> + {/if} + + {if !empty($receive_date)} + <tr> + <td {$labelStyle}> + {ts}Transaction Date{/ts} + </td> + <td {$valueStyle}> + {$receive_date|crmDate} + </td> + </tr> + {/if} + + {if !empty($financialTypeName)} + <tr> + <td {$labelStyle}> + {ts}Financial Type{/ts} + </td> + <td {$valueStyle}> + {$financialTypeName} + </td> + </tr> + {/if} + + {if !empty($trxn_id)} + <tr> + <td {$labelStyle}> + {ts}Transaction #{/ts} + </td> + <td {$valueStyle}> + {$trxn_id} + </td> + </tr> + {/if} + + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} + <tr> + <td {$labelStyle}> + {ts}Paid By{/ts} + </td> + <td {$valueStyle}> + {contribution.payment_instrument_id:label} + </td> + </tr> + {/if} + + {if !empty($checkNumber)} + <tr> + <td {$labelStyle}> + {ts}Check Number{/ts} + </td> + <td {$valueStyle}> + {$checkNumber} + </td> + </tr> + {/if} + + {if !empty($billingName)} + <tr> + <th {$headerStyle}> + {ts}Billing Name and Address{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$billingName}<br/> + {$address|nl2br} + </td> + </tr> + {/if} + + {if !empty($credit_card_type)} + <tr> + <th {$headerStyle}> + {ts}Credit Card Information{/ts} + </th> + </tr> + <tr> + <td colspan="2" {$valueStyle}> + {$credit_card_type}<br/> + {$credit_card_number}<br/> + {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} + </td> + </tr> + {/if} + {/if} - {if !empty($trxn_id)} - <tr> - <td {$labelStyle}> - {ts}Transaction #{/ts} - </td> - <td {$valueStyle}> - {$trxn_id} - </td> - </tr> - {/if} + {/if} {* End of conditional section for Paid events *} - {if !empty($paidBy)} - <tr> - <td {$labelStyle}> - {ts}Paid By{/ts} - </td> - <td {$valueStyle}> - {$paidBy} - </td> - </tr> - {/if} + {if !empty($customPre)} + {foreach from=$customPre item=customPr key=i} + <tr> + <th {$headerStyle}>{$customPre_grouptitle.$i}</th> + </tr> + {foreach from=$customPr item=customValue key=customName} + <tr> + <td {$labelStyle}>{$customName}</td> + <td {$valueStyle}>{$customValue}</td> + </tr> + {/foreach} + {/foreach} + {/if} - {if !empty($checkNumber)} - <tr> - <td {$labelStyle}> - {ts}Check Number{/ts} - </td> - <td {$valueStyle}> - {$checkNumber} - </td> - </tr> - {/if} + {if !empty($customPost)} + {foreach from=$customPost item=customPos key=j} + <tr> + <th {$headerStyle}>{$customPost_grouptitle.$j}</th> + </tr> + {foreach from=$customPos item=customValue key=customName} + <tr> + <td {$labelStyle}>{$customName}</td> + <td {$valueStyle}>{$customValue}</td> + </tr> + {/foreach} + {/foreach} + {/if} - {if !empty($billingName)} - <tr> - <th {$headerStyle}> - {ts}Billing Name and Address{/ts} - </th> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$billingName}<br /> - {$address|nl2br} - </td> - </tr> - {/if} + {if !empty($customProfile)} + {foreach from=$customProfile.profile item=eachParticipant key=participantID} + <tr> + <th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th> + </tr> + {foreach from=$eachParticipant item=eachProfile key=pid} + <tr> + <th {$headerStyle}>{$customProfile.title.$pid}</th> + </tr> + {foreach from=$eachProfile item=val key=field} + <tr> + {foreach from=$val item=v key=f} + <td {$labelStyle}>{$field}</td> + <td {$valueStyle}>{$v}</td> + {/foreach} + </tr> + {/foreach} + {/foreach} + {/foreach} + {/if} - {if !empty($credit_card_type)} + </table> + {if !empty($event.allow_selfcancelxfer)} <tr> - <th {$headerStyle}> - {ts}Credit Card Information{/ts} - </th> + <td colspan="2" {$valueStyle}> + {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}<br/> + {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid={participant.id}&{contact.checksum}" h=0 a=1 fe=1}{/capture} + <a href="{$selfService}">{ts}Click here to transfer or cancel your registration.{/ts}</a> + </td> </tr> - <tr> - <td colspan="2" {$valueStyle}> - {$credit_card_type}<br /> - {$credit_card_number}<br /> - {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} - </td> - </tr> - {/if} - {/if} - - {/if} {* End of conditional section for Paid events *} - - -{if !empty($customPre)} -{foreach from=$customPre item=customPr key=i} - <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr> - {foreach from=$customPr item=customValue key=customName} - <tr> - <td {$labelStyle}>{$customName}</td> - <td {$valueStyle}>{$customValue}</td> - </tr> - {/foreach} -{/foreach} -{/if} - -{if !empty($customPost)} -{foreach from=$customPost item=customPos key=j} - <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr> - {foreach from=$customPos item=customValue key=customName} - <tr> - <td {$labelStyle}>{$customName}</td> - <td {$valueStyle}>{$customValue}</td> - </tr> - {/foreach} -{/foreach} -{/if} - -{if !empty($customProfile)} -{foreach from=$customProfile.profile item=eachParticipant key=participantID} - <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr> - {foreach from=$eachParticipant item=eachProfile key=pid} - <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr> - {foreach from=$eachProfile item=val key=field} - <tr>{foreach from=$val item=v key=f} - <td {$labelStyle}>{$field}</td> - <td {$valueStyle}>{$v}</td> - {/foreach} - </tr> - {/foreach} -{/foreach} -{/foreach} -{/if} - - </table> - {if !empty($event.allow_selfcancelxfer) } - <tr> - <td colspan="2" {$valueStyle}> - {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}<br /> - {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid={participant.id}&{contact.checksum}" h=0 a=1 fe=1}{/capture} - <a href="{$selfService}">{ts}Click here to transfer or cancel your registration.{/ts}</a> - </td> - </tr> - {/if} </table> </body> diff --git a/civicrm/xml/templates/message_templates/event_online_receipt_text.tpl b/civicrm/xml/templates/message_templates/event_online_receipt_text.tpl index b20cc11626..d9adb6fab7 100644 --- a/civicrm/xml/templates/message_templates/event_online_receipt_text.tpl +++ b/civicrm/xml/templates/message_templates/event_online_receipt_text.tpl @@ -10,17 +10,17 @@ {/if} {if !empty($isOnWaitlist)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}You have been added to the WAIT LIST for this event.{/ts} {if $isPrimary} {ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts} {/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {elseif !empty($isRequireApproval)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Your registration has been submitted.{/ts} @@ -28,50 +28,34 @@ {ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts} {/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== -{elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)} +{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} + +=============================================================================== {if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Event Information and Location{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {event.title} -{event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:"%A"} {$event.event_end_date|crmDate}{/if}{/if} -{if !empty($conference_sessions)} - - -{ts}Your schedule:{/ts} -{assign var='group_by_day' value='NA'} -{foreach from=$conference_sessions item=session} -{if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} -{assign var='group_by_day' value=$session.start_date} - -{$group_by_day|crmDate:"%m/%d/%Y"} - - -{/if} -{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title} -{if $session.location} {$session.location}{/if} -{/foreach} -{/if} +{event.start_date|crmDate:"%A"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:"%A"} {$event.event_end_date|crmDate}{/if}{/if} -{if !empty($event.participant_role) and $event.participant_role neq 'Attendee' and !empty($defaultRole)} -{ts}Participant Role{/ts}: {$event.participant_role} +{if "{participant.role_id:label}" neq 'Attendee'} +{ts}Participant Role{/ts}: {participant.role_id:label} {/if} {if !empty($isShowLocation)} -{$location.address.1.display|strip_tags:false} +{event.location} {/if}{*End of isShowLocation condition*} {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}} @@ -80,28 +64,28 @@ {if {event.loc_block_id.phone_id.phone|boolean}} {if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if} {/if} -{foreach from=$location.email item=eventEmail} -{if $eventEmail.email} - -{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach} +{if {event.loc_block_id.email_id.email|boolean}} +{ts}Email {/ts}{event.loc_block_id.email_id.email} +{/if} +{if {event.loc_block_id.email_2_id.email|boolean}} +{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if} {/if} - {if {event.is_public|boolean}} -{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Download iCalendar entry for this event.{/ts} {$icalFeed} -{capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} +{capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id={event.id}" h=0 a=1 fe=1}{/capture} {ts}Add event to Google Calendar{/ts} {$gCalendar} {/if} {if !empty($payer.name)} You were registered by: {$payer.name} {/if} -{if !empty($event.is_monetary) and empty($isRequireApproval)} {* This section for Paid events only.*} +{if {event.is_monetary|boolean} and empty($isRequireApproval)} {* This section for Paid events only.*} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== -{if !empty ($event.fee_label)}{$event.fee_label}{/if} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +{event.fee_label} +=============================================================================== {if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset} @@ -112,7 +96,7 @@ You were registered by: {$payer.name} {/if} {/if} ------------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if} +---------------------------------------------------------------------------------------------------------------- {capture assign=ts_item}{ts}Item{/ts}{/capture} {capture assign=ts_qty}{ts}Qty{/ts}{/capture} @@ -123,12 +107,12 @@ You were registered by: {$payer.name} {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture} {/if} {capture assign=ts_total}{ts}Total{/ts}{/capture} -{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if} +{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if} {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:"%10s"}{/if} ------------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if} +---------------------------------------------------------------------------------------------------------------- {foreach from=$value item=line} -{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} +{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if} {capture assign=ts_item}{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:"%10s"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:"%10s"}{/if} {/foreach} ---------------------------------------------------------------------------------------------------------------- @@ -147,8 +131,13 @@ You were registered by: {$payer.name} {/if} {/if} -{if !empty($amounts) && empty($lineItem)} -{foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label} +{if !$isShowLineItems} +{foreach from=$participants key=index item=currentParticipant} +{if $isPrimary || {participant.id} === $currentParticipant.id} +{foreach from=$currentParticipant.line_items key=index item=currentLineItem} +{$currentLineItem.label} {if $isPrimary} - {$currentParticipant.contact.display_name}{/if} - {$currentLineItem.line_total|crmMoney:$currency} +{/foreach} +{/if} {/foreach} {/if} @@ -159,7 +148,7 @@ You were registered by: {$payer.name} {ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if} -{if !empty($pricesetFieldsCount) } +{if !empty($pricesetFieldsCount)} {assign var="count" value= 0} {foreach from=$lineItem item=pcount} {assign var="lineItemCount" value=0} @@ -167,7 +156,7 @@ You were registered by: {$payer.name} {foreach from=$pcount item=p_count} {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} {/foreach} - {if $lineItemCount < 1 } + {if $lineItemCount < 1} {assign var="lineItemCount" value=1} {/if} {assign var="count" value=$count+$lineItemCount} @@ -177,11 +166,11 @@ You were registered by: {$payer.name} {ts}Total Participants{/ts}: {$count} {/if} -{if $register_date} -{ts}Registration Date{/ts}: {$register_date|crmDate} +{if {participant.register_date|boolean}} +{ts}Registration Date{/ts}: {participant.register_date} {/if} -{if !empty($receive_date)} -{ts}Transaction Date{/ts}: {$receive_date|crmDate} +{if {contribution.receive_date|boolean}} +{ts}Transaction Date{/ts}: {contribution.receive_date} {/if} {if !empty($financialTypeName)} {ts}Financial Type{/ts}: {$financialTypeName} @@ -189,30 +178,30 @@ You were registered by: {$payer.name} {if !empty($trxn_id)} {ts}Transaction #{/ts}: {$trxn_id} {/if} -{if !empty($paidBy)} -{ts}Paid By{/ts}: {$paidBy} +{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} +{ts}Paid By{/ts}: {contribution.payment_instrument_id:label} {/if} {if !empty($checkNumber)} {ts}Check Number{/ts}: {$checkNumber} {/if} {if !empty($billingName)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Billing Name and Address{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$billingName} {$address} {/if} {if !empty($credit_card_type)} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts}Credit Card Information{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$credit_card_type} {$credit_card_number} @@ -223,10 +212,10 @@ You were registered by: {$payer.name} {if !empty($customPre)} {foreach from=$customPre item=customPr key=i} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$customPre_grouptitle.$i} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {foreach from=$customPr item=customValue key=customName} {$customName}: {$customValue} @@ -236,10 +225,10 @@ You were registered by: {$payer.name} {if !empty($customPost)} {foreach from=$customPost item=customPos key=j} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {$customPost_grouptitle.$j} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {foreach from=$customPos item=customValue key=customName} {$customName}: {$customValue} @@ -249,17 +238,17 @@ You were registered by: {$payer.name} {if !empty($customProfile)} {foreach from=$customProfile.profile item=eachParticipant key=participantID} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {ts 1=$participantID+2}Participant Information - Participant %1{/ts} -==========================================================={if !empty($pricesetFieldsCount)}===================={/if} +=============================================================================== {foreach from=$eachParticipant item=eachProfile key=pid} -----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if} +------------------------------------------------------------------------------ {$customProfile.title.$pid} -----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if} +------------------------------------------------------------------------------ {foreach from=$eachProfile item=val key=field} {foreach from=$val item=v key=f} @@ -270,7 +259,7 @@ You were registered by: {$payer.name} {/foreach} {/if} -{if !empty($event.allow_selfcancelxfer) } +{if !empty($event.allow_selfcancelxfer)} {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if} {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid={participant.id}&{contact.checksum}" h=0 a=1 fe=1}{/capture} {ts}Transfer or cancel your registration:{/ts} {$selfService} diff --git a/civicrm/xml/templates/message_templates/event_registration_receipt_html.tpl b/civicrm/xml/templates/message_templates/event_registration_receipt_html.tpl index 4dbb912e0f..6bada4d6da 100644 --- a/civicrm/xml/templates/message_templates/event_registration_receipt_html.tpl +++ b/civicrm/xml/templates/message_templates/event_registration_receipt_html.tpl @@ -6,8 +6,8 @@ </head> <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} - {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} - {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} + {capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} + {capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} {if $is_pay_later} diff --git a/civicrm/xml/templates/message_templates/friend_html.tpl b/civicrm/xml/templates/message_templates/friend_html.tpl index a83a119a43..6da12532a0 100644 --- a/civicrm/xml/templates/message_templates/friend_html.tpl +++ b/civicrm/xml/templates/message_templates/friend_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/membership_autorenew_billing_html.tpl b/civicrm/xml/templates/message_templates/membership_autorenew_billing_html.tpl index 10719b4ddb..872ff21b7e 100644 --- a/civicrm/xml/templates/message_templates/membership_autorenew_billing_html.tpl +++ b/civicrm/xml/templates/message_templates/membership_autorenew_billing_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/membership_autorenew_cancelled_html.tpl b/civicrm/xml/templates/message_templates/membership_autorenew_cancelled_html.tpl index 738a71b90a..b4fc722488 100644 --- a/civicrm/xml/templates/message_templates/membership_autorenew_cancelled_html.tpl +++ b/civicrm/xml/templates/message_templates/membership_autorenew_cancelled_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/membership_offline_receipt_html.tpl b/civicrm/xml/templates/message_templates/membership_offline_receipt_html.tpl index 4eed6e5ad9..a22a344947 100644 --- a/civicrm/xml/templates/message_templates/membership_offline_receipt_html.tpl +++ b/civicrm/xml/templates/message_templates/membership_offline_receipt_html.tpl @@ -8,8 +8,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-membership_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -122,7 +122,7 @@ <td></td> {/if} <td> - {$line.line_total+$line.tax_amount|crmMoney:'{contribution.currency}'} + {$line.line_total_inclusive|crmMoney:'{contribution.currency}'} </td> {/if} <td> @@ -182,7 +182,7 @@ </td> </tr> {/if} - {if {contribution.payment_instrument_id|boolean}} + {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}} <tr> <td {$labelStyle}> {ts}Paid By{/ts} diff --git a/civicrm/xml/templates/message_templates/membership_offline_receipt_text.tpl b/civicrm/xml/templates/message_templates/membership_offline_receipt_text.tpl index dd5248f741..29c852f1b4 100644 --- a/civicrm/xml/templates/message_templates/membership_offline_receipt_text.tpl +++ b/civicrm/xml/templates/message_templates/membership_offline_receipt_text.tpl @@ -40,7 +40,7 @@ -------------------------------------------------------------------------------------------------- {foreach from=$lineItems item=line} -{line.title} {$line.line_total|crmMoney|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:'{contribution.currency}'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:'{contribution.currency}'|string_format:"%10s"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {/if} {$line.membership.start_date|string_format:"%20s"} {$line.membership.end_date|string_format:"%20s"} +{line.title} {$line.line_total|crmMoney|string_format:"%10s"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.unit_price*$line.qty|crmMoney:'{contribution.currency}'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:'{contribution.currency}'|string_format:"%10s"} {else} {/if} {$line.line_total_inclusive|crmMoney|string_format:"%10s"} {/if} {$line.membership.start_date|string_format:"%20s"} {$line.membership.end_date|string_format:"%20s"} {/foreach} {if $isShowTax && {contribution.tax_amount|boolean}} @@ -70,7 +70,7 @@ {/if} {/if} -{if !empty($isPrimary) } +{if !empty($isPrimary)} {if !empty($billingName)} =========================================================== diff --git a/civicrm/xml/templates/message_templates/membership_online_receipt_html.tpl b/civicrm/xml/templates/message_templates/membership_online_receipt_html.tpl index 61dc61912d..00854d6e9e 100644 --- a/civicrm/xml/templates/message_templates/membership_online_receipt_html.tpl +++ b/civicrm/xml/templates/message_templates/membership_online_receipt_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -88,7 +88,7 @@ {$membership_amount|crmMoney} </td> </tr> - {if $amount && !$is_separate_payment } + {if $amount && !$is_separate_payment} <tr> <td {$labelStyle}> {ts}Contribution Amount{/ts} diff --git a/civicrm/xml/templates/message_templates/membership_online_receipt_text.tpl b/civicrm/xml/templates/message_templates/membership_online_receipt_text.tpl index 50c8c03663..b692a4fa8a 100644 --- a/civicrm/xml/templates/message_templates/membership_online_receipt_text.tpl +++ b/civicrm/xml/templates/message_templates/membership_online_receipt_text.tpl @@ -28,7 +28,7 @@ =========================================================== {if !$useForMember && isset($membership_amount) && !empty($is_quick_config)} {ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney} -{if $amount && !$is_separate_payment } +{if $amount && !$is_separate_payment} {ts}Contribution Amount{/ts}: {$amount|crmMoney} ------------------------------------------- {ts}Total{/ts}: {$amount+$membership_amount|crmMoney} @@ -87,7 +87,7 @@ {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency} {/if} -{ts}Amount{/ts}: {$amount|crmMoney} {if isset($amount_level) } - {$amount_level} {/if} +{ts}Amount{/ts}: {$amount|crmMoney} {if isset($amount_level)} - {$amount_level} {/if} {/if} {elseif isset($membership_amount)} =========================================================== @@ -123,7 +123,7 @@ {/if} {/if} -{if $honor_block_is_active } +{if $honor_block_is_active} =========================================================== {$soft_credit_type} =========================================================== diff --git a/civicrm/xml/templates/message_templates/participant_cancelled_html.tpl b/civicrm/xml/templates/message_templates/participant_cancelled_html.tpl index c0da77d4d5..8011f94862 100644 --- a/civicrm/xml/templates/message_templates/participant_cancelled_html.tpl +++ b/civicrm/xml/templates/message_templates/participant_cancelled_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/participant_confirm_html.tpl b/civicrm/xml/templates/message_templates/participant_confirm_html.tpl index 5a2765a673..9adb27725c 100644 --- a/civicrm/xml/templates/message_templates/participant_confirm_html.tpl +++ b/civicrm/xml/templates/message_templates/participant_confirm_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> <!-- BEGIN HEADER --> @@ -36,7 +36,7 @@ </td> </tr> {/if} - {if $event.allow_selfcancelxfer } + {if $event.allow_selfcancelxfer} {ts}This event allows for{/ts} {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture} <a href="{$selfService}"> {ts}self service cancel or transfer{/ts}</a> @@ -56,26 +56,6 @@ {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if} </td> </tr> - {if $conference_sessions} - <tr> - <td colspan="2" {$labelStyle}> - {ts}Your schedule:{/ts} - </td> - </tr> - <tr> - <td colspan="2" {$valueStyle}> - {assign var='group_by_day' value='NA'} - {foreach from=$conference_sessions item=session} - {if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} - {assign var='group_by_day' value=$session.start_date} - <em>{$group_by_day|crmDate:"%m/%d/%Y"}</em><br /> - {/if} - {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br /> - {if $session.location} {$session.location}<br />{/if} - {/foreach} - </td> - </tr> - {/if} <tr> <td {$labelStyle}> {ts}Participant Role{/ts}: @@ -167,7 +147,7 @@ </table> </td> </tr> - {if $event.allow_selfcancelxfer } + {if $event.allow_selfcancelxfer} <tr> <td colspan="2" {$valueStyle}> {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}<br /> diff --git a/civicrm/xml/templates/message_templates/participant_confirm_text.tpl b/civicrm/xml/templates/message_templates/participant_confirm_text.tpl index 4071637941..4804454474 100644 --- a/civicrm/xml/templates/message_templates/participant_confirm_text.tpl +++ b/civicrm/xml/templates/message_templates/participant_confirm_text.tpl @@ -12,7 +12,7 @@ Click this link to go to a web page where you can confirm your registration online: {$confirmUrl} {/if} -{if $event.allow_selfcancelxfer } +{if $event.allow_selfcancelxfer} {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if} {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture} {ts}Transfer or cancel your registration:{/ts} {$selfService} @@ -23,24 +23,6 @@ Click this link to go to a web page where you can confirm your registration onli =========================================================== {$event.event_title} {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if} -{if $conference_sessions} - - -{ts}Your schedule:{/ts} -{assign var='group_by_day' value='NA'} -{foreach from=$conference_sessions item=session} -{if $session.start_date|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"} -{assign var='group_by_day' value=$session.start_date} - -{$group_by_day|crmDate:"%m/%d/%Y"} - - -{/if} -{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title} -{if $session.location} {$session.location}{/if} -{/foreach} -{/if} - {ts}Participant Role{/ts}: {$participant.role} diff --git a/civicrm/xml/templates/message_templates/participant_expired_html.tpl b/civicrm/xml/templates/message_templates/participant_expired_html.tpl index d25fb796f9..1945198657 100644 --- a/civicrm/xml/templates/message_templates/participant_expired_html.tpl +++ b/civicrm/xml/templates/message_templates/participant_expired_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/participant_transferred_html.tpl b/civicrm/xml/templates/message_templates/participant_transferred_html.tpl index f064922015..ecd2e9e62f 100644 --- a/civicrm/xml/templates/message_templates/participant_transferred_html.tpl +++ b/civicrm/xml/templates/message_templates/participant_transferred_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/payment_or_refund_notification_html.tpl b/civicrm/xml/templates/message_templates/payment_or_refund_notification_html.tpl index 118435dc6d..9da9560b5c 100644 --- a/civicrm/xml/templates/message_templates/payment_or_refund_notification_html.tpl +++ b/civicrm/xml/templates/message_templates/payment_or_refund_notification_html.tpl @@ -7,10 +7,10 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} -{capture assign=emptyBlockStyle }style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture} -{capture assign=emptyBlockValueStyle }style="padding: 10px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=emptyBlockStyle}style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture} +{capture assign=emptyBlockValueStyle}style="padding: 10px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/pcp_notify_html.tpl b/civicrm/xml/templates/message_templates/pcp_notify_html.tpl index 8ea10a44ec..45904b2369 100644 --- a/civicrm/xml/templates/message_templates/pcp_notify_html.tpl +++ b/civicrm/xml/templates/message_templates/pcp_notify_html.tpl @@ -7,9 +7,9 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} -{capture assign=pcpURL }{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1 fe=1}{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=pcpURL}{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1 fe=1}{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/pcp_owner_notify_html.tpl b/civicrm/xml/templates/message_templates/pcp_owner_notify_html.tpl index e24d5a4257..0f7a34b7a3 100644 --- a/civicrm/xml/templates/message_templates/pcp_owner_notify_html.tpl +++ b/civicrm/xml/templates/message_templates/pcp_owner_notify_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} {assign var="greeting" value="{contact.email_greeting_display}"}{if $greeting}<p>{$greeting},</p>{/if} <p>{ts}You have received a donation at your personal page{/ts}: <a href="{$pcpInfoURL}">{$page_title}</a></p> diff --git a/civicrm/xml/templates/message_templates/pcp_supporter_notify_html.tpl b/civicrm/xml/templates/message_templates/pcp_supporter_notify_html.tpl index 8cd2d2895e..4692428035 100644 --- a/civicrm/xml/templates/message_templates/pcp_supporter_notify_html.tpl +++ b/civicrm/xml/templates/message_templates/pcp_supporter_notify_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/pledge_acknowledge_html.tpl b/civicrm/xml/templates/message_templates/pledge_acknowledge_html.tpl index b95281be17..6a172f6326 100644 --- a/civicrm/xml/templates/message_templates/pledge_acknowledge_html.tpl +++ b/civicrm/xml/templates/message_templates/pledge_acknowledge_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> @@ -64,7 +64,7 @@ </tr> {if $payments} - {assign var="count" value="1"} + {assign var="count" value=1} {foreach from=$payments item=payment} <tr> <td {$labelStyle}> @@ -74,7 +74,7 @@ {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:''|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:''|crmDate}{/if} </td> </tr> - {assign var="count" value=`$count+1`} + {assign var="count" value=$count+1} {/foreach} {/if} diff --git a/civicrm/xml/templates/message_templates/pledge_acknowledge_text.tpl b/civicrm/xml/templates/message_templates/pledge_acknowledge_text.tpl index 3d8a2f62ef..7123f954ee 100644 --- a/civicrm/xml/templates/message_templates/pledge_acknowledge_text.tpl +++ b/civicrm/xml/templates/message_templates/pledge_acknowledge_text.tpl @@ -21,11 +21,11 @@ {/if} {if $payments} -{assign var="count" value="1"} +{assign var="count" value=1} {foreach from=$payments item=payment} {ts 1=$count}Payment %1{/ts}: {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:''|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:''|crmDate}{/if} -{assign var="count" value=`$count+1`} +{assign var="count" value=$count+1} {/foreach} {/if} diff --git a/civicrm/xml/templates/message_templates/pledge_reminder_html.tpl b/civicrm/xml/templates/message_templates/pledge_reminder_html.tpl index de9ebeadfe..190be18b79 100644 --- a/civicrm/xml/templates/message_templates/pledge_reminder_html.tpl +++ b/civicrm/xml/templates/message_templates/pledge_reminder_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/message_templates/uf_notify_html.tpl b/civicrm/xml/templates/message_templates/uf_notify_html.tpl index 8439f29a41..09e6b31530 100644 --- a/civicrm/xml/templates/message_templates/uf_notify_html.tpl +++ b/civicrm/xml/templates/message_templates/uf_notify_html.tpl @@ -7,8 +7,8 @@ <body> {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} -{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} -{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} +{capture assign=labelStyle}style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} +{capture assign=valueStyle}style="padding: 4px; border-bottom: 1px solid #999;"{/capture} <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> diff --git a/civicrm/xml/templates/schema.tpl b/civicrm/xml/templates/schema.tpl index 50a11fd18b..cb7dae48f8 100644 --- a/civicrm/xml/templates/schema.tpl +++ b/civicrm/xml/templates/schema.tpl @@ -51,5 +51,5 @@ CREATE TABLE `{$table.name}` ({assign var='first' value=true} CONSTRAINT {$foreign.uniqName} FOREIGN KEY (`{$foreign.name}`) REFERENCES `{$foreign.table}`(`{$foreign.key}`){if $foreign.onDelete} ON DELETE {$foreign.onDelete}{/if}{/foreach}{* table.foreignKey *}{/if}{strip} {* table.foreignKey *}{/strip} ) -{if $mysql eq 'modern' }{$table.attributes_modern}{else}{$table.attributes_simple}{/if}; +{if $mysql eq 'modern'}{$table.attributes_modern}{else}{$table.attributes_simple}{/if}; {/foreach}{* tables *} diff --git a/civicrm/xml/version.xml b/civicrm/xml/version.xml index 857487c3d6..d137f830d6 100644 --- a/civicrm/xml/version.xml +++ b/civicrm/xml/version.xml @@ -1,4 +1,4 @@ <?xml version="1.0" encoding="iso-8859-1" ?> <version> - <version_no>5.66.2</version_no> + <version_no>5.67.0</version_no> </version> -- GitLab