First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
|
@ -0,0 +1,50 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM 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 Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if ! empty( $row )}
|
||||
{* wrap in crm-container div so crm styles are used *}
|
||||
{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`}
|
||||
{foreach from=$profileFields item=field key=rowName}
|
||||
<div id="row-{$rowName}" class="crm-section {$rowName}-section">
|
||||
<div class="label">
|
||||
{$field.label}
|
||||
</div>
|
||||
<div class="content">
|
||||
{$field.value}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/crmRegion}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{* fields array is not empty *}
|
|
@ -0,0 +1,103 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM 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 Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
<div class="crm-profile-name-{$ufGroupName}">
|
||||
{crmRegion name=profile-search-`$ufGroupName`}
|
||||
|
||||
{* make sure there are some fields in the selector *}
|
||||
{if ! empty( $columnHeaders ) || $isReset }
|
||||
|
||||
{if $search}
|
||||
<div class="crm-block crm-form-block">
|
||||
{include file="$searchTPL"}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="crm-block crm-content-block">
|
||||
{* show profile listings criteria ($qill) *}
|
||||
{if $rows}
|
||||
|
||||
{if $qill}
|
||||
<div class="crm-search-tasks">
|
||||
<div id="search-status">
|
||||
{ts}Displaying contacts where:{/ts}
|
||||
{include file="CRM/common/displaySearchCriteria.tpl"}
|
||||
{if $mapURL}<a href="{$mapURL}">» {ts}Map these contacts{/ts}</a>{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
<div class="crm-search-results">
|
||||
{include file="CRM/common/pager.tpl" location="top"}
|
||||
{* Search criteria are passed to tpl in the $qill array *}
|
||||
|
||||
|
||||
{strip}
|
||||
<table>
|
||||
<tr class="columnheader">
|
||||
{foreach from=$columnHeaders item=header}
|
||||
<th scope="col">
|
||||
{if $header.sort}
|
||||
{assign var='key' value=$header.sort}
|
||||
{$sort->_response.$key.link}
|
||||
{else}
|
||||
{$header.name}
|
||||
{/if}
|
||||
</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$rows item=row name=listings}
|
||||
<tr id="row-{$smarty.foreach.listings.iteration}" class="{cycle values="odd-row,even-row"}">
|
||||
{foreach from=$row key=index item=value}
|
||||
{if $columnHeaders.$index.field_name}
|
||||
<td class="crm-{$columnHeaders.$index.field_name}">{$value}</td>
|
||||
{else}
|
||||
<td>{$value}</td>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
{include file="CRM/common/pager.tpl" location="bottom"}
|
||||
</div>
|
||||
{elseif ! $isReset}
|
||||
{include file="CRM/Contact/Form/Search/EmptyResults.tpl" context="Profile"}
|
||||
{/if}
|
||||
|
||||
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{ts}No fields in this Profile have been configured to display as a result column in the search results table. Ask the site administrator to check the Profile setup.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{/crmRegion}
|
||||
</div>{* crm-profile-name-NAME *}
|
|
@ -0,0 +1,129 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM 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 Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $showListing}
|
||||
{if $dontShowTitle neq 1}<h1>{ts}{$customGroupTitle}{/ts}</h1>{/if}
|
||||
{if $pageViewType eq 'customDataView'}
|
||||
{assign var='dialogId' value='custom-record-dialog'}
|
||||
{else}
|
||||
{assign var='dialogId' value='profile-dialog'}
|
||||
{/if}
|
||||
{if ($records and $headers) or ($pageViewType eq 'customDataView')}
|
||||
{include file="CRM/common/jsortable.tpl"}
|
||||
<div id="custom-{$customGroupId}-table-wrapper" {if $pageViewType eq 'customDataView'}class="crm-entity" data-entity="contact" data-id="{$contactId}"{/if}>
|
||||
<div>
|
||||
{strip}
|
||||
<table id="records-{$customGroupId}" class={if $pageViewType eq 'customDataView'}"crm-multifield-selector crm-ajax-table"{else}'display'{/if}>
|
||||
<thead>
|
||||
{if $pageViewType eq 'customDataView'}
|
||||
{foreach from=$headers key=recId item=head}
|
||||
<th data-data={ts}'{$headerAttr.$recId.columnName}'{/ts}
|
||||
{if !empty($headerAttr.$recId.dataType)}cell-data-type="{$headerAttr.$recId.dataType}"{/if}
|
||||
{if !empty($headerAttr.$recId.dataEmptyOption)}cell-data-empty-option="{$headerAttr.$recId.dataEmptyOption}"{/if}>{ts}{$head}{/ts}
|
||||
</th>
|
||||
{/foreach}
|
||||
<th data-data="action" data-orderable="false"> </th>
|
||||
</thead>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
var ZeroRecordText = {/literal}'{ts 1=$customGroupTitle}No records of type \'%1\' found.{/ts}'{literal};
|
||||
var $table = $('#records-' + {/literal}'{$customGroupId}'{literal});
|
||||
$('table.crm-multifield-selector').data({
|
||||
"ajax": {
|
||||
"url": {/literal}'{crmURL p="civicrm/ajax/multirecordfieldlist" h=0 q="snippet=4&cid=$contactId&cgid=$customGroupId"}'{literal},
|
||||
},
|
||||
"language": {
|
||||
"emptyTable": ZeroRecordText,
|
||||
},
|
||||
//Add class attributes to cells
|
||||
"rowCallback": function(row, data) {
|
||||
$('thead th', $table).each(function(index) {
|
||||
var fName = $(this).attr('data-data');
|
||||
var cell = $('td:eq(' + index + ')', row);
|
||||
if (typeof data[fName] == 'object') {
|
||||
if (typeof data[fName].data != 'undefined') {
|
||||
$(cell).html(data[fName].data);
|
||||
}
|
||||
if (typeof data[fName].cellClass != 'undefined') {
|
||||
$(cell).attr('class', data[fName].cellClass);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
})
|
||||
})(CRM.$);
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
{else}
|
||||
{foreach from=$headers key=recId item=head}
|
||||
<th>{ts}{$head}{/ts}</th>
|
||||
{/foreach}
|
||||
|
||||
{foreach from=$dateFields key=fieldId item=v}
|
||||
<th class='hiddenElement'></th>
|
||||
{/foreach}
|
||||
<th> </th>
|
||||
</thead>
|
||||
{foreach from=$records key=recId item=rows}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
{foreach from=$headers key=hrecId item=head}
|
||||
<td {crmAttributes a=$attributes.$hrecId.$recId}>{$rows.$hrecId}</td>
|
||||
{/foreach}
|
||||
<td>{$rows.action}</td>
|
||||
{foreach from=$dateFieldsVals key=fid item=rec}
|
||||
<td class='crm-field-{$fid}_date hiddenElement'>{$rec.$recId}</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
{/strip}
|
||||
</div>
|
||||
</div>
|
||||
<div id='{$dialogId}' class="hiddenElement"></div>
|
||||
{elseif !$records}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
|
||||
{ts 1=$customGroupTitle}No records of type '%1' found.{/ts}
|
||||
</div>
|
||||
<div id='{$dialogId}' class="hiddenElement"></div>
|
||||
{/if}
|
||||
|
||||
{if !$reachedMax}
|
||||
<div class="action-link">
|
||||
{if $pageViewType eq 'customDataView'}
|
||||
<br/><a accesskey="N" title="{ts 1=$customGroupTitle}Add %1 Record{/ts}" href="{crmURL p='civicrm/contact/view/cd/edit' q="reset=1&type=$ctype&groupID=$customGroupId&entityID=$contactId&cgcount=$newCgCount&multiRecordDisplay=single&mode=add"}"
|
||||
class="button action-item"><span><i class="crm-i fa-plus-circle"></i> {ts 1=$customGroupTitle}Add %1 Record{/ts}</span></a>
|
||||
{else}
|
||||
<a accesskey="N" href="{crmURL p='civicrm/profile/edit' q="reset=1&id=`$contactId`&multiRecord=add&gid=`$gid`&context=multiProfileDialog&onPopupClose=`$onPopupClose`"}"
|
||||
class="button action-item"><span><i class="crm-i fa-plus-circle"></i> {ts}Add New Record{/ts}</span></a>
|
||||
{/if}
|
||||
</div>
|
||||
<br />
|
||||
{/if}
|
||||
{/if}
|
|
@ -0,0 +1,55 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM 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 Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $overlayProfile }
|
||||
<table class="crm-table-group-summary">
|
||||
<tr><td>{$displayName}</td></tr>
|
||||
<tr><td>
|
||||
{assign var="count" value="0"}
|
||||
{assign var="totalRows" value=$row|@count}
|
||||
<div class="crm-summary-col-0">
|
||||
{foreach from=$profileFields item=field key=rowName}
|
||||
{if $count gt $totalRows/2}
|
||||
</div>
|
||||
</td><td>
|
||||
<div class="crm-summary-col-1">
|
||||
{assign var="count" value="1"}
|
||||
{/if}
|
||||
<div class="crm-section {$rowName}-section">
|
||||
<div class="label">
|
||||
{$field.label}
|
||||
</div>
|
||||
<div class="content">
|
||||
{$field.value}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{assign var="count" value=`$count+1`}
|
||||
{/foreach}
|
||||
</div>
|
||||
</td></tr>
|
||||
</table>
|
||||
{* fields array is not empty *}
|
||||
{/if}
|
|
@ -0,0 +1,57 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM 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 Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* 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 }
|
||||
{foreach from=$profileGroups item=group}
|
||||
<div class="crm-summary-group">
|
||||
{$group.content}
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
{foreach from=$profileGroups item=group}
|
||||
<h2>{$group.title}</h2>
|
||||
<div id="profilewrap{$groupID}" class="crm-profile-view">
|
||||
{$group.content}
|
||||
</div>
|
||||
{/foreach}
|
||||
<div class="action-link">
|
||||
{if $listingURL}
|
||||
<a href="{$listingURL}">» {ts}Back to Listings{/ts}</a>
|
||||
{/if}
|
||||
{if $mapURL}
|
||||
<a href="{$mapURL}">» {ts}Map Primary Address{/ts}</a>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{literal}
|
||||
<script type='text/javascript'>
|
||||
function contactImagePopUp (url, width, height) {
|
||||
newWindow = window.open( url,'name', 'width='+width+', height='+height );
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
Loading…
Add table
Add a link
Reference in a new issue