2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
27 {if $context EQ 'Search'}
28 {include file="CRM/common/pager.tpl" location="top"}
32 <table class="selector row-highlight">
34 {if !$single and $context eq 'Search' }
35 <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
37 {foreach from=$columnHeaders item=header}
40 {assign var='key' value=$header.sort}
41 {$sort->_response.$key.link}
50 {counter start=0 skip=1 print=false}
51 {foreach from=$rows item=row}
52 <tr id='rowid{$row.activity_id}' class="{cycle values="odd-row,even-row"} {$row.class}">
54 {if $context eq 'Search' }
55 {assign var=cbName value=$row.checkbox}
56 <td>{$form.$cbName.html}</td>
65 <span><b>{$row.repeat}</b></span>
69 <td>{$row.activity_subject}</td>
72 {if !$row.source_contact_id}
74 {elseif $contactId NEQ $row.source_contact_id}
75 <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.source_contact_id`"}" title="{ts}View contact{/ts}">{$row.source_contact_name}</a>
77 {$row.source_contact_name}
83 <a href="{$row.mailingId}" title="{ts}View Mailing Report{/ts}">{$row.recipients}</a>
84 {elseif $row.recipients}
86 {elseif !$row.target_contact_name}
88 {elseif $row.target_contact_name}
89 {assign var="showTarget" value=0}
90 {foreach from=$row.target_contact_name item=targetName key=targetID}
92 {if $showTarget}; {/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a>
93 {assign var="showTarget" value=$showTarget+1}
96 {if count($row.target_contact_name) > 5}({ts}more{/ts}){/if}
101 {if !$row.assignee_contact_name}
103 {elseif $row.assignee_contact_name}
104 {assign var="showAssignee" value=0}
105 {foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID}
106 {if $showAssignee < 5}
107 {if $showAssignee}; {/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a>
108 {assign var="showAssignee" value=$showAssignee+1}
111 {if count($row.assignee_contact_name) > 5}({ts}more{/ts}){/if}
115 <td>{$row.activity_date_time|crmDate}</td>
117 <td>{$row.activity_status}</td>
119 <td>{$row.action|replace:'xx':$row.id}</td>
125 {include file="CRM/Case/Form/ActivityToCase.tpl"}
128 {if $context EQ 'Search'}
129 {include file="CRM/common/pager.tpl" location="bottom"}