{*
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* Template for Full-text search component. *}
{if !$table}{include file="CRM/common/pager.tpl" location="top"}{/if}
{include file="CRM/common/jsortable.tpl"}
{if $rowsEmpty}
{include file="CRM/Contact/Form/Search/Custom/EmptyResults.tpl"}
{/if}
{assign var=table value=$form.table.value.0}
{assign var=text value=$form.text.value}
{if !empty($summary.Contact) }
{* Search request has returned 1 or more matching rows. Display results. *}
{ts}Contacts{/ts}
: {if !$table}{if $summary.Count.Contact <= $limit}{$summary.Count.Contact}{else}{ts 1=$limit}%1 or more{/ts}{/if}{else}{$summary.Count.Contact}{/if}
{if $table}{include file="CRM/common/pager.tpl" location="top"}{/if}
{* This section displays the rows along and includes the paging controls *}
{if !$table and $summary.addShowAllLink.Contact}
{/if}
{* note we using location="below" because we don't want to use rows per page for now. And therefore don't put location="bottom" for now. *}
{if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
{* END Actions/Results section *}
{/if}
{if !empty($summary.Activity) }
{* Search request has returned 1 or more matching rows. Display results. *}
{ts}Activities{/ts}
: {if !$table}{if $summary.Count.Activity <= $limit}{$summary.Count.Activity}{else}{ts 1=$limit}%1 or more{/ts}{/if}{else}{$summary.Count.Activity}{/if}
{if $table}{include file="CRM/common/pager.tpl" location="top"}{/if}
{* This section displays the rows along and includes the paging controls *}
{if !$table and $summary.addShowAllLink.Activity}
{/if}
{if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
{* END Actions/Results section *}
{/if}
{if !empty($summary.Case) }
{* Search request has returned 1 or more matching rows. Display results. *}
{ts}Cases{/ts}
: {if !$table}{if $summary.Count.Case <= $limit}{$summary.Count.Case}{else}{ts 1=$limit}%1 or more{/ts}{/if}{else}{$summary.Count.Case}{/if}
{if $table}{include file="CRM/common/pager.tpl" location="top"}{/if}
{* This section displays the rows along and includes the paging controls *}
{ts}Client Name{/ts} |
{ts}Start Date{/ts} |
{ts}End Date{/ts} |
{ts}Case ID{/ts} |
{if $allowFileSearch}{ts}File{/ts} | {/if}
|
|
|
{foreach from=$summary.Case item=row}
{$row.sort_name}
|
{$row.case_start_date|crmDate:"%b %d, %Y %l:%M %P"} |
{$row.case_end_date|crmDate:"%b %d, %Y %l:%M %P"} |
{$row.case_id} |
{if $allowFileSearch}{$row.fileHtml} | {/if}
{if $row.case_is_deleted}
{ts}Restore Case{/ts}
|
{else}
{ts}Manage{/ts}
|
{/if}
{$row.case_start_date|crmDate} |
{$row.case_end_date|crmDate} |
{/foreach}
{if !$table and $summary.addShowAllLink.Case}
{/if}
{if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
{* END Actions/Results section *}
{/if}
{if !empty($summary.Contribution) }
{* Search request has returned 1 or more matching rows. Display results. *}
{ts}Contributions{/ts}
: {if !$table}{if $summary.Count.Contribution <= $limit}{$summary.Count.Contribution}{else}{ts 1=$limit}%1 or more{/ts}{/if}{else}{$summary.Count.Contribution}{/if}
{if $table}{include file="CRM/common/pager.tpl" location="top"}{/if}
{* This section displays the rows along and includes the paging controls *}
{ts}Contributor's Name{/ts} |
{ts}Amount{/ts} |
{ts}Financial Type{/ts} |
{ts}Source{/ts} |
{ts}Received{/ts} |
{ts}Status{/ts} |
{if $allowFileSearch}{ts}File{/ts} | {/if}
|
|
{foreach from=$summary.Contribution item=row}
{$row.sort_name}
|
{$row.contribution_total_amount|crmMoney} |
{$row.financial_type} |
{$row.contribution_source} |
{$row.contribution_receive_date|crmDate:"%b %d, %Y %l:%M %P"} |
{$row.contribution_status} |
{if $allowFileSearch}{$row.fileHtml} | {/if}
{ts}View{/ts}
|
{$row.contribution_receive_date|crmDate} |
{/foreach}
{if !$table and $summary.addShowAllLink.Contribution}
{/if}
{if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
{* END Actions/Results section *}
{/if}
{if !empty($summary.Participant) }
{* Search request has returned 1 or more matching rows. *}
{ts}Event Participants{/ts}
: {if !$table}{if $summary.Count.Participant <= $limit}{$summary.Count.Participant}{else}{ts 1=$limit}%1 or more{/ts}{/if}{else}{$summary.Count.Participant}{/if}
{if $table}{include file="CRM/common/pager.tpl" location="top"}{/if}
{* This section displays the rows along and includes the paging controls *}
{ts}Participant's Name{/ts} |
{ts}Event{/ts} |
{ts}Fee Level{/ts} |
{ts}Fee Amount{/ts} |
{ts}Register Date{/ts} |
{ts}Source{/ts} |
{ts}Status{/ts} |
{ts}Role{/ts} |
{if $allowFileSearch}{ts}File{/ts} | {/if}
|
|
{foreach from=$summary.Participant item=row}
{$row.sort_name}
|
{$row.event_title} |
{$row.participant_fee_level} |
{$row.participant_fee_amount|crmMoney} |
{$row.participant_register_date|crmDate:"%b %d, %Y %l:%M %P"} |
{$row.participant_source} |
{$row.participant_status} |
{$row.participant_role} |
{if $allowFileSearch}{$row.fileHtml} | {/if}
{ts}View{/ts}
|
{$row.participant_register_date|crmDate} |
{/foreach}
{if !$table and $summary.addShowAllLink.Participant}
{/if}
{if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
{* END Actions/Results section *}
{/if}
{if !empty($summary.Membership) }
{* Search request has returned 1 or more matching rows. *}
{ts}Memberships{/ts}
: {if !$table}{if $summary.Count.Membership <= $limit}{$summary.Count.Membership}{else}{ts 1=$limit}%1 or more{/ts}{/if}{else}{$summary.Count.Membership}{/if}
{if $table}{include file="CRM/common/pager.tpl" location="top"}{/if}
{* This section displays the rows along and includes the paging controls *}
{ts}Member's Name{/ts} |
{ts}Membership Type{/ts} |
{ts}Membership Fee{/ts} |
{ts}Membership Start Date{/ts} |
{ts}Membership End Date{/ts} |
{ts}Source{/ts} |
{ts}Status{/ts} |
{if $allowFileSearch}{ts}File{/ts} | {/if}
|
|
|
{foreach from=$summary.Membership item=row}
{$row.sort_name}
|
{$row.membership_type} |
{$row.membership_fee|crmMoney} |
{$row.membership_start_date|crmDate:"%b %d, %Y %l:%M %P"} |
{$row.membership_end_date|crmDate:"%b %d, %Y %l:%M %P"} |
{$row.membership_source} |
{$row.membership_status} |
{if $allowFileSearch}{$row.fileHtml} | {/if}
{ts}View{/ts}
|
{$row.membership_start_date|crmDate} |
{$row.membership_end_date|crmDate} |
{/foreach}
{if !$table and $summary.addShowAllLink.Membership}
{/if}
{if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
{* END Actions/Results section *}
{/if}
{if !empty($summary.File) }
{* Search request has returned 1 or more matching rows. *}
{ts}Files{/ts}:
{if !$table}
{if $summary.Count.File <= $limit}{$summary.Count.File}{else}{ts 1=$limit}%1 or more{/ts}{/if}
{else}
{$summary.Count.File}
{/if}
{if $table}{include file="CRM/common/pager.tpl" location="top"}{/if}
{* This section displays the rows along and includes the paging controls *}
{ts}File Name{/ts} |
{ts}Type{/ts} |
{ts}Attached To{/ts} |
|
{foreach from=$summary.File item=row}
{$row.file_name} |
{$row.file_mime_type} |
{crmCrudLink action=VIEW table=$row.file_entity_table id=$row.file_entity_id} |
{ts}View{/ts}
|
{/foreach}
{if !$table and $summary.addShowAllLink.File}
{/if}
{if $table}{include file="CRM/common/pager.tpl" location="below"}{/if}
{* END Actions/Results section *}
{/if}
{if !$table}{include file="CRM/common/pager.tpl" location="bottom"}{/if}