{* +--------------------------------------------------------------------+ | CiviCRM version 4.5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {strip} {if $batchUpdate} {assign var='elementId' value=$form.field.$elementIndex.$elementName.id} {assign var="tElement" value=$elementName|cat:"_time"} {assign var="timeElement" value=field_`$elementIndex`_`$elementName`_time} {$form.field.$elementIndex.$elementName.html} {elseif $elementIndex} {assign var='elementId' value=$form.$elementName.$elementIndex.id} {assign var="timeElement" value=$elementName|cat:"_time.$elementIndex"} {$form.$elementName.$elementIndex.html} {elseif $blockId and $blockSection} {assign var='elementId' value=$form.$blockSection.$blockId.$elementName.id} {assign var="tElement" value=`$elementName`_time} {$form.$blockSection.$blockId.$elementName.html} {assign var="timeElement" value=`$blockSection`_`$blockId`_`$elementName`_time} {if $tElement}   {$form.$blockSection.$blockId.$tElement.label}   {$form.$blockSection.$blockId.$tElement.html|crmAddClass:six} {/if} {else} {if !$elementId} {assign var='elementId' value=$form.$elementName.id} {/if} {assign var="timeElement" value=$elementName|cat:'_time'} {$form.$elementName.html} {/if} {assign var='displayDate' value=$elementId|cat:"_display"} {if $action neq 1028} {/if} {if $batchUpdate AND $timeElement AND $tElement}   {$form.field.$elementIndex.$tElement.label}  {$form.field.$elementIndex.$tElement.html|crmAddClass:six} {elseif $timeElement AND !$tElement} {if $form.$timeElement.label}   {$form.$timeElement.label}   {/if} {$form.$timeElement.html|crmAddClass:six} {/if} {if $action neq 1028} {/if} {/strip}